" ;
style += "" ;
document.write( style ) ;
if (ie||w3)
browser_width = document.body.offsetWidth ;
else
browser_width = window.outerWidth ;
function toggleMotion( flag )
{
if ( flag )
halt = 1 ;
else
halt = 0 ;
}
function initializeProactive(){
if(!ns && !ie && !w3) return ;
if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_1_1.style') ;
else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_1_1"]') ;
else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_1_1").style') ;
if (ie||w3)
ProactiveDiv.visibility = "visible" ;
else
ProactiveDiv.visibility = "show" ;
backtrack = 0 ;
isclosed = 0 ;
repeat = 1 ;
moveIt(20) ;
}
function moveIt( h )
{
if (ie)
documentHeight = document.body.offsetHeight/2+document.body.scrollTop-20 ;
else if (ns)
documentHeight = window.innerHeight/2+window.pageYOffset-20 ;
else if (w3)
documentHeight = self.innerHeight/2+window.pageYOffset-20 ;
ProactiveDiv.top = documentHeight-200 ;
ProactiveDiv.left = h ;
if ( h > ( browser_width - 350 ) )
backtrack = 1 ;
if ( backtrack && repeat && !halt )
h -= 2 ;
else if ( !backtrack && repeat && !halt )
h += 2 ;
if ( halt )
{
setTimeout("moveIt("+h+")",timer) ;
}
else if ( ( !backtrack || ( backtrack && ( h >= 20 ) ) ) && ( ( ProactiveDiv.visibility == "visible" ) || ( ProactiveDiv.visibility == "show" ) ) && repeat && !isclosed )
setTimeout("moveIt("+h+")",timer) ;
else if ( !isclosed )
{
backtrack = 0 ;
repeat = 0 ;
setTimeout("moveIt("+h+")",timer) ;
}
else
{
// incase it is closed during when it's off the page, set the position
// back to the page so the horizontal scrollbars disappear (IE only)
ProactiveDiv.left = h ;
}
}
function DoClose(){
if (ie||w3)
ProactiveDiv.visibility = "hidden" ;
else
ProactiveDiv.visibility = "hide" ;
isclosed = 1 ;
halt = 0 ;
}
/********************************************/
/********************************************/
function initSurvey()
{
if(!ns && !ie && !w3) return;
if(ie && !surveyInitialized)
{
suDiv=eval('document.all.surveyDiv.style');
document.all.surveyDiv.innerHTML = phplive_survey_string ;
surveyInitialized = 1 ;
}
else if(ns && !surveyInitialized)
{
suDiv=eval('document.layers["surveyDiv"]');
document.layers["surveyDiv"].document.open() ;
document.layers["surveyDiv"].document.write( phplive_survey_string ) ;
document.layers["surveyDiv"].document.close() ;
surveyInitialized = 1 ;
}
else if(w3 && !surveyInitialized)
{
suDiv=eval('document.getElementById("surveyDiv").style');
document.getElementById('surveyDiv').innerHTML = phplive_survey_string ;
surveyInitialized = 1 ;
}
if (ie||w3) { suDiv.visibility="visible"; }
else { suDiv.visibility ="show"; }
showSurvey() ;
}
function showSurvey()
{
if (ie){documentWidth =document.body.offsetWidth/2+document.body.scrollLeft-20;
documentHeight =document.body.offsetHeight/2+document.body.scrollTop-20;}
else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;}
else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;}
suDiv.left=documentWidth-200;suDiv.top =documentHeight-200;
setTimeout( "showSurvey()",100 );
}
function closeSurvey( surveyid, shutdown )
{
if (ie||w3) { suDiv.visibility="hidden"; }
else {suDiv.visibility ="hide"; }
if ( shutdown )
{
var close_survey_image = new Image ;
close_survey_image.src = "http://livesupport.passkey.cc/kc/phplive/pull/survey.php?action=reject&aspid=1&surveyid="+surveyid ;
}
survey_opened = 0 ;
}
function PHPLiveSubmitSurvey(form) {
newwin = window.open( "http://livesupport.passkey.cc/kc/phplive/web/index.php", "newwin", 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=450,height=350' ) ;
closeSurvey(0, 0);
form.target = "newwin" ;
form.action = "http://livesupport.passkey.cc/kc/phplive/admin/traffic/survey_take.php" ;
form.method = "POST" ;
form.submit() ;
}
/********** survey settings: end **********/
/******************************************/
function checkinitiate_1_1()
{
initiate = pullimage_1_1.width ;
if ( ( initiate == 2 ) && !chat_opened )
{
chat_opened = 1 ;
launch_support_1_1() ;
}
else if ( ( initiate == 3 ) && !chat_opened )
{
chat_opened = 1 ;
initializeProactive() ;
}
if ( ( initiate == 20 ) && !survey_opened )
{
survey_opened = 1 ;
// add 2 seconds incase the survey is pushed and they
// load the page.. this will supress the error and gives
// the script time to load
setTimeout("initSurvey()", 2000) ;
}
else if ( ( initiate == 1 ) && chat_opened )
chat_opened = 0 ;
}
function do_tracker_1_1()
{
// check to make sure they are not idle for more then 1 hour... if so, then
// they left window open and let's stop the tracker to save server load time.
// (1000 = 1 second)
var unique = dounique() ;
time_elapsed = unique - start_tracker ;
if ( time_elapsed > 3600000 )
do_tracker_flag_1 = 0 ;
pullimage_1_1 = new Image ;
pullimage_1_1.src = "http://livesupport.passkey.cc/kc/phplive/image_tracker.php?l=strong&x=1&page="+url+"&unique="+unique ;
pullimage_1_1.onload = checkinitiate_1_1 ;
if ( do_tracker_flag_1 == 1 )
setTimeout("do_tracker_1_1()",tracker_refresh) ;
}
function launch_support_1_1()
{
var request_url_1_1 = "http://livesupport.passkey.cc/kc/phplive/request.php?l=strong&x=1&deptid=1&page="+url ;
newwin = window.open( request_url_1_1, unique, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=450,height=350' ) ;
newwin.focus() ;
DoClose() ;
}
function WriteChatDiv()
{
var scroll_image = new Image ;
scroll_image.src = "http://livesupport.passkey.cc/kc/phplive/scroll_image.php?x=1&l=strong&"+unique ;
output = "
" ;
output += "
" ;
output += " |
" ;
output += "" ;
output += "" ;
output += " |
" ;
output += "
" ;
document.writeln( output ) ;
if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_1_1.style') ;
else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_1_1"]') ;
else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_1_1").style') ;
if (ie||w3)
ProactiveDiv.visibility = "hidden" ;
else
ProactiveDiv.visibility = "hide" ;
}
function RejectInitiate()
{
var rejectimage_1_1 = new Image ;
rejectimage_1_1.src = "http://livesupport.passkey.cc/kc/phplive/image_tracker.php?l=strong&x=1&unique="+unique+"&action=reject" ;
DoClose() ;
chat_opened = 0 ;
}
var status_image_1_1 = "" ;
do_tracker_1_1() ;
document.write( status_image_1_1 ) ;
WriteChatDiv() ;
//-->