//2010-6-22
var tq_call_images_url='http://sysimages.tq.cn/images/';var callBackFrame_url="http://vip.tq.cn/vip/PreSendCall.do";var canCloseTimeInteval=2000;downpng=new Image();downpng.src=tq_call_images_url+"down.png";uppng=new Image();uppng.src=tq_call_images_url+"up.png";if(typeof(adminuin)=="undefined"){if(typeof(strUin)!="undefined"){var adminuin=strUin}else if(typeof(admiuin)!="undefined"){var adminuin=admiuin}else if(typeof(tq_adminid)!="undefined"){var adminuin=tq_adminid}else var adminuin=0}if(typeof(isstatic_icon)!="undefined"){if(!isstatic_icon){document.write("<div style='VISIBILITY: visible; position: absolute; left:"+tqleft1+"px; top:"+tqtop1+"px; z-index: 10000'><img src='"+tq_call_images_url+"renmin-phone2.gif' style='cursor:pointer' onmouseover=try{_showcallPane(this,"+adminuin+");}catch(e){}></div>")}}var isDOM=(document.getElementById?true:false);var isIE4=((document.all&&!isDOM)?true:false);var isNS4=(document.layers?true:false);var isNS=navigator.appName=="Netscape";var NS=(document.layers)?1:0;var IE=(document.all)?1:0;function GetObj(id){if(isDOM)return document.getElementById(id);if(isIE4)return document.all[id];if(isNS4)return document.layers[id]}function createDIV(){document.write('<div id="callPane" name="callPane" style="display:none;width:440px;height:155px;position:absolute;z-index:9993" onMouseOver="javascript:inBoxFlag=true;" onMouseOut="javascript:inBoxFlag=false;" ></div>');document.write('<div id="callPaneBox" name="callPaneBox" style="display:none;z-index:9994;position:absolute;width:430"><DIV id=load style="FONT-SIZE: 12px; LEFT: 164px; WIDTH: 116px; POSITION: absolute; TOP: 59px; HEIGHT: 23px"><img src="http://sysimages.tq.cn/images/ajax-loader.gif" />&nbsp;'+unescape("%u6B63%u5728%u6253%u5F00")+'......</div><div style="position: absolute; width: 24px; height: 26px; ; left: 412px; top: 8px" id="closeIMG"><a href="javascript:void(0)" onMouseDown="javascript:hidecallPane();"><img title="'+unescape("%u5173%u95ED")+'" src="'+tq_call_images_url+'close.gif" border="0" onMouseOver="this.src=\''+tq_call_images_url+'llbuttonfloat.gif\'" onMouseOut="this.src=\''+tq_call_images_url+'llbuttonclick.gif\'" /></a></div><table border="0" width="430" id="table1" height=120 cellspacing="0" cellpadding="0"><tr id="upspace" height=10><td width="12"></td><td></td></tr><tr><td width="12"></td><td><iframe style="visibility:hidden" onreadystatechange=stateChangeIE(this) onload=stateChangeFirefox(this) name="callBackFrame" id="callBackFrame" marginwidth="1" marginheight="1" height="100" width="420" scrolling="no" border="0" frameborder="0"></iframe></td></tr></table></div>')}function stateChangeIE(_frame){if(_frame.readyState=="interactive"){var loader=document.getElementById("load");loader.style.display="none";_frame.style.visibility="visible"}}function stateChangeFirefox(_frame){var loader=document.getElementById("load");loader.style.display="none";_frame.style.visibility="visible"}function getAbsolutePos(e){var l=e.offsetLeft;var t=e.offsetTop;while(e=e.offsetParent){l+=e.offsetLeft;t+=e.offsetTop}var pos=new Object();pos.x=l;pos.y=t;return pos}function getWindowSize(){var w=0,h=0;if(typeof(window.innerWidth)=="number"){w=window.innerWidth;h=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){w=document.documentElement.clientWidth;h=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){w=document.body.clientWidth;h=document.body.clientHeight}}}var wsize=new Object();wsize.width=w;wsize.height=h;return wsize}function getScrollXY(){var left=0,top=0;if(typeof(window.pageYOffset)=="number"){top=window.pageYOffset;left=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){top=document.body.scrollTop;left=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){top=document.documentElement.scrollTop;left=document.documentElement.scrollLeft}}}var ScrollXY=new Object();ScrollXY.x=left;ScrollXY.y=top;return ScrollXY}function addEvent(obj,_event,fn,_1c){if(obj.addEventListener){obj.addEventListener(_event,fn,_1c);return true}else{if(obj.attachEvent){var r=obj.attachEvent("on"+_event,fn);return r}else{obj["on"+_event]=fn}}}var canCloseTimer;var canClose=false;var inBoxFlag=false;var callPaneHidden=true;function allowClose(){canClose=true}function closeBubble(event){if(inBoxFlag===false){hidecallPane()}}function hidecallPane(){if(!canClose){return}var box=document.getElementById("callPaneBox");box.style.display="none";var bg=document.getElementById("callPane");bg.style.display="none";callPaneHidden=true}adminuin_showing=null;function _showcallPane(obj,adminuin){if(adminuin_showing!=adminuin){callBackFrame.location.href=callBackFrame_url+"?uin="+adminuin;adminuin_showing=adminuin;document.getElementById("load").style.display="";document.getElementById("callBackFrame").style.visibility="hidden"}var phoneICON=obj;var pos=getAbsolutePos(phoneICON);var box=document.getElementById("callPaneBox");var _callPane=document.getElementById("callPane");var _ScrollXY=getScrollXY();box.style.left=(pos.x+20)+"px";var _callPaneContent=document.getElementById("callPaneContent");var upspace_tr=document.getElementById('upspace');var closeIMG_div=document.getElementById('closeIMG');var _42=navigator.appVersion.split("MSIE");var _43=parseFloat(_42[1]);if(pos.y-_ScrollXY.y<300){if(pos.x-_ScrollXY.x<500){box.className="popdown";box.style.top=(pos.y+30)+"px";upspace_tr.style.height="30";closeIMG_div.style.top="20px";if(_43&&_43<7){_callPane.style.background="0 none no-repeat";_callPane.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='"+tq_call_images_url+"down.png')"}else{_callPane.style.background="0 url('"+tq_call_images_url+"down.png') no-repeat"}}else{box.className="popdown";box.style.top=(pos.y+20)+"px";box.style.left=(pos.x-420)+"px";upspace_tr.style.height="30";closeIMG_div.style.top="20px";if(_43&&_43<7){_callPane.style.background="0 none no-repeat";_callPane.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='"+tq_call_images_url+"downright.png')"}else{_callPane.style.background="0 url('"+tq_call_images_url+"downright.png') no-repeat"}}}else{if(pos.x-_ScrollXY.x<400){box.className="popup";box.style.top=(pos.y-130)+"px";upspace_tr.style.height="3";closeIMG_div.style.top="8px";if(_43&&_43<7){_callPane.style.background="0 none no-repeat";_callPane.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='"+tq_call_images_url+"up.png')"}else{_callPane.style.background="0 url('"+tq_call_images_url+"up.png') no-repeat"}}else{box.className="popup";box.style.top=(pos.y-145)+"px";box.style.left=(pos.x-420)+"px";upspace_tr.style.height="3";closeIMG_div.style.top="8px";if(_43&&_43<7){_callPane.style.background="0 none no-repeat";_callPane.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src='"+tq_call_images_url+"upright.png')"}else{_callPane.style.background="0 url('"+tq_call_images_url+"upright.png') no-repeat"}}}_callPane.style.top=box.style.top;_callPane.style.left=box.style.left;canClose=false;clearTimeout(canCloseTimer);canCloseTimer=setTimeout("allowClose()",canCloseTimeInteval);if(callPaneHidden){_callPane.style.display="block";box.style.display="block";callPaneHidden=false}}createDIV();addEvent(document,"click",closeBubble);var tq_callPane_heartBeatTimer=null;var tq_callPane_heartBeatTimer2=null;try{TQUtils.HeartBeat(TQUtils.GetObj("callPaneBox"),20,tq_callPane_heartBeatTimer,{x:0,y:0},true)}catch(e){}try{TQUtils.HeartBeat(TQUtils.GetObj("callPane"),20,tq_callPane_heartBeatTimer2,{x:0,y:0},true)}catch(e){}
