You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

5 lines
2.6 KiB

(function(){function j(a){var b=new Image,c="notice_"+Math.floor(2147483648*Math.random()).toString(36),d=window;d[c]=b;b.onload=b.onerror=b.onabort=function(){b.onload=b.onerror=b.onabort=null;b=d[c]=null};b.src=a}function k(a,b,c){var d={};d.width=a;d.height=Math.ceil(b*c);return d}function l(a,b,d){var c={};c.width=Math.ceil(b*d);c.height=a;return c}var a=window.ad[0],c=a.noticeurl;if(c&&c.length)for(var b=0,d=c.length;b<d;b++)""!==c[b]&&j(c[b]);var b=document.getElementById("c"),e=document.getElementById("d"),
c=parseInt(a.sw,10),d=parseInt(a.sh,10);e.style.width=c+"px";e.style.height=d+"px";if(a.width&&a.height){var e=parseInt(a.width,10),g=parseInt(a.height,10),f;if(e!==c||g!==d){var m=e>c,n=g>d,h=c/e,i=d/g;m&&n?f=h>=i?l(d,e,i):k(c,g,h):m?f=k(c,g,h):n&&(f=l(d,e,i))}f&&(a.width=f.width,a.height=f.height);b.style.width=a.width+"px";b.style.height=a.height+"px";a.height<d&&(b.style.paddingTop=parseInt((d-a.height)/2,10)+"px")}else b.style.paddingTop=parseInt((d-60)/2,10)+"px";switch(a.type){case "image":a=
'<a href="'+a.curl+'" target="_blank" title="'+a.title+'" hidefocus="true" style="outline: none;" alt=""><img width="'+a.width+'" border="0" src="'+a.res+'" /></a>';break;case "flash":a='<div style="position: absolute"><object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="flash_obj" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+a.width+'" height="'+a.height+'"><param name="movie" value="'+a.res+
'"><param name="quality" value="high"><param name="AllowScriptAccess" value="always"><param name="wmode" value="opaque"><param name="FlashVars" value=""><embed wmode="opaque" src="'+a.res+'" quality="high" align="middle" width="'+a.width+'" height="'+a.height+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer"></object></div><div style="position: absolute; width: '+a.width+"px; height: "+a.height+'px"><a href="'+a.curl+'" target="_blank" hidefocus="true" style="position: absolute; width: 100%; height: 100%; outline: none; font-size: 900px;">&nbsp;&nbsp;</a></div>';
break;default:a='<div class="text"><div class="title"><a href="'+a.curl+'" target="_blank" title="'+a.title+'" alt="">'+a.title+'</a></div><div class="desc"><a href="'+a.curl+'" target="_blank" title="'+a.desc+'" alt="">'+a.desc+'</a></div><div class="surl"><a href="'+a.curl+'" target="_blank" title="'+a.surl+'" alt="">'+a.surl+"</a></div></div>"}b.innerHTML=a;a=window.cm;"string"==typeof a&&""!==a&&(a=[a]);if(a&&a.length)for(b=0;b<a.length;b++)""!==a[b]&&j(a[b])})();