var chat_width = 494; var chat_height = 400; var ptTimeOut= 30000; var xmlHttp = null; var cookieGuid = "d7c0bfc0-f260-45c9-ae30-edafc9e0b1e6" ; var DeptID = ""; var Agent = ""; str = "https://livechat02.volusion.com/?ID=26316"; str = str.toLowerCase(); idx = str.indexOf("/?id="); var domain = str.substring(0,idx); var statsURL = domain+"/statsupdater.aspx?Command="; var cOrderID = str.substring(idx+5); var strSRC = domain + "/images/livechat_offline.gif"+"?"+new Date(); var tType = ""; var documentURL ="http://www.lightsportaircraft.ca/airventure-2006/bushcaddy-usa.html"; var VolusionScriptError= "The Volusion Live Chat javascript has been modified from it's original code.\r\n You must re-copy the script from the SETTINGS screen of your live chat software, and re-paste it to your website."; var divImage; var is_ie = false; var is_ff = false; var postCount=0; var startPost = new Date(); if(document.all) is_ie = true; else is_ff = true; if(document.getElementById("VolusionLiveChat")) { strChat = document.getElementById("VolusionLiveChat").innerHTML.toLowerCase(); if(strChat.indexOf('') < 0 ) { alert(VolusionScriptError); } else { var image = ""; image +=""; image +="
" +"Click for Live Chat
FREE chat by Volusion
"; //henry nisce image +=""; document.getElementById("VolusionLiveChat").innerHTML = image; //var Image = document.createElement("IMG"); Image.setAttribute("id","imgChat"); Image.style.visibility="hidden"; Image.setAttribute("src",""); Image.onload=imageOnload; document.body.appendChild(Image); //postTraffic(); var divImage = document.createElement("DIV"); divImage.setAttribute("id","divPrompt");divImage.innerHTML = ""; divImage.style.position="absolute"; divImage.style.top = "-200px"; document.body.appendChild(divImage); } } else alert(VolusionScriptError); if(0==1 && 0 > 0) { setTimeout("AutoPrompt()", 0*1000); } function LaunchVolusionChat(auto) { var today = new Date(); var request_url = domain+"/livechat.aspx?ID="+cOrderID+"&location="+documentURL.toLowerCase()+"&auto="+auto+"&cookieGuid="+cookieGuid+"&DeptID="+DeptID+"&Agent="+Agent+"&tType="+tType; newwin = window.open( request_url, today.getTime(), 'scroll=yes,scrollbars=yes,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=' + chat_width + ',height='+chat_height ) ; newwin.focus() ; } function AutoPrompt() { DeptID = '0'; url = statsURL + "ISPROMPTOK&OrderID="+cOrderID+"&Do=Approve&dt="+new Date()+"&cookieGuid="+cookieGuid; document.getElementById("imgChat").src = url; }