function showVideoLayer(value) {
	var v = value == 'true' ? 'visible' : 'hidden';
	document.getElementById("videolayer").style.visibility = v;
	document.getElementById("player").style.visibility = v;
} 

function showVideo(url){
	var so = new SWFObject(url, "youtube", "425", "350", "9");
	so.addParam("wmode", "opaque");
	so.addParam("AllowScriptAccess", "always");
	so.addParam("AllowFullScreen", "true");
	so.write("player");
	//
	showVideoLayer('true');
}

function openPopup(url, width, height) {
 if(url == null) return false;
 var h = height == null ? 350 : height;
 var w = width == null ? 425 : width;
 fenster=window.open(url, "_blank", "width="+w+",height="+h+",status=yes,scrollbars=no,resizable=no");
 fenster.moveTo(200,screen.height/2-h/2);
 fenster.focus();
 return false;
}