function fit2img(img,div,padding) {
	/****************************************************/
	/* fit width of div elements to given image size.   */
	/* img = the image (object)                         */
	/* div = ids of the div elements (area)             */
	/* padding = the sum of the left and right paddings */
	/****************************************************/

	var w = img.width -padding;
	for (var i = 0; i < div.length; i++) {
		var el = document.getElementById(div[i]);
		if(el) {
			el.style.width = w+"px";
		}
	}	
}

function scrollDown(minY, y){ 	
     if (navigator.appName == "Microsoft Internet Explorer") {
         if (document.documentElement.scrollTop >= minY) {
             window.scrollTo(0,y);
         }
     } else {
         if (window.pageYOffset >= minY) {	         	
             window.scrollTo(0,y);	             
         }
     }
}

function showMap(url){
	var w = 1024;
	var h = 768;
	var links = screen.width/2 - w/2;
	var oben = screen.height/2 - h/2;
    var fenster=open(url,+ "MapWindow","height="+h+",width="+w+",left="+links+",top="+oben+",toolbar=yes,location=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes");
	if(fenster.closed == true) aktuell;
	else  fenster.focus()

}
