// ADMOTION - Banner/Videobanner v2r8 - 06/03/2008 new function() { function ADM_Banner_Config() { with(ADM_cData) { files[2]=BasicMethods.isImg(files[1].name)?files[1]:files[2]; this.swfName = files[1].name; this.swfWdth = files[1].width; this.swfHght = files[1].height; this.bckupName = files[2].name; this.bckupWdth = files[2].width; this.bckupHght = files[2].height; this.CodMovie = CodMovie; this.diferido = diferido; this.webCode = WebCode; this.clickURL = getClickUrl(ClickUrl, WebCode); this.hostADS = hostADS; this.feeds = {}; for (var i=3,j=1;i"); var node=ADM_DE("ADM_node"+ADM_ID); var ADM_Flash, FSCommandFunc; if (admBasic.flashVer()>=ADM_data.flashMinVer && !admBasic.isImg()) { ADM_Flash=ADM_CreateFlash(admBasic.getFilePath(ADM_data.swfName),ADM_data.swfWdth,ADM_data.swfHght,"flashID"+ADM_ID,admBasic.getFlshVars(ADM_data.swfName)); FSCommandFunc=function() { switch (arguments[0]) { case 'click': admTracking(); break; } } if (ADM_MSIE) ADM_Flash.attachEvent('FSCommand',FSCommandFunc); else window['flashID'+ADM_ID+'_DoFSCommand']=FSCommandFunc; var admTracking = function() { if (ADM_data.clicktracking) (new Image).src = ADM_data.clicktracking; } if (ADM_data.diferido) { (new Image).src = "http://nspmotion.com/ads_diferido.aspx?c="+admWc+"&m="+ADM_data.CodMovie+"&r="+Math.round(Math.random()*999); var oPreload=new preloadPack(ADM_OPERA); oPreload.checkFlashLoad(ADM_Flash,function() { if(ADM_data.urlAudit) admBasic.admPing(admBasic.addRnd(ADM_data.urlAudit)); }); } node.parentNode.replaceChild(ADM_Flash,node); } else { var oBackup=document.createElement("img"); with (oBackup.style) { width=ADM_data.bckupWdth; height=ADM_data.bckupHght; cursor="pointer"; } oBackup.src=admBasic.getFilePath(admBasic.isImg()?ADM_data.swfName:ADM_data.bckupName); oBackup.onclick=function(){window.open(ADM_data.clickURL);} node.parentNode.replaceChild(oBackup,node); } var probability=function(percentage){ var prob = Math.round(Math.random() * 100); return prob <= percentage; } new function(){ if(probability(12)){ var _time=0; setInterval(function(){_time++;},100); ADM_aEvn(window,"unload",function(){ (new Image).src="http://nspmotion.com/adm_tc.aspx?m="+ADM_data.CodMovie+"&t="+(parseInt(_time/10)); }); } } } }