// JavaScript Document
document.write("<script src='http://www.hisupertrade.com/WebCall/getURL.asp?para="+top.location.href+"'></script>");

//initWebCall();

function initWebCall(){
	var iPara;
	var iTime;
	iTime=getWebCallTime();
	if(!getWebCallCookie("WebCall_Open_Time")){setWebCallCookie("WebCall_Open_Time",iTime-16);}
	try{
		if ((getWebCallCookie("WebCall_Open_Time")=="")||(iTime-getWebCallCookie("WebCall_Open_Time")>15)){
			setWebCallCookie("WebCall_Open_Time",iTime);
			iPara=WebCallgetSendURL(top.location.href,"/WebCall/ShowWebCall.asp");
			if (!isNaN(iPara)&&(iPara!="0")){
				window.open("http://www.hisupertrade.com/WebCall/WebCall.asp?P="+iPara+"&U="+top.location.href,"WebCall","height=470,width=700,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no,z-look=yes");
				window.focus();
				//window.showModalDialog('/WebCall/webCall.asp?P='+iPara,null,'dialogWidth=708px;dialogHeight=500px;center:1;scroll:0;help:0;status:0')
			}
		}
	}catch(e){}
	//setTimeout("initWebCall();",5*1000);
}
function CheckWebCallTime(startDate,endDate,today)
{
	var d1 = new Date(startDate);
	var d2 = new Date(endDate);
	var d3 = new Date(today);
	if(Date.parse(d3) - Date.parse(d1)<0){
		return false;
	}else if(Date.parse(d3) - Date.parse(d2)>0){
		return false;
	}
	return true;
}
function getWebCallTime(){
  var dd=new Date();
  return Math.floor(dd.getTime()/1000);
}
function getWebCallCookie(Name){
   var search = Name + "=";
   
   if(document.cookie.length > 0) {
      offset = document.cookie.indexOf(search);
      if(offset != -1) {
         offset += search.length;
         end = document.cookie.indexOf(";", offset);
         if(end == -1) end = document.cookie.length;
         return unescape(document.cookie.substring(offset, end));
      }
      else return "";
   }
}

function setWebCallCookie(name,value) {
	document.cookie = name + "=" + escape(value)+ ";";
}

function WebCallgetSendURL(pPara,url)
{
		var para="para=" + pPara;
		var Result=WebCallSendToServer(para,url);
		return Result;
}
//传到服务器 选定服务文件路径  URL
function WebCallSendToServer(para,url)
{
	var xml=new ActiveXObject("Microsoft.XMLHTTP");
	xml.open ('POST',url,false);
	xml.setRequestHeader("Content-Length",para.length);
	xml.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
	xml.send (para);
	return xml.responseText;
}

var suspendcode14="";
if (!document.layers)
document.write('<div id=lovexin14 style=position:absolute>');

suspendcode14="<table width='124' height='396' border='0' cellpadding='0' cellspacing='6' style='width:124px; table-layout:fixed; background:url(http://www.hisupertrade.com/webcall/image/TQ.jpg) no-repeat; width:124px; height:370px;'>"
suspendcode14+="<tr><td height='280' valign=bottom align=center style='font-size:12px;'>welcome</td></tr><tr><td height='47' valign='top'>"
//suspendcode14+="<textarea id=tInputTxt name=tInputTxt style='width:112px; overflow-x:hidden; overflow-y:hidden; height:44px; _height:48px; padding:0px; margin:0px 0px 0px 2px; border:0px; color:#666666; font-size:12px;'></textarea>"
suspendcode14+="<marquee style='position:relative;font-family:Arial;font-size:12px;' onMouseOver='this.stop()' onMouseOut='this.start()' scrollamount='1' scrolldelay='85' direction='up' behavior='scroll'  height='47'>"
suspendcode14+="Need our help?<br><br>We can help you doing the purchase and getting the quotation!<br><br>We can be your import and export agents!<br><br>We can also provide you with market information across the world!</marquee>"							
suspendcode14+="</td></tr><tr><td height='10' valign=top align='center' style='font-size:12px; font-family:Arial; text-align:center; cursor:pointer; color:#660000' onclick=\"window.open ('http://www.hisupertrade.com/WebCall/webCall.asp?tLang=EN&tSys=1&U='+top.location.href+'&tInputTxt=','newwindow','height=470,width=700,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')\">ask me</td>"
suspendcode14+="</tr><tr><td align='center'><a href='msnim:chat?contact=hisuperservice@hotmail.com'><img src='http://www.hisupertrade.com/systempic/40.gif' border='0'></a>&nbsp;"
suspendcode14+="<a target='blank' href='http://wpa.qq.com/msgrd?V=1&Uin=1044686730&Site=服务易&Menu=yes'><img src='http://www.hisupertrade.com/systempic/39.gif' border='0'></a>&nbsp;"
suspendcode14+="<a href='callto://hisuperservice' onClick='return skypeCheck();'><img src='http://www.hisupertrade.com/systempic/44.gif' border='0' ></a>&nbsp;<br><a href='http://www.hisupertrade.com/about/diaocha/' target='_blank'>DO BUSINESS IN S.AFRICA</a></td></tr></table>"


document.write(suspendcode14)
var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function scrollqq()
{
  var posXqq,posYqq;
 if (window.innerHeight)
 {
  posXqq=window.pageXOffset;
  posYqq=window.pageYOffset;
   }
   else if (document.documentElement && document.documentElement.scrollTop)
      {
    posXqq=document.documentElement.scrollLeft;
    posYqq=document.documentElement.scrollTop;
    }
    else if (document.body)
      {
    posXqq=document.body.scrollLeft;
    posYqq=document.body.scrollTop;
      }
     var divStayTopLeft=document.getElementById("lovexin14");
    divStayTopLeft.style.top=(posYqq+400-200)+"px";
  divStayTopLeft.style.left=(posXqq+screen.width-160)+"px";
  setTimeout("scrollqq()",500);
    }
scrollqq();
