var tc_blinker_timers=new Array();var tc_blinker_objs=new Array();var tc_blinker_nulltext="@";var tc_blinker_interval=500;var tc_popunder_url="";function tc_resize_window(){if(window.outerWidth!=undefined&&(window.outerWidth>=screen.availWidth&&window.outerHeight>=screen.availHeight)){return false}window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);return true}function tc_popunder(url){var popup_shown=eval("typeof tc_popunder_shown");if(popup_shown=="undefined"){if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("MSIE 8")!=-1){tc_popunder_shown=true;var popunder=window.open(url,"_blank","width=1024, height=950 , toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1");if(popunder!=null){popunder.blur()}}else{tc_popunder_shown=true;window.open(url,"_blank","width=1024, height=950 , toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1");self.focus()}}}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_nulltext){tc_blinker_objs[a].value=(tc_blinker_objs[a].value!="")?"":tc_blinker_nulltext}}}}}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_nulltext){tc_blinker_objs[a].value=""}}}}}function tc_text_startBlink(a){tc_blinker_timers[a]=setInterval("tc_text_doBlink('"+a+"')",tc_blinker_interval)}function tc_blinker(b,a){if(a==undefined){a=3}var c=b;if(typeof b=="string"){c=document.getElementById(b)}if(c==null){if(a==0){return}setTimeout(function(){tc_blinker(b,a-1)},3000)}else{c.onblur=function(){tc_text_startBlink(this.id)};c.onfocus=function(){tc_text_stopBlink(this.id)};c.start_blink=function(){tc_text_doBlink(this.id)};tc_blinker_objs[c.id]=c;tc_text_startBlink(c.id)}}function tc_validate_mail(a,b){if((a==undefined||a==null)||(a=="")){alert(b);return false}if(tc_email_check(a)==false){alert(b);return false}return true}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>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>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;e127)&&(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(d191)&&(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(eval("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(eval("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(eval("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(eval("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(eval("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(eval("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(eval("typeof tc_add_onload_event")!="function"){function tc_add_onload_event(b){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",b,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",b)}else{if(typeof window.onload!="function"){window.onload=func}else{var a=window.onload;window.onload=function(){a();func()}}}}}}if(eval("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(eval("typeof tc_get_referrer")!="function"){function tc_get_referrer(){if(eval("typeof tc_ref")=="undefined"){var tc_ref_host=tc_promo_parseURL(window.document.referrer);if(location.host!=tc_ref_host.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(eval("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';document.write(myscript);