var cslive_timeout = 60000; var cslive_ping_counter = 0; var cslive_website_alert = 0; cslive_img = new Image(); function open_cslive_window(code) { eval('function'+code + '("")'); } function open_cslive_confirm(code) { eval('confirm'+code + '("")'); } function open_cslive_customer_auto_login(code,login_code) { eval('function'+code + "('"+login_code+"')"); } function function8cb880827635a09d5586cbec1d444077 (login_code) { cslive_standalone_chat_popup = window.open("http://customersupportnetwork.com/tis/index.php?action=cust_view_cust_chat_stand_alone_layout&link_code=8cb880827635a09d5586cbec1d444077","","width=290,height=330,status=no,toolbar=no,menubar=no,scrollbars=no"); } function confirm8cb880827635a09d5586cbec1d444077 () { window.open("http://customersupportnetwork.com/tis/index.php?action=cust_view_chat_call_alert&link_code=8cb880827635a09d5586cbec1d444077","","width=290,height=330,status=yes,toolbar=no,menubar=no,scrollbars=no,left=200,right=200"); } function cslive_tasks () { if (cslive_img.complete) { width = cslive_img.width; height = cslive_img.height; //alert ('width='+width+' height='+height+' complete='+cslive_img.complete); if (height == 2) { cslive_ping_counter = 1; // we reset the ping counter to 1 as long as we're in chat to keep the session alive } else if (height == 1) { // do nothing } else { // do nothing } if (width == 3) { open_cslive_window('8cb880827635a09d5586cbec1d444077'); return false; } else if (width == 2) { open_cslive_confirm('8cb880827635a09d5586cbec1d444077'); return false; } else if (width == 1) { // do nothing } else { // do nothing } } else { setTimeout('cslive_tasks()',100); } } function cslive_refresh_timer() { if (cslive_website_alert == 1) { window.open("http://cslive.com/remote_public/remote_popup.php?company_name=McCoy Corporation+(10000)",'',"width=640,height=480,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no"); } else { if (cslive_ping_counter == 0) { var curdate = new Date(); cslive_img.src = 'http://customersupportnetwork.com/tis/ping/image_ping.php?keep_alive=&link_code=8cb880827635a09d5586cbec1d444077&height='+screen.height+'&width='+screen.width+'&referrer='+escape(document.referrer)+'&href='+escape(location.href)+'&title='+escape(document.title)+'&time='+escape(curdate.toString()); cslive_tasks(); cslive_ping_counter++; setTimeout('cslive_refresh_timer()',cslive_timeout); } else if (cslive_ping_counter <= 10) { var nowdate = new Date(); cslive_img = new Image; cslive_img.src = 'http://customersupportnetwork.com/tis/ping/image_ping.php?keep_alive=&link_code=8cb880827635a09d5586cbec1d444077&now='+nowdate.getTime(); cslive_tasks(); cslive_ping_counter++; setTimeout('cslive_refresh_timer()',cslive_timeout); } else { //stop pinging because session is idle } } } function delay(gap){ /* gap is in millisecs */ var then,now; then=new Date().getTime(); now=then; while((now-then)