var dest=(typeof dest==="undefined")?false:dest;var winHeight=winHeight||false;var winWidth=winWidth||false;var cookName=cookName||"afilcook";var cookExpire=cookExpire||4;var cookDate=new Date();var skip_check=(typeof ignoreBrowserCheck==="undefined")?false:ignoreBrowserCheck;var autopop=(typeof autopop==="undefined")?true:autopop;var winprops_clean="toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1";var winprops_ie="toolbar=0,statusbar=1,resizable=1,scrollbars=1,menubar=0,location=1,directories=0";var winprops=winprops_clean;var popped=false;cookExpire=(cookExpire*60*60*1000);var flashObj=false;window.doit=function(){var A=check_browser();if(A===true){return }var B=this.open("about:blank","",winprops);if(B){B.document.location.href=dest;B.blur()}this.popped=B;this.focus();window.focus();top.focus();self.focus();setTimeout(window.focus);setTimeout(top.focus);setTimeout(self.focus);this.checkPop(true)};function initPop(){if(dest!==false){if(checkCook()===false){window.doit()}window.setTimeout(checkPop,100)}}function checkPop(A){var A=(A===true)?true:false;if(popped&&popped.innerHeight>=1){setcook()}else{if(A==false){appendElems()}}}function appendElems(){try{document.addEventListener("click",trigger,false)}catch(A){try{document.attachEvent("onclick",trigger)}catch(A){}}}function trigger(A){if(checkCook()===false){window.doit();window.focus();top.focus();window.setTimeout(window.focus,500);window.setTimeout(top.focus,500);setcook()}}function setcook(){var A=window.location.hostname;A=A.split(".");A="."+A[A.length-2]+"."+A[A.length-1];cookDate.setTime(cookDate.getTime()+cookExpire);document.cookie=cookName+"=1; expires="+cookDate.toGMTString()+"; path=/; domain="+A+";"}function checkCook(){var A=document.cookie;if(A.indexOf(cookName)!=-1){return true}return false}function getFlashMovieObject(A){if(window.document[A]){return window.document[A]}if(document.embeds[A]){if(document.embeds&&document.embeds[A]){return document.embeds[A]}}else{return document.getElementById(A)}}function check_browser(){var B=false;var I=winHeight||parseInt(screen.height*0.7),C=winWidth||parseInt(screen.width*0.7),F=parseInt((screen.height/2)-(I/2)),H=parseInt((screen.width/2)-(C/2));var G=", width="+C+",height="+I+",top="+F+",left="+H;if(skip_check){if(navigator.userAgent.indexOf("Trident/5")>-1){winprops=winprops_ie+G}else{winprops=winprops_clean+G}return false}if(navigator.userAgent.indexOf("Trident/5")>-1){winprops=winprops_ie+G}if(navigator.userAgent.indexOf("Firefox")>-1){var E=navigator.userAgent.indexOf("Firefox");var A=navigator.userAgent.substr(E);var D=parseInt(A.split("/")[1]);if(D>=4){B=true}}return B}if(autopop){initPop()}else{appendElems()};
