function em(e){	
return document.getElementById(e)
}

function SetCookie(name,value){
var argv=SetCookie.arguments;
var argc=SetCookie.arguments.length;
var expires=(2<argc)?argv[2]:null;
var path=(3<argc)?argv[3]:null;
var domain=(4<argc)?argv[4]:null;
var secure=(5<argc)?argv[5]:false;
document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");
}

function GetCookie(Name) 
{
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) 
{
offset = document.cookie.indexOf(search);
if (offset != -1) 
{ 
offset += search.length;
end = document.cookie.indexOf(";", offset); 
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset,end));
}
}
return returnvalue;
}
var thisskin;
thisskin=GetCookie("nowskin");
if(thisskin!="")
document.getElementById("skin").href=thisskin;
else
document.getElementById("skin").href=G_dir_r+"template/"+G_moban+"/css/t1.css";
function ssk(a) { 
if (a!=""){
var url;
url="../images/youkuvvcom"+a+".css";
skin.href=url;
var expdate=new Date();
expdate.setTime(expdate.getTime()+(24*60*60*1000*30));
SetCookie("nowskin",url,expdate,"/",null,false);
}
}



function LoadImg3(baocuo_dir,G_moban,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="object_flash_player" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="'+w+'" height="'+h+'"><param name="movie" value="'+baocuo_dir+'template/'+G_moban+'/images/g_js/pic.swf"><param name="quality" value="high"><PARAM   NAME="wmode"   VALUE="transparent"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="FlashVars" value="bcastr_xml_url='+baocuo_dir+'template/'+G_moban+'/images/g_js/pic.xml"><embed src="'+baocuo_dir+'template/'+G_moban+'/images/g_js/pic.swf" flashvars="bcastr_xml_url='+baocuo_dir+'template/'+G_moban+'/images/g_js/pic.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" width="'+w+'" height="'+h+'"></object>');
}

function $_(id){ return document.getElementById(id)}
