function Url_Head()
{
//document.write('<center><iframe  width="468" frameborder="0" border="0"  scrolling="no" height="60" src="http://www.baimin.com/show/468x602.htm"></iframe></center>');
//document.write('<iframe src="http://u.keyrun.com/k.html?id=1358" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="60" width="468" ></iframe>');
//document.write('<center><iframe src="http://www.spjoy.com/AdFiles/468-60/468-60.htm?f=3079&lower_cooid=0&ad_id=5242" height="60" width="468" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe></center>');
	
}
function Url_Text()
{
AdText();
}
function Url_Left()
{	
}
function Url_Mid()
{
document.write('<iframe  width=760 frameborder=0 border=0  scrolling=no height=100 src="/show/760x603.htm"></iframe>');
//document.write('<iframe src="http://www.spjoy.com/AdFiles/760-60-6/760-60-6.htm?f=3079&lower_cooid=0&ad_id=5369" height="60" width="760" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
//document.write('<iframe marginwidth="0" marginheight="0"  frameborder="0" bordercolor="#000000" scrolling="no" src="http://adsence.sogou.com/index.html?pid=baimin&ww=150&dc=2&num=5&frame=1&fontsize=12&jjtitle=0&dir=0&jjtitlebg=&titlec=cc3300&briefc=&linkc=&bg=64B7D7&tdbg=ffffff" width="760" height="60"></iframe>');

}
function Url_Foot()
{	
foot();
document.write('<form name="form1" action="/baimin/Rate.aspx" method="post" target="_self"><input type="hidden" name="nUrlID"><input type="hidden" name="nRate"></form>');
}

