// JavaScript Document
var TQ_NS = (document.layers) ? true : false;
var TQ_IE = (document.all) ? true : false;
var TQ_DOM = (document.getElementById) ? true : false;
if (TQ_IE)TQ_DOM = false;
var TQ_timer;
if (TQ_IE || TQ_DOM) {
document.writeln('<span id="TQ_Kefuer" style="z-index:8888;position:absolute;visibility:hidden;left:10px;top:10px;"></span>');
}
else if (TQ_NS){
document.writeln('<layer name="TQ_Kefuer" z-index="8888" left="10px" top="10px" visibility="hidden"></layer>');
}
function TQ_GetObj(id,theDoc){
if(!theDoc){
theDoc = document;
}
if (theDoc.getElementById){
return theDoc.getElementById(id);
}
else if (document.all){
return theDoc.all(id);
}
}
var TQ_Kefuer_innerHtml=(typeof(TQ_need_help_html) != 'undefined')?TQ_need_help_html:'<a href="#" onclick="window.open(\'http://agent.tq.cn/kehu.do?strid=jrdx&flag=2\',\'\',\'width=590,height=380\');return false;"><img id="tq_need_help" name="tq_need_help" src="http://gubing120.cn/photo/a.jpg" border=0></a>';
function TQ_showDiv(){
if(TQ_GetObj('TQ_Kefuer')==null){
setTimeout('TQ_showDiv()',50);
return;
}
if(TQ_timer!=null){
alert("TQ_timer!=null");
clearInterval(TQ_timer);
TQ_timer=null;
}
TQ_GetObj('TQ_Kefuer').innerHTML=TQ_Kefuer_innerHtml;
if(TQ_timer==null){
TQ_timer=setInterval("TQ_ecFloatDiv('TQ_Kefuer');", 250);
}
}
function TQ_pageWidth(){
var w=window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:0;
if(document.body){
w=Math.min(w,document.body.clientWidth);
}
return w;
}
function TQ_pageHeight(){
var w=window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:0;
if(document.body){
w=Math.min(w,document.body.clientHeight);
}
return w;
}
function TQ_scrollTop(){
return window.pageYOffset != null? window.pageYOffset: document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body != null? document.body.scrollTop:0;
}
function TQ_scrollLeft(){
return window.pageXOffset != null? window.pageXOffset: document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft:document.body != null? document.body.scrollLeft:0;
}
function TQ_ecFloatDiv(){
TQ_vSpace=(TQ_pageHeight()-200)/2;
var left = 0;
var top = TQ_scrollTop() + TQ_vSpace;
var div = TQ_GetObj('TQ_Kefuer');
div.style.position = "absolute";
div.style.top = top+'px';
div.style.left = left+'px';
var s0=(TQ_timer!=null);
if (TQ_NS){
div.visibility=s0?'visible':'hide';
}
else if (TQ_IE || TQ_DOM){
div.style.visibility =s0?'visible':'hidden';
}
}
TQ_showDiv();

