<!--
//下面是colee自定的通用活页效果
function CoLeeGlide(idone,nameone,idtwo,nametwo){
	var CoLee_Cut=document.getElementById(idone).getElementsByTagName(nameone);
	if(idtwo!=''&nametwo!='')var CoLee_Cut_Cont=document.getElementById(idtwo).getElementsByTagName(nametwo);
	for(var i=0;i<CoLee_Cut.length;i++){
		CoLee_Cut[i].value = i; 
		CoLee_Cut[i].onmouseover=function(){
			for(var j = 0 ; j < CoLee_Cut.length ; j++){      
						CoLee_Cut[j].className = "";
						this.className="on"
						if(CoLee_Cut_Cont)CoLee_Cut_Cont[j].style.display = "none"; 
					}
					if(CoLee_Cut_Cont)CoLee_Cut_Cont[this.value].style.display = "";  
		}
	}
}
//end
//focus1
function setHotQueryList(screen,Id){
	var SetId = document.getElementById(Id).getElementsByTagName("ul");
	var hot_query_td =SetId[1];
	var SetIdLi0=SetId[0].getElementsByTagName("li");
	var SetIdLi1=SetId[1].getElementsByTagName("li");
	var Vmotion = "forward" ;
	var MaxScreen = SetIdLi1.length;
	if (screen >= MaxScreen) {
		screen = 0 ;
		Vmotion = "reverse" ;
	}
	for (i=0;i<MaxScreen;i++) {
		SetIdLi0[i].className = "" ;
		SetIdLi0[i].value=i;
		SetIdLi0[i].onmouseover=function (){
			clearTimeout(refreshHotQueryTimer);
			setHotQueryList(this.value,Id);
		}
	}
	SetIdLi0[screen].className = "on" ;
	  
	 if(null!=hot_query_td.filters){
		hot_query_td.filters[0].apply();
		hot_query_td.filters[0].motion = Vmotion;
	 }
	 for (i=0;i<MaxScreen;i++) {
		SetIdLi1[i].style.display = "none" ;
	 }
  	SetIdLi1[screen].style.display = "block" ;
  if(null!=hot_query_td.filters){
	hot_query_td.filters[0].play();
  }
	CurrentHotScreen = screen+1 ;
	var refreshHotQueryTimer = setTimeout('setHotQueryList('+CurrentHotScreen+',"'+Id+'");', 3500);
}

//lhx20100107
function setHotQueryList1(screen,Id){
	var SetId = document.getElementById(Id).getElementsByTagName("ul");
	var hot_query_td =SetId[1];
	var SetIdLi0=SetId[0].getElementsByTagName("li");
	var SetIdLi1=SetId[1].getElementsByTagName("li");
	var Vmotion = "forward" ;
	var MaxScreen = SetIdLi1.length;
	if (screen >= MaxScreen) {
		screen = 0 ;
		Vmotion = "reverse" ;
	}
	for (i=0;i<MaxScreen;i++) {
		SetIdLi0[i].className = "" ;
		SetIdLi0[i].value=i;
		SetIdLi0[i].onmouseover=function (){
			clearTimeout(refreshHotQueryTimer);
			setHotQueryList1(this.value,Id);
		}
	}
	SetIdLi0[screen].className = "on" ;
	  
	 if(null!=hot_query_td.filters){
		hot_query_td.filters[0].apply();
		hot_query_td.filters[0].motion = Vmotion;
	 }
	 for (i=0;i<MaxScreen;i++) {
		SetIdLi0[i].style.display = "none" ;
		SetIdLi1[i].style.display = "none" ;
	 }
  	SetIdLi0[screen].style.display = "block" ;
  	SetIdLi1[screen].style.display = "block" ;
  if(null!=hot_query_td.filters){
	hot_query_td.filters[0].play();
  }
	CurrentHotScreen = screen+1 ;
	var refreshHotQueryTimer = setTimeout('setHotQueryList1('+CurrentHotScreen+',"'+Id+'");', 3500);
}
//end
//换肤
function Cut_Style(objthis,num){
		var tabList = document.getElementById("CutStyle").getElementsByTagName("a");
		for(var i=0 ; i < tabList.length ; i++){
			tabList[i].id="";
		}
		objthis.id = objthis.className;
		//var cuthref = "http://"+location.hostname+"/image/cut"+num+".css"
		var cuthref = "image/cut"+num+".css"
		document.getElementById("CUTCSS").href = cuthref;
		//SetCookie("cutsname",cuthref);
	}

