var tc_blinker_timers=new Array();var tc_blinker_objs=new Array();var tc_blinker_objs_nulltext=new Array();var tc_blinker_nulltext="@";var tc_blinker_interval=500;var tc_popunder_url="";window.tc_jscss_filesadded="";function tc_resize_window(){if(window.outerWidth!=undefined&&(window.outerWidth>=screen.availWidth&&window.outerHeight>=screen.availHeight)){return false}if(top===self){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight)}return true}function tc_ajax_thumb_hit(a){microAjax("/thumbclickpopup/"+a,function(b){})}function tc_parseQueryStr(d){var c;var b=new Object;if(d!=undefined&&d!=""){c=d.replace(/\%20/g," ");var a=c.split("&");for(var e=0;e<a.length;e++){var f=a[e].split("=");if(f[0]!=undefined&&f[1]!=undefined){b[f[0]]=f[1]}}}return b}function tc_getDomain(b){var a=new RegExp("(http|ftp|https)://(.*?)/.*$");var c=b.match(a);return c[2]}function tc_popunder(e,g){var a=typeof(tc_popunder_shown);var b;if(g==undefined){g=false}if(a=="undefined"||g==true){if(navigator.userAgent.indexOf("Firefox/4")!=-1||(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)){return false}tc_popunder_shown=true;if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("MSIE 8")!=-1){b=window.open(e,"_blank","width=1024, height=950 , toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1");if(b!=null){b.blur()}}else{if(navigator.userAgent.indexOf("MSIE 9")!=-1){var d="width=1024, height=950, toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1";var c=tc_getDomain(window.location.toString());var f=tc_getDomain(e.toString());if(c==f){b=window.open(e,"_blank",d);window.focus()}}else{var d="width=1024, height=950, toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1";b=window.open(e,"_blank",d);window.focus()}}return b}return false}function tc_add_window_click_popunder_event(a){if(!window.addEventListener){window.document.body.attachEvent("onclick",function(){tc_popunder(a)})}else{window.document.body.addEventListener("click",function(){tc_popunder(a)},false)}}function tc_text_doBlink(a){if(tc_blinker_objs[a]!=undefined){if(tc_blinker_objs[a].type==undefined){tc_blinker_objs[a].style.visibility=tc_blinker_objs[a].style.visibility==""?"hidden":""}else{if(tc_blinker_objs[a].type=="text"){if(tc_blinker_objs[a].value==""||tc_blinker_objs[a].value==tc_blinker_objs_nulltext[a]){tc_blinker_objs[a].value=(tc_blinker_objs[a].value!="")?"":tc_blinker_objs_nulltext[a]}}}}}function tc_text_stopBlink(a){clearInterval(tc_blinker_timers[a]);if(tc_blinker_objs[a]!=undefined){if(tc_blinker_objs[a].type==undefined){tc_blinker_objs[a].style.visibility=""}else{if(tc_blinker_objs[a].type=="text"){if(tc_blinker_objs[a].value==tc_blinker_objs_nulltext[a]){tc_blinker_objs[a].value=""}}}}}function tc_text_startBlink(a){clearInterval(tc_blinker_timers[a]);tc_blinker_timers[a]=setInterval("tc_text_doBlink('"+a+"')",tc_blinker_interval)}function tc_blinker(b,c,a){if(a==undefined){a=3}if(c==undefined){c=tc_blinker_nulltext}var d=b;if(typeof b=="string"){d=document.getElementById(b)}if(d==null){if(a==0){return}setTimeout(function(){tc_blinker(b,c,a-1)},3000)}else{d.onblur=function(){tc_text_startBlink(this.id)};d.onfocus=function(){tc_text_stopBlink(this.id)};d.start_blink=function(){tc_text_doBlink(this.id)};tc_blinker_objs[d.id]=d;tc_blinker_objs_nulltext[d.id]=c;tc_text_startBlink(d.id)}}function tc_validate_mail(a,b){if(/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/.test(a.toLowerCase())){return true}else{alert(b);return false}}function tc_email_check(f){var a="@";var b=".";var e=f.indexOf(a);var c=f.length;var d=f.indexOf(b);if(f.indexOf(a)==-1){return false}if(f.indexOf(a)==-1||f.indexOf(a)==0||f.indexOf(a)==c){return false}if(f.indexOf(b)==-1||f.indexOf(b)==0||f.indexOf(b)==c){return false}if(f.indexOf(a,(e+1))!=-1){return false}if(f.substring(e-1,e)==b||f.substring(e+1,e+2)==b){return false}if(f.indexOf(b,(e+2))==-1){return false}if(f.indexOf(" ")!=-1){return false}return true}function microAjax(b,a){this.bindFunction=function(e,d){return function(){return e.apply(d,[d])}};this.stateChange=function(d){if(this.request.readyState==4){this.callbackFunction(this.request.responseText)}};this.getRequest=function(){if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){return new XMLHttpRequest()}}return false};this.postBody=(arguments[2]||"");this.callbackFunction=a;this.url=b;this.request=this.getRequest();if(this.request){var c=this.request;c.onreadystatechange=this.bindFunction(this.stateChange,this);if(this.postBody!==""){c.open("POST",b,true);c.setRequestHeader("X-Requested-With","XMLHttpRequest");c.setRequestHeader("Content-type","application/x-www-form-urlencoded");c.setRequestHeader("Connection","close")}else{c.open("GET",b,true)}c.send(this.postBody)}}var TC_promo_Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="";var k,h,f,j,g,e,d;var b=0;c=TC_promo_Base64._utf8_encode(c);while(b<c.length){k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(j)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},decode:function(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){j=this._keyStr.indexOf(c.charAt(b++));g=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=TC_promo_Base64._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};if(typeof(tc_promo_parseURL)!="function"){function tc_promo_parseURL(a){if(a!=""){var c={href:a};var b=a.replace("//","/").split("/");c.protocol=b[0];c.host=b[1];b[1]=b[1].split(":");c.hostname=b[1][0];c.port=b[1].length>1?b[1][1]:"";b.splice(0,2);c.pathname="/"+b.join("/");c.pathname=c.pathname.split("#");c.hash=c.pathname.length>1?"#"+c.pathname[1]:"";c.pathname=c.pathname[0];c.pathname=c.pathname.split("?");c.search=c.pathname.length>1?"?"+c.pathname[1]:"";c.pathname=c.pathname[0];return c}return false}}if(typeof(tc_promo_setCookie)!="function"){function tc_promo_setCookie(b,c,a){var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString())}}if(typeof(tc_promo_getCookie)!="function"){function tc_promo_getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}}if(typeof(tc_get_real_window_height)!="function"){function tc_get_real_window_height(){if(typeof window.innerHeight=="number"){return(window.scrollMaxX>0)?window.innerHeight-17:window.innerHeight}else{if(document.documentElement.clientHeight){return document.documentElement.clientHeight}else{if(typeof document.body.clientHeight=="number"){return document.body.clientHeight}}}return false}}if(typeof(tc_get_real_window_width)!="function"){function tc_get_real_window_width(){if(typeof window.innerWidth=="number"){return(window.scrollMaxY>0)?window.innerWidth-17:window.innerWidth}else{if(document.documentElement.clientWidth){return document.documentElement.clientWidth}else{if(typeof document.body.clientWidth=="number"){return document.body.clientWidth}}}return false}}if(typeof(tc_get_real_scroll_top)!="function"){function tc_get_real_scroll_top(){var a=false;if(window.innerHeight){a=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}return(typeof a=="number")?a:0}}if(typeof(tc_add_onload_event)!="function"){(function(){var i=window.DomReady={};var h=navigator.userAgent.toLowerCase();var c={version:(h.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(h),opera:/opera/.test(h),msie:(/msie/.test(h))&&(!/opera/.test(h)),mozilla:(/mozilla/.test(h))&&(!/(compatible|webkit)/.test(h))};var d=false;var e=false;var g=[];function a(){if(!e){e=true;if(g){for(var j=0;j<g.length;j++){g[j].call(window,[])}g=[]}}}function f(j){var k=window.onload;if(typeof window.onload!="function"){window.onload=j}else{window.onload=function(){if(k){k()}j()}}}function b(){if(d){return}d=true;if(document.addEventListener&&!c.opera){document.addEventListener("DOMContentLoaded",a,false)}if(c.msie&&window==top){(function(){if(e){return}try{document.documentElement.doScroll("left")}catch(k){setTimeout(arguments.callee,0);return}a()})()}if(c.opera){document.addEventListener("DOMContentLoaded",function(){if(e){return}for(var k=0;k<document.styleSheets.length;k++){if(document.styleSheets[k].disabled){setTimeout(arguments.callee,0);return}}a()},false)}if(c.safari){var j;(function(){if(e){return}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if(j===undefined){var k=document.getElementsByTagName("link");for(var l=0;l<k.length;l++){if(k[l].getAttribute("rel")=="stylesheet"){j++}}var m=document.getElementsByTagName("style");j+=m.length}if(document.styleSheets.length!=j){setTimeout(arguments.callee,0);return}a()})()}f(a)}i.ready=function(k,j){b();if(e){k.call(window,[])}else{g.push(function(){return k.call(window,[])})}};b()})();tc_add_onload_event=DomReady.ready}if(typeof(tc_promo_encode)!="function"){function tc_promo_encode(b){var a=b;if(a!=""){a=TC_promo_Base64.encode(a);a=a.replace("/","_");a=a.replace("+","-");a=a.replace(/=/g,"");a=encodeURIComponent(a)}return a}}if(typeof(tc_get_referrer)!="function"){function tc_get_referrer(){if(typeof(tc_ref)=="undefined"){var a=tc_promo_parseURL(window.document.referrer);if(location.host!=a.hostname){tc_ref=window.document.referrer;if(tc_ref!=""){tc_ref=TC_promo_Base64.encode(tc_ref);tc_ref=encodeURIComponent(tc_ref)}}else{tc_ref=tc_promo_getCookie("tc_referrer");if(tc_ref==""){tc_ref=window.document.referrer;if(tc_ref!=""){tc_ref=TC_promo_Base64.encode(tc_ref);tc_ref=encodeURIComponent(tc_ref)}}}tc_promo_setCookie("tc_referrer",tc_ref,null);return tc_ref}return""}}if(typeof(tc_img_blink)!="function"){function tc_img_blink(f,e,a){var b=750;if(a!=undefined){b=a}if(document.body!=null){var d=document.body.getElementsByTagName(f);for(var c=0;c<d.length;c++){if(d[c].className.search(new RegExp("(^|\\s)"+e+"(?:\\s|$)"))>=0){d[c].style.visibility=d[c].style.visibility=="hidden"?"visible":"hidden"}}setTimeout('tc_img_blink("'+f+'","'+e+'",'+b+")",b)}}}if(typeof(tc_promo_bg_blink)!="function"){function tc_promo_bg_blink(b,a){bg_blink_obj=document.getElementById(b);if(bg_blink_obj!=undefined){bg_blink_obj.className=(bg_blink_obj.className+" "+a);setTimeout("tc_promo_bg_blink_stop('"+b+"','"+a+"');",1000)}}}if(typeof(tc_promo_bg_blink_stop)!="function"){function tc_promo_bg_blink_stop(b,a){bg_blink_obj=document.getElementById(b);if(bg_blink_obj!=undefined){bg_blink_obj.className=bg_blink_obj.className.replace(new RegExp("(^|\\s)"+a+"(?:\\s|$)"),"$1")}}}function tc_execJS(b){if(b&&b.getElementsByTagName("script")[0]){var c=document.createElement("script"),a=document.getElementsByTagName("head")[0];c.setAttribute("type","text/javascript");js_code=b.getElementsByTagName("script")[0].text;c.text=js_code;a.appendChild(c)}}function tc_keyupevent(e,key,action){var code;if(!e){var e=window.event}if(e.keyCode){code=e.keyCode}else{if(e.which){code=e.which}}if(code==key){eval(action)}}function tc_add_key_event(a,b){if(document.addEventListener){document.addEventListener("keyup",function(c){tc_keyupevent(c,a,b)},false)}else{if(document.attachEvent){document.attachEvent("onkeyup",function(c){tc_keyupevent(c,a,b)})}}}if(typeof(blink_bg_field)!="function"){function blink_bg_field(e,a,f,b,d){if(d==undefined){d=0}var c=document.getElementById(e);if(c!=undefined&&d<b){if(d%2==0){c.style.backgroundColor=f;d++;timer=setTimeout("blink_bg_field('"+e+"','"+a+"','"+f+"',"+b+","+d+")",100)}else{c.style.backgroundColor=a;d++;timer=setTimeout("blink_bg_field('"+e+"','"+a+"','"+f+"',"+b+","+d+")",100)}}else{c.style.backgroundColor=a}}}if(typeof(tc_popdhtml_add_css)!="function"){function tc_popdhtml_add_css(a){var c=document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=a;var b=document.getElementsByTagName("head")[0];b.appendChild(c)}}if(typeof(tc_change_msgerror)!="function"){function tc_change_msgerror(a){msgerror=a}}if(typeof(tc_preload_image)!="function"){function tc_preload_image(a){var b=new Image();b.src=a}}if(typeof(tc_gettopleft)!="function"){function tc_gettopleft(c){var a,b=0;a=c.offsetLeft;b=c.offsetTop;c=c.offsetParent;while(c!=null){a=parseInt(a)+parseInt(c.offsetLeft);b=parseInt(b)+parseInt(c.offsetTop);c=c.offsetParent}return{top:b,left:a}}}function getElementsByClassName(d,c,a){var b;if(c){b=c}else{b=document.body}if(typeof a=="undefined"){a=[];getElementsByClassName.search=new RegExp(d,"gi")}while(b){if(getElementsByClassName.search.test(b.className)){a.push(b)}if(b.firstChild){getElementsByClassName(d,b.firstChild,a)}b=b.nextSibling}return a}function add_centered_overlay(e,k,l){var a=document.getElementById(e);var f=(a.offsetWidth/2);var g=(a.offsetHeight/2);var h=getElementsByClassName(k);var j;for(var d=0;d<h.length;d++){j=h[d];var c=((j.offsetWidth/2)*-1)-f;var m=(j.offsetHeight/2)-g;var b=a.cloneNode(false);j.parentNode.insertBefore(b,j.nextSibling);b.className=l;b.id="";b.style.cssText="margin-top:"+m+"px;margin-left:"+c+"px;visibility:visible;"}}function ShowForm(f,l,b,g,d,a){var e=document.getElementById(l);var k=tc_gettopleft(e);var h=k.top;var c=k.left;var j=document.getElementById(d);if(j){j.style.top=h+"px";j.style.left=c+"px";j.style.visibility="visible";document.myForm.emailfield.focus();if(f!=""){b=f+","+b}document.myForm.thumb_id.value=b;document.myForm.testmode.value=g?1:0}var i=document.getElementById(a);if(i){i.style.visibility="hidden"}}function tc_change_email_value(c){var b=document.getElementsByName("email");var a;for(a=0;a<b.length;a++){b[a].value=c}}function get_random_int(b,a){var c=Math.random()*(a-b);return(Math.round(c)+b)}function tc_load_jscss_file(a,b){if(b=="js"){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a)}else{if(b=="css"){if(document.createStyleSheet){document.createStyleSheet(a)}else{var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",a)}}}if(typeof c!="undefined"){document.getElementsByTagName("head")[0].appendChild(c)}}function tc_check_load_jscss_file(a,b){if(window.tc_jscss_filesadded.indexOf("["+a+"]")==-1){tc_load_jscss_file(a,b);window.tc_jscss_filesadded+="["+a+"]"}};if(eval("typeof msgerror")!="string"){var msgerror=""}var tc_popup_dhtml=function(b){var a=this;this.options={height:0,width:0,opacity:0,exit_link:"",exit_active:0,delay_time:0,cookie_name:"tc_popdhtml_cookie",owner:"",ref:"",autoshow:0,modal:0,blink_interval:500,nulltext:"@",template_id:0,ptid:0,phit_id:0,test_group_id:0,wm_id:0,image_video_div_id:"tc_popdhtml_video_img",default_image_video_div_id:"tc_popdhtml_video_img_default",tc_thumb_id_field:"tc_popup_catcher_thumb_id",tc_paypage_id_field:"tc_paypage_id",tc_testmode_field:"tc_popup_catcher_testmode",place_thumbs_func:"pdv_pop_dhtml_place_thumbs",content:"",base_url:"http://promo.vador.com/",base_url_static:"http://www.promotools.com/",max_displays:0,aggregate_thumbid:"",my_email:"",overlay_name:false,content_name:false,iframe_name:false,show_on_exit:0,preview_mode:0,preview_msg:"Preview Mode",promo_tool_thumb:false,force_test_mode:false};this.vars={opacity_divided:0,overlay_name:"tc_popdhtml_overlay",content_name:"tc_popdhtml_content",overlay_div:null,content_div:null,iframe:null,email_file:null,popup_tmr:null,blink_ids:new Array(),last_hitstr:"",displays:null,on_exit_displays:0,allow_show:true,displays_counter:0,div_elems:[]};this.objs={tc_thumb_id_field:null,tc_testmode_field:null,tc_paypage_id_field:null};this.iframe_name=this.options.iframe_name;this.message=function(){alert(this.vars.content_name)};this.array_merge=function(e,d){if((e&&(e instanceof Array))&&(d&&(d instanceof Array))){for(var c in d){e.push(d[c])}}else{if((e&&(e instanceof Object))&&(d&&(d instanceof Object))){for(var c in d){if(c in e){if(typeof e[c]=="object"&&typeof d=="object"){e[c]=array_merge(e[c],d[c])}else{e[c]=d[c]}}else{e[c]=d[c]}}}}return e};this.view=function(e,j){this.vars.last_hitstr=e;var d="";if(e){d=e}var h=this.options.base_url+"thumbclickpopup/"+d;if(d){if(j){microAjax("/thumbclickpopup/"+d,function(k){})}else{var g=h;var f=document.getElementsByTagName("head").item(0);var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",g);c.onload=function(){f.removeChild(this)};f.appendChild(c)}}};this.set_thumbid=function(d){if(!this.objs.tc_thumb_id_field){this.objs.tc_thumb_id_field=a.getSelfElementById(this.options.tc_thumb_id_field)}if(this.objs.tc_thumb_id_field){var c=this.options.aggregate_thumbid;if(c&&d){c=d+","+c}else{if(d){c=d}}if(!c){c=0}this.objs.tc_thumb_id_field.value=c}};this.set_testmode=function(c){if(c==undefined){c=0}if(!this.objs.tc_testmode_field){this.objs.tc_testmode_field=a.getSelfElementById(this.options.tc_testmode_field)}if(this.objs.tc_testmode_field){this.objs.tc_testmode_field.value=c}};this.show_thumb=function(g,d,c,f,e){if(!this.objs.tc_paypage_id_field){this.objs.tc_paypage_id_field=document.getElementById(this.options.tc_paypage_id_field)}if(this.objs.tc_paypage_id_field){if(!d){d=0}this.objs.tc_paypage_id_field.value=d}this.show_img(f,c,g,e)};this.getSelfElementById=function(h,g){if(typeof g=="undefined"){g=false}if(this.vars.div_elems.length==0){var e=document.getElementById(this.vars.content_name),f=e.getElementsByTagName("div"),c=e.getElementsByTagName("input");for(var d in f){if(typeof f[d]=="object"){this.vars.div_elems.push(f[d])}}for(var d in c){if(typeof c[d]=="object"){this.vars.div_elems.push(c[d])}}}for(var d=0;d<this.vars.div_elems.length;d++){if((g==false&&this.vars.div_elems[d].id==h)||(g==true&&this.vars.div_elems[d].name==h)){return this.vars.div_elems[d]}}return false};this.show_img=function(n,g,e,k,j,m,d){if(typeof j=="undefined"){j=true}if(typeof m=="undefined"){m=false}if(g||a.options.force_test_mode){if(!a.options.promo_tool_thumb){this.view(g,j)}this.set_testmode(1)}else{this.set_testmode(0)}var l=document.getElementById(this.options.image_video_div_id);var c=document.getElementById(this.options.default_image_video_div_id);var h=false;if(typeof d!="undefined"){var f=a.getSelfElementById("tc_popup_catcher_niche_id");if(typeof f=="object"){f.value=d}}if(n){if(n.indexOf(",")>0||m){h=n.split(",");if(!m){n=h.shift()}if(typeof(window[this.options.place_thumbs_func])=="function"){window[this.options.place_thumbs_func](h)}}if(!m){if(k){if(typeof this.objs.thumbdiv=="undefined"){this.objs.thumbdiv=a.getSelfElementById(k)}if(typeof this.objs.thumbdiv!="undefined"){this.objs.thumbdiv.style.backgroundImage="url("+n+")";this.objs.thumbdiv.style.display="block";if(l!=undefined){l.style.display="none"}}}else{if(l){l.style.backgroundImage="url("+n+")";l.style.display="block";if(this.objs.thumbdiv!=undefined){this.objs.thumbdiv.style.display="none"}}}}if(c!=undefined){c.style.display="none"}}else{if(l!=undefined){l.style.display="none"}if(c!=undefined){c.style.display="block"}}if(!this.objs.tc_testmode_field){this.objs.tc_testmode_field=document.getElementById(this.options.tc_testmode_field)}this.set_thumbid(e);if(a.options.delay_time){window.setTimeout(a.show_internal,a.options.delay_time)}else{a.show_internal()}};this.show=function(c){if(this.vars.allow_show==true||this.options.show_on_exit){this.view(c);if(a.options.delay_time){window.setTimeout(a.show_internal,a.options.delay_time)}else{a.show_internal()}}};this.show_iframe=function(c){if(this.vars.allow_show==true||this.options.show_on_exit){if(a.options.delay_time){window.setTimeout(a.show_internal,a.options.delay_time)}else{a.show_internal()}this.set_iframe_src(c)}};this.set_iframe_src=function(c){if(this.options.iframe_name){if(!this.vars.iframe){this.vars.iframe=this.getElement(this.options.iframe_name,"iframe")}if(this.vars.iframe){this.vars.iframe.src=c}}};this.is_visible=function(){return(a.vars.content_div==null||a.vars.content_div.style.display=="none")?false:true};this.onsubmiter=function(c){if(typeof form_pop_submit=="function"){if(a.options.pp_dhtml_url!=undefined&&a.options.pp_dhtml_url){c.setAttribute("action",a.options.pp_dhtml_url)}return form_pop_submit(c)}else{return tc_validate_mail(c.elements.email.value,msgerror)}};this.show_on_exit=function(){var j=RegExp(" MSIE").test(navigator.userAgent),c=RegExp(" AppleWebKit/").test(navigator.userAgent),m=window.opera,g=document.getElementsByTagName("html")[0];var l=function(p){var p=p||window.event,o=p.srcElement||p.target,n=true;if(o==g){for(i in tc_popup_dhtml_instances){if(tc_popup_dhtml_instances[i].is_visible()){n=false;break}}if(n&&(a.vars.on_exit_displays<a.options.max_displays||a.options.max_displays==0)&&!d){a.vars.on_exit_displays++;a.show()}}};var e=function(o){if(o.clientX<=h||o.clientX>=(k[0]-h)||o.clientY<=h||o.clientY>=(k[1]-h)){var o=o||window.event,n=true;for(i in tc_popup_dhtml_instances){if(tc_popup_dhtml_instances[i].is_visible()){n=false;break}}if(n&&(a.vars.on_exit_displays<a.options.max_displays||a.options.max_displays==0)){a.vars.on_exit_displays++;a.show()}}};var h=10,k=a.clientDimensions(),d=false;window.onresize=function(){k=a.clientDimensions()};var f=function(n){var n=n||window.event;if(n.clientX>(k[0]-100)){d=true}else{if(d){d=false}}};if(j){g.onmousemove=f;g.onmouseleave=l}else{if(c||m){window.onmousemove=e}else{window.onmousemove=f;document.onmouseout=l}}};this.clientDimensions=function(){var d=0,c=0;if(typeof(window.innerWidth)=="number"){d=window.innerWidth;c=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){d=document.body.clientWidth;c=document.body.clientHeight}}}return[d,c]};this.getCursorXY=function(c){a.vars.cords=[cursorX,cursorY]};this.show_internal=function(){a.start_Blink();if(a.options.modal==1){a.vars.overlay_div=document.getElementById(a.vars.overlay_name)}a.vars.content_div=document.getElementById(a.vars.content_name);if(a.vars.content_div!=undefined){if(a.options.my_email&&a.vars.email_field==null){a.init_email_value()}a.set_positions();a.vars.content_div.style.display="block";if(a.options.modal==1){a.vars.overlay_div.style.display="block"}}if(top===self){window.scrollBy(0,-1)}};this.init_email_value=function(){if(this.vars.email_field==null){this.vars.email_field=this.getElement("email","input")}if(this.vars.email_field){this.vars.email_field.value=this.options.my_email}};this.getElement=function(e,g){var d=this.vars.content_div.getElementsByTagName(g);var f=d.length;if(f>0){var c;for(c=0;c<f;c++){if(d[c].name==e){return d[c];break}}}return false};this.hide=function(){this.stopBlink();this.vars.content_div.style.display="none";if(this.options.modal==1){this.vars.overlay_div.style.display="none"}this.set_iframe_src("")};this.close=function(){if(this.vars.content_div!=undefined){this.stopBlink();this.hide()}},this.set_positions=function(){if(this.vars.content_div!=null){this.vars.content_div.style.top=Math.round(tc_get_real_scroll_top()+(tc_get_real_window_height()-this.options.height)/2)-10+"px";if(this.options.modal==1){this.vars.overlay_div.style.top=tc_get_real_scroll_top()+"px";this.vars.overlay_div.style.height=tc_get_real_window_height()+"px";this.vars.overlay_div.style.width=tc_get_real_window_width()+"px"}var c=this;setTimeout(function(){c.set_positions()},20)}};this.enter=function(){this.hide()};this.leave=function(){this.hide();this.click_exit()};this.click_exit=function(){if(this.options.exit_active==1){if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("MSIE 8")!=-1){exit_win=window.open(this.options.exit_link,"_blank","toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1");exit_win.blur()}else{exit_win=window.open(this.options.exit_link,"_blank");exit_win.blur();self.focus()}}};this.doBlink=function(){for(var c in this.vars.blink_ids){obj=document.getElementById(this.vars.blink_ids[c]);if(obj!=undefined){if(obj.type==undefined){obj.style.visibility=obj.style.visibility==""?"hidden":""}else{if(obj.type=="text"){if(obj.value==""||obj.value==this.options.nulltext){obj.value=(obj.value!="")?"":this.options.nulltext}}}}}};this.stopBlink=function(){clearInterval(this.vars.popup_tmr);for(var c in this.vars.blink_ids){obj=document.getElementById(this.vars.blink_ids[c]);if(obj!=undefined){if(obj.type==undefined){obj.style.visibility=""}else{if(obj.type=="text"){obj.value=this.options.nulltext}}}}};this.mail_focus=function(){this.options.nulltext="";this.stopBlink();this.options.nulltext="@"};this.mail_blur=function(){this.start_Blink()};this.start_Blink=function(){if(this.vars.blink_ids.length>0){var c=this;this.vars.popup_tmr=setInterval(function(){c.doBlink()},this.options.blink_interval)}};this.add_to_blink=function(c){this.vars.blink_ids.push(c);var d=this;var e=document.getElementById(c);e.onfocus=function(){d.mail_focus()};e.onblur=function(){d.mail_blur()}};this.array_merge(this.options,b);if(this.options.overlay_name!=false){this.vars.overlay_name=this.options.overlay_name}if(this.options.content_name!=false){this.vars.content_name=this.options.content_name}if(this.options.ptid){this.vars.overlay_name+=this.options.ptid;this.vars.content_name+=this.options.ptid}this.vars.opacity_divided=this.options.opacity/100;this.vars.displays=tc_promo_getCookie(this.options.cookie_name);if(this.vars.displays==true){this.vars.displays=1}if(this.options.max_displays==0){this.vars.allow_show=true}else{if(this.vars.displays<this.options.max_displays){this.vars.displays++;tc_promo_setCookie(this.options.cookie_name,this.vars.displays.toString())}else{this.vars.allow_show=false}}this.rzCC=function(c){for(var d=/-([a-z])/;d.test(c);c=c.replace(d,RegExp.$1.toUpperCase())){return c}};this.obj_overlay=false;if(this.options.modal==1){this.obj_overlay=document.createElement("div");this.obj_overlay.id=this.vars.overlay_name;this.obj_overlay.style.display="none";this.obj_overlay.style.position="absolute";this.obj_overlay.style.top="0pt";this.obj_overlay.style.left="0pt";this.obj_overlay.style.zIndex=59999;this.obj_overlay.style.width="100%";this.obj_overlay.style.background="black";this.obj_overlay.style.filter="alpha(opacity='"+this.options.opacity+"')";this.obj_overlay.style.KhtmlOpacity=this.vars.opacity_divided;this.obj_overlay.style.mozOpacity=this.vars.opacity_divided;this.obj_overlay.style.opacity=this.vars.opacity_divided;this.obj_overlay.setAttribute("class","tc_popdhtml_overlay")}this.obj_popup=document.createElement("div");this.obj_popup.id=this.vars.content_name;this.obj_popup.style.display="none";this.obj_popup.style.zIndex=69999;this.obj_popup.style.position="absolute";this.obj_popup.style.width="100%";this.obj_popup.style.top="80px";this.obj_popup.style.left="0px";this.obj_popup.align="center";this.obj_popup.setAttribute("class","tc_popdhtml_content");this.obj_popup.innerHTML=this.options.content;tc_execJS(this.obj_popup);this.load=function(){if(a.options.modal==1){document.body.appendChild(a.obj_overlay)}document.body.appendChild(a.obj_popup);if(a.options.preview_mode){var d=document.forms.length;if(d>0){for(var c=0;c<=d;c++){document.forms[0].onsubmit=function(){alert(a.options.preview_msg);return false}}}}tc_execJS(a.obj_popup);if(a.options.autoshow==1){a.show()}if(this.options.show_on_exit==1){a.show_on_exit()}};if(document.readyState=="complete"){this.load()}else{tc_add_onload_event(this.load)}if(typeof tc_popup_dhtml_instances=="undefined"){tc_popup_dhtml_instances=[]}tc_popup_dhtml_instances.push(this)};if(eval("typeof tc_popdhtml_add_css")!="function"){function tc_popdhtml_add_css(a){var c=document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=a;var b=document.getElementsByTagName("head")[0];b.appendChild(c)}}if(eval("typeof tc_change_msgerror")!="function"){function tc_change_msgerror(a){msgerror=a}};var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"}]};BrowserDetect.init();function tc_exit_popup_open(a){var b=window.open(a,"_blank","width=1024,height=950,top=0,left=0,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1");window.onbeforeunload=null;window.location=a}var tc_exit_popup=function(options){this.options={popURL_NOFF:"http://google.fr",popURL_FF:"http://google.fr",bmphrase:"Vidéos pornos et photos de sexe gratuit",MessageAlerte:"Merci à très bientôt !",bmURL:"",dossier_js:"http://promo.vador.com/js/",disable_exit_popup:false,typeMSG:"alert",messageCloseit:"Merci d'avoir visité notre site!\n\nVoici un nouveau site Gratuit qui déchire ! \nDes miliers de videos PORNO HD Gratuites en 3 clics.\n=> Des Mamans en manque de cul baisent avec des JEUNOTS !\n=> Des Jeunes salopes de 18ans filment leur DEPUCELAGE avec leur mec !\n=> Des Beurettes Voilées se font défoncées dans des caves !\n\nCliquez sur ANNULER",navigateur:BrowserDetect.browser+" "+BrowserDetect.version,height:screen.availHeight-0,width:screen.availWidth-30,exit:true,isXPSP2:false,showpopup:true};this.vars={popDialogOptions:"dialogWidth:"+this.options.width+"px; dialogHeight:"+this.options.height+"px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0",popWindowOptions:"scrollbars=1, menubar=1, toolbar=1, location=1, personalbar=1, status=1, resizable=1"};this.iie=null;var obj=this;this.disable_exit_popup=function(){this.options.disable_exit_popup=true};this.ext=function(){if(this.options.disable_exit_popup){return}if(this.options.exit){this.options.exit=false;this.options.isXPSP2=(window.navigator.userAgent.indexOf("SV1")!=-1);if(this.options.navigateur=="Explorer 6"){if(this.options.isXPSP2){this.brs();this.iie.launchURL(this.options.popURL_NOFF)}else{eval("window.showModalDialog(this.options.popURL_NOFF,'grossesortie',this.vars.popDialogOptions)")}if(this.options.typeMSG!="favoris"){alert(this.options.MessageAlerte)}}else{if(this.options.navigateur=="Explorer 7"||this.options.navigateur=="Explorer 8"){document.getElementById("zone_exit_popup_flash").innerHTML='<embed src="'+this.options.dossier_js+"popup.swf?popURL="+encodeURIComponent(this.options.popURL_NOFF)+'" autostart="true" width="0" height="0"></embed>';if(this.options.typeMSG!="favoris"){alert(this.options.MessageAlerte)}else{window.external.AddFavorite(this.options.bmURL,this.options.bmphrase)}}else{document.getElementById("zone_exit_popup_flash").innerHTML='<embed src="'+this.options.dossier_js+"popup.swf?popURL="+encodeURIComponent(this.options.popURL_NOFF)+'" autostart="true" width="0" height="0"></embed>';alert(this.options.MessageAlerte)}}}};this.brs=function(){document.getElementById("zone_exit_popup_flash").innerHTML='<object id="iie" width="0" height="0" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"></object>'};this.ff=function(){if(this.options.disable_exit_popup){return}if(typeof(tc_cancel_exit_popup)!="undefined"){if(tc_cancel_exit_popup==true){return}}this.exitUrl=btoa(this.options.popURL_FF);if(BrowserDetect.browser=="Firefox"){document.getElementById("zone_exit_popup_flash").innerHTML='<embed src="'+this.options.dossier_js+"ff.asx?url="+encodeURIComponent(this.options.exitUrl)+'" autostart="true" width="0" height="0"></embed>';if(this.options.typeMSG=="favoris"){window.sidebar.addPanel(this.options.bmphrase,this.options.bmURL,"")}else{alert(this.options.MessageAlerte+"-"+this.options.navigateur)}}};this.popup=function(pageurl){var f=document.createElement("div");f.id="ppexit_pop";f.innerHTML='<object width="1" height="1"><param name="movie" value="javascript:tc_exit_popup_open(\''+pageurl+'\')"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="javascript:tc_exit_popup_open(\''+pageurl+'\')" width="1" height="1" allowscriptaccess="always"></embed></object>';document.body.insertBefore(f,document.body.firstChild)};this.array_merge=function(arr1,arr2){if((arr1&&(arr1 instanceof Array))&&(arr2&&(arr2 instanceof Array))){for(var idx in arr2){arr1.push(arr2[idx])}}else{if((arr1&&(arr1 instanceof Object))&&(arr2&&(arr2 instanceof Object))){for(var idx in arr2){if(idx in arr1){if(typeof arr1[idx]=="object"&&typeof arr2=="object"){arr1[idx]=array_merge(arr1[idx],arr2[idx])}else{arr1[idx]=arr2[idx]}}else{arr1[idx]=arr2[idx]}}}}return arr1};this.array_merge(this.options,options);var divobj=document.createElement("div");divobj.id="zone_exit_popup_flash";window.document.body.appendChild(divobj);if(window.document.getElementById&&!window.document.all){if(this.options.popURL_FF!=""){var url=this.options.popURL_FF;var messageCloseit=this.options.messageCloseit;window.onbeforeunload=function ExitPop(){if(obj.options.disable_exit_popup){return}if(typeof(tc_cancel_exit_popup)!="undefined"){if(tc_cancel_exit_popup==true){return}}if(obj.options.showpopup){obj.popup(url)}else{window.location=url}return messageCloseit}}}if(window.attachEvent){window.attachEvent("onunload",function(){obj.ext()})}};
