" ; 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_550293() { if(!ns && !ie && !w3) return ; if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_550293.style') ; else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_550293"]') ; else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_550293").style') ; if (ie||w3) ProactiveDiv.visibility = "visible" ; else ProactiveDiv.visibility = "show" ; backtrack = 0 ; isclosed = 0 ; repeat = 1 ; moveIt(20) ; } $(document).ready(function(){ //on window scroll fire it will call a function. $(window).scroll(function () { //after window scroll fire it will add define pixel added to that element. set = $(document).scrollTop()+"px"; //this is the jQuery animate function to fixed the div position after scrolling. $('#ProactiveSupport_550293').animate({top:set},{duration:1000,queue:false}); }); }); function DoClose(){ if (ie||w3) ProactiveDiv.visibility = "hidden" ; else ProactiveDiv.visibility = "hide" ; isclosed = 1 ; halt = 0 ; } /********************************************/ /********************************************/ function checkinitiate_550293() { initiate = pullimage_550293_.width ; if ( ( initiate == 2 ) && !chat_opened ) { chat_opened = 1 ; launch_support_550293_() ; } else if ( ( initiate == 3 ) && !chat_opened ) { chat_opened = 1 ; initializeProactive_550293() ; } else if ( initiate == 100 ) { do_tracker_flag_550293 = 0 ; } if ( ( initiate == 1 ) && chat_opened ) chat_opened = 0 ; } function do_tracker_550293() { // 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_550293 = 0 ; pullimage_550293_ = new Image ; pullimage_550293_.src = "/image_tracker.php?l=&x=&deptid=&page="+url+"&unique="+unique ; pullimage_550293_.onload = checkinitiate_550293 ; if ( do_tracker_flag_550293 == 1 ) setTimeout("do_tracker_550293()",tracker_refresh) ; } function launch_support_550293_() { var request_url_550293_ = "/request.php?l=&x=&deptid=&page="+url ; newwin = window.open( request_url_550293_, unique, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=450,height=360' ) ; newwin.focus() ; DoClose() ; } function WriteChatDiv() { var scroll_image = new Image ; scroll_image.src = "/scroll_image.php?x=&l=&"+unique ; output = "
" ; output += "" ; output += "" ; output += "
 Fechar 
" ; output += "" ; output += "
" ; output += "
" ; document.writeln( output ) ; if(ie) ProactiveDiv = eval('document.all.ProactiveSupport_550293.style') ; else if(ns) ProactiveDiv = eval('document.layers["ProactiveSupport_550293"]') ; else if(w3) ProactiveDiv = eval('document.getElementById("ProactiveSupport_550293").style') ; if (ie||w3) ProactiveDiv.visibility = "hidden" ; else ProactiveDiv.visibility = "hide" ; } function RejectInitiate() { var rejectimage_550293_ = new Image ; rejectimage_550293_.src = "/image_tracker.php?l=&x=&deptid=&unique="+unique+"&action=reject" ; DoClose() ; chat_opened = 0 ; } var status_image_550293_ = "Clique Para Atendimento Online" ; document.write( status_image_550293_ ) ; if ( !phplive_loaded ) { WriteChatDiv() ; do_tracker_550293() ; } var phplive_loaded = 1 ; //-->