function swap_tab(n){
	for(var i=1;i<=6;i++){
		var curC=document.getElementById("tab_"+i);
		var curB=document.getElementById("tab_t"+i);
		if(n==i){
			curC.style.display="block";
			curB.className="active"
		}else{
			curC.style.display="none";
			curB.className="normal"
		}
	}
}

//**视频内容页面控制代码**//
Iever=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
if(Iever=="6.0")
    {
      ie6 = true;
      width_add = 0; 
      height_add = 0;
      hand_add = 0;
    }
else
    {
      ie6 = false;
      width_add = 0;
      height_add = 0;
      hand_add = 0;
    }
function OpenWindow(PlayerURL)
{
  if (ie6)
	newwindow=window.open('','{$GetSiteName}','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
  else
	newwindow=window.open('','{$GetSiteName}','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
	newwindow.moveTo(100,100);
	newwindow.resizeTo(440+width_add,428+height_add+hand_add);
	newwindow.focus();
	newwindow.location=PlayerURL;
}
function Play(id,num)
{
	OpenWindow('/Movie/play.asp?id='+id+'&num='+num);
}

//**错误提示控制代码**//
function myTip(){
    var myd=document.getElementById("mydiv");
        myd.style.left=event.clientX+40;
        myd.style.top=event.clientY+120;
        myd.style.visibility="visible";
}
function myhid(){
  var myd=document.getElementById("mydiv");
      myd.style.visibility="hidden";
}



