// to support Gecko
function createLayer(id,nestref,left,top,width,height,content,bgColor,visibility,zIndex) {
//bc:if (is.ns) {
if (is.ns4) {
if (nestref) {
var lyr = eval("document."+nestref+".document."+id+" = new Layer(width, document."+nestref+")")
}
else {
var lyr = document.layers[id] = new Layer(width)
eval("document."+id+" = lyr")
}
lyr.name = id
lyr.left = left
lyr.top = top
if (height!=null) lyr.clip.height = height
if (bgColor!=null) lyr.bgColor = bgColor
lyr.visibility = (visibility=='hidden')? 'hide' : 'show'
if (zIndex!=null) lyr.zIndex = zIndex
if (content) {
lyr.document.open()
lyr.document.write(content)
lyr.document.close()
}
}
//bc:else if (is.ie) {
else if (is.ie || is.ns5) {
var str = '\n'+((content)?content:'')+'
'
//bc:
var elmref;
if (nestref) {
index = nestref.lastIndexOf(".")
var nestlyr = (index != -1)? nestref.substr(index+1) : nestref
//bc:
if (is.ie)
document.all[nestlyr].insertAdjacentHTML("BeforeEnd",str);
else
{
elmref = document.getElementById(nestlyr);
elmref.innerHTML += str;
}
}
else {
//bc:
if (is.ie)
document.body.insertAdjacentHTML("BeforeEnd",str)
else
{
elmref = document.body;
elmref.innerHTML += str;
}
}
}
}
function destroyLayer(id,nestref) {
//bc:if (is.ns) {
if (is.ns4) {
if (nestref) eval("document."+nestref+".document."+id+".visibility = 'hide'")
else document.layers[id].visibility = "hide"
}
else if (is.ie) {
document.all[id].innerHTML = ""
document.all[id].outerHTML = ""
}
//bc:
else if (is.ns5) {
var elmref = document.getElementById(id);
if (elmref)
elmref.parentNode.removeChild(elmref);
}
}
//END INCLUDED LIBRARY
////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------
// loop though checking the image for updates from operators.
function csrepeat()
{
// if the request has timed out do not do anything.
if (csTimeout < 1)
return;
csTimeout--;
// update image for requests from operator.
csgetimage();
// do it again.
setTimeout('csrepeat()', 7000);
}
//-----------------------------------------------------------------
// Update the control image. This is the image that the operators
// use to communitate with the visitor.
function csgetimage()
{
imageloaded = 1;
// set a number to identify this page .
if (csID==null) csID=Math.round(Math.random()*9999);
randu=Math.round(Math.random()*9999);
cscontrol = new Image;
var u = WEBPATH + 'image.php?' +
'cmd=userstat' +
'&page=' + escape(document.location) +
'&title=' + escape(document.title) +
'&referer=' + escape(document.referrer) +
'&randu=' + randu +
'&pageid=' + csID +
'&department=' + 1 +
'&cslhVISITOR=' + '' +
'&cslheg=1&relative=Y';
cscontrol.src = u;
var w = cscontrol.width;
setTimeout('cslookatimage()', 2000);
}
// looks at the size of the control image and if the width is 55
// then open the chat.
//-----------------------------------------------------------------
function cslookatimage(){
if(imageloaded == 1){
var w = 0;
if (ismac > -1)
w = document.getElementById("imageformac").width;
else
w = cscontrol.width;
// pop up window:
if ((w == 55) && (openLiveHelpalready != 1)) {
openWantsToChat_1();
openLiveHelpalready = 1;
}
// layer invite:
if ( ( (w == 25) || (w>100) ) && (openDHTMLalready != 1)) {
openDHTML_1(w);
openDHTMLalready = 1;
openDHTMLlayer = 1;
}
delete cscontrol;
imageloaded = 0;
}
}
//-----------------------------------------------------------------
// opens live help
function openLiveHelp(department)
{
if(openDHTMLlayer == 1)
destroyLayer('mylayer1Div');
openDHTMLlayer = 0;
openDHTMLalready = true;
csTimeout=0;
window.open(WEBPATH + 'livehelp.php?department=' + department + '&cslheg=1&relative=Y', 'chat54050872', 'width=570,height=390,menubar=no,scrollbars=0,resizable=1');
}
//-----------------------------------------------------------------
// opens DHTML help
function openDHTML_1(w)
{
var html = '';
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 601
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 602
if(w == 25)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 616
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 618
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 625
Deprecated: Function ereg_replace() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 626
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==101)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==107)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==104)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==103)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==105)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==106)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
if (w==102)
html = '
'
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 641
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/livehelp_js.php on line 643
createLayer('mylayer1Div',null,100,200,400,247,html,null,null,99)
mylayer1 = new aDynLayer('mylayer1Div');
var u = WEBPATH + 'image.php?' +
'cmd=changestat' +
'&what=invited' +
'&cslhVISITOR=' + '' +
'&cslheg=1&relative=Y';
popcontrol2.src = u;
stillopen = 1;
setTimeout('moveDHTML_1()', 9000);
}
//-----------------------------------------------------------------
// opens DHTML help
function closeDHTML()
{
destroyLayer('mylayer1Div');
openDHTMLlayer = 0;
openDHTMLalready = false;
stillopen = 0;
var u = WEBPATH + 'image.php?' +
'cmd=changestat' +
'&what=stopped' +
'&cslhVISITOR=' + '' +
'&cslheg=1&relative=Y';
popcontrol3.src = u;
}
//-----------------------------------------------------------------
// opens DHTML help
function moveDHTML_1()
{
if(stillopen==1){
if(navigator.appName.indexOf("Netscape") != -1){
myWidth = window.pageXOffset;
myHeight = window.pageYOffset
} else {
myWidth = document.body.scrollLeft;
myHeight = document.body.scrollTop;
}
mylayer1.moveTo(myWidth+200,myHeight+100);
setTimeout('moveDHTML_1()', 9000);
}
}
//-----------------------------------------------------------------
// The Operator wants to chat with the visitor about something.
function openWantsToChat_1()
{
// ok we asked them .. now lets not ask them again for awhile...
var u = WEBPATH + 'image.php?' +
'cmd=browse' +
'&page=' + escape(document.location) +
'&title=' + escape(document.title) +
'&referer=' + escape(document.referrer) +
'&pageid=' + csID +
'&department=' + 1 +
'&cslhVISITOR=' + '' +
'&cslheg=1&relative=Y';
cscontrol.src = u;
// open the window..
window.open(WEBPATH + 'livehelp.php?cmd=chatinsession&department=1&cslhVISITOR=368f131277efc40d355185ff3a010a8e&cslheg=1&relative=Y', 'chat54050872', 'width=570,height=390,menubar=no,scrollbars=0,resizable=1');
}
var urltohelpimage = '/chat/image.php?cmd=getstate&department=1&nowis=20260609075814&cslhVISITOR=368f131277efc40d355185ff3a010a8e&cslheg=1&relative=Y' +
'&page=' + escape(document.location) +
'&title=' + escape(document.title) +
'&referer=' + escape(document.referrer);
//document.write(urltohelpimage);
document.write('');
document.write('');
document.write(' | ');
document.write('
');
document.write('');
document.write('
');
// macs do not see images in cache:
if (ismac > -1) {
randu=Math.round(Math.random()*9999);
document.write('');
document.write(' +
'&title=' + escape(document.title) +
'&referer=' + escape(document.referrer) +
'&randu=' + randu +
'&department=' + 1 +
'&cslhVISITOR=' + '' +
'&cslheg=1&relative=Y' +
') | ');
document.write('
');
}
document.write('
');
Deprecated: Function eregi() is deprecated in /home/afegraph/public_html/chat/mysql_db.php on line 172
setTimeout('csgetimage()', 1000);