var show_flowgo_popup = 1; function do_flowgo_popup_for_site_197 () { function flowgo_power_popup () { } function flowgo_regular_popup() { var time_left = ((60 - (new Date()).getMinutes()) * 60000) + ((23 - (new Date()).getHours()) * 3600000); var expires = new Date ((new Date()).getTime() + time_left); var name_index = document.cookie.indexOf ("EXCLUDE_FLOWGO_POPUP_FOR_SITE_197"); if (name_index < 0) { document.cookie = "EXCLUDE_FLOWGO_POPUP_FOR_SITE_197=1; expires=" + expires.toGMTString() + "; path=/"; } else { var equals_index = document.cookie.indexOf ("=", name_index); var semicolon_index = document.cookie.indexOf (";", equals_index); if (semicolon_index < 0) semicolon_index = document.cookie.length; var val = document.cookie.substring (equals_index + 1, semicolon_index); val = parseInt (val); if (val < 4) { val = val + 1; document.cookie = "EXCLUDE_FLOWGO_POPUP_FOR_SITE_197=" + val + "; expires=" + expires.toGMTString() + "; path=/"; } else { return; } } var ad_location = 2; var ptop = 0; var pleft = 0; var screenwidth = screen.width; var screenheight = screen.height; var ad_width = 550; var ad_height = 620; var border = 8; switch(ad_location) { case 1: ptop = 0; pleft = 0; break; case 2: ptop = 0; pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 3: ptop = 0; pleft = screenwidth - ad_width - border; break; case 4: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = 0; break; case 5: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 6: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = screenwidth - ad_width - border; break; case 7: ptop = screenheight - ad_height - border; pleft = 0; break; case 8: ptop = screenheight - ad_height - border; pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 9: ptop = screenheight - ad_height - border; pleft = screenwidth - ad_width - border; break; } if (ad_location != 10) { var options = 'top=' + ptop + ',left=' + pleft + ',toolbar=0, resizable=0, width=' + ad_width + ', height=' + ad_height + ', scrollbars=0'; } else { var options = 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=0,resizable=0,top=0,left=0,width='+screen.availWidth+',height='+screen.availHeight; } window.open('http://www.flowgo.com/popup1/ad.cfm?site_id=197&campaign_id=323&ad_id=1469', '', options); } // if (show_flowgo_popup == 1) { flowgo_regular_popup (); flowgo_power_popup (); } } function do_flowgo_popup_for_site_197_onload () { function flowgo_regular_popup_onload () { } if (show_flowgo_popup == 1) { flowgo_regular_popup_onload (); } } function doPop () { do_flowgo_popup_for_site_197 (); } function open_flowgo_popup () { do_flowgo_popup_for_site_197 (); } function open_flowgo_popup_onload () { do_flowgo_popup_for_site_197_onload (); }