////////////////////////////////
var thelivesupport_url = "";
var thelivesupport_winName = "my_new_ls_window";
var thelivesupport_winProperties = "toolbar=no , directories=no, location =no,status=no,scrollbars =no, menubar=no, resizable=no, copyhistory=yes, width=452, height=390, target=_blank";
function openChat(url){
try{
thelivesupport_url = url;
showDiv();
}
catch(e){
alert('openChat()');
}
}
function openNewChatWin(){
var win = window.open(thelivesupport_url,thelivesupport_winName,thelivesupport_winProperties);
if (window.focus) {
win.focus();
}
}
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideshow').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideshow.visibility = 'hidden';
}
else { // IE 4
document.all.hideshow.style.visibility = 'hidden';
}
}
}
function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideshow').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideshow.visibility = 'visible';
}
else { // IE 4
document.all.hideshow.style.visibility = 'visible';
}
}
}
document.write("");
document.write(" ");
document.write("
" );
document.write("
");
document.write("");
document.write("
");
document.write("");
///////////////////////////////
var f=escape(document.referrer);
document.write('
');
var screensize="";
var systemcolor="";
var browser= navigator.appName;
if (navigator.appCodeName == 'Mozilla' && 4 <= navigator.appVersion.charAt(0))
{
var sw="na";
var sh="na";
sw=screen.width;
sh=screen.height;
screensize=sw+"x"+sh;
var v=navigator.appName;
if (v != "Netscape")
{
systemcolor=screen.colorDepth;
}
else
{
systemcolor=screen.pixelDepth;
}
systemcolor=systemcolor+" bit";
}
//var indexpage=parseInt(Math.random()*1000);
var str="ab";
var str1 = "";
try{
str=document.images.img.src;
}
catch(e){}
if(str.indexOf("?") != 0){
str1=str.substring(str.indexOf("?"),(str.length));
}
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;
if (checkIt('konqueror'))
{
browser = "Konqueror";
OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Microsoft Internet Explorer"
else if (!checkIt('compatible'))
{
browser = "Netscape Navigator"
version = detect.charAt(8);
}
else browser = "An unknown browser";
if (!version) version = detect.charAt(place + thestring.length);
if (!OS)
{
if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac"
else if (checkIt('win')) OS = "Windows"
else OS = "an unknown operating system";
}
function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
}
lc = window.document.location
ht = location.hostname
email = "email@email.com";
siteurl = "http://";
r="size="+screensize+"&colors="+systemcolor+"&referer="+f+"&browser="+browser+" "+version+"&os="+OS+"&lc="+lc+"&ht="+ht+"&email="+email+"&siteurl="+siteurl;
document.write('');
function newwinsrc()
{
try{
isCSRExist = false;
isAlreadyExist = false;
try{
isCSRExist = document.visitor.isCSRExist;
}catch(e){isCSRExist = false;}
try{
isAlreadyExist = document.visitor.isAlreadyJoin;
}catch(e){isAlreadyExist = false;}
// alert('visitor = '+isCSRExist);
if(isCSRExist == true)
{
try{
csrid = document.visitor.csrid;
}catch(e){csrid = ""; }
if(isAlreadyExist == true)
{
alert('Someone else connected from this computer. Please disconnect them and relogin.');
}
else
{
document.visitor.logoutServer();
// window.showModelessDialog('http://www.thelivesupport.com:8080/lsupport/visitor/visitorlogin.jsp?wid=106&did=120&cid='+csrid+'&'+r,null,'status:false;dialogWidth:460px;dialogHeight:429px;center:yes;edge:raised;resizable:yes;scroll:no;');
window.open('http://www.thelivesupport.com:8080/livesupport/visitor/visitorlogin.jsp?wid=106&did=120&cid='+csrid+'&'+r,"lsupport","toolbar=no , directories=no, location =no,status=no,scrollbars =no, menubar=no, resizable=no, copyhistory=yes, width=452, height=420, target=_blank");
}
}
else
{
document.visitor.logoutServer();
window.open('http://www.thelivesupport.com:8080/livesupport/visitor/visitorcontactus.jsp?wid=106&did=120&'+r,"lsupport","toolbar=no , directories=no, location =no,status=no,scrollbars =no, menubar=no, resizable=no, copyhistory=yes, width=452, height=420, target=_blank");
// alert('There is no Supporter');
}
}catch(e){
window.open('http://www.thelivesupport.com:8080/livesupport/visitor/visitorcontactus.jsp?wid=106&did=120&'+r,"lsupport","toolbar=no , directories=no, location =no,status=no,scrollbars =no, menubar=no, resizable=no, copyhistory=yes, width=452, height=420, target=_blank");
}
}
document.write('');
document.write('
');