var tc_notification_content = '

';var tc_notification_height = '266'; var tc_notification_width = '316'; var tc_notification_overlay_name = "tc_notification_overlay"; var tc_notification_content_name = "tc_notification_content"; var tc_notification_overlay_div; var tc_notification_content_div; var tc_notification_normal_link = 'http://promo.vador.com/sellpage/ptid=295&phid=48520217&niche=11&offer=15&own=&popup=1&bc=0'; var tc_notification_exit_link = 'http://promo.vador.com/sellpage/ptid=295&phid=48520217&niche=30&offer=15&own=&popup=1&bc=0'; var tc_notification_exit_active = '0' var tc_notification_cookie_name = 'tc_notification_cookie'; var tc_notification_owner = tc_promo_encode(window.document.URL); var tc_notification_ref = tc_get_referrer(); var tc_notification_autoshow = '1'; var tc_notification_sys_speed_open = parseInt('10'); var tc_notification_sys_speed_close = parseInt('10'); var tc_notification_delay_start = parseInt('5') * 1000; var tc_notification_sys_delay = 30; var tc_notification_sys_timer = parseInt('0'); var tc_notification_settimeout_prepare_hide; var tc_notification_display_time = parseInt('0') * 1000; var tc_notification_redisplay_max = parseInt('0'); var tc_notification_redisplay_delay = parseInt('2') * 1000; var tc_notification_fake_close = parseInt('0'); var tc_notification_max_per_session = parseInt('0'); var tc_notification_display_it = false; var tc_notification_display_time_orig = tc_notification_display_time; var tc_notification_redisplay_count = 0; function tc_notification_init() { tc_notification_overlay_div.style.display = "block"; if (navigator.userAgent.indexOf('MSIE') != -1) tc_notification_set_pos_ie(); tc_notification_show(); } function tc_notification_show() { tc_notification_content_div.style.display = 'block'; var pos = parseInt( tc_notification_content_div.style.top ); if( pos > 0 ) { if (tc_notification_sys_speed_open == 0) tc_notification_content_div.style.top = '0px'; else { var new_top = pos - tc_notification_sys_speed_open; if (new_top < 0) new_top = 0; tc_notification_content_div.style.top = new_top+ 'px'; } window.setTimeout('tc_notification_show()', tc_notification_sys_delay); } else if (tc_notification_sys_timer) { tc_notification_settimeout_prepare_hide = window.setTimeout('tc_notification_prepare_hide()', tc_notification_sys_delay); window.setTimeout('tc_notification_hide()', tc_notification_sys_delay); tc_notification_sys_timer = false; } } function tc_notification_hide() { if (tc_notification_display_time < 0) { tc_notification_content_div.style.display = 'block'; var pos = parseInt( tc_notification_content_div.style.top ); if( pos < tc_notification_height ) tc_notification_content_div.style.top = ( pos + tc_notification_sys_speed_close ) + 'px'; else { if (tc_notification_redisplay_max != 0 && tc_notification_redisplay_count < tc_notification_redisplay_max) { tc_notification_redisplay_count++; tc_notification_display_time = tc_notification_display_time_orig; tc_notification_sys_timer = true; clearTimeout(tc_notification_settimeout_prepare_hide); setTimeout('tc_notification_init()', tc_notification_redisplay_delay); } return; } } window.setTimeout('tc_notification_hide()', tc_notification_sys_delay ); } function tc_notification_prepare_hide() { if (tc_notification_display_time >= 0) tc_notification_display_time -= tc_notification_sys_delay; tc_notification_settimeout_prepare_hide = window.setTimeout('tc_notification_prepare_hide()', tc_notification_sys_delay); } function tc_notification_set_pos_ie(){ tc_notification_overlay_div.style.position = 'absolute'; tc_notification_overlay_div.style.top = ( tc_get_real_scroll_top() + tc_get_real_window_height() - tc_notification_height ) - 0 + 'px'; tc_notification_overlay_div.style.paddingTop = '10px'; // document.getElementById(tc_notification_overlay_name).style.position = 'absolute'; // document.getElementById(tc_notification_overlay_name).style.top = ( tc_get_real_scroll_top() + tc_get_real_window_height() - tc_notification_height ) - 0 + 'px'; setTimeout('tc_notification_set_pos_ie()', 90); } function tc_notification_hide_button() { if (tc_notification_fake_close == 0) { tc_notification_display_time = -1; tc_notification_redisplay_max = 0; if (tc_notification_display_time_orig == 0) tc_notification_hide(); } else window.open(tc_notification_exit_link, '_blank'); } function tc_notification_click_link() { tc_popunder_shown = true; if(tc_notification_exit_active == 1) { if(navigator.userAgent.indexOf("Firefox") != -1){ exit_win = window.open(tc_notification_exit_link,'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1'); exit_win.blur(); }else if(navigator.userAgent.indexOf("MSIE 7") != -1 || navigator.userAgent.indexOf("MSIE 8") != -1){ setTimeout(function() {exit_win = window.open(tc_notification_exit_link,'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1');exit_win.blur();}, 300); }else if(navigator.userAgent.indexOf("MSIE 6") != -1){ setTimeout(function() {window.open(tc_notification_exit_link,"_blank");self.focus();}, 300); }else{ window.open(tc_notification_exit_link,"_blank"); self.focus(); } } } /*********** exec **********/ var tc_notification_current_nb_cook = tc_promo_getCookie(tc_notification_cookie_name); if (tc_notification_max_per_session == 0) tc_notification_display_it = true; else if (tc_notification_current_nb_cook < tc_notification_max_per_session) { tc_notification_display_it = true; tc_notification_current_nb_cook++; tc_promo_setCookie(tc_notification_cookie_name, tc_notification_current_nb_cook.toString()); } if (tc_notification_display_it) { tc_notification_overlay_div = document.createElement('div'); tc_notification_overlay_div.id = tc_notification_overlay_name; tc_notification_overlay_div.style.width = tc_notification_width+'px'; //tc_notification_overlay_div.style.height = tc_notification_height+'px'; tc_notification_overlay_div.style.position = "fixed"; tc_notification_overlay_div.style.fontSize = 0; tc_notification_overlay_div.style.right = "20px"; tc_notification_overlay_div.style.bottom = "0px"; // tc_notification_overlay_div.style.overflow = "hidden"; tc_notification_overlay_div.style.zIndex = 8000; tc_notification_overlay_div.style.display = "none"; tc_notification_content_div = document.createElement('div'); tc_notification_content_div.id = tc_notification_content_name; tc_notification_content_div.style.height = "150px"; tc_notification_content_div.style.top = "150px"; tc_notification_content_div.style.width = "auto"; tc_notification_content_div.style.position = "relative"; tc_notification_content_div.innerHTML = tc_notification_content; tc_notification_overlay_div.appendChild(tc_notification_content_div); /* document.write(''); */ tc_add_onload_event( function() { document.body.appendChild(tc_notification_overlay_div); setTimeout('tc_notification_init()', tc_notification_delay_start); }); }