var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);var version="";var msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3";}else{version="n2";}

function cr_loadpage(){
		if(document.getElementById('subnavi').innerHTML!=""){
			//document.getElementById('subnavi').style.display = "";
			Effect.Appear("subnavi", {duration: 0.5});
		}
		if(document.getElementById('innercontentborder').innerHTML!=""){
			//document.getElementById('contentborder').style.display = "";
			Effect.Appear("contentborder", {duration: 0.5});
		}
}
function jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function cr_goToURL() { //v3.0
  var i, args=cr_goToURL.arguments; document.cr_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function cr_cinema(flv,new_width,new_height){
	// Layer
	document.getElementById('cinema_layer').style.display = '';
	//margin-left:-360px; width:720px;
	document.getElementById('cinema_layer').style.width = new_width+'px';
	document.getElementById('cinema_layer').style.marginLeft = -(new_width/2)+'px';
	
	//black
	window.scrollTo(0, 0);
	Effect.Appear("black_layer", {duration: 0.5, from: 0.0, to:0.8});
	
	//SWF
	var flashvars = {
	  src: flv,
	  width: new_width,
	  height: new_height
	};
	var params = {
	  menu: "false",
	  wmode: "transparent",
	  allowScriptAccess: "sameDomain",
	  quality: "high",
	  allowfullscreen: true
	};
	var attributes = {
	  id: "flv_cinema",
	  name: "flv_cinema"
	};
	new_height1 = parseInt(new_height)+31;	
	//alert("swf:"+new_width+"x"+new_height1);
	//alert("flv:"+new_width+"x"+new_height);
	swfobject.embedSWF("fileadmin/xbow/swf/videoplayer.swf?src=/"+flv+"&new_width="+new_width+"&new_height="+new_height, "flashcontainer", new_width, new_height1, "9.0.0","fileadmin/swf/expressInstall.swf", flashvars, params, attributes);

}
function cr_cinema_baba(){
	document.getElementById('black_layer').style.display = "none";
	document.getElementById('cinema_layer').style.display = "none";
	swfobject.removeSWF("flv_cinema");
	document.getElementById('restorecontainer').innerHTML = '<div id="flashcontainer"></div>';
}

