" ; 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__.style') ; else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport__"]') ; else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport__").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 = "/pull/survey.php?action=reject&aspid=&surveyid="+surveyid ; } survey_opened = 0 ; } function PHPLiveSubmitSurvey(form) { newwin = window.open( "/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 = "/admin/traffic/survey_take.php" ; form.method = "POST" ; form.submit() ; } /********** survey settings: end **********/ /******************************************/ function checkinitiate__() { initiate = pullimage__.width ; if ( ( initiate == 2 ) && !chat_opened ) { chat_opened = 1 ; launch_support__() ; } 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__() { // 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_ = 0 ; pullimage__ = new Image ; pullimage__.src = "/image_tracker.php?l=&x=&page="+url+"&unique="+unique ; pullimage__.onload = checkinitiate__ ; if ( do_tracker_flag_ == 1 ) setTimeout("do_tracker__()",tracker_refresh) ; } function launch_support__() { var request_url__ = "/request.php?l=&x=&deptid=&page="+url ; newwin = window.open( request_url__, 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 = "/scroll_image.php?x=&l=&"+unique ; output = "
" ; output += "" ; output += "" ; output += "
 close window 
" ; output += "" ; output += "
" ; output += "
" ; document.writeln( output ) ; if(ie) ProactiveDiv = eval('document.all.ProactiveSupport__.style') ; else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport__"]') ; else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport__").style') ; if (ie||w3) ProactiveDiv.visibility = "hidden" ; else ProactiveDiv.visibility = "hide" ; } function RejectInitiate() { var rejectimage__ = new Image ; rejectimage__.src = "/image_tracker.php?l=&x=&unique="+unique+"&action=reject" ; DoClose() ; chat_opened = 0 ; } var status_image__ = "" ; do_tracker__() ; document.write( status_image__ ) ; WriteChatDiv() ; //-->