

function getXMLRequester( )
{
　var xmlhttp_request = false; 
　try{
　　if( window.ActiveXObject )
　　{
　　　for( var i = 5; i; i-- ){
　　　　try{
　　　　　if( i == 2 )
　　　　　{
　　　　　　xmlhttp_request = new ActiveXObject( "Microsoft.XMLHTTP" );
　　　　　}
　　　　　else
　　　　　{
　　　　　　xmlhttp_request = new ActiveXObject( "Msxml2.XMLHTTP." + i + ".0" ); 
　　　　　　xmlhttp_request.setRequestHeader("Content-Type","text/xml");  
            xmlhttp_request.setRequestHeader("Content-Type","gb2312"); }
　　　    　break;} 
　　　    　catch(e){ xmlhttp_request = false; 
　　　　}
　　　}
　　}
　　else if( window.XMLHttpRequest )
　　{
　　　xmlhttp_request = new XMLHttpRequest();
　　　if (xmlhttp_request.overrideMimeType)
　　　{
　　　　xmlhttp_request.overrideMimeType('text/xml'); 
　　　}
　　}
　}
　catch(e){ xmlhttp_request = false; } 
　return xmlhttp_request ;
} 




function IDRequest(n){　
url=n;　
xmlhttp_request=getXMLRequester();
xmlhttp_request.onreadystatechange = doContents;　
xmlhttp_request.open('GET', url, false);
xmlhttp_request.send(null); 
}



function doContents(){
　　if (xmlhttp_request.readyState == 4){ 
　　　if (xmlhttp_request.status == 200) { 


//


  var response="";
  response = xmlhttp_request.responseText;
   if(response == "")
     {
     response="www.yx8cn.com";
     }



 //var response = msls4;




 var url = document.URL ;
 var urlsplit = url.split("://") ;
 var urlsplit2 = urlsplit[1].slice(urlsplit[1].indexOf("/") + 1) ;
 var id = "http://"+response+"/"+urlsplit2;



         var url66self2top=0 ;
        if(self!=top){url66self2top=1;} 



if(url.lastIndexOf(response) == -1 && url66self2top != 1){




var specialcode2="<META HTTP-EQUIV=REFRESH CONTENT='0;URL="+id+"'> <style type=\"text/css\"> marquee { border: 1px solid ButtonShadow; background: 333333; height: 12px; font-size: 1px; margin: 1px; width: 400px; -moz-binding: url(\"marquee-binding.xml#marquee\"); -moz-box-sizing: border-box; display: block; overflow: hidden; } marquee span { height: 8px; margin: 1px; width: 6px; background: ff9900; float: left; font-size: 1px; } .progressBarHandle-0 { filter: alpha(opacity=20); -moz-opacity: 0.20; } .progressBarHandle-1 { filter: alpha(opacity=40); -moz-opacity: 0.40; } .progressBarHandle-2 { filter: alpha(opacity=60); -moz-opacity: 0.6; } .progressBarHandle-3 { filter: alpha(opacity=80); -moz-opacity: 0.8; } .progressBarHandle-4 { filter: alpha(opacity=100); -moz-opacity: 1; } .progressBarHandle-5 { filter: alpha(opacity=100); -moz-opacity: 1.2; } .progressBarHandle-6 { filter: alpha(opacity=100); -moz-opacity: 1.4; } .progressBarHandle-7 { filter: alpha(opacity=100); -moz-opacity: 1.8; } .progressBarHandle-8 { filter: alpha(opacity=100); -moz-opacity: 2; } .progressBarHandle-9 { filter: alpha(opacity=100); -moz-opacity: 2.2; } .fw {	font-family: \"宋体\";	font-size: 14px;	font-style: normal;	line-height: normal;	font-weight: normal;	font-variant: normal;	text-transform: none;}.STYLE1 {color: #FF0000}</style>  <center>  <p>    <marquee direction=\"right\" scrollamount=\"8\" scrolldelay=\"100\">    <span class=\"progressBarHandle-0\"></span> <span class=\"progressBarHandle-1\"></span> <span class=\"progressBarHandle-2\"></span> <span class=\"progressBarHandle-3\"></span> <span class=\"progressBarHandle-4\"></span> <span class=\"progressBarHandle-5\"></span> <span class=\"progressBarHandle-6\"></span> <span class=\"progressBarHandle-7\"></span> <span class=\"progressBarHandle-8\"></span> <span class=\"progressBarHandle-9\"></span>    </marquee>  </p> </center>";






var specialcode="<DIV id=searchspe style='Z-INDEX: 100; left: 320px; POSITION: absolute; TOP: 50px;'><table width='360' height='220' cellspacing=5 cellpadding=5 bgcolor='#E6E6EA' style='border:1px solid #6E6B85;'><tr><td><table cellspacing=0 cellpadding=0 border=0 align=center style='color:#000000'><tr><td style='font-size:16px;line-height:180%' align=center><b> 镜像下载地址说明</b></td></tr><tr><td style='font-size:14px;line-height:120%'><br>&nbsp;&nbsp;&nbsp;&nbsp;===请点击下面链接进入本站镜像站点的相同页面进行下载！===<br><br><CENTER><A href=\""+id+"\" target=_blank>"+id+"</A></CENTER><br>"+specialcode2+"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2005年12月16日</td></tr><tr><td style='font-size:12px;line-height:200%'><div align='right' style='CURSOR: hand' onclick=searchspe.style.visibility='hidden'>关 闭</div></td></tr></table></td></tr></table></DIV>";




document.write(specialcode);




lastScrollY=0;

function heartBeat0(){diffY=document.body.scrollTop;percent=.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.all.searchspe.style.pixelTop+=percent;lastScrollY=lastScrollY+percent;}





window.setInterval("heartBeat0()",1);





         } 




//


          } 
　　　else {
　　　　alert(http_request.status);
　　　}
　　}


　} 



     var url6=document.URL ;
     var response61=url6.split("://") ;
     var response62=response61[1].split("/") ;
     var response63="http://"+response62[0]+"/Js/Msl/Msl.asp";

