var siteDocument = this.document;
" ;
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_4854334()
{
if(!ns && !ie && !w3) return ;
if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_4854334.style') ;
else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_4854334"]') ;
else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_4854334").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 ;
documentWidth = document.body.offsetWidth ;
}
else if (ns)
{
documentHeight = window.innerHeight/2+window.pageYOffset-20 ;
documentWidth = window.innerWidth ;
}
else if (w3)
{
documentHeight = self.innerHeight/2+window.pageYOffset-20 ;
documentWidth = self.innerWidth ;
}
ProactiveDiv.top = documentHeight-100 ;
ProactiveDiv.left = documentWidth/2 ; // mod
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 checkinitiate_4854334()
{
initiate = pullimage_4854334.width ;
if ( ( initiate == 2 ) && !chat_opened )
{
chat_opened = 1 ;
popblock_action_id = 2 ;
launch_support_4854334() ;
}
else if ( ( initiate == 3 ) && !chat_opened )
{
chat_opened = 1 ;
initializeProactive_4854334() ;
}
else if ( initiate == 100 )
{
do_tracker_flag_4854334 = 0 ;
}
if ( ( initiate == 1 ) && chat_opened )
chat_opened = 0 ;
}
function do_tracker_4854334()
{
// 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 < 300000 ){
pullimage_4854334 = new Image ;
pullimage_4854334.src = "http://phplive.dattatec.com/image_tracker.php?l=dattatec&x=1&deptid=1&pagex="+url+"&unique="+unique ;
pullimage_4854334.onload = checkinitiate_4854334 ;
}else{
if(do_auto_initiate == 0 ){
do_auto_initiate = 1;
overlay = '
' ;
overlay += '

';
overlay += '
' ;
$(siteDocument.body).append( overlay );
$("#Support_4854334").modal({containerCss:{background:"none",border:"none",padding:0,width:285,height:150}});
}
}
if ( time_elapsed < 600000 ){
setTimeout("do_tracker_4854334()",tracker_refresh) ;
}else{
// $.modal.close();
// overlay = '' ;
// overlay += '

' ;
// overlay += '
' ;
// $(siteDocument.body).append( overlay );
// $("#Greeting_4854334").modal({containerCss:{background:"#F4F4F4",border:"4px solid #333",padding:"5px 5px 5px 5px",height:300,width:150}});
}
}
function start_timer_4854334( c )
{
if ( c == 0 )
{
if ( !chatwindow_loaded && ( popblock_action_id == 1 ) )
alert( "Popup blocker prevented the loading of the chat window. Please press while clicking the chat image." ) ;
else if ( !chatwindow_loaded && ( popblock_action_id == 2 ) )
{
NotifyPopupBlocker_4854334() ;
chat_opened = 1 ;
popblock_action_id = 1 ;
initializeProactive_4854334() ;
}
else
chatwindow_loaded = 0 ;
}
else
{
--c ;
var temp = setTimeout( "start_timer_4854334("+c+")", 1000 ) ;
}
}
function launch_support_4854334()
{
start_timer_4854334( 2 ) ;
var request_url_4854334 = "http://phplive.dattatec.com/request.php?l=dattatec&x=1&deptid=1&pagex="+url ;
var newwin_chat = window.open( request_url_4854334, unique, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width='+chat_width+',height='+chat_height+'' ) ;
if ( newwin_chat )
{
newwin_chat.focus() ;
DoClose() ;
chatwindow_loaded = 1 ;
}
}
function WriteChatDiv()
{
var scroll_image = new Image ;
// scroll_image.src = "http://phplive.dattatec.com/scroll_image.php?x=1&l=dattatec&"+unique ;
scroll_image.src = "http://phplive.dattatec.com/web/dattatec/INITIATE_IMAGE.GIF" ;
output = "" ;
output += "
" ;
output += " |
" ;
output += "" ;
output += " " ;
output += " |
" ;
output += "
" ;
document.writeln( output ) ;
if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_4854334.style') ;
else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_4854334"]') ;
else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_4854334").style') ;
if (ie||w3)
ProactiveDiv.visibility = "hidden" ;
else
ProactiveDiv.visibility = "hide" ;
}
function RejectInitiate()
{
var rejectimage_4854334 = new Image ;
rejectimage_4854334.src = "http://phplive.dattatec.com/image_tracker.php?l=dattatec&x=1&deptid=1&unique="+unique+"&action=reject" ;
DoClose() ;
chat_opened = 0 ;
}
function NotifyPopupBlocker_4854334()
{
var notifyimage_4854334 = new Image ;
notifyimage_4854334.src = "http://phplive.dattatec.com/image_tracker.php?l=dattatec&x=1&deptid=1&unique="+unique+"&action=notifypopup" ;
}
var status_image_4854334_1 = "
" ;
document.write( status_image_4854334_1 ) ;
if ( !phplive_loaded )
{
WriteChatDiv() ;
$(document).ready(function(){
do_tracker_4854334() ;
});
}
var phplive_loaded = 1 ;
//-->