/*tiao*/
function cx(){
document.getElementById("wang").style.display=""
}
function yc(){
document.getElementById("wang").style.display="none"
}
function wx(){
	if(fu.style.display=="none"){fu.style.display=""}else{fu.style.display="none"};
}
function wc(){
document.getElementById("fu").style.display="none"
}


/*浮层ad*/
var ggdj = function (p_id)
{
    this.id = p_id;    var newDiv;
    this.test = function ()
    {
        newDiv = document.getElementById(this.id)
        if(newDiv == null) {alert("请传入正确的ＩＤ!");return ;}
        if(getCookie()) return;
        newDiv = newDiv.cloneNode(true);
        for(var nI = 0; nI<newDiv.childNodes.length; nI++)
        if(newDiv.childNodes[nI].nodeName.toLowerCase() == "a")
        newDiv.childNodes[nI].style.cursor = "default";
        newDiv.id="newDiv";    newDiv.style.filter = "Alpha(opacity=10)";
        newDiv.style.position ="absolute";
        newDiv.style.cursor ="default";
        document.body.appendChild(newDiv);
        newDiv.onclick = function (){
            writeCookie();
            document.body.removeChild(newDiv);
        }
        document.onmousemove =  function ()    {
            newDiv.style.top = event.y - newDiv.clientHeight/2;
            newDiv.style.left = event.x - newDiv.clientWidth/2;
        }
    }
    var writeCookie = function()
    {
        var time = new Date();   
        time.setTime(time.getTime() + 86400000);  
        document.cookie = "8KD6SF6679OH6SFEJ7IU9I9E6=96FIY8GHIJIGG; expires="+time.toGMTString();
    }
    var getCookie = function()
    {
        if(document.cookie.indexOf("8KD6SF6679OH6SFEJ7IU9I9E6") != -1)
            return true;return false;
    }
}
/*使用说明：
//如下调用就行了，注意new ggdj("这里是你要显示的那个广告ＤＩＶ的ＩＤ")

//－－－－－－－－－－－－－－－－－－－－－－－－－－
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" 
src="test.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
    new ggdj("adsfas").test();//adsfas 就是要复制ＤＩＶ的id
//-->
</SCRIPT>
//＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/
$(document).ready(function(){  //页面加载完成后执行  
//
});
//弹窗
function PopS(id){
	  var pd=document.getElementById(id);
	  if(pd.style.display=="none"){pd.style.display=""}else{pd.style.display="none"};
	  pd.style.top=document.documentElement.scrollTop+(document.documentElement.clientHeight-pd.offsetHeight)/2+"px";
	  pd.style.left=document.documentElement.scrollLeft+(document.documentElement.clientWidth-pd.offsetWidth)/2+"px";
	}
//关灯
function BlackSn(){
	//alert("BlackSn");
	
	var w=document.body.clientWidth+"px";
	var h=document.body.clientHeight+"px";
	//thisMovie("MyMinplayer").openDeng();
	//$("#blackscreen").css({ "opacity":"0.8",width: w ,height: h , position:"absolute", top:"0" ,left:" 0", background:"#000","z-index":"990"}).fadeIn(1000).click(function(){$(this).fadeOut("slow"),thisMovie("MyMinplayer").openDeng()});
	$("#blackscreen").css({ "opacity":"0.8",width: w ,height: h , position:"absolute", top:"0" ,left:" 0", background:"#000","z-index":"990"}).fadeIn().click(function(){$(this).fadeOut(),thisMovie("MyMinplayer").openDeng()});
	}
//开灯
function Opensn(){
	//alert("Opensn2");
	$("#blackscreen").fadeOut("normal");
	thisMovie("MyMinplayer").openDeng();

}

function zhuantie(){
	PopS("pop_code");
}

function Swflogin(){
	//alert("pop_login");
	PopS("pop_login");
}
//2倍效果

function twobei(){
	Opensn();
        var ie="";
	var isIE=!!window.ActiveXObject;
	var isIE6=isIE&&!window.XMLHttpRequest;
	var isIE8=isIE&&!!document.documentMode;
	var isIE7=isIE&&!isIE6&&!isIE8;
	if (isIE){
		if (isIE6){
			ie="ie6";
		}else if (isIE8){
			ie="ie8";
		}else if (isIE7){
			ie="ie7";
		}
	}
	//window.alert("你使用的浏览器是:"+navigator.appName);
	var w=document.body.clientWidth+"px";
	var h=document.body.clientHeight+"px";
	var w_=document.body.clientWidth;
	
	if(document.getElementById('MyMinplayer').width==598){
		$("#blackscreen2").css({ "opacity":"0.5",width: w ,height: h , position:"absolute", top:"0" ,left:" 0", background:"#000","z-index":"990"}).fadeIn().click();
		
		if(w_<=1000){
			thisMovie("MyMinplayer").twobeiDo(800);
			document.getElementById('MyMinplayer').width=800;
			document.getElementById('MyMinplayer').height=491;
			if(ie!="ie6"){
				document.getElementById("MyMinplayer").parentNode.style.left=((document.body.clientWidth-800)/2-(document.body.clientWidth-600)/2)+"px";
				document.getElementById("MyMinplayer").parentNode.style.top=-50+"px";
			}
		}else{
			thisMovie("MyMinplayer").twobeiDo(1000);
			document.getElementById('MyMinplayer').width=1000;
			document.getElementById('MyMinplayer').height=614;
			if(ie!="ie6"){
				document.getElementById("MyMinplayer").parentNode.style.left=((document.body.clientWidth-1000)/2-(document.body.clientWidth-600)/2)+"px";
				document.getElementById("MyMinplayer").parentNode.style.top=-150+"px";
			}
			
		}

	}else{
		thisMovie("MyMinplayer").twobeiDo(598);
		document.getElementById('MyMinplayer').width=598;
		document.getElementById('MyMinplayer').height=367;
		$("#blackscreen2").fadeOut("normal");
		document.getElementById("MyMinplayer").parentNode.style.left=0+"px";
		document.getElementById("MyMinplayer").parentNode.style.top=0+"px";
        }
	//alert(w_+"  "+document.getElementById("MyMinplayer").parentNode+"  "+document.getElementById("MyMinplayer").parentNode.style.left );
	//thisMovie("MyMinplayer").twobeiDo(document.getElementById('MyMinplayer').width);	
}

function twobei_dsj(){
	var w=document.body.clientWidth+"px";
	var h=document.body.clientHeight+"px";

	//alert($("#blackscreen2"));
	if(document.getElementById('MyMinplayer').width==598){
		$("#blackscreen2").css({ "opacity":"0.5",width: w ,height: h , position:"absolute", top:"0" ,left:" 0", background:"#000","z-index":"990"}).fadeIn().click();
		
	}else{
		$("#blackscreen2").fadeOut("normal");
		
        }
	//thisMovie("MyMinplayer").twobeiDo(document.getElementById('MyMinplayer').width);	
}

function HtmlTarce(s){
	//alert("s"+s);
}
function shoucok(){
//alert("pop_login2222");
  PopS("pop_shoucang");
}



/*
flash 应用Js
*/

function thisMovie(movieName) {
        if (navigator.appName.indexOf("Microsoft") != -1) {
            return window[movieName];
        } else {
            return document[movieName];
       }
     }


//gaoqing
function gaoqingcomplete(){
   if(thisMovie("gaoqingindex")==undefined){
     swfobject.embedSWF("image/gaoqingfocus.swf", "gaoqingfocus", "980", "366", "10.0.0", null,null,{wmode:"transparent"},{id:"gaoqingindex"} );
		swfobject.addParam("wmode", "transparent");
   }else{
      //alert(thisMovie("MyMinplayer"));
   }
}

//电视剧
function dsjuUrl(u){

 //alert(u);
	thisMovie("MyMinplayer").clickUrl(u);
  
}

function dsjJishu(i){
	//alert(i);
	thisMovie("dsj").dsjJI(i);
}

function setLook(i){
//alert(i);
	thisMovie("dsj").setLook(i);
}

function noToPlay(){
	thisMovie("dsj").noToPlay();
}

/*cms*/
function redirect(url)
{
	if(url.indexOf('://') == -1 && url.substr(0, 1) != '/' && url.substr(0, 1) != '?') url = phpcms_path+url;
	location.href = url;
}
	-->








