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,"help","width=500, height=450, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}
			
function popupprint(file)
{
	var zentrierenX = (screen.width/2)-350; 
	var zentrierenY = (screen.height/2)-185;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width=580, height=540, resizable=no, scrollbars=yes, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

function writeFlash(Path,Width,Height,Parameter) {

	if(getCookie('cmsPluginFlash') != "false") {
		// WRITE FLASH
		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>");
	} else {
		// WRITE ALT CONTENT
		var file = Path.substr(Path.lastIndexOf('/')+1);
		file = file.substr(0, file.indexOf('.'));
		if(eval(file) != undefined) {
			document.write(eval(file));
		}
	}
	
}

// GET COOKIE
function getCookie(name) {

	var cookies = document.cookie;
	cookies = cookies.split('; ');
	
	for(var i=0; i<=(cookies.length-1); i++) {
		
		if(cookies[i].substr(0, cookies[i].indexOf('=')) == name) {
			return cookies[i].substr(cookies[i].indexOf('=')+1);
			break;
		}

	}
	
}