function buttonOver(button, color) {
	button.style.backgroundColor = color;
}
		
function buttonOut(button){
	button.style.backgroundColor = "";
}

function switchImage(mode){
		var img="../images/follow.gif";
		var over="../images/follow_over.gif";
		if(mode=='over')img=over;
		document.getElementById("followImage").src=img;
}	
			
function popup(file){
	var zentrierenX = (screen.width/2)-235; 
	var zentrierenY = (screen.height/2)-210;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=550, height=495, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popupTrainer(file){
	var zentrierenX = (screen.width/2)-512; 
	var zentrierenY = (screen.height/2)-348;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=1024, height=768, resizable=yes, scrollbars=yes, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function popupBMI(file){
	var zentrierenX = (screen.width/2)-140; 
	var zentrierenY = (screen.height/2)-165;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=280, height=330, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

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 writeFlashTransparent(Path,Width,Height,Parameter) {
		
		
	Transparent='Ja'

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='" + Width + "' height='" + Height + "' id='" + Path + Parameter + "' align='middle'>");
	document.write("<param name='movie' value='" + Path + Parameter + "' />");
	document.write("<param name='quality' value='high' />");
	
	if(Transparent == 'Ja'){
		document.write("<param name='wmode' value='transparent' />");
	} else {
		document.write("<param name='wmode' value='window' />");
	}
	
	document.write("<param name='scale' value='showall' />");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='allowFullScreen' value='true' />");
	document.write("<!--[if !IE]>-->");
	document.write("<object type='application/x-shockwave-flash' data='" + Path + Parameter + "' width='" + Width + "' height='" + Height + "'>");
	document.write("<param name='movie' value='" + Path + Parameter + "' />");
	document.write("<param name='quality' value='high' />");
	
	if(Transparent == 'Ja'){
		document.write("<param name='wmode' value='transparent' />");
	} else {
		document.write("<param name='wmode' value='window' />");
	}
	
	document.write("<param name='scale' value='showall' />");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='allowFullScreen' value='true' />");
	document.write("<!--<![endif]-->");
	document.write("<a href='http://www.adobe.com/go/getflash'>");
	document.write("<img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash Player' border='0' />");
	document.write("</a>");
	document.write("<!--[if !IE]>-->");
	document.write("</object>");
	document.write("<!--<![endif]-->");
	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>");
	
}
