document.write ("<style>")
document.write (" .code{background-image:url(/images/sidebar3.gif1);background-position:-36px -4px;width:60px;height:18px;border:0px #ffffff solid;border-bottom:0px #cccc99 solid;cursor:hand;margin-left:2px;margin-bottom:0px;margin-top:0px;padding:1px 0px 0px ;background-color:#cccc99;color:#000000;float:right;margin-left:2px;margin-right:3px;margin-top:7px;}")
document.write (" .code .txt{ font-size:12px;float:right;border:0px #999999 solid;padding-right:5px;padding-top:0px;margin-top:1px;text-align:right;color:#000000;height:18px;line-height:140%;}")

document.write (" #box{border:5px solid #cccc99;width:690px;padding:0px;font-size:12px; background-color: #ffffff;display:none;filter: Alpha(Opacity=100);height:auto;margin:0px;cuosor:move;text-align:left;float:left;position:absolute;margin-left:100px;}")
document.write (" #box .t{ padding:5px;border-bottom:1px #999999 solid;margin:0px 5px 0px 5px;width:100%; color:#000000}")

document.write ("  #box .close{top:3px; right:3px; float:right;border:0px #339933 solid;padding:3px 4px 0px 4px;height:18px;cursor:hand;position:absolute;}")

document.write ("  .newadd { float:left;margin-left:5px;font-size:13px;}")
document.write ("  .newadd span{height:24px;overflow:hidden;white-space:nowrap;line-height:240%;color:#333333;border-bottom:0px solid #cccccc ;}")
document.write ("  .newadd .num {font-weight:bold;border-bottom:0px;}")
document.write ("  .newadd .sn {width:110px;}")
document.write ("  .newadd .su {width:160px;}")
document.write ("  .newadd span a { text-decoration:none; }")
document.write ("  .newadd .su a:hover { text-decoration:none;color:#ff0000;}")
document.write ("  .newadd .sd {width:40px;}")
document.write ("  .newadd .add {width:70px;}")

document.write ("</style>")

 var o="t"

function getcode()
{
  box.innerHTML=""
  var event = event || window.event;
  var x = event.clientX+20
  var y = event.clientY+20
  var obj
  if (event.srcElement.className=="txt")
    obj=event.srcElement.parentElement
  else
	obj=event.srcElement
 box.style.width="710"
  if (obj.innerText=="最新加入")
  {   box.innerHTML="<div class=t>最新加入(Top10)</div>"
      box.style.width="790"
	  box.style.marginLeft="0"
	  box.innerHTML=box.innerHTML+callAjax("/js/site_new.asp?action=site_new")
	  }
  if (obj.innerText=="优质网站")
  {
	  box.innerHTML="<div class=t>优质网站(Top10) - 发现返量少了证明你的站点质量太差,会实施降权处理</div>"
      box.style.marginLeft="80"
	  box.innerHTML=box.innerHTML+callAjax("/js/site_new.asp?action=site_you")
	  }	
	
   if (obj.innerText=="黑 名 单")
  {   
	  box.innerHTML="<div class=t>黑 名 单 - 只记录顶级域名 - 如是别人恶意行为，处理后联系重新收录QQ:271678755</div>"
      box.style.marginLeft="80"
	  box.innerHTML=box.innerHTML+callAjax("/js/site_new.asp?action=site_hei")
	  
	  //box.innerHTML=box.innerHTML+"<div class=t>以下站点弹窗大于3个，请自重</div>"
	  //box.innerHTML=box.innerHTML+callAjax("/js/site_new.asp?action=site_tan")
 	  }
	
	//alert(obj.innerText)
  //obj.style.backgroundImage="url(/images/sidebar3.gif)"
   
//  box.innerHTML=""
//  //box.innerHTML="<div class=class>获取代码；</div>"
//  box.innerHTML=box.innerHTML+"<div class=sitelist>获取代码；</div>"
//  box.innerHTML=box.innerHTML+"<span class=close>关 闭</span>"
  //box.style.top=29
  //box.style.width=800
 // box.style.left=x-750
  box.style.height=100
  for (var  i=1;i<=3;i++)
   {
	  eval("n"+i).style.backgroundPosition="-36px -4px"
	  eval("n"+i).style.borderBottom="0px #cccc99 solid"
	  eval("n"+i).style.backgroundColor="#6699CC"
	}   
  if (o=="t")
  {
      //o="f"
	  box.style.display="block"
	  obj.style.backgroundPosition="-36px -46px"
	  obj.style.borderBottom="0px #ffffff solid"
	  obj.style.backgroundColor="#cccc99"
	  //box.innerHTML='<iframe src="/js/get_code.html" width="790" height="490" scrolling="no"></iframe>'
	 }
	 else
	 {
	 o="t"
	 box.style.display="none"
	  obj.style.backgroundPosition="-36px -4px"
	  obj.style.borderBottom="0px #cccc99 solid"
	  obj.style.backgroundColor="#cccc99"
	  box.innerHTML=''
	 }
	 box.innerHTML=box.innerHTML+"<span class=close><img src='/images/n.gif' title='关闭' onclick='c1()'></span>"
	
}
function c1()
{ box.style.display='none'
  for (var  i=1;i<=3;i++)
   {
	  eval("n"+i).style.backgroundPosition="-36px -4px"
	  eval("n"+i).style.borderBottom="0px #cccc99 solid"
	  eval("n"+i).style.backgroundColor="#cccc99"
	}
 }
 
 
  var n=""
 var url=""
 function callAjax(url){
        var xmlHttp = false;
		var response
        try {   
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");   
        } catch (e) {   
            try {   
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");   
            } catch (e2) {   
                xmlHttp = false;   
            }   
        }   
        if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {   
            xmlHttp = new XMLHttpRequest();   
        }   
           
		  xmlHttp.open("POST", url,false); 
            //设置服务器响应的处理方法   
            xmlHttp.onreadystatechange = function()
			{ 
				if (xmlHttp.readyState == 4) {   
					 response = xmlHttp.responseText; 
					// abc.innerText= response ;
					   //alert(response)
				}   
				}
				 
            // 发送请求   
           xmlHttp.send(null); 		   
        //检测用户名是否存在  
		return response
      }

//document.write("<div id=box></div>") 
