-1&&html.indexOf('-1||html.indexOf(''+ad.openTag.toUpperCase())>-1){html=ad.buffer;ad.buffer=false;ad.openTag=false;return html;} return false;}},catchError:function(msg,url,line){var oErr={msg:msg,url:url,lineNo:line,date:new Date()};ad.log[ad.log.length-1].error=oErr;return true;},docWrite:function(html){ad.startTimer();if(ad.current.iframe){var ifrm=ad.current.iframe;ifrm=(ifrm.contentWindow)?ifrm.contentWindow:(ifrm.contentDocument.document)?ifrm.contentDocument.document:ifrm.contentDocument;ifrm.document.open();ifrm.document.write(html);ifrm.document.close();}else{html=html.replace(/^\s+|\s+$/g,'');if(html.length<1){ad.startTimer();return;} html=ad.bufferContent(html);if(html){ad.writeContent(html);ad.startTimer();}else{ad.startTimer(250);}}},getDimensions:function(sUrl){if(sUrl){var sStart=sUrl.indexOf('sz')+3;var sEnd=sUrl.indexOf(';',sStart);var aDims=sUrl.substring(sStart,sEnd).split(',');var oMax={height:0,width:0};for(var i=aDims.length;i--;){aDims[i]=aDims[i].split('x');aDims[i][0]=aDims[i][0]*1;aDims[i][1]=aDims[i][1]*1;if(aDims[i][0]>oMax.width){oMax.width=aDims[i][0];} if(aDims[i][1]>oMax.height){oMax.height=aDims[i][1];}} return oMax;} return{width:0,height:0};},getNext:function(){if(ad.log.length>0){var oLogTmp=ad.log[ad.log.length-1];oLogTmp.loadTime=new Date()-oLogTmp.loadTime;} if(ad.queue&&ad.queue.length>0){ad.current=ad.queue.pop();var oAd=ad.current;ad.log[ad.log.length]={id:oAd.id,url:oAd.url,date:new Date(),loadTime:new Date()};if(oAd.preLoad){oAd.preLoad();} if(oAd.con.hasClass('idAdPosSKY')&&jQuery('.omsnosky').length>0){ad.getNext();}else{if(oAd.iframe){oAd.con=oAd.con.append(oAd.iframe.attr('src',oAd.url));}else if(oAd.url&&oAd.url!=''){oAd.con.append(jQuery('