/*ÓÒ±ß¹ã¸æÌõ*/

 
var online= new Array();
 
document.write("<script src='http://webpresence.qq.com/getonline?Type=1&313683028:'></script>"); 


function initAd_R(right,top) 
{
document.all.AdLayer_R.style.posTop = -10;
document.all.AdLayer_R.style.visibility = 'visible'
MoveLayer_R('AdLayer_R',right,top);
}
function MoveLayer_R(layerName,right,top) {
var x = right;
var y = top;
var diff = (document.documentElement.scrollTop + y - document.all.AdLayer_R.style.posTop)*.40;
var y = document.documentElement.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posright = x");
setTimeout("MoveLayer_R('AdLayer_R',"+right+","+top+");",100);
}
if(window.screen.width > 800 && window.screen.height > 600) {
var st = "<div id=AdLayer_R style='position:absolute; width:80px; height:250px; z-index:20; visibility:hidden; right: 1px;'>";
st +="<div  style='width:80px; height:250px; float:left'><img src='../images/online_kf_r1_c1.jpg'  border='0' style='cursor:pointer' onclick='openwin()'/>";

if(online[0]==1) 
{
    st +="<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=786a9e9550e6d3ed218e89b954a6266bdb407050917f26cf52346fc5a704f02f\"; target='_blank'; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=786a9e9550e6d3ed218e89b954a6266bdb407050917f26cf52346fc5a704f02f';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://www.binfenle.com/images/online_kf_r2_c1.jpg' alt=\"QQ\"></a>"; 
    }
else
{
    st +="<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=786a9e9550e6d3ed218e89b954a6266bdb407050917f26cf52346fc5a704f02f\"; target='_blank'; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=786a9e9550e6d3ed218e89b954a6266bdb407050917f26cf52346fc5a704f02f';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://www.binfenle.com/images/online_kf_r2_c1.jpg' alt=\"QQ\"></a>";
}

st +="<a href='msnim:chat?contact=binfenle_kf@hotmail.com' target='_blank'><img src='../images/online_kf_r3_c1.jpg' border='0' style='cursor:pointer' alt='binfenle_kf@hotmail.com'/>";

st +="</a><img src='../images/online_kf_r4_c1.jpg'><div style='text-align:right; line-height:22px;float:right'><a href='#'  onclick='javascript:Close()'><img src='../images/cl.gif' border='0' style='cursor:pointer'/></a></div></div></div>";

document.write(st);
//document.write("<div id=AdLayer_R style='position:absolute; width:80px; height:250px; z-index:20; visibility:hidden; right: 1px;'><div  style='width:80px; height:250px; float:left'><img src='../images/online_kf_r1_c1.jpg'  border='0' style='cursor:pointer' onclick='openwin()'/><a href='http://wpa.qq.com/msgrd?Menu=no&Exe=QQ&Uin=313683028' target='_blank'><img src='../images/online_kf_r2_c1.jpg' border='0' style='cursor:pointer' alt='313683028'/></a><a href='msnim:chat?contact=binfenle_kf@hotmail.com' target='_blank'><img src='../images/online_kf_r3_c1.jpg' border='0' style='cursor:pointer' alt='binfenle_kf@hotmail.com'/></a><img src='../images/online_kf_r4_c1.jpg'><div style='text-align:right; line-height:22px;float:right'><a href='#'  onclick='javascript:Close()'><img src='../images/cl.gif' border='0' style='cursor:pointer'/></a></div></div></div>");

initAd_R(0,100);
}
function Close(){
document.getElementById('AdLayer_R').style.visibility = "hidden";}
 
 
 //
 function gotoorderinfo(obj)
        {
                 var w = window.screen.width;
            var h = window.screen.height;
            var name =parseInt((Math.random() * Math.pow(10,0)) % 42) + 1;
             window.open ("OrderInfo1.aspx?ordid="+obj+"&mid="+name,name,  'width='+w+',height='+h+',toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes') ;

        }