function AdFox_SetLayerVis(b,a){document.getElementById(b).style.visibility=a}function AdFox_Open(a){AdFox_SetLayerVis("AdFox_DivBaseFlash_"+a,"hidden");AdFox_SetLayerVis("AdFox_DivOverFlash_"+a,"visible")}function AdFox_Close(a){AdFox_SetLayerVis("AdFox_DivOverFlash_"+a,"hidden");AdFox_SetLayerVis("AdFox_DivBaseFlash_"+a,"visible")}function AdFox_getCodeScript(a,f,c){var b;if(a<10){try{if(document.all&&!window.opera){b=window.frames["AdFox_iframe_"+f].document}else{if(document.getElementById){b=document.getElementById("AdFox_iframe_"+f).contentDocument}}}catch(d){}if(b){b.write('<script type="text/javascript" src="'+c+'"><\/script>')}else{setTimeout("AdFox_getCodeScript("+(++a)+","+f+',"'+c+'");',100)}}}function adfoxSdvigContent(a,d,b){var c=document.getElementById("adfoxBanner"+a).style;if(d=="100%"){c.width=d}else{c.width=d+"px"}if(b=="100%"){c.height=b}else{c.height=b+"px"}}function adfoxVisibilityFlash(b,d,a){var c=document.getElementById(b).style;if(d=="100%"){c.width=d}else{c.width=d+"px"}if(a=="100%"){c.height=a}else{c.height=a+"px"}}function adfoxStart(a,d,g,f,e,h,c,b){if(d==1){adfoxVisibilityFlash("adfoxFlash1"+a,e,h)}else{if(d==2){adfoxVisibilityFlash("adfoxFlash2"+a,c,b);if(g=="yes"){adfoxVisibilityFlash("adfoxFlash1"+a,e,h)}if(f=="yes"){adfoxSdvigContent(a,c,b)}else{adfoxSdvigContent(a,e,h)}}}}function adfoxOpen(a,e,d,c,b){var g=new Image();var f=document.getElementById("aEventOpen"+a);if(f){g.src=f.title+"&rand="+Math.random()*1000000+"&prb="+Math.random()*1000000}adfoxVisibilityFlash("adfoxFlash2"+a,c,b);if(e!="yes"){adfoxVisibilityFlash("adfoxFlash1"+a,1,1)}if(d=="yes"){adfoxSdvigContent(a,c,b)}}function adfoxClose(a,d,c,b,f){var g=new Image();var e=document.getElementById("aEventClose"+a);if(e){g.src=e.title+"&rand="+Math.random()*1000000+"&prb="+Math.random()*1000000}adfoxVisibilityFlash("adfoxFlash2"+a,1,1);if(d!="yes"){adfoxVisibilityFlash("adfoxFlash1"+a,b,f)}if(c=="yes"){adfoxSdvigContent(a,b,f)}};
