function SIMAdHandler(_1,_2){
var _3=arguments.callee;
_3.VERSION="$Revision: 1.14 $Date: 2010/10/01 12:29:25 $";
this.__DOM_SAFE_ID="simadwriter-dom-safe";
this.__config=typeof (_2)=="object"?_2:{};
this.adType=this.adserver=_1&&typeof (_3.EXTENSIONS)=="object"&&typeof (_3.EXTENSIONS[_1])=="object"?_1:"DUMMY";
this.__start_time=new Date().getTime();
this.__dimensions={};
this.__adtrace={};
this.__loading_starts={};
this.__display_ads_cleared=false;
if(!this.__log){
this.__log=[];
}
if(!this.__tmp_logs){
this.__tmp_logs={};
}
if(!this.__config.site){
this.__config.site="";
}
if(!this.__config.tld){
this.__config.tld="";
}
if(!this.__config.available_ad_ids){
this.__config.available_ad_ids=[];
}
if(!this.__config.available_video_ads){
this.__config.available_video_ads=[];
}
this.bannerAdRequests={};
this.videoAdRequests={};
if(!_3.__init_general){
_3.__init_general=1;
_3.prototype.__default_ad_iframe="./adtags.iframe.php";
_3.prototype.getAdtrace=function(_4){
var _5="";
if(arguments.length==0){
for(var _6 in this.__adtrace){
_5+=_6+" - "+this.__adtrace[_6]+"\n";
}
}else{
_5=this.__adtrace[_4]||"";
if(_5){
_5=_4+" - "+_5;
}
}
return _5;
};
_3.prototype.getAdDimensions=function(_7){
var _8=this.__dimensions[_7]||[0,0];
return [_8[0]||0,_8[1]||0];
};
_3.prototype.getOffsetDimensions=function(_9){
var _a=document.getElementById(this.getSelector("target",_9));
if(!_a){
return [];
}
return [_a.offsetWidth,_a.offsetHeight];
};
_3.prototype.getSelector=function(){
if(!arguments.length){
return "";
}
var s="";
for(var i=0;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
if(s){
s+="_";
}
s+=arguments[i];
}
return s?(this.__getConfig("container_prefix")||"")+s:"";
};
_3.prototype.start=function(){
if(typeof (this.__start)=="function"){
this.__start();
}
};
_3.prototype.finish=function(_b){
var _c;
try{
_c=typeof (SIMAdLayoutHandler.adjust.finish)=="function"?true:false;
}
catch(e){
this.__logMsg("finish:\n"+this.__catchMe(e));
}
if(!_c){
return;
}
var f=function(){
SIMAdLayoutHandler.adjustLayoutFor("finish",_b);
};
this.__addOnloadEvent(f);
};
_3.prototype.finishAd=function(id,_d){
if(typeof (_d)!="object"){
_d={};
}
var _e=_d.pos||"";
var _f=id=="shoppingtipp"?id+_e:id;
var _10=_d.triggered_from_iframe?true:false;
var _11=this.__findMaster();
if(id=="shoppingtipps"){
if(_11||_10){
return;
}
try{
SIMAdDeliveryHandler.moveAd(_d.block_id);
}
catch(e){
this.__logMsg("finishAd for "+id+":\n"+this.__catchMe(e));
}
return;
}
if(_11){
this.setAdInfo(_f);
this.syncVars(window,parent,"after");
_11.finishAd(_f,{triggered_from_iframe:true});
var _12=window.onunload;
var _13=this;
window.onunload=function(){
if(typeof (_12)=="function"){
_12();
}
_13.__clearDominoIFrame();
};
}else{
try{
if(_10){
this.__finishIFrameAd(_f);
}else{
this.setAdInfo(_f);
}
var _14=SIMAdDeliveryHandler.exists(_f);
if(id=="shoppingtipp"){
if(!_10){
var _15=_d.block_id;
var _16=_d.last||0;
if(_14){
SIMAdLayoutHandler.renderAd(id,{pos:_e,last:_16});
}
SIMAdDeliveryHandler.controlAdContainer(_f,this.getSelector(_15));
SIMAdLayoutHandler.adjustLayoutFor(id,{pos:_e,last:_16});
}
}else{
if(_14&&!_10){
SIMAdDeliveryHandler.moveAd(_f);
}
SIMAdDeliveryHandler.controlAdContainer(_f,this.getSelector(_f));
SIMAdLayoutHandler.adjustLayoutFor(_f);
}
}
catch(e){
this.__logMsg("finishAd for "+id+":\n"+this.__catchMe(e));
return;
}
}
var _17="";
if(this.__loading_starts[_f]){
_17=" [loading time: "+((new Date().getTime()-this.__loading_starts[_f])/1000)+" secs]";
}
this.__logMsg("finishAd for "+_f+_17,{},2);
};
_3.prototype.isUpdateStart=function(){
return (this.__is_update_start||0);
};
_3.prototype.updateAds=function(_18){
var _19=this.__isDOMSafe();
if(_19==0){
var _1a=this;
setTimeout(function(){
_1a.updateAds(_18);
},50);
return;
}else{
if(_19<0){
}
}
this.__logMsg("updateAds called with arguments:",_18);
this.__initUpdateConfig(_18);
if(this.__mayUpdate()){
this.__startAdUpdate();
}else{
this.__doCallback(0);
}
};
_3.prototype.handleEvent=function(_1b){
if(!_1b||typeof (_1b)!="object"){
return;
}
var _1c=_1b.event;
if(!_1c){
return;
}
var _1d=this.__getUpdateConfig("content_type");
if(_1c=="screen"){
var _1e;
if(_1d=="CPplayer"){
var _1f=_1b.screen_mode||"normal";
_1e=_1f=="normal"?1:0;
}else{
return;
}
this.__logMsg("handleEvent called with arguments:",_1b);
this.__setDisplayForAdIFrames(_1e);
}
};
_3.prototype.loadNextIFrameAd=function(_20,_21){
if(!_20){
if(this.__getUpdateConfig("pausing")){
this.__logMsg("loadNextIFrameAd is pausing",{},3);
return;
}
var _22=this.__getUpdateConfig("pause_after");
if(typeof (_22)!="undefined"&&_22!=null){
if(_22===this.__getCurrentAdID()||_22===this.__getCurrentUpdateIndex()){
this.__setUpdateConfig("pausing",true);
this.__logMsg("loadNextIFrameAd: set pausing after "+this.__getCurrentAdID(),{},3);
return;
}
}
}
var _23=this.__getNextAdID(_20,_21);
if(!_23){
return;
}
var _24=this.__getUpdateConfig("ad_iframe")||this.__getConfig("ad_iframe")||this.__default_ad_iframe;
if(!_24){
return;
}
if(typeof (this.__update_config)!="object"){
this.updateAds();
return;
}
var _25=(this.__getUpdateConfig("content_type")||"");
var url=_24+"?ad_tld="+escape(this.getTLD())+"&path="+escape(this.__getUpdateConfig("path"))+"&ad_id="+escape(_23);
if(_25){
url+="&content_type="+escape(_25);
}
var _26=this.__getUpdateConfig("available_ad_ids")||[];
if(_26.length){
url+="&all_iframe_ads="+escape(_26.join("-"));
}
if(_25.match(/^(video|CPplayer)$/)){
var _27=this.__getUpdateConfig("video_type");
var _28=this.__getUpdateConfig("screen_mode");
if(_27){
url+="&video_type="+escape(_27);
}
if(_28&&_28!="normal"){
url+="&video_screen_mode="+escape(_28);
}
if(this.__getUpdateConfig("ad_exclude_all")){
url+="&video_no_ad=1";
}
if(this.__getUpdateConfig("ad_exclude_sponsor")){
url+="&video_no_sponsor=1";
}
if(this.__getUpdateConfig("ad_exclude_midroll")){
url+="&video_no_midroll=1";
}
if(this.__getUpdateConfig("ad_exclude_overlays")){
url+="&video_no_overlay=1";
}
}
var _29=window.location.search;
if(_29){
var _2a=_29.match(/(?:[ios]+_[a-z]+_[a-z]+|[df][a-z]+_ads_?[a-z]*|ad_[a-z]+)=[a-zA-Z0-9_-]*/g);
if(_2a){
url+="&"+_2a.join("&");
}
}
var ok=false;
try{
ok=this.__getIFrameHandler().loadIFrame(_23,url);
this.__logMsg("loadNextIFrameAd for "+_23+" session id: "+this.getSessionID()+(ok?" successful":" failed"));
if(!ok){
ok=this.loadNextIFrameAd(_20,true);
}
}
catch(e){
this.__logMsg("loadNextIFrameAd for "+_23+":\n"+this.__catchMe(e));
}
return ok?true:false;
};
_3.prototype.resumeUpdate=function(){
var _2b=this.__getUpdateConfig("pausing");
this.__logMsg(_2b?"resumeUpdate started":"resumeUpdate impossible");
if(!_2b){
return;
}
this.__setUpdateConfig("pausing",false);
this.__setUpdateConfig("pause_after",null);
this.loadNextIFrameAd();
};
_3.prototype.resizeIFrame=function(_2c){
var _2d=this.getAdDimensions(_2c);
var x=_2d[0];
var y=_2d[1];
if(x==1&&y==1){
x=y=0;
}
try{
this.__getIFrameHandler().resizeIFrame(_2c,[x,y]);
this.__logMsg("resizeIFrame for "+_2c+": "+[x,y].join("x"),{},3);
}
catch(e){
this.__logMsg("resizeIFrame for "+_2c+":\n"+this.__catchMe(e));
return;
}
return true;
};
_3.prototype.clearAdContainer=function(_2e){
this.clearLog("clear");
var _2f=document.getElementById(this.getSelector(_2e));
if(_2f){
_2f.style.display="none";
}
var _30=document.getElementById(this.getSelector("target",_2e));
if(!_30){
return;
}
var _31=_30.childNodes;
if(!_31){
return;
}
var _32=this.getSelector("iframe",_2e);
var t0=new Date().getTime();
for(var i=_31.length-1;i>=0;i--){
var _33=_31[i];
var id=_33.id||"";
if(id==_32){
this.__clearIFrameAd(_2e);
}else{
this.__freeNode(_33,true);
}
}
var _34=this.showLog("clear");
if(_34){
_34="\n"+_34;
this.clearLog("clear");
}
this.__logMsg("clearAdContainer for "+_2e+" on "+_30.tagName+" "+_30.id+" took "+(new Date().getTime()-t0)+" millisecs"+_34);
};
_3.prototype.clearAdContainers=function(){
if(this.__display_ads_cleared){
return;
}
var _35=this.__getConfig("available_ad_ids")||[];
for(var i=0;i<_35.length;i++){
var _36=_35[i];
this.clearAdContainer(_36);
}
this.__display_ads_cleared=true;
};
_3.prototype.syncVars=function(_37,to,_38){
if(typeof (_37)!="object"||typeof (to)!="object"){
return;
}
if(_37==to){
return;
}
if(typeof (this.__syncVars)=="function"){
this.__syncVars(_37,to,_38);
}
if(typeof (this.__sync_vars)!="object"){
return;
}
var _39=this.__sync_vars[_38]||[];
for(var i=0;i<_39.length;i++){
to[_39[i]]=_37[_39[i]];
}
};
_3.prototype.resetVars=function(){
if(typeof (this.__resetVars)=="function"){
this.__resetVars();
}
if(typeof (this.__sync_vars)!="object"){
return;
}
var _3a;
for(var key in this.__sync_vars){
var _3b=this.__sync_vars[key]||[];
for(var i=0;i<_3b.length;i++){
window[_3b[i]]=_3a;
}
}
};
_3.prototype.hasVideoAds=function(){
if(arguments.length){
this.__setConfig("videoad",arguments[0]);
}
return this.__getConfig("videoad");
};
_3.prototype.getTLD=function(){
return this.__getConfig("tld");
};
_3.prototype.getSessionID=function(){
return this.__session_id||"";
};
_3.prototype.doLog=function(_3c){
if(typeof (_3c)!="undefined"){
this.__setConfig("do_log",parseInt(_3c));
}
return this.__getConfig("do_log")||0;
};
_3.prototype.showLog=function(tmp){
var _3d="";
if(tmp){
if(this.__tmp_logs&&this.__tmp_logs[tmp]){
_3d=this.__tmp_logs[tmp].join("\n");
}
}else{
if(this.__log){
_3d=this.__log.join("\n\n");
if(_3d){
_3d="ALL TIMES ARE GIVEN IN SECS AFTER INIT OF SIMAdWriter\n\n"+_3d;
}
}
}
return _3d;
};
_3.prototype.clearLog=function(tmp){
if(tmp){
if(this.__tmp_logs){
this.__tmp_logs[tmp]=[];
}
}else{
this.__log=[];
}
};
_3.prototype.__isVideoAd=function(_3e){
return _3e&&_3e.match(/^(?:preroll|sponsor|presplit|midroll|postsplit|overlay|postroll)[1..9]/)?true:false;
};
_3.prototype.__getProtocol=function(){
if(!this.__protocol){
if(typeof (this.__setProtocol)=="function"){
this.__setProtocol();
}else{
this.__protocol="http:";
}
}
return this.__protocol;
};
_3.prototype.__initInstance=function(){
try{
this.__extend();
}
catch(e){
this.__logMsg("__initInstance:\n"+this.__catchMe(e));
}
this.__setSessionID();
if(typeof (this.__setSpecialProperties)=="function"){
this.__setSpecialProperties();
}
if(typeof (this.__setSyncVars)=="function"){
this.__setSyncVars();
}
if(!document.getElementById(this.__DOM_SAFE_ID)){
document.write("<div id=\""+this.__DOM_SAFE_ID+"\" style=\"display:none\"></div>");
}
try{
var _3f=top.location.search.match(/simadwriter_debug=([0-9]+)/);
if(_3f){
this.doLog(_3f[1]);
}
}
catch(e){
this.__logMsg("__initInstance:\n"+this.__catchMe(e));
}
if(this.adType!="DUMMY"){
this.__logMsg("new\nadType: "+this.adType,this.__config);
}
};
_3.prototype.__addOnloadEvent=function(f){
if(window.addEventListener){
window.addEventListener("load",f,false);
}else{
if(window.attachEvent){
window.attachEvent("onload",f);
}else{
}
}
};
_3.prototype.__extend=function(){
if(!_3.EXTENSIONS){
return;
}
var _40=_3.EXTENSIONS[this.adType];
if(typeof (_40)!="object"){
return;
}
for(var key in _40){
this[key]=_40[key];
}
};
_3.prototype.__setSessionID=function(){
var _41=this.__findMaster();
var _42=String(Math.random()).substring(2,11);
this.__session_id=_41?(_41.getSessionID()||_42):_42;
return this.__session_id;
};
_3.prototype.__startAdUpdate=function(){
this.__setSessionID();
this.clearAdContainers();
this.__clearDebugPanel();
this.resetVars();
this.bannerAdRequests={};
this.videoAdRequests={};
this.__dimensions={};
this.__adtrace={};
this.__loading_starts={};
this.__display_ads_cleared=false;
this.loadNextIFrameAd(true);
};
_3.prototype.__mayUpdate=function(){
var ok=false;
if(this.adType=="DUMMY"){
ok=false;
}else{
var now=new Date().getTime();
ok=now>(this.__last_update_time||0)+1000*(this.__getUpdateConfig("interval")||0)?true:false;
if(ok){
this.__last_update_time=now;
}
}
return ok;
};
_3.prototype.__findMaster=function(key){
if(window==parent){
return;
}
if(!this.__master){
try{
if(parent.SIMAdWriter){
this.__master=parent.SIMAdWriter;
}
}
catch(e){
this.__logMsg("__findMaster:\n"+this.__catchMe(e));
}
}
return this.__master;
};
_3.prototype.__getConfig=function(key){
if(!key||typeof (this.__config)!="object"){
return;
}
return this.__config[key];
};
_3.prototype.__setConfig=function(key,_43){
if(!key){
return;
}
if(typeof (this.__config)!="object"){
this.__config={};
}
this.__config[key]=_43;
};
_3.prototype.__initUpdateConfig=function(_44){
this.__update_config={};
this.__video_ads_skip={};
if(typeof (_44)=="object"){
for(var key in _44){
var _45=_44[key];
if(key=="pause_after"){
if(typeof (_45)=="string"){
if(_45.match(/^[0-9]+$/)){
_45=Number(_45);
}
}else{
if(typeof (_45)!="number"){
continue;
}
}
}else{
if(key=="interval"){
_45=Number(_45)||0;
}
}
this.__setUpdateConfig(key,_45);
}
}
var _46=(this.__getUpdateConfig("triggered_for")||"");
if(_46=="CPplayer"){
this.__setUpdateConfig("content_type","CPplayer");
}else{
if(_46=="video"){
this.__setUpdateConfig("content_type","video");
}else{
if(_46=="contentgallery"){
this.__setUpdateConfig("content_type","gallery");
}
}
}
if(!this.__getUpdateConfig("interval")){
this.__setUpdateConfig("interval",0);
}
if(!this.__getUpdateConfig("available_ad_ids")){
this.__setUpdateConfig("available_ad_ids",(this.__getConfig("available_ad_ids")||[]));
}
if(!this.__getUpdateConfig("path")){
this.__setUpdateConfig("path",(this.__getConfig("path")||"/"));
}
if(!this.__getUpdateConfig("content_type")){
this.__setUpdateConfig("content_type",(this.__getConfig("content_type")||""));
}
if(!this.__getUpdateConfig("event")){
this.__setUpdateConfig("event","");
}
if(!this.__getUpdateConfig("screen_mode")){
this.__setUpdateConfig("screen_mode","normal");
}
var _47=this.__getUpdateConfig("content_type");
var _48=this.__getUpdateConfig("screen_mode");
var _49=this.__getUpdateConfig("available_ad_ids");
var _4a=this.__getUpdateConfig("callback_caller");
if(typeof (_4a)!="undefined"&&String(_4a).match(/^[0-9]+$/)&&_4a<_49.length){
this.__setUpdateConfig("callback_caller",_49[_4a]);
}
if(this.__getUpdateConfig("callback_function")){
if(!this.__getUpdateConfig("callback_caller")){
var _49=this.__getUpdateConfig("available_ad_ids");
if(_49.length){
this.__setUpdateConfig("callback_caller",_49[0]);
}
}else{
}
}
var _4b=[];
for(var i=0;i<_49.length;i++){
var id=_49[i];
if(id!="popup1"&&_48.match(/^(?:fullsize|fullscreen)$/)){
continue;
}
_4b.push(id);
}
this.__setUpdateConfig("available_ad_ids",_4b);
if(this.__getUpdateConfig("ad_exclude_all")){
this.__video_ads_skip.all=1;
}
if(this.__getUpdateConfig("ad_exclude_sponsor")){
this.__video_ads_skip.sponsor=1;
}
if(this.__getUpdateConfig("ad_exclude_midroll")){
this.__video_ads_skip.midroll=1;
}
if(this.__getUpdateConfig("ad_exclude_overlays")){
this.__video_ads_skip.overlay=1;
}
this.__logMsg("__initUpdateConfig",this.__update_config,3);
};
_3.prototype.__getUpdateConfig=function(key){
if(!key||typeof (this.__update_config)!="object"){
return;
}
return this.__update_config[key];
};
_3.prototype.__setUpdateConfig=function(key,_4c){
if(!key){
return;
}
if(typeof (this.__update_config)!="object"){
this.__update_config={};
}
this.__update_config[key]=_4c;
};
_3.prototype.__doCallback=function(_4d){
var _4e=this.__getUpdateConfig("callback_function");
if(!_4e){
return;
}
var _4f=this.__getUpdateConfig("callback_object");
if(!_4f){
var _50=this.__getUpdateConfig("callback_id");
_4f=_50?document.getElementById(_50):window;
}
if(!_4f){
return;
}
var _51={init:_4d?1:0,ad_type:this.adType,tld:this.getTLD()};
var _52=(this.__getUpdateConfig("triggered_for")||"");
try{
_4f[_4e](_51);
this.__logMsg("callback function "+_4e+" called with arguments:",_51);
}
catch(e){
this.__logMsg("__doCallback:\n"+this.__catchMe(e)+"\n"+"callback function "+_4e+" FAILED with arguments:",_51);
return;
}
return true;
};
_3.prototype.__finishIFrameAd=function(_53){
if(this.__getUpdateConfig("callback_function")){
var _54=(this.__getUpdateConfig("callback_caller")||"");
if(_54==_53){
this.__doCallback(1);
}
}
this.resizeIFrame(_53);
this.__logMsg("__finishIFrameAd for "+_53,{},2);
};
_3.prototype.__freeNode=function(_55,_56){
try{
if(_55.nodeType==1){
var _57=["onabort","onblur","onchange","onclick","ondblclick","onerror","onfocus","onkeydown","onkeypress","onkeyup","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onreset","onselect","onsubmit","onunload"];
for(var i=0;i<_57.length;i++){
var k=_57[i];
if(typeof (_55[k])!="function"){
continue;
}
var _58=String(_55[k]);
_58=_58.replace(/^(function *[^\(]*)(?:.|\s|\n)+/,"$1");
this.__logMsg("Destroying event handler from "+_55.tagName+" "+(_55.id||"")+" "+k+" "+_58,{},3,"clear");
_55[k]=null;
}
var _59=_55.childNodes;
if(_59){
for(var i=_59.length-1;i>=0;i--){
this.__freeNode(_59[i],false);
}
}
}
if(_56&&_55.parentNode){
this.__logMsg("Removing node "+(_55.tagName||"type "+_55.nodeType)+" "+(_55.id||"")+" "+(_55.src||""),{},3,"clear");
_55.parentNode.removeChild(_55);
}
}
catch(e){
this.__logMsg("__freeNode for "+_55.id+":\n"+this.__catchMe(e));
}
};
_3.prototype.__clearDominoIFrame=function(){
if(!this.__findMaster()){
return;
}
var t0=new Date().getTime();
this.__freeNode(document.body);
var _5a=this.showLog("clear");
if(_5a){
_5a="\n"+_5a;
this.clearLog("clear");
}
var _5b=window.frameElement?window.frameElement.id:"?";
this.__logMsg("__clearDominoIFrame for "+_5b+" on body"+" took "+(new Date().getTime()-t0)+" millisecs"+_5a);
};
_3.prototype.__clearIFrameAd=function(_5c){
SIMAdLayoutHandler.setAttributeForElement(this.getSelector(_5c),"display","none");
var _5d=this.__getIFrameHandler();
_5d.resizeIFrame(_5c,[0,0]);
this.__logMsg("__clearIFrameAd for "+_5c,{},3,"clear");
try{
_5d.loadIFrame(_5c,"about:blank");
}
catch(e){
this.__logMsg("__clearIFrameAd for "+_5c+":\n"+this.__catchMe(e));
return;
}
};
_3.prototype.__clearIFrameAds=function(){
var _5e=this.__getConfig("available_ad_ids")||[];
for(var i=0;i<_5e.length;i++){
var _5f=_5e[i];
this.__clearIFrameAd(_5f);
}
};
_3.prototype.__setDisplayForAdIFrames=function(_60){
var _61=this.__getUpdateConfig("available_ad_ids")||[];
if(!_61.length){
return;
}
for(var i=0;i<_61.length;i++){
var _62=_61[i];
var _63=this.getSelector(_62);
try{
this.__getIFrameHandler().setIFrameDisplay(_62,_60);
if(_60){
SIMAdDeliveryHandler.controlAdContainer(_62,_63);
}else{
var _64=document.getElementById(_63);
if(_64){
_64.style.display="none";
}
}
}
catch(e){
this.__logMsg("__setDisplayForAdIFrames for "+_62+":\n"+this.__catchMe(e));
}
}
};
_3.prototype.__clearDebugPanel=function(){
var _65="sim_ad_debug";
var _66=document.getElementById(_65);
if(_66){
_66.innerHTML="";
}
};
_3.prototype.__getCurrentUpdateIndex=function(){
return this.__update_index;
};
_3.prototype.__getCurrentAdID=function(){
var _67=this.__getUpdateConfig("available_ad_ids")||[];
var _68=_67.length;
var _69=this.__getCurrentUpdateIndex();
return !_68||typeof (_69)!="number"||_69>=_68?"":_67[_69]||"";
};
_3.prototype.__getNextAdID=function(_6a,_6b){
var _6c=this.__getUpdateConfig("available_ad_ids")||[];
var _6d=_6c.length;
if(!_6d){
this.__updating=false;
return;
}
if(!_6a&&!this.__updating){
return;
}
if(_6a){
this.__updating=true;
if(!_6b){
this.__update_index=0;
}else{
++this.__update_index;
}
this.__is_update_start=true;
}else{
++this.__update_index;
}
if(!_6a||this.__update_index>=_6d){
this.__is_update_start=false;
if(this.__update_index>=_6d){
this.__updating=false;
this.__update_index=null;
return;
}
}
return _6c[this.__update_index];
};
_3.prototype.__getIFrameID=function(_6e){
return this.getSelector("iframe",_6e);
};
_3.prototype.__getIFrameHandler=function(){
if(!this.__ad_iframe_handler){
this.__ad_iframe_handler=new SIMAdIFrameHandler();
}
return this.__ad_iframe_handler;
};
_3.prototype.__skipVideoAdRequest=function(_6f){
if(!this.hasVideoAds()){
return true;
}
if(!this.__video_ads_skip){
return false;
}
if(this.__video_ads_skip.all){
return true;
}
if(_6f){
if(_6f.match(/^(presplit|midroll|postsplit)/)&&this.__video_ads_skip.midroll){
return true;
}
if(_6f.match(/^overlay/)&&this.__video_ads_skip.overlay){
return true;
}
if(_6f.match(/^sponsor/)&&this.__video_ads_skip.sponsor){
return true;
}
}
return false;
};
_3.prototype.__isDOMSafe=function(){
var _70;
if(!this.__dom_check){
var _71=document.getElementById(this.__DOM_SAFE_ID);
var _72=!/msie/.test(window.navigator.userAgent.toLowerCase())||window.opera?1:0;
var _73=_72||(_71&&_71.doScroll)?0:1;
this.__dom_check={counter:1,safe:_72,container:_71,hopeless:_73,max_rounds:_73?10:40};
}
if(this.__dom_check.safe){
_70=1;
}else{
if(this.__dom_check.hopeless){
if(++this.__dom_check.counter>this.__dom_check.max_rounds){
_70=-1;
}else{
_70=0;
}
}else{
try{
this.__dom_check.container.doScroll("left");
_70=1;
}
catch(e){
this.__logMsg("__isDOMSafe:\n"+this.__catchMe(e));
_70=++this.__dom_check.counter>this.__dom_check.max_rounds?-1:0;
}
}
if(_70!=0){
this.__dom_check.safe=1;
}
if(_70<0&&this.__dom_check.safe){
this.__logMsg("__isDOMSafe check impossible. Considered safe in round "+this.__dom_check.counter);
}else{
if(_70>0){
this.__logMsg("__isDOMSafe ok in round "+this.__dom_check.counter);
}
}
}
return _70;
};
_3.prototype.__logMsg=function(msg,_74,_75,tmp){
if(!_75){
_75=0;
}
var _76=this.doLog();
if(!_76||_75>_76){
return;
}
if(typeof (msg)=="undefined"){
msg="";
}
if(typeof (_74)=="object"){
var x="";
for(var k in _74){
if(k=="industries"&&typeof (_74[k])=="object"){
var y="";
for(var m in _74[k]){
if(!_74[k][m]||!_74[k][m].industry){
continue;
}
y+="    "+m+":\n";
if(typeof (_74[k][m])=="object"){
for(var n in _74[k][m]){
if(n=="indtarget"){
continue;
}
y+=["        "+n,_74[k][m][n]].join(": ")+"\n";
}
}
}
x+=y?k+":\n"+y:k+": [EMPTY OBJECT]\n";
}else{
x+=[k,_74[k]].join(": ")+"\n";
}
}
if(x){
msg+="\n"+x.replace(/\n+$/,"");
}
}
if(tmp){
if(!this.__tmp_logs){
this.__tmp_logs={};
}
if(!this.__tmp_logs[tmp]){
this.__tmp_logs[tmp]=[];
}
this.__tmp_logs[tmp].push(msg);
}else{
var _77=this.__findMaster();
if(_77){
var _78=window.frameElement;
var _79=_78?_78.id:"";
_77.__logMsg(msg+"\nfrom domino iframe "+_79,{},_75,tmp);
}else{
var _7a=(new Date().getTime()-this.__start_time)/1000;
this.__log.push("* "+_7a+" secs\n"+msg);
}
}
};
_3.prototype.__catchMe=function(e){
return "<span style=\"color:red\">"+(typeof (e)=="string"?e:[e.name,e.message].join("\n"))+"</span>\n";
};
}
if(!_3.__init_ad_type){
if(this.adType!="DUMMY"){
_3.__init_ad_type=1;
}
var _7b=["doAd","getVideoAdRequest","setAdInfo","loadScript"];
for(var i=0;i<_7b.length;++i){
var _7c=_7b[i];
if(!_3.prototype[_7c]){
_3.prototype[_7c]=function(){
return "";
};
}
}
}
this.__initInstance();
};
SIMAdHandler.EXTENSIONS={};
SIMAdHandler.EXTENSIONS.SHARED={setAdInfo:function(_7d,_7e){
var _7f=this.__getMyAdID(_7d);
if(!_7f){
return;
}
if(typeof (_7e)=="undefined"){
_7e={};
}
var _80=_7e.info||"";
if(!_80){
_80="assume existence";
}
if(!_80){
_80="fallback";
}
var _81=_7e.dimensions;
if(!_81&&this.__dimension_map){
_81=this.__dimension_map[_7d];
}
if(!_81){
_81=[0,0];
}
this.__adtrace[_7d]=_80+" "+_81.join("x")+" ("+_7f+")";
this.__dimensions[_7d]=_81;
var msg="setAdInfo for "+_7d+" ("+_7f+")";
var _82=this.__findMaster();
if(_82){
_82.setAdInfo(_7d,{info:_80,dimensions:_81});
msg+=" - setting iframe and master info";
}
this.__logMsg(msg,{},3);
},__startAdUpdate:function(){
this.__doCallback(0);
},__setSyncVars:function(){
this.__sync_vars={};
},__getMyAdID:function(_83){
var _84=this.__SOI_to_MY[_83];
if(!_84){
_84="";
}
return _84;
}};
SIMAdHandler.EXTENSIONS.SOI={__setSyncVars:SIMAdHandler.EXTENSIONS.SHARED.__setSyncVars,doAd:function(_85){
if(!window.SoiAd||typeof (SoiAd.get)!="function"){
return;
}
if(!this.__adserver_call){
this.__adserver_call=SoiAd.get;
}
this.__logMsg("doAd for "+_85);
this.__loading_starts[_85]=new Date();
var _86="";
try{
_86=SoiAd.get(_85)||"";
if(_86){
document.write(_86);
}
}
catch(e){
this.__logMsg("doAd for "+_85+":\n"+this.__catchMe(e));
}
var _87=this.__findMaster();
var _88=_86.match(/src=["']?([^"'< ]+)/);
var src=_88&&_88[1]?_88[1]:"";
this.bannerAdRequests[_85]=src;
if(_87){
_87.bannerAdRequests[_85]=src;
}
},getVideoAdRequest:function(_89,_8a){
if(this.__skipVideoAdRequest(_89)){
return "";
}
if(!_8a||typeof (_8a)!="object"){
_8a={};
}
var _8b="";
if(window.SoiAd&&typeof (SoiAd.videoAd)=="function"){
var _8c={};
if(typeof (_8a.industries)=="object"){
_8c.industries=_8a.industries;
}
if(_8a.prefetch){
_8c.prefetch=true;
}
_8b=SoiAd.videoAd(_89,_8c);
}
this.videoAdRequests[_89]=_8b;
this.__logMsg("SoiAd.videoAd for "+_89,_8a);
if(_8b&&_89.match(/(presplit|midroll)/)){
this.clearAdContainers();
}
return _8b;
},setAdInfo:function(_8d,_8e){
if(typeof (_8e)=="undefined"){
_8e={};
}
var _8f=_8e.info||"";
if(!_8f&&window.soi_adtrace){
var _90=unescape(window.soi_adtrace).match(new RegExp(_8d+"(?: *-? *)?(.*)"));
if(_90){
_8f=_90[1];
}
}
if(!_8f){
_8f="fallback";
}
var _91=_8e.dimensions;
if(!_91&&window.soi_dimension){
_91=window.soi_dimension[_8d];
}
if(!_91){
_91=[0,0];
}
this.__adtrace[_8d]=_8f;
this.__dimensions[_8d]=_91;
var msg="setAdInfo for "+_8d;
var _92=this.__findMaster();
if(_92){
_92.setAdInfo(_8d,{info:_8f,dimensions:_91});
msg+=" - setting iframe and master info";
}
this.__logMsg(msg,{},3);
},__setProtocol:function(){
this.__protocol="http:";
},__syncVars:function(_93,to,_94){
if(_93==to){
return;
}
if(_94!="after"){
return;
}
if(window.SoiAd&&typeof (SoiAd.syncVars)=="function"){
SoiAd.syncVars(_93,to);
}
},__resetVars:function(){
if(window.SoiAd&&typeof (SoiAd.resetVars)=="function"){
SoiAd.resetVars();
}
},__start:function(){
var _95=this.__findMaster();
if(_95){
if(_95.isUpdateStart()){
_95.hasVideoAds(this.hasVideoAds());
}else{
_95.syncVars(parent,window,"after");
}
}
},__isType:function(_96,_97){
var _98=false;
if(window.SoiAd&&typeof (SoiAd.isType)=="function"){
var _99;
switch(_97){
case "PB2":
_99="isPowerbanner";
break;
case "pushdown":
_99="isPushdown";
break;
case "wallpaper":
_99="isWallpaper";
break;
case "wp":
_99="isWallpaper";
break;
case "PR1":
_99="isPowerrectangle";
break;
case "halfpage":
_99="isHalfpage";
break;
case "powercurtain":
_99="isPowercurtain";
break;
case "expand":
_99="isExpandable";
break;
}
try{
_98=_99?SoiAd[_99](_96):SoiAd.isType(_96,_97);
}
catch(e){
_98=SoiAd.isType(_96,_97);
}
}
return _98;
},__exists:function(_9a){
return window.SoiAd&&typeof (SoiAd.exists)=="function"?SoiAd.exists(_9a):false;
},__isBlockpixel:function(_9b){
return window.SoiAd&&typeof (SoiAd.isBlockpixel)=="function"?SoiAd.isBlockpixel(_9b):false;
},__reserveSowefoSpace:function(_9c){
return window.SoiAd&&typeof (SoiAd.reserveSowefoSpace)=="function"?SoiAd.reserveSowefoSpace(_9c):false;
}};
SIMAdHandler.EXTENSIONS.OAS={doAd:function(_9d){
if(typeof (window.OAS_RICH)!="function"){
return;
}
if(!this.__adserver_call){
this.__adserver_call=window.OAS_RICH;
}
var _9e=this.__getMyAdID(_9d);
if(!_9e){
return;
}
this.__logMsg("doAd for "+_9d+" ("+_9e+")");
this.__loading_starts[_9d]=new Date();
window.OAS_RICH(_9e);
},getVideoAdRequest:function(_9f,_a0){
if(this.__skipVideoAdRequest(_9f)){
return "";
}
if(!_a0||typeof (_a0)!="object"){
_a0={};
}
var _a1=this.__getMyAdID(_9f);
var _a2=this.__buildAdServerURI({method:"sx",ad_id:_a1,params:{no_sowefo:1}});
this.videoAdRequests[_9f]=_a2;
this.__logMsg("getVideoAdRequest for "+_9f,_a0);
if(!_a2){
return "";
}
if(_a2&&_9f.match(/(presplit|midroll)/)){
}
if(typeof (_a0.industries)=="object"){
var _a3={};
var _a4="";
for(var key in _a0.industries){
if(!_a0.industries[key]){
continue;
}
var _a5=String(_a0.industries[key].industry||"");
_a5=_a5.replace(/^ +/,"").replace(/ +$/,"");
if(!_a5){
continue;
}
if(_a3[_a5]){
continue;
}
_a3[_a5]=1;
if(_a4){
_a4+="&";
}
_a4+="ind="+escape(_a5);
}
if(_a4){
_a2+="&"+_a4;
}
}
return _a2;
},loadScript:function(_a6){
var src=this.__buildAdServerURI(_a6);
if(!src){
return;
}
document.write("<script src=\""+src+"\"></script>");
this.__logMsg("loadScript:\n"+src);
},setAdInfo:function(_a7,_a8){
var _a9=this.__getMyAdID(_a7);
if(!_a9){
return;
}
if(typeof (_a8)=="undefined"){
_a8={};
}
var _aa=_a8.info||"";
var _ab=document.getElementById("oasinfo_"+_a9);
if(!_aa&&_ab){
_aa=_ab.title;
}
if(!_aa){
_aa="fallback";
}
var _ac=_a8.dimensions;
if(!_ac&&_ab){
x=parseInt(_ab.style.width||0);
y=parseInt(_ab.style.height||0);
_ac=[x||0,y||0];
}
if(!_ac){
_ac=[0,0];
}
this.__dimensions[_a7]=_ac;
this.__adtrace[_a7]=_aa+" "+_ac.join("x")+" ("+_a9+")";
var msg="setAdInfo for "+_a7+" ("+_a9+")";
var _ad=this.__findMaster();
if(_ad){
_ad.setAdInfo(_a7,{info:_aa,dimensions:_ac});
msg+=" - setting iframe and master info";
}
this.__logMsg(msg,{},3);
},__setProtocol:function(){
this.__protocol="http:";
},__setSpecialProperties:function(){
var _ae=this.__getProtocol();
this.__adserver=_ae+"//austria1.adverserve.net/RealMedia/ads";
},__setSyncVars:function(){
this.__sync_vars={};
},__start:function(){
var _af=this.__findMaster();
if(_af){
if(_af.isUpdateStart()){
_af.hasVideoAds(this.hasVideoAds());
}
}
},__getMyAdID:function(_b0){
var _b1;
if(_b0.match(/^postsplit[1..5]/)){
}else{
if(this.__isVideoAd(_b0)){
_b1=_b0;
}
}
if(!_b1){
var _b2={popup1:"Popup",fullbanner1:"Top1",fullbanner2:"Top",rectangle1:"Middle1",rectangle2:"Position1",rectangle3:"Position2",maxiad1:"Middle2",skyscraper1:"Right1"};
_b1=_b2[_b0];
}
return _b1||"";
},__buildAdServerURI:function(_b3){
if(typeof (_b3)!="object"){
return "";
}
if(!this.__adserver){
return "";
}
var _b4=_b3.method;
if(!_b4){
return "";
}
if(_b4.match(/^(jx|sx)$/)){
if(!_b3.ad_id||(_b4=="sx"&&!this.__isVideoAd(_b3.ad_id))){
return "";
}
var _b5=this.__getMyAdID(_b3.ad_id);
if(!_b5){
return "";
}
}
var _b6="";
var _b7="";
if(_b4=="sx"){
_b6="Video1";
_b7="videotype="+escape(_b5);
}else{
if(_b4.match(/^(?:mjx|jx)$/)){
var _b8=this.__getConfig("available_ad_ids")||[];
for(var i=0;i<_b8.length;i++){
var _b9=this.__getMyAdID(_b8[i]);
if(!_b9){
continue;
}
if(_b6){
_b6+=",";
}
_b6+=_b9;
}
if(!_b6){
return "";
}
if(_b4=="jx"){
_b6+="!"+_b5;
}
var _ba=this.__getUpdateConfig("content_type")||this.__getConfig("content_type");
_b7="content_type="+escape(_ba);
var _bb=_b3.params||{};
for(var key in _bb){
var _bc=_bb[key];
if(typeof (_bc)=="undefined"||!String(_bc).length){
continue;
}
if(_b7){
_b7+="&";
}
_b7+=[escape(key),escape(_bb[key])].join("=");
}
}else{
return "";
}
}
var _bd=SIMAdLayoutHandler.getScreenDimensions();
if(_bd.length&&_bd[0]){
if(_b7){
_b7+="&";
}
_b7+="width="+_bd[0];
}
try{
var _be=top.location.search.match(/(showroom)=([a-zA-Z0-9_-]*)/);
if(_be){
if(_b7){
_b7+="&";
}
_b7+=[_be[1],_be[2]||"standard"].join("=");
}
}
catch(e){
this.__logMsg("__buildAdServerURI:\n"+this.__catchMe(e));
}
var _bf=this.__getUpdateConfig("path")||this.__getConfig("path")||"/";
_bf=_bf.replace(/\/+$/,"");
var _c0=_bf.split("/");
if(_c0.length>4){
_c0.length=4;
}else{
if(_c0.length<4){
_c0.push("home");
}
}
_bf=_c0.join("/");
return this.__adserver+"/adstream_"+_b4+".ads"+"/"+this.__getConfig("site")+this.getTLD()+_bf+"/1"+this.getSessionID()+"@"+_b6+(_b7?"?"+_b7:"");
}};
function SIMAdIFrameHandler(){
var _c1=arguments.callee;
if(!_c1.__init){
_c1.__init=1;
_c1.prototype.loadIFrame=function(_c2,url){
if(!url){
url="about:blank";
}
try{
var _c3=this.__getIFrameWindow(_c2);
_c3.location.replace(url);
}
catch(e){
try{
var _c4=document.getElementById(this.getSelector("iframe",_c2));
_c4.src=url;
}
catch(e){
return;
}
}
return true;
};
_c1.prototype.resizeIFrame=function(_c5,_c6){
var _c7=this.getSelector("iframe",_c5);
var _c8=document.getElementById(_c7);
if(!_c8){
return;
}
_c8.style.display="inline-block";
if(_c8.style.border){
_c8.style.borderStyle="none";
}
_c8.style.width=_c6[0]+"px";
_c8.style.height=_c6[1]+"px";
};
_c1.prototype.setIFrameDisplay=function(_c9,_ca){
var _cb=this.getSelector("iframe",_c9);
var _cc=document.getElementById(_cb);
if(!_cc){
return;
}
_cc.style.display=_ca?"inline-block":"none";
};
_c1.prototype.__getIFrameWindow=function(_cd){
var _ce=this.__getAdIFrame(_cd);
if(!_ce){
return;
}
var _cf=_ce.contentWindow;
if(!_cf){
try{
_cf=_ce.contentDocument.defaultView;
}
catch(e){
try{
var _d0=this.getSelector("iframe",_cd);
_cf=window.frames[_d0];
}
catch(e){
}
}
}
return _cf;
};
_c1.prototype.__getAdIFrame=function(_d1){
if(!_d1){
return;
}
var _d2=this.getSelector("iframe",_d1);
var _d3=document.getElementById(_d2);
if(!_d3){
var _d4=this.getSelector("target",_d1);
var _d5=document.getElementById(_d4);
if(!_d5){
return;
}
var _d6=0;
var _d7=0;
var _d8=0;
var _d9="none";
_d3=document.createElement("iframe");
_d3.id=_d2;
_d3.name=_d2;
_d3.style.width=_d6+"px";
_d3.style.height=_d7+"px";
_d3.style.borderStyle=_d9;
_d3.style.borderWidth=_d8+"px";
_d3.style.padding="0px";
_d3.style.margin="0px";
_d3.src="about:blank";
_d3.frameBorder=_d8;
_d3.border=_d8;
_d3.scrolling="no";
_d3.allowTransparency=true;
_d5.appendChild(_d3);
_d5=null;
}
return _d3;
};
_c1.prototype.getSelector=function(){
return (SIMAdWriter.getSelector).apply(SIMAdWriter,arguments);
};
}
};
window.SIMAdDeliveryHandler={isType:function(_da,_db){
var _dc=false;
if(typeof (SIMAdWriter.__isType)=="function"){
_dc=SIMAdWriter.__isType(_da,_db);
}else{
var _dd=SIMAdWriter.getAdtrace(_da);
if(!_dd){
return false;
}
if(typeof (_db)=="undefined"){
_db="";
}
_dc=(new RegExp(_da+".+"+_db,"i")).test(_dd)?true:false;
}
return _dc;
},exists:function(_de){
var _df=false;
if(typeof (SIMAdWriter.__exists)=="function"){
_df=SIMAdWriter.__exists(_de);
}else{
_df=this.isType(_de)&&!this.isType(_de,"fallback")?true:false;
}
return _df;
},isBlockpixel:function(_e0){
var _e1=false;
if(typeof (SIMAdWriter.__isBlockpixel)=="function"){
_e1=SIMAdWriter.__isBlockpixel(_e0);
}else{
_e1=this.isType(_e0,"block[_-]?pixel")?true:false;
}
return _e1;
},reserveSowefoSpace:function(_e2){
var _e3=false;
if(typeof (SIMAdWriter.__reserveSowefoSpace)=="function"){
_e3=SIMAdWriter.__reserveSowefoSpace(_e2);
}else{
_e3=this.isType(_e2,"block[_-]?pixel.+"+_e2)?true:false;
}
return _e3;
},controlAdContainer:function(_e4,_e5){
if(!_e5){
_e5=_e4;
}
var _e6=document.getElementById(_e5);
if(!_e6){
return _e7;
}
var _e7=this.exists(_e4)?true:false;
if(_e7){
SIMAdLayoutHandler.removeStyleAttribute(_e6,"inline-block");
if(this.reserveSowefoSpace(_e4)||(_e4=="fullbanner2"&&this.isType(_e4,"wallpaper"))){
_e6.style.backgroundColor="transparent";
_e6.style.backgroundImage="none";
_e6.style.borderColor="transparent";
if(SIMAdLayoutHandler.getCurrentStyle(_e6,"border-left-color")=="#000000"){
_e6.style.borderStyle="none";
}
}else{
if(this.isBlockpixel(_e4)){
_e6.style.display="none";
return;
}
}
}else{
_e6.style.display="none";
}
return _e7;
},moveAd:function(id){
var _e8=this.getSelector("source",id);
var _e9=this.getSelector("target",id);
var _ea=document.getElementById(_e8);
if(!_ea){
return;
}
var _eb=document.getElementById(_e9);
if(!_eb){
return;
}
var _ec=_ea.getElementsByTagName("script");
for(var i=0;i<_ec.length;i++){
if(!_ec[i].src){
continue;
}
_ec[i].removeAttribute("src");
}
var _ed=_eb.parentNode;
_ed.replaceChild(_ea,_eb);
_ea.id=_e9;
_eb=null;
_ea=null;
_ed=null;
},getSelector:function(){
return (SIMAdWriter.getSelector).apply(SIMAdWriter,arguments);
}};
window.SIMAdLayoutHandler={callMethod:function(_ee,_ef,_f0){
if(!_ee){
return;
}
var _f1=this[_ee];
if(typeof (_f1)!="object"){
return;
}
var _f2=_f1[_ef];
if(typeof (_f2)!="function"){
return;
}
_f2.call(this,_f0);
},adjustLayoutFor:function(_f3,_f4){
return this.callMethod("adjust",_f3,_f4);
},renderAd:function(_f5,_f6){
return this.callMethod("render",_f5,_f6);
},isType:function(_f7,_f8){
return SIMAdDeliveryHandler.isType(_f7,_f8);
},getAdDimensions:function(_f9){
return SIMAdWriter.getAdDimensions(_f9)||[0,0];
},getOffsetDimensions:function(_fa){
return SIMAdWriter.getOffsetDimensions(_fa);
},exists:function(_fb){
return SIMAdDeliveryHandler.exists(_fb);
},getAdType:function(){
return SIMAdWriter.adType;
},getSelector:function(){
return (SIMAdWriter.getSelector).apply(SIMAdWriter,arguments);
},setAttributeForElement:function(arg,_fc,_fd){
var _fe=typeof (arg)=="string"?document.getElementById(arg):arg;
if(!_fe){
return;
}
if(_fc=="class"){
_fe.className=_fd;
}else{
if(_fc=="id"){
_fe.id=_fd;
}else{
if(_fc=="readOnly"){
_fe.readOnly=_fd;
}else{
var _ff=_fe.currentStyle&&_fe.currentStyle.hasLayout?true:false;
_fe.style[_fc]=_fd;
if(_ff&&!_fe.currentStyle.hasLayout){
_fe.style.zoom=1;
}
}
}
}
return true;
},getScreenDimensions:function(){
var _100=[];
try{
var x=top.innerWidth;
if(typeof (x)!="undefined"){
_100.push(x);
_100.push(top.innerHeight);
}else{
var t=top.document;
var _101=t.documentElement||t.body;
if(_101){
x=_101.clientWidth;
}
if(typeof (x)!="undefined"){
_100.push(x);
_100.push(_101.clientHeight);
}else{
_100.push(t.body.offsetWidth);
_100.push(t.body.offsetHeight);
}
}
}
catch(e){
}
return _100;
},getCurrentStyle:function(arg,_102){
var _103=typeof (arg)=="string"?document.getElementById(arg):arg;
if(!_103){
return;
}
var _104=document.defaultView?document.defaultView.getComputedStyle:window.getComputedStyle;
if(typeof (_104)=="function"){
var _105=_104(_103,null);
if(_105){
var _106=_102.match(/^(?:cssFloat|styleFloat)$/)?"float":_102.replace(/([A-Z])/g,function(x,c){
return "-"+c.toLowerCase();
});
value=_105.getPropertyValue(_106);
}
}else{
var _105=_103.currentStyle;
if(_105){
var _106=_102.match(/^(?:float|cssFloat)$/)?"styleFloat":_102.replace(/-(.)/g,function(x,c){
return c.toUpperCase();
});
value=_105[_106];
}
}
return value;
},removeStyleAttribute:function(arg,_107){
var elem=typeof (arg)=="string"?document.getElementById(arg):arg;
if(!elem){
return;
}
var xxx=elem.getAttribute("style");
elem.removeAttribute("style");
if(elem.currentStyle){
elem.className=elem.className||"";
}
if(_107&&elem.style.display&&elem.style.display!=_107){
elem.style.display=_107;
}
if(elem.currentStyle&&!elem.currentStyle.hasLayout){
elem.style.zoom=1;
}
},adjust:{},render:{}};
if(!window.soi_adtrace){
soi_adtrace="";
}
if(!window.soi_ad){
soi_ad="";
}
if(!window.SIMAdWriter){
window.SIMAdWriter=new SIMAdHandler("DUMMY",{});
}


