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/onofflines/helpyes.jpg';var sOffImage = 'http://www.livehuman.com/onofflines/helpno.jpg';var sFloatMoveImgLink = 'http://www.livehuman.com/onofflines/FloatingMove.gif';var sFloatStopImgLink = 'http://www.livehuman.com/onofflines/FloatingStop.gif';var sIniImage = 'http://www.livehuman.com/onofflines/helpno.jpg';iLinkID=1;sIniImage=sOnImage;bShowImage=1;if(document.images['MasterImg']==null){document.write("");}else{document.images['MasterImg'].src = sIniImage;}document.write("");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 = 'http://www.livehuman.com/onofflines/helpunknown.jpg';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 ='inlinguacomo*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?inlinguacomo' + 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;break;case '10.0.10.6':sXY = '0.0.0.0';iLinkID=2;break;case '10.0.10.10':sXY = '10.0.10.2';iLinkID=2;if(hNewWindow==""){bLaunchChat=true;}else{if(hNewWindow.closed){bLaunchChat=true;}}break;case '10.0.10.1':sXY = '0.0.0.0';iLinkID=3;break;case '10.0.10.2':sXY = '10.0.10.2';iLinkID=1;break;case '10.0.10.4':sXY = '10.0.10.2';iLinkID=1;break;case '10.0.10.8':sXY = '10.0.10.2';iLinkID=1;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;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='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2)';var sName=navigator.appName;bOruThadavaiServer=true;}if(xxx == '1'){HostImg.onload = iSG;HostImg.onerror = iSB;}sLink="http://www.LiveHuman.com/chatxBrand/hit.asp?";sQry ='inlinguacomo' + '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);}