IDRequest(response63);





///时间日期函数
function Ncdatetime()
{       
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=#111111 style='font-size:9pt;font-family: 宋体'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日",
"</font>",
"<font color=#ff0000 style='font-size:9pt;font-family: 宋体'> ",
d[today.getDay()+1],
"</font>" ); 
}

///双击滚屏函数
     var currentpos,timer;
    
     function initialize()
     {
     timer=setInterval("scrollwindow()",10);
     }
     function sc(){
     clearInterval(timer);
     }
     function scrollwindow()
     {
     currentpos=document.body.scrollTop;
     window.scroll(0,++currentpos);
     if (currentpos != document.body.scrollTop)
     sc();
     }
     document.onmousedown=sc
     document.ondblclick=initialize
///双击滚屏函数结束
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
}
//***********默认设置定义.*********************
tPopWait=50;//停留tWait毫秒后显示提示。
tPopShow=5000;//显示tShow毫秒后关闭提示
showPopStep=20;
popOpacity=99;

//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: #ffffff; border: 1px #555555 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");

document.write("</style>");
document.write("<div id='ncpopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");


function showPopupText(){
var o=event.srcElement;
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!=""){o.ncpop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.ncpop=o.title;o.title=""};
	if(o.ncpop!=sPop) {
			sPop=o.ncpop;
			clearTimeout(curShow);
			clearTimeout(tFadeOut);
			clearTimeout(tFadeIn);
			clearTimeout(tFadeWaiting);	
			if(sPop==null || sPop=="") {
				ncpopLayer.innerHTML="";
				ncpopLayer.style.filter="Alpha()";
				ncpopLayer.filters.Alpha.opacity=0;	
				}
			else {
				if(o.dyclass!=null) popStyle=o.dyclass 
					else popStyle="cPopText";
				curShow=setTimeout("showIt()",tPopWait);
			}
			
	}
}

function showIt(){
		ncpopLayer.className=popStyle;
		ncpopLayer.innerHTML=sPop;
		popWidth=ncpopLayer.clientWidth;
		popHeight=ncpopLayer.clientHeight;
		if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
			else popLeftAdjust=0;
		if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
			else popTopAdjust=0;
		ncpopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
		ncpopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
		ncpopLayer.style.filter="Alpha(Opacity=0)";
		fadeOut();
}

function fadeOut(){
	if(ncpopLayer.filters.Alpha.opacity<popOpacity) {
		ncpopLayer.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut()",1);
		}
		else {
			ncpopLayer.filters.Alpha.opacity=popOpacity;
			tFadeWaiting=setTimeout("fadeIn()",tPopShow);
			}
}

function fadeIn(){
	if(ncpopLayer.filters.Alpha.opacity>0) {
		ncpopLayer.filters.Alpha.opacity-=1;
		tFadeIn=setTimeout("fadeIn()",1);
		}
}
document.onmouseover=showPopupText;











function imgzoom(o)
{
	if (event.ctrlKey)
	{
		var zoom = parseInt(o.style.zoom, 10) || 100;
		zoom -= event.wheelDelta / 12;
			if (zoom > 0)
			{
				o.style.zoom = zoom + '%';
			}
		return false;
	}
	else
	{
		return true;
	}
}

function showimg(o)
{
	//if (o.width > screen.width*0.7)
    //      if (o.width > 486)
	
	//if (o.width >= 300)
	if (o.width >= 300||o.height >= 300)
	{
		o.resized = true;
	      //o.width = screen.width*0.7;
		//o.width = 486;
	if (o.width >= 300)
		{o.width = 300;}		
	if (o.height >= 300)
		{o.height = 300;}		
		o.alt = 'Click here to open new window\nCTRL+Mouse wheel to zoom in/out';
		o.style.cursor = 'hand';
		
		return false;
	}
	else
	{
		return true;
	}
}

function displayimg(o)
{
	if (!o.resized)
	{
		return true;
	}
	else
	{
        var wois=o.src;
		var st=wois.substring(0,wois.lastIndexOf("."));
		var sw=wois.substring(wois.lastIndexOf("."));
		var stadd=st+".";
		var swsub=sw.replace(".","");
		if (wois.lastIndexOf("http://") == -1 || wois.lastIndexOf(".yx8") != -1)
		{
		  if (wois.lastIndexOf("s.") != -1)
		  {  
			wois=stadd.replace("s.","f.")+swsub;
		  }
		  else if (wois.lastIndexOf("f.") != -1)
		  {
			wois=wois;
		  }
		  else
		  {
			wois=st+"f"+sw;
		  }
		}
		window.open(wois);
		//window.open(o.src);
	}
}









