if(iTwiceDetect==124){alert('Warning.\nYou have included the live help script twice on your page.\nEach frame can have only one script included.\nThis will result script error.');}var iTwiceDetect=124;var sFirstCall='1';var sXY="";var iLinkID=2;var bHostControl=false;var bInitiated=false;var sChatBoxQry="";var bShowImage=0;var sPort='';var sOnImage = 'http://www.LiveHuman.com/banner/cperet_lh_onOS2X2F3DEO.GIF';var sOffImage = 'http://www.LiveHuman.com/banner/cperet_lh_offFI3AMQDYDP.GIF';var sFloatMoveImgLink = 'http://www.LiveHuman.com/banner/cperet_lh_floating_moveKIZ5IOM0WZ.GIF';var sFloatStopImgLink = 'http://www.LiveHuman.com/banner/cperet_lh_floating_stopASV8WO4163.GIF';var sIniImage = 'http://www.LiveHuman.com/banner/cperet_lh_offFI3AMQDYDP.GIF';bShowImage=1;if(document.images['MasterImg']==null){document.write("
");}else{document.images['MasterImg'].src = sIniImage;}document.write("");var brOK=false;var bMove=true;var bSorry=false;var bOnce=false;var bShow=false;var bHide=false;var mie=false;var myDiv;var vmin=2;var vmax=5;var vr=1;var timer18;var tid=0;if(parseInt(navigator.appVersion.charAt(0))>=4){brOK=true;}if(navigator.appName.indexOf('Microsoft')!=-1){mie=true; }var image1=new Image();var image2=new Image();function div(divname,width,height){ this.named=divname; this.vx=vmin+vmax*Math.random(); this.vy=vmin+vmax*Math.random(); this.w=width; this.h=height; this.xx=0; this.yy=0; this.timer1=null;}function movediv(divname){ if(brOK && bMove){eval("div="+divname);if(!mie){pageX=window.pageXOffset; pageW=window.innerWidth;pageY=window.pageYOffset; pageH=window.innerHeight;}else{ pageX=window.document.body.scrollLeft; pageW=window.document.body.offsetWidth; pageY=window.document.body.scrollTop; pageH=window.document.body.offsetHeight; } div.xx=div.xx+div.vx; div.yy=div.yy+div.vy; div.vx+=vr*(Math.random()-0.5); div.vy+=vr*(Math.random()-0.5); if(div.vx>(vmax+vmin)) div.vx=(vmax+vmin)*2-div.vx; if(div.vx<(-vmax-vmin)) div.vx=(-vmax-vmin)*2-div.vx; if(div.vy>(vmax+vmin)) div.vy=(vmax+vmin)*2-div.vy; if(div.vy<(-vmax-vmin)) div.vy=(-vmax-vmin)*2-div.vy;if(div.xx<=pageX){ div.xx=pageX; div.vx=vmin+vmax*Math.random(); }if(div.xx>=pageX+pageW-div.w){ div.xx=pageX+pageW-div.w; div.vx=-vmin-vmax*Math.random(); }if(div.yy<=pageY){ div.yy=pageY; div.vy=vmin+vmax*Math.random(); }if(div.yy>=pageY+pageH-div.h){ div.yy=pageY+pageH-div.h; div.vy=-vmin-vmax*Math.random();}if(!mie){if (document.getElementById){eval('document.getElementById("'+div.named+'").style.top ='+div.yy);eval('document.getElementById("'+div.named+'").style.left='+div.xx);}else{eval('document.'+div.named+'.top ='+div.yy);eval('document.'+div.named+'.left='+div.xx);}}else{eval('document.all.'+div.named+'.style.pixelLeft='+div.xx);eval('document.all.'+div.named+'.style.pixelTop ='+div.yy);}div.timer1=setTimeout("movediv('"+div.named+"')",100);}}function OnInviClick(){sChatBoxQry ='cperet*Se*';sChatBoxQry = sChatBoxQry + '10.0.10.2' + '*Se*';sChatBoxQry = sChatBoxQry + sPort + '*Se*';sChatBoxQry = sChatBoxQry + sCookie + '*Se*';sChatBoxQry = sChatBoxQry + iOldMan + '*Se*';sChatBoxQry = sChatBoxQry + sNan + '*Se*';sChatBoxQry = sChatBoxQry + sYar + '*Se*';sChatBoxQry = sChatBoxQry + 'www.LiveHuman.com'+ '*Se*';sChatBoxQry = sChatBoxQry + 'LiveHuman'+ '*Se*';sChatBoxQry = sChatBoxQry + 'NO';new_url = "http://www.LiveHuman.com/chatxbrand/ChatBox.asp?" + escape(sChatBoxQry);iNewWindow = open( new_url, sCookie, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=50,width=500,height=311',true);iNewWindow.focus();}function lhlink(){HideDiv('myDiv');OnInviClick();}function lhlink1(){bSorry = true;HideDiv('myDiv');}function Initialize1(){myDiv=new div("myDiv",0,0);image1.src = sFloatMoveImgLink;}function Initialize2(){bOnce = true;image2.src = sFloatStopImgLink;document.images['myimg'].src=image1.src;movediv('myDiv');}function HideDiv(divname){bMove=false;if(bHide)return;stopme(divname);bHide=true;bShow=false;if(!mie){if (document.getElementById){eval('document.getElementById("'+divname+'").style.visibility = "hidden"');}else{eval('document.'+divname+'.visibility="hidden"');}}else{eval('document.all.'+divname+'.style.visibility="hidden"');}}function ShowDiv(){bMove=true;if(bSorry)return;if(bShow)return;bShow=true;bHide=false;if(!bOnce)Initialize2();document.images['myimg'].src=image1.src;divname = 'myDiv';if(brOK){eval('div='+divname);if(div){if(div.timer1==null){ movediv(divname);}}}if(!mie){if (document.getElementById){eval('document.getElementById("'+divname+'").style.visibility = "visible"');}else{eval('document.'+divname+'.visibility="visible"');}}else{eval('document.all.'+divname+'.style.visibility="visible"');}}function stopme(divname){if(brOK){eval("div="+divname);if(div){ if(div.timer1!=null){ clearTimeout(div.timer1);div.timer1=null;}}}document.images['myimg'].src=image2.src;}function startme(divname){if(brOK){if(bSorry)return;document.images['myimg'].src=image1.src;movediv(divname);}}document.write("
");Initialize1();iOldMan="0";var sCookie = OnCheck();var sNan = location.href;var sYar = document.referrer;if(sNan.length >255)sNan = sNan.substring(0,240) + 'Terminated';if(sYar.length >255)sYar = sYar.substring(0,240) + 'Terminated';var iCnt=0;var sUnKnImage = '';Img1 = new Image();Img2 = new Image();Img3 = new Image();bImg1 = false;bImg2 = false;bImg3 = false;var bOruThadavaiHost=false;var bOruThadavaiServer=false;hNewWindow="";for( i=0;i<16;i++)sPort += String.fromCharCode(65 + Math.round(Math.random() * 25));function GetChatBoxQry(str){sChatBoxQry ='cperet*Se*';sChatBoxQry = sChatBoxQry + sXY + '*Se*';sChatBoxQry = sChatBoxQry + GetSession() + '*Se*';sChatBoxQry = sChatBoxQry + sCookie + '*Se*';sChatBoxQry = sChatBoxQry + iOldMan + '*Se*';sChatBoxQry = sChatBoxQry + sNan + '*Se*';sChatBoxQry = sChatBoxQry + sYar + '*Se*';sChatBoxQry = sChatBoxQry + 'LiveHuman'+ '*Se*';sChatBoxQry = sChatBoxQry + 'www.LiveHuman.com'+ '*Se*';sChatBoxQry = sChatBoxQry + str + '*Se*';sChatBoxQry = sChatBoxQry + GetSession();return sChatBoxQry;}function OnLiveClick(){if(iLinkID==1) new_url = "http://www.LiveHuman.com/chatxBrand/ChatBox.asp?" + escape(GetChatBoxQry("x"));if(iLinkID==3) new_url = 'http://www.LiveHuman.com?+escape(GetChatBoxQry("x"))';if(iLinkID==2){ new_url = 'http://www.LiveHuman.com/chatxBrand/mail.asp?cperet' + escape('*Se*') + escape(sNan) + escape('*Se*') + escape(GetChatBoxQry("x")) + escape('*Se*');hNewWindow = open( new_url, sCookie, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=10,screenY=10,width=500,height=311',true);hNewWindow.focus();}if(iLinkID==3){hNewWindow = open( new_url);hNewWindow.focus();}if(iLinkID==1){hNewWindow = open( new_url, sCookie, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=10,screenY=10,width=500,height=311',true);hNewWindow.focus();}}function iSG(evt){var sXYLoc = edu(this);bInitiated=false;bHostControl=false;bLaunchChat=false;switch (sXYLoc){case '0.0.0.0':case '10.0.10.0':sXY = '0.0.0.0';iLinkID=2;HideDiv('myDiv');break;case '10.0.10.6':sXY = '0.0.0.0';iLinkID=2;ShowDiv();break;case '10.0.10.10':sXY = '10.0.10.2';iLinkID=2;HideDiv('myDiv');if(hNewWindow==""){bLaunchChat=true;}else{if(hNewWindow.closed){bLaunchChat=true;}}break;case '10.0.10.1':sXY = '0.0.0.0';iLinkID=3;HideDiv('myDiv');break;case '10.0.10.2':sXY = '10.0.10.2';iLinkID=1;HideDiv('myDiv');break;case '10.0.10.4':sXY = '10.0.10.2';iLinkID=1;ShowDiv();break;case '10.0.10.8':sXY = '10.0.10.2';iLinkID=1;HideDiv('myDiv');if(hNewWindow==""){bLaunchChat=true;}else{if(hNewWindow.closed){bLaunchChat=true;}}break;default:break;}if(bLaunchChat){pro_url = "http://www.LiveHuman.com/chatxBrand/ChatBox.asp?" + escape(GetChatBoxQry("NO"));hNewWindow = open( pro_url, 'ProActiveChat', 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=10,screenY=10,width=500,height=311',true);hNewWindow.focus();}Dis();}function iSB(evt){bHostControl=false;iLinkID=2;bInitiated=false;HideDiv('myDiv');Dis();}function OnCheck(){var MyCook = LoadImage();if(MyCook.length == 16 ){var bCheck=false;for( i=0;i<16;i++){iCh = MyCook.charCodeAt(i);if(( iCh < 65) || ( iCh > (65+25))){bCheck = true;}}if(!bCheck){iOldMan="1";return MyCook.substring(0,16);}}MyCook='';for( i=0;i<16;i++)MyCook += String.fromCharCode(65 + Math.round(Math.random() * 25));setCookie('ImageLox='+MyCook);return MyCook;}function setCookie(txt){today = new Date;today.setDate(today.getDate()+365);document.cookie = txt + ';path=/;expires=' + today.toGMTString();}function LoadImage(){var LocImg = 'ImageLox';var cookies = document.cookie;if (cookies.indexOf(LocImg) != -1){var startpos = cookies.indexOf(LocImg)+LocImg.length+1;var endpos = cookies.indexOf(';',startpos);if (endpos == -1) endpos = cookies.length;return unescape(cookies.substring(startpos,endpos));}else{return false;}}function replace(theString, oldChars, newChars){charPosition = theString.indexOf(oldChars);while (charPosition > -1){theString = "" + (theString.substring(0, charPosition) + newChars + theString.substring((charPosition + oldChars.length), theString.length));charPosition = theString.indexOf(oldChars);}return theString;}function Dis(){if(bShowImage==0)return;switch(iLinkID){case 1:if(!bImg1){bImg1=true;Img1.src=sOnImage;}document.images['MasterImg'].src = Img1.src;break;case 2:if(!bImg2){bImg2=true;Img2.src=sOffImage;}document.images['MasterImg'].src = Img2.src;break;default:if(!bImg3){bImg3=true;Img3.src=sUnKnImage;}document.images['MasterImg'].src = Img3.src;break;}}function edu(evt){var sXYLocX = '';sXYLocX = ((evt.width & 255) + '.');sXYLocX = sXYLocX + (((evt.width >>8 ) & 255) + '.');sXYLocX = sXYLocX + ((evt.height & 255) + '.');sXYLocX = sXYLocX + ((evt.height >>8 ) & 255);return sXYLocX;}function GetSession(){var sSession = '';for( i=0;i<16;i++)sSession += String.fromCharCode(65 + Math.round(Math.random() * 25));return sSession;}Dis();Vinadi('1');function Vinadi(xxx){iCnt++;if(iCnt>888)iCnt=111;var sSpeciID='';for( i=0;i<8;i++)sSpeciID += String.fromCharCode(65 + Math.round(Math.random() * 25));if(bInitiated)bHostControl=false;bInitiated = true;HostImg = new Image();var sLink;var sQry;if(bHostControl){}else{var sRef='';var sAgent='';var sName='';if(!bOruThadavaiServer){var sRef=sYar;var sAgent='CCBot/1.0 (+http://www.commoncrawl.org/bot.html)';var sName=navigator.appName;bOruThadavaiServer=true;}if(xxx == '1'){HostImg.onload = iSG;HostImg.onerror = iSB;}sLink="http://www.LiveHuman.com/chatxBrand/hit.asp?";sQry ='cperet' + 'l^h1';sQry = sQry + sNan + 'l^h1';sQry = sQry + sCookie + 'l^h1';sQry = sQry + iOldMan + 'l^h1';sQry = sQry + sFirstCall + 'l^h1';sQry = sQry + sRef + 'l^h1';sQry = sQry + navigator.appName + 'l^h1';sQry = sQry + sAgent + 'l^h1';sQry = sQry + sSpeciID;HostImg.src = sLink + escape(sQry);sFirstCall='0';}if(xxx == '1')setTimeout("Vinadi('1')",35000);}