function buttonOver(button, color) {
	button.style.backgroundColor = color;
}
		
function buttonOut(button){
	button.style.backgroundColor = "";
}
			
function popup(file){
	var zentrierenX = (screen.width/2)-235; 
	var zentrierenY = (screen.height/2)-210;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"zoom","width=555, height=500, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popupwaypoint(file){
	
	var zentrierenX = (screen.width/2)-270; 	
	var zentrierenY = (screen.height/2)-230;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	
	if (navigator.appName == "Microsoft Internet Explorer"){	
		window.open("../" + file,"help","width=555, height=500, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);}
	else {
		window.open(file,"help","width=555, height=500, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);}

}

function googlemap(){
	var zentrierenX = (screen.width/2)-475; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	
	if (navigator.appName == "Microsoft Internet Explorer"){	
		window.open("map.asp","Map","width=950, height=600, resizable=yes, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
		}
	else {
		window.open("vermieter/map.asp","Map","width=950, height=600, resizable=yes, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
	}
}

function popupprospekt(file){
	var zentrierenX = (screen.width/2)-350; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=750, height=600, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popupanfrage(file){
	
	var zentrierenX = (screen.width/2)-350; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	
	if (navigator.appName == "Microsoft Internet Explorer"){	
		window.open("../" + file,"help","width=750, height=600, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);}
	else {
		window.open(file,"help","width=750, height=600, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);}
	
}

function popupCam(file){
	var zentrierenX = (screen.width/2)-300; 
	var zentrierenY = (screen.height/2)-180;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=600, height=360, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popupbook(file){
	var zentrierenX = (screen.width/2)-350; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=750, height=600, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popuproute(file){
	var zentrierenX = (screen.width/2)-350; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"route","width=750, height=600, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function GetImage(image,text,file,beschreibung){
	image.src = file ;
	text.innerHTML = beschreibung ;
}

function newImage(arg) {
	
	var rslt;
	
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function writeFlash(Path,Width,Height,Parameter) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='" +  Height + "' width='" + Width + "'>");
	document.write("<param name='movie' value='" + Path + Parameter + "'>");
	document.write("<param name='quality' value='best'>");
	document.write("<param name='play' value='true'>");
	document.write("<param name='menu' value='false'>");
	document.write("<embed menu='false' height='" + Height + "' pluginspage='http://www.macromedia.com/go/getflashplayer' src='" + Path + Parameter + "' type='application/x-shockwave-flash' width='" + Width + "' quality='best' play='true'>");
	document.write("</object>");
}

function writeFlashMenu(Path,Width,Height) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + Width + "' height='" + Height + "' id='menu' align='middle'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='movie' value='"+ Path +"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='bgcolor' value='#4b87bc' />");
	document.write("<embed src='" + Path + "' quality='high' bgcolor='#4b87bc' width='" + Width + "' height='"+ Height +"' name='menu' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");

}

function writeMediaplayer(Path,Width,Height,Autoplay) {

	document.write("<object id='MediaPlayer' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'   height='" + Height + "' width='" + Width + "'>");
	document.write("<param name='filename' value='"+ Path + "'>");
	document.write("<param name='autostart' value='" + Autoplay + "'>");
	document.write("<embed src='" + Path + "' width='" + Width + "' height='" + Height + "' autostart='" + Autoplay + "' />");
	document.write("</object>");

}

function writeQuicktime(Path,Width,Height,Autoplay) {

	document.write("<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' type='video/quicktime' height='" + Height + "' width='" + Width + "'>");
	document.write("<param name='src' value='" + Path + "'>");
	document.write("<param name='autoplay' value='" + Autoplay + "'>");
	document.write("<param name='controller' value=''>");						
	document.write("<embed height='" + Height + "' pluginspage='http://www.apple.com/quicktime/download/' src='" + Path + "' type='video/quicktime' width='" + Width + "' autoplay='" + Autoplay + "'>");
	document.write("</object>");
	
}

function showCriteria(){
	
	document.getElementById("feratelCriteria").style.display =  "block";
	document.getElementById("feratelHideCriteria").style.display =  "block";
	document.getElementById("feratelShowCriteria").style.display =  "none";
	
}

function hideCriteria(){
	
	document.getElementById("feratelCriteria").style.display =  "none";
	document.getElementById("feratelHideCriteria").style.display =  "none";
	document.getElementById("feratelShowCriteria").style.display =  "block";
	
}
