﻿document.write("<div class='QQbox' id='divQQbox' >");



document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=118 align=center border=0>        <TBODY>    <TR>          <TD><img src='/template/style02/floatt.jpg'></TD></TR>       <TR>          <TD align=center background='/template/style02/floatc.jpg' style='padding-top:3px;'>          <a href='tencent://message/?uin=2669003472&amp;Menu=yes' target='_blank'><img src='http://wp.qq.com/images/style_41.jpg' border='0' style='margin-bottom:8px;'></a> <br>            </TD>        </TR>  <TR>  <TD><img src='/template/style02/floatb.jpg' width='133' height='34'></TD>        </TR></TBODY></TABLE>");


document.write("</div>");



//<![CDATA[

var tips; var theTop = 200/*Ĭϸ߶,ԽԽ*/; var old = theTop;

function initFloatTips() {

tips = document.getElementById('divQQbox');

moveTips();

};

function moveTips() {

var tt=50;

if (window.innerHeight) {

pos = window.pageYOffset

}

else if (document.documentElement && document.documentElement.scrollTop) {

pos = document.documentElement.scrollTop

}

else if (document.body) {

pos = document.body.scrollTop;

}

pos=pos-tips.offsetTop+theTop;

pos=tips.offsetTop+pos/10;



if (pos < theTop) pos = theTop;

if (pos != old) {

tips.style.top = pos+"px";

tt=10;

//alert(tips.style.top);

}



old = pos;

setTimeout(moveTips,tt);

}

//!]]>

initFloatTips();







function OnlineOver(){

document.getElementById("divMenu").style.display = "none";

document.getElementById("divOnline").style.display = "block";

document.getElementById("divQQbox").style.width = "145px";

}



function OnlineOut(){

document.getElementById("divMenu").style.display = "block";

document.getElementById("divOnline").style.display = "none";



}


if(typeof(HTMLElement)!="undefined")    //firefoxcontains()ie²
{   
      HTMLElement.prototype.contains=function(obj)   
      {   
          while(obj!=null&&typeof(obj.tagName)!="undefind"){ //ͨѭԱжǲobjĸԪ
   if(obj==this) return true;   
   obj=obj.parentNode;
   }   
          return false;   
      };   
}  


function hideMsgBox(theEvent){ //theEvent¼Firefoxķʽ

 if (theEvent){

 var browser=navigator.userAgent; //ȡ

 if (browser.indexOf("Firefox")>0){ //Firefox

 if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //Ԫ

 return; //ʽ

} 

} 

if (browser.indexOf("MSIE")>0){ //IE

if (document.getElementById('divOnline').contains(event.toElement)) { //Ԫ

return; //ʽ

}

}

}

/*ҪִеĲ*/

document.getElementById("divMenu").style.display = "block";

document.getElementById("divOnline").style.display = "none";

}