function Top_Head()
{
document.write('<iframe src="http://www.spjoy.com/AdFiles/468-60-5/468-60-5.htm?f=3079&lower_cooid=0&ad_id=5459" height="60" width="468" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
//document.write('<center><iframe  width="468" frameborder="0" border="0"  scrolling="no" height="60" src="http://www.baimin.com/show/468x603.htm"></iframe></center>');
//document.write('<iframe src="http://u.keyrun.com/k.html?id=1358" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="60" width="468" ></iframe>');
}
function Top_Text()
{
AdText();
}
function Top_Mid()
{	
 //document.write("<iframe marginwidth=0 marginheight=0  frameborder=0 bordercolor='#000000' scrolling=no src='http://adsence.sogou.com/index.html?pid=baimin&ww=150&dc=2&num=5&frame=1&fontsize=12&jjtitle=0&dir=0&jjtitlebg=&titlec=&briefc=&linkc=&bg=7593E5&tdbg=ffffff' width=760 height=60></iframe>");
}
function Top_Left()
{	document.write('<iframe  width="300" frameborder=0 border=0  scrolling=no height="300" src="http://www.baimin.com/show/300x300.htm"></iframe>');

}
function Top_Foot()
{
document.write('<iframe  width=760 frameborder=0 border=0  scrolling=no height=96 src="http://www.baimin.com/show/760x603.htm"></iframe>');
foot();

}

var tip;
var mouseY=0;
var mousePos;
var UrlTop=0;
var arXmlTop;
var StopLoadXml=false;
function showTip(msg)
{
var obj = 'TipBox';
if (typeof(hideTimeOut) != 'undefined') clearTimeout(hideTimeOut);
document.getElementById(obj).innerHTML = msg ;
var objp = document.getElementById(obj);
if(mousePos.x+240>mousePos.w) mousePos.x-=240;
if(mousePos.y+120>mousePos.h) mousePos.y-=120;
mousePos.x+=12;

if(mouseY<mousePos.y) mousePos.y+=12;
mousePos.i=mousePos.y;
objp.style.left= mousePos.x+mousePos.l+"px";
objp.style.top = mousePos.y+mousePos.t+"px";
mouseY=mousePos.y;
document.getElementById(obj).style.visibility = 'visible';
if (typeof(hideTimeOut) != 'undefined') clearTimeout(hideTimeOut);
}

document.write('<div id="TipBox" style="font-size:12px;width: 200px; position: absolute; visibility: hidden; padding: 5px 5px 5px 5px; background-Color: #ffffee; filter: alpha(Opacity=100); border: 1px solid #ffcf5b; z-index: 99;text-align:left;line-height:16px;" onMouseover="keepTip(event)" onMousewheel="keepTip(event)" onMouseout="HideTip(event)"></div>');




function mouseCoords(ev){
	if(ev.pageX || ev.pageY){
		return {
		x:ev.pageX-document.documentElement.scrollLeft, 
		y:ev.pageY-document.documentElement.scrollTop,
		h:document.documentElement.clientHeight,
		w:document.documentElement.clientWidth,
		l:document.documentElement.scrollLeft,
		t:document.documentElement.scrollTop
		};
	}
	return {

		x:ev.clientX,
		y:ev.clientY,
		w:document.body.clientWidth,
		h:document.body.clientHeight,
		l:document.documentElement.scrollLeft,
		t:document.documentElement.scrollTop
	};
}
function keepTip(evt)
{
var obj = 'TipBox';
if (typeof(hideTimeOut) != 'undefined') clearTimeout(hideTimeOut);
document.getElementById(obj).style.visibility = 'visible';
}

function HideTip(evt)
{

 if(evt == null)
  evt = window.event; 
var obj = evt.srcElement? evt.srcElement : evt.target; 
if(obj.tagName=="DIV"){
delayHide();
}else if (obj.tagName=="A"){
hideTimeOut = setTimeout('delayHide()', 1500);
}
}
function delayHide()
{
var obj = 'TipBox';
document.getElementById(obj).style.visibility = 'hidden';
tip=null;
if (typeof(hideTimeOut) != 'undefined') clearTimeout(hideTimeOut);
}

function mouseMove(evt)
{
if(evt == null)
evt = window.event; 
mousePos=mouseCoords(evt);
var obj = evt.srcElement? evt.srcElement : evt.target; 
if (obj.tagName=="A")
{
strTip=obj.getAttribute("tip");

if(strTip==""||strTip==null)
{
	return;
//if(tip!=strTip)
//setTimeout('delayHide()', 500);
}else {
var aT=strTip.split(",");
if(aT.length>10)
{
lT(aT[0],aT[1],aT[2],aT[3],aT[4],aT[5],aT[6],aT[7],aT[8],aT[9],aT[10]);
}else
{
if(tip!=strTip)
setTimeout('delayHide()', 500);
}
}
tip=strTip;
}

}
function lT(nUrlID,title,url,logo,nTop,RateEx,nRate1,nRate2,nRate3,nRate4,nRate5)
{
RateEx=Number(RateEx)
nRate1=Number(nRate1)
nRate2=Number(nRate2)
nRate3=Number(nRate3)
nRate4=Number(nRate4)
nRate5=Number(nRate5)
RateEx1=(RateEx-RateEx%1000000)/1000000;
RateEx-=RateEx1*1000000;
RateEx2=(RateEx-RateEx%10000)/10000;
RateEx-=RateEx2*10000;
RateEx3=(RateEx-RateEx%100)/100;
RateEx-=RateEx3*100;
RateEx4=RateEx;
nRateAll=(nRate1+nRate2+nRate3+nRate4+nRate5)/(nRate1+nRate2+nRate3+nRate4+nRate5+RateEx1+RateEx2+RateEx3+RateEx4)*100;
if(nRateAll==100)
nRateAll=String(nRateAll).substring(0,3);
else
nRateAll=String(nRateAll).substring(0,2);
if(nTop>4.5)
nTop="酷";
else if(nTop>4.0)
nTop="精";
else if(nTop>3.5)
nTop="好";
else if(nTop>2.5)
nTop="普";
else
nTop="差";
urlTitle=url;
if(url.length>25)
urlTitle=url.substring(0,25)+"...";
strContent="<nobr><b>地址:</b><a style='font-size:12px;color:red' target='_blank' href='"+url+"'>"+urlTitle+"</a><br>";
strContent=strContent+"<b>名称:</b><a style='font-size:12px;' target='_blank' href='"+url+"'>"+title+"</a><a style='color:#0000ff' target='_blank' href='/top/"+nUrlID+".htm'>["+nTop+"]</a><br>";
strContent=strContent+"<table width='200'  border='0' cellspacing='0' cellpadding='0'><tr><td>";
strContent=strContent+"<b>可靠指数:<font color='#7BD676'>"+nRateAll+"%</font></b><br>";
strContent=strContent+"<span class='sptip' onclick=\"Rate("+nUrlID+",5)\">很棒:</span>"+nRate5+"</td><td width=88>";
if(logo!="none.gif")
strContent=strContent+"<img src='"+logo+"' width='88' height='31' border='0'>";
strContent=strContent+"</td></tr></table><span class='sptip' onclick=\"Rate("+nUrlID+",4)\">较好:</span>"+nRate4+" <span class='sptip' onclick=\"Rate("+nUrlID+",3)\">普通:</span>"+nRate3+" <span class='sptip' onclick=\"Rate("+nUrlID+",2)\">较差:</span>"+nRate2+" <span class='sptip' onclick=\"Rate("+nUrlID+",1)\">很烂:</span>"+nRate1;
strContent=strContent+"<br><span class='sptip' onclick=\"Rate("+nUrlID+",0)\">报错:</span>"+RateEx4+" <span class='sptip' onclick=\"Rate("+nUrlID+",-1)\">弹窗:</span>"+RateEx3+" <span class='sptip' onclick=\"Rate("+nUrlID+",-2)\">插件:</span>"+RateEx2+" <span class='sptip' onclick=\"Rate("+nUrlID+",-3)\">病毒:</span>"+RateEx1+"</nobr>";
showTip(strContent);
}

function LoadXmlTop(nRow)
{
var nLen=arXmlTop.length-1;
var strXmlTop='<ul OnMouseOver=\"{StopLoadXml=true;}\" OnMouseOut=\"{StopLoadXml=false;}\">';
if(nRow>=nLen/3)
{
nCx=0;
}
else
{

do{
var nCx=Math.random()*(nLen/3)|0;
if(nCx>=(nLen/3-nRow)){
nCx=arXmlTop.length/3-nRow;}
}while(isNaN(arXmlTop[nCx*3]))

}

for(var i=nCx;i<nCx+nRow;i++)
{
strXmlTop+="<li><a title=\""+arXmlTop[i*3+1]+"\" href=\"http://www.baimin.com/t.htm#i="+arXmlTop[i*3]+"&u="+arXmlTop[i*3+2]+"\" target=\"_blank\">·"+arXmlTop[i*3+1].substring(0,14)+"</a></li>";
}
strXmlTop+='</ul>';
return strXmlTop;
}

function LoadingXml()
{
if(!StopLoadXml)
document.getElementById('XmlTop').innerHTML =LoadXmlTop(10);
setTimeout("LoadingXml()",5000);
}
var UrlContent;
UrlContent=0;
function Op(FilePath)
{
strContent="<iframe  width='560' frameborder='0' border='0'  height='600' src='"+FilePath+"'></iframe>"
var obj = 'UrlTop';
if(UrlContent==0)
UrlContent=document.getElementById(obj).innerHTML;
document.getElementById(obj).innerHTML=strContent;
}
function CloseTree()
{
var obj = 'UrlTop';
document.getElementById(obj).innerHTML =UrlContent;
UrlContent=0;
}
function InitPage()
{
arXmlTop=document.getElementById('XmlTop').innerHTML.split("|");
LoadingXml();
}
function Rate(nUrlID,nRate)
{
var nGo=false;
switch(nRate)
{
case -3:
nGo=confirm("您确定此网站含有病毒吗？");
break;
case -2:
nGo=confirm("您确定此网站含有流氓插件吗？");
break;
case -1:
nGo=confirm("您确定此网站含有很多弹出窗口吗？");
break;
case 0:
nGo=confirm("您确定此网站是无效或错误或非法吗？");
break;
case 1:
nGo=confirm("您觉的此网站很烂吗？");
break;
case 2:
nGo=confirm("您觉的此网站较差吗？");
break;
case 3:
nGo=confirm("您认为此网站很普通吗？");
break;
case 4:
nGo=confirm("您认为此网站较好吗？");
break;
case 5:
nGo=confirm("您认为此网站很棒吗？");
break;
}
document.form1.nUrlID.value=nUrlID;
document.form1.nRate.value=nRate;
if(nGo==true)
document.form1.submit();
}

function foot()
{
//document.writeln("<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no width=760 height=90 src=http://union.114.com.cn/price/showprice?unionid=baimin&style=a&number=4&color=1BDE3FF004E7EFFFFFF61AEDD1></iframe>");


//document.writeln("<iframe id='renrenframe' border='0' vspace='0' hspace='0' marginwidth='0' marginheight='0' framespacing='0' frameborder='0' scrolling='no' width='760' height='60' src='http://ulink10.dudu.com/cpio/ui.phtml?uid="+uid+"&size=6&type=site&mata=0&bgcolor=ffffff'></iframe>");document.writeln('<a href="http://www.baimin.com/ent/index.htm">娱乐休闲</a> |');
document.writeln('<a href="http://www.baimin.com/it/index.htm">电脑网络</a> |');
document.writeln('<a href="http://www.baimin.com/com/394.htm">生活服务</a> |');
document.writeln('<a href="http://www.baimin.com/edu/index.htm">教育就业</a> |');
document.writeln('<a href="http://www.baimin.com/culture/index.htm">社会文化</a> |');
document.writeln('<a href="http://www.baimin.com/business/index.htm">商业经济</a> |');
document.writeln('<a href="http://www.baimin.com/com/index.htm">综合网站</a> |');
document.writeln('<a href="http://v.21cn.com/RegisterUser.jsp?user_from=17699&container=http://www.baimin.com&channel=000" target="_blank">快感影视</a> |');
document.writeln('<a href="http://www.51.la/?145702" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/145702.asp" style="border:none" /></a>');
document.writeln('<br> <br>百鸣<b><a href="http://www.baimin.com"><font color="red"> www.baimin.com </font></a></b>版权所有 ');
}
function AdText()
{

document.writeln('&nbsp;<a href="http://v.21cn.com/RegisterUser.jsp?user_from=17699&container=http://www.baimin.com&channel=000" target="_blank">超级快感影视</a> <br/>');
document.writeln('&nbsp;<A href="http://www.baimin.com/sms.htm" target="_blank" style="color:#cc3300">图片铃声下载</A> <br/>');
//document.writeln('&nbsp;<a href="http://www.dangdang.com/Association/Web/Links/Welcome.aspx?VType=1&URL=http://www.dangdang.com&FromLinkID=35891" target="_blank">当当网上商城</a> <br/>');
document.writeln('&nbsp;<a href="http://www.zuole.net/" target="_blank">妞妞情趣商场</a> <br/>');

}
