// Core.Packed: 10/01/2012 12:07:25
!("Adman" in window)&&(function(){
window.xpath=!!(document.evaluate);
window.opera=window[document.isSameNode?"opera95":"opera9"]=window.opera;
if(window.ActiveXObject){
window.ie=(window[document.implementation?(window.XMLHttpRequest||document.querySelector?(document.querySelector?"ie8":"ie7"):"ie6"):"ie5"])=true;
}else{
if(document.childNodes&&!document.all&&!navigator.taintEnabled&&!window.mozIndexedDB){
window.webkit=window.safari=window[window.xpath?"webkit420":"webkit419"]=true;
window.safari3=window["webkit420"];
window.safari2=window["webkit419"];
}else{
if(document.getBoxObjectFor!==null&&!window.opera){
window.gecko=window.moz=true;
window.gecko3=window.gecko&&!!document.getElementsByClassName;
window.gecko2=window.gecko&&!window.gecko3;
}
}
}
window.chrome=!window.sidebar&&!window.gecko&&window.webkit&&!window.ie&&navigator.userAgent.indexOf("Chrome")!=-1;
if(window.chrome){
document.documentElement.className=["agent-chrome",document.documentElement.className].join(" ");
window.safari=window.safari2=window.safari3=false;
}
window.iOS=(navigator.platform.indexOf("iP")===0);
window.android=(navigator.platform.indexOf("Android")===0);
window.canAsync=window.canAsync==undefined?!!("async" in document.createElement("script")):window.canAsync;
window.___parent=location.href.indexOf("DSAdClient31.dll")===-1;
if(!window.console){
console={log:function(){
},info:function(){
},warn:function(){
},error:function(){
}};
}
Adman={toSync:[],stackBase:(window.safari3?16777271:2147483647)-50,stackIndex:0,scope:window,MS:window.___parent&&parent!=top||typeof (getRADIds)!=="undefined",debug:location.hash.indexOf("adman.debug")!==-1,$:function(_1){
if(typeof (_1)=="string"){
return Adman.scope.document.getElementById(_1);
}else{
return _1&&_1.nodeName?_1:null;
}
},$each:function(_2,fn,_4){
for(var _5 in _2){
if(!(_5==="extend"&&typeof (_2[_5])==="function")){
fn.call(_4,_2[_5],_5);
}
}
},$A:function(_6,_7){
var _8=[],_9=typeof (_6);
if(_9==="string"){
return _6.toArray();
}
if(_9==="object"&&!_6.callee){
for(var i in _6){
if(_6.hasOwnProperty(i)){
_8.push(_6[i]);
}
}
return _8;
}
_7=_7||0;
if(_7<0){
_7=_6.length+_7;
}
var _b=_b||(_6.length-_7);
for(var i=0;i<_b;i++){
_8[i]=_6[_7++];
}
return _8;
},$C:function(_c){
return Adman.scope.document.createElement(_c);
},$CN:function(_d,_e){
var _f=null,_10=[];
var _11=function(_12,_13){
if(_12.className==_13){
return true;
}
if(_13.push){
_13="("+_13.join("|")+")";
}
return new RegExp("(^| )"+_13+"($| )").test(_12.className.toString());
};
_e=Adman.$(_e)||Adman.scope.document;
if(_d.toLowerCase){
_d=[_d];
}
_f=_e.getElementsByTagName("*")||_e.children;
for(var i=0,l=_f.length;i<l;i++){
if(_11(_f[i],_d)){
_10.push(_f[i]);
}
}
return _10;
},$__merge:function(){
var mix={},ap,mp;
for(var i=0;i<arguments.length;i++){
for(var _1a in arguments[i]){
if(_1a==="onComplete"){
console.log("PROPERTY",arguments[i][_1a]);
}
ap=arguments[i][_1a];
mp=mix[_1a];
if(ap&&typeof (ap)==="object"&&ap.length===undefined){
mix[_1a]=Adman.$merge(mp,ap);
}else{
mix[_1a]=ap;
}
if(mp===null){
mix[_1a]=null;
}else{
if(typeof (mp)=="object"&&mp.length===undefined&&typeof (ap)=="object"&&ap.length===undefined){
mix[_1a]=Adman.$merge(mp,ap);
}else{
mix[_1a]=ap;
}
}
}
}
return mix;
},$merge:function(){
var mix={},ap,mp;
for(var i=0;i<arguments.length;i++){
for(var _1f in arguments[i]){
ap=arguments[i][_1f];
mp=mix[_1f];
var _20=function(o){
return o&&(typeof (o)==="object"&&o.length===undefined)||typeof (o)==="array";
};
if(_20(mp)&&_20(mp)){
mix[_1f]=Adman.$merge(mp,ap);
}else{
mix[_1f]=ap;
}
}
}
return mix;
},$extend:function(){
var _22=arguments;
if(!_22[1]){
_22=[this,_22[0]];
}
if(!_22[1]){
return _22[0];
}
for(var p in _22[1]){
_22[0][p]=_22[1][p];
}
return _22[0];
},$uniqueID:function(obj){
var _25=Adman.scope;
if(window.admanMSCheckState&&window.parent&&(window.top!==window)){
_25=window.top;
}
if(Adman.MS&&window.___parent&&window.parent&&window.parent!=Adman.scope){
_25=window.parent;
}
if(Adman.MS&&location.href.indexOf("rad.msn.com/ADSAdClient")!==-1){
_25=window;
}
if(_25.AdmanUID==undefined){
_25.AdmanUID=0;
}else{
_25.AdmanUID+=1;
}
if(!obj._UID){
obj._UID="UID"+_25.AdmanUID;
}
return obj._UID;
},$clear:function(_26){
window.clearInterval(_26);
window.clearTimeout(_26);
return ((_26=null));
},getPosition:function(_27){
var el=_27,_29=0,top=0;
do{
_29+=el.offsetLeft||0;
top+=el.offsetTop||0;
el=Adman.$(el.offsetParent);
}while(el);
return {"x":_29,"y":top};
},getNext:function(_2b){
if(_2b.nodetype==1){
return _2b;
}
while((_2b=_2b.nextSibling)&&_2b.nodeType!=1){
}
return _2b;
},addEvent:function(_2c,_2d,fn){
if(!fn){
return false;
}
var _2f=false;
var _30=Adman.MS?false:true;
_30=false;
if(!_2c){
return;
}
if(_2d=="mousewheel"&&window.gecko){
_2d="DOMMouseScroll";
}
if(Adman.MS&&document.body){
Adman.scope._DOMContentLoadedAdman=true;
}
if(_2d=="DOMContentLoaded"&&(document.readyState==="complete"||window._DOMContentLoadedAdman===true)){
fn();
return this;
}
if(_2d=="DOMContentLoaded"&&(!document.addEventListener||window.safari2)){
if(!Adman.scope._DOMCLEventsAdman){
Adman.scope._DOMCLEventsAdman=Adman.scope._DOMCLEventsAdman||[];
var _31=function(){
Adman.$clear(Adman.scope._DOMCLTimerAdman);
for(var i=0,l=Adman.scope._DOMCLEventsAdman.length;i<l;i++){
Adman.scope._DOMCLEventsAdman[i]();
}
Adman.scope._DOMCLEventsAdman=null;
};
var _ie=function(_35){
document.write("<scr"+"ipt id=__ie_onload_adman defer src="+(window.location.protocol=="https:"?"https://0":"javascript:void(0)")+"></scr"+"ipt>");
window._DOMScriptElementAdman=document.all["__ie_onload_adman"];
window._DOMScriptElementAdman.onreadystatechange=function(){
if(this.readyState=="complete"){
setTimeout(function(){
if(document.body){
_31();
Adman.scope._DOMScriptElementAdman.onreadystatechange=null;
Adman.scope._DOMScriptElementAdman.parentNode.removeChild(Adman.scope._DOMScriptElementAdman);
window._DOMScriptElementAdman=null;
}else{
window.onload=function(){
_31();
window._DOMScriptElementAdman.onreadystatechange=null;
Adman.scope._DOMScriptElementAdman.parentNode.removeChild(Adman.scope._DOMScriptElementAdman);
window._DOMScriptElementAdman=null;
};
}
},50);
}
};
};
var _36=function(_37){
var _38=false;
var m;
(function m(){
if(!window.DOMContentLoaded){
try{
document.documentElement.doScroll("left");
}
catch(a){
setTimeout(m,1);
return;
}
window.DOMContentLoaded=true;
_31();
}
})();
};
if(window.ie){
_30?_36():_ie();
}else{
if(window.safari){
window._DOMCLTimerAdman=function(){
if(/loaded|complete/.test(document.readyState)){
}
}.periodical(50);
}else{
Adman.addEvent(Adman.scope,"onload",_31);
}
}
}
Adman.scope._DOMCLEventsAdman&&Adman.scope._DOMCLEventsAdman.push(fn);
_2f=true;
}
var _3a=false;
fn=(_3a||fn.bound)?fn:fn._bind(this);
if(Adman.MS&&document.location.href.indexOf("DSAdClient31.dl")===-1){
_2f=true;
}
if(!_2f){
_2c.addEventListener?_2c.addEventListener(_2d,fn,false):_2c.attachEvent("on"+_2d,fn);
}
return this;
},trigger:function(url){
if(!Adman.MS&&url.indexOf("http://")!==0){
if(Adman.inPreviewPage){
alert(("[ERROR] Track URI does not being with 'http://\n\n\n"+url));
}else{
console.warn(("[ERROR] Track URI does not being with 'http://\n"+url));
}
return false;
}
if(!this._trackImg){
this._trackImg=new Image();
}
if(url.indexOf("&")!=-1){
url+="&rnd=";
}else{
url+="?rnd=";
}
this._trackImg.src=url+String(Math.random()*1000)+"-"+new Date().getTime();
},fixDOM:function(){
var _3c=document.getElementsByTagName("script"),_3d;
if(_3c){
Array._each(_3c,function(_3e,_3f){
if(_3e.src.indexOf("DartRichMedia")!==-1){
if((_3d=Adman.getNext(_3e))&&_3d.nodeName==="TABLE"){
try{
_3d.align="center";
}
catch(ex){
}
}
}
});
}
}};
Adman.readyStateInterval=1000;
Adman.instances=Adman.instances||{};
Adman.inPreviewPage=document.location.href.indexOf("preview.php")!=-1||document.location.href.indexOf("previewbanner.php")!=-1;
Adman.onLoad=function(fn){
Adman.addEvent(Adman.scope,"DOMContentLoaded",fn);
};
Adman.track=Adman.trigger;
Adman.hide=function(){
Array._each(Adman.$CN("adman-element"),function(_41){
_41.style.visibility="hidden";
});
Array._each(Adman.$CN("adman-placement"),function(_42){
_42.style.visibility="hidden";
});
};
Adman.show=function(){
Array._each(Adman.$CN("adman-element"),function(_43){
_43.style.visibility="visible";
});
Array._each(Adman.$CN("adman-placement"),function(_44){
_44.style.visibility="hidden";
});
};
var _45={_extend:function(_46){
for(var i=0,j=_46.length;i<j;i++){
Array._include(this,_46[i]);
}
return this;
},_include:function(_49){
if(!Array._contains(this,_49)){
this.push(_49);
}
return this;
},_remove:function(_4a){
var i=0,len=this.length;
while(i<len){
if(this[i]===_4a){
this.splice(i,1);
len--;
}else{
i++;
}
}
return this;
},_contains:function(_4d){
return !!(Array._indexOf(this,_4d)!=-1);
},_indexOf:function(_4e){
for(var i=0;(thisItem=this[i]);i++){
if(thisItem==_4e){
return i;
}
}
return -1;
},_each:function(fn,_51){
for(var i=0,j=this.length;i<j;i++){
fn.call((_51||this[i]),this[i],i,this);
}
}};
Adman.$each(_45,function(fn,_55){
Array[_55]=function(_56){
return fn.apply(_56,Array.prototype.slice.call(arguments).slice(1));
};
});
Adman.$extend(String.prototype,{_capitalize:function(){
return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();
}});
Function.prototype.prototype={};
Adman.$extend(Function.prototype,{_bind:function(){
var fn=this;
var _58=Adman.$A(arguments);
var _59=_58.shift();
var _5a=function(e){
return e&&e.type&&!e.extended&&(e.target||e.srcElement!==undefined);
};
var _5c=Adman;
var _5d=function(){
var _5e=_5c.$A(arguments)||[];
var evt=_5e[_5e.length-1],_60;
var _61=_5c.$A(_58);
if(_5a(evt)){
if(_5a(_61[_5e.length-1])){
_61.pop();
}
if((_60=_5e.pop())&&_60.length){
Array._extend(_61,_5e);
}
evt.stop=function(){
if(this.stopPropagation){
this.stopPropagation();
}else{
try{
this.cancelBubble=true;
}
catch(ex){
}
}
if(this.preventDefault){
this.preventDefault();
}else{
try{
this.returnValue=false;
}
catch(ex){
}
}
};
_61.push(evt);
}else{
_61=_61.concat(_5e);
}
if(_59&&_59.nodeType&&_59.nodeType==1){
_59=$(_59);
}
return fn.apply(_59,_61);
};
_5d.bound=true;
return _5d;
},_delay:function(_62,_63){
var _64=this;
var _65=arguments;
var fn=function(){
return _64.apply(_63,Adman.$A(_65).slice(2));
};
return setTimeout(fn,_62);
},_periodical:function(_67,_68){
var _69=this;
var _6a=arguments;
var fn=function(){
return _69.apply(_68,Adman.$A(_6a).slice(2));
};
return setInterval(fn,_67);
}});
Adman.Utils={shield:function(_6c){
var _6d,_6e,pos,_70,_71;
if(!(window.ie6||window.ie5)){
return _6c;
}
if(!(_6c=Adman.$(_6c))){
return false;
}
if(!_6c._shield){
_6c._shield=Adman.$C("iframe");
_6c._shield.marginheight=0;
_6c._shield.marginwidth=0;
_6c._shield.scrolling="no";
_6c._shield.frameBorder=0;
_6c._shield.style.width=_6c.offsetWidth+"px";
_6c._shield.style.height=_6c.offsetHeight+"px";
_6c._shield.style.filter="mask()";
_6c._shield.style.zIndex=-1;
_6c._shield.style.position="absolute";
_6c._shield.style.top=0;
_6c._shield.style.left=0;
_6c.style.visibility="visible";
_6c.insertBefore(_6c._shield,_6c.firstChild);
}
pos=Adman.getPosition(_6c);
_70=_6c.style.clip;
if(_70&&_70!=="rect(auto auto auto auto)"){
return _6c._shield;
}else{
_6c._shield.style.display="block";
_6d=_6c.offsetWidth;
_6e=_6c.offsetHeight;
}
_6c._shield.style.width=_6d+"px";
_6c._shield.style.height=_6e+"px";
return _6c._shield;
},getImgHTML:function(src,_73,_74,url){
if(typeof (_73)!=="number"){
_73=_73[0];
}
if(typeof (_74)!=="number"){
_74=_74[0];
}
var _76="";
if(!src||src.indexOf("http")==-1){
src="http://www.adman.gr/void.gif";
_76=" style=\"background: url(http://www.adman.gr/void-check.gif)\"";
_74=2;
}
return "<a href=\""+url+"\" target=\"_blank\" title=\"Click here for more information\"><img galleryimg=\"no\" src=\""+src+"\" width=\""+_73+"\" height=\""+_74+"\" border=\"0\" alt=\"alt image\" title=\"Click for more information\" "+_76+" /></a>\n";
},getFlashHTML:function(_77,_78,_79){
_77=_77||this.options.width;
_78=_78||this.options.height;
_79=_79||"";
_79+=";visibility: visible; z-index:9999;outline: none;";
if(!this.options.active&&this.options.active!==undefined){
_79+="display: none;";
}
var _7a="",_7b=this.options.base;
var _7c=[],_7d=Adman.$merge(this.options.flashVars),_7e="";
if(this.options.url){
_7d[this.options.clickTag||"go"]=this.options.url;
}
_7d["admanInstance"]="Adman.instances['"+Adman.$uniqueID(this)+"']";
if(!_7b&&(_7a=this.options.src.match(/http.*\//))){
_7b=_7a[0];
}
if(!_7b){
_7b=location.href.toString().match(/http.*\//);
if(_7b){
_7b=_7b[0];
}
}
if(this.options.src.indexOf("http")===-1){
this.options.src=_7b+this.options.src;
}
Adman.$each(_7d,function(_7f,key){
_7e+=(_7e?"&":"")+encodeURIComponent(key)+"="+encodeURIComponent(_7f);
});
var src=this.options.src;
if(this.options.url){
src+="?"+this.options.clickTag+"="+this.options.url;
}
if(window.iOS){
return Adman.Utils.getImgHTML(this.options.image,this.options.width,this.options.height,this.options.url);
}
if(1){
_7c.push("<object class=\"adman-element\" "+(window.ie?"unselectable=\"on\"":"")+" id=\"adman-element-"+Adman.$uniqueID(this)+"\" codebase=\""+location.protocol+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ");
if(_79){
_7c.push("style=\""+_79+"\" ");
}
!window.ie&&_7c.push("data=\""+src+"\" ");
_7c.push("type=\"application/x-shockwave-flash\" ");
_7c.push("width=\""+_77+"\" height=\""+_78+"\">");
_7c.push("<param name=\"menu\" value=\"false\" />");
window.ie&&_7c.push("<param name=\"movie\" value=\""+src+"\" />");
_7c.push("<param name=\"wmode\" value=\""+(this.options.wmode||"transparent")+"\" />");
_7c.push("<param name=\"bgcolor\" value=\""+(this.options.bgcolor||"white")+"\" />");
if(window.webkit){
_7c.push("<param name=\"play\" value=\""+(this.options.active||"true")+"\" />");
}
_7c.push("<param name=\"allownetworking\" value=\"all\" />");
_7c.push("<param name=\"allowscriptaccess\" value=\"always\" />");
_7c.push("<param name=\"pluginurl\" value=\""+location.protocol+"//www.macromedia.com/go/getflashplayer\" />");
_7c.push("<param name=\"quality\" value=\"high\" />");
_7c.push("<param name=\"allowfullscreen\" value=\"true\" />");
_7c.push("<param name=\"scale\" value=\"showAll\" />");
if(_7b){
_7c.push("<param name=\"base\" value=\""+_7b+"\" />");
}
if(_7e){
_7c.push("<param name=\"flashvars\" value=\""+_7e+"\" />");
}
if(this.options.image){
_7c.push(Adman.Utils.getImgHTML(this.options.image,this.options.width,this.options.height,this.options.url));
}else{
_7c.push("<div class=\"adman-error-container\" style=\"display: none;padding: 10px;padding-top: 2%;  text-align: center; font-style:italic;\">     <a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\">Flash Player</a>     ad.");
_7c.push("<small style=\"display: block; margin-top: 10px; font-size: 60%;\"> : "+window.flashVersion.major+"."+window.flashVersion.minor+"."+window.flashVersion.rev+" - (src:"+this.options.src+")</small></div>");
}
_7c.push("</object>");
}else{
_7c.push("<embed class=\"adman-element\" id=\"adman-element-"+Adman.$uniqueID(this)+"\" type=\"application/x-shockwave-flash\" src=\""+this.options.src+"\" ");
if(_79){
_7c.push("style=\""+_79+"\" ");
}
if(_7e){
_7c.push("flashvars=\""+_7e+"\" ");
}
_7c.push("width=\""+_77+"\" allownetworking=\"all\" height=\""+_78+"\" style=\"outline: none;\"  bgcolor=\""+this.options.bgcolor+"\" wmode=\""+this.options.wmode+"\" quality=\"high\" menu=\"false\" ");
_7c.push(" allowScriptAccess=\"always\" play=\""+this.options.active+"\" swLiveConnect=\"true\" />");
}
return _7c.join("\n");
},"detectIframe":function(){
var _82=self.parent.parent;
var _83=_82.document.getElementsByTagName("iframe"),_84,_85;
for(var k=0;k<_83.length;k++){
_84=_83[k];
if(_84.contentWindow==self.parent){
_85=_84;
break;
}
}
return _85;
},toOpaque:function(_87){
if(_87.push){
_87.each(Adman.utils.toOpaque);
return;
}
var _88,_89,_8a;
_87=Adman.$(_87);
if(!_87){
return false;
}
if(_87.nodeName==="OBJECT"){
_8a=_87;
_89=_8a.getElementsByTagName("embed");
if(_89){
_89=_89[0];
}
}
if(_87.nodeName==="EMBED"){
_89=_87;
_8a=_89.parentNode;
}
if(_8a&&window.ie){
_8a.outerHTML=_8a.outerHTML.replace(/param name="wmode" value=".*?"/gi,"param name=\"wmode\" value=\"opaque\"");
}
if(_89){
_89.setAttribute("wmode","opaque");
_8a.innerHTML=_8a.innerHTML;
}
return true;
},detectAdmanMS:function(){
if(self===top){
Adman.MS=false;
return false;
}
Adman.MS=(parent!=window)||typeof (getRADIds)!=="undefined"||(location.href.toString().indexOf("PG=IMSCB")!=-1);
if(Adman.MS&&(document.body===null||!document.body.id&&!(location.href.toString().indexOf("PG=IMSCB")!=-1))){
Adman.MS=false;
}
if(!Adman.MS&&location.href.indexOf("DSAdClient31.dl")!==-1){
Adman.MS=true;
}
if(window.opera&&document.domain==="live.com"){
Adman.MS=false;
}
},detectAutoRefresh:function(){
if(Adman._detectAutoRefreshValue!==undefined){
return Adman._detectAutoRefreshValue;
}
if(window["sessionStorage"]===undefined){
Adman._detectAutoRefreshValue=false;
return false;
}
var _8b=null,_8c,_8d;
var _8e=document.getElementsByTagName("meta");
var _8f=false;
var key="adman.arc";
if(_8e.length){
for(var i=0;i<_8e.length;i++){
if((_8e[i].getAttribute("http-equiv")||"").toLowerCase()==="refresh"){
_8d=parseInt(_8e[i].getAttribute("content"));
if(_8d!==0){
if(_8b=window.sessionStorage[key]){
_8b=_8b.split(/\|/);
_8c=(+new Date()-parseInt(_8b[0]))/1000;
if(_8c>=_8d&&location.href===_8b[1]){
_8f=true;
}
}
window.sessionStorage[key]=+new Date()+"|"+location.href;
}
if(_8f){
console.log("Detected page view from auto-refresh");
}
Adman._detectAutoRefreshValue=_8f?_8d:false;
return _8f?_8d:false;
}
}
if(!_8d||!_8e.length){
if(window.sessionStorage["removeItem"]){
window.sessionStorage.removeItem(key);
}
}
}
return false;
}};
Adman.Class=function(_92){
var _93=function(){
this.constructor=_93;
return (arguments[0]!==null&&this.initialize)?this.initialize.apply(this,arguments):this;
};
Adman.$extend(_93,this);
_93.prototype=_92||{};
_93.constructor=Adman.Class;
return _93;
};
Adman.Class.prototype={implement:function(){
var obj={},_95=arguments;
if(typeof (arguments[0])=="string"&&arguments[1]){
obj[arguments[0]]=arguments[1];
_95=[obj];
}
for(var i=0,l=_95.length;i<l;i++){
Adman.$extend(this.prototype,_95[i]);
}
return this;
},extend:function(_98){
var _99=new this(null);
for(var _9a in _98){
var pp=_99[_9a];
_99[_9a]=Adman.Class.Merge(pp,_98[_9a]);
}
_99.constructor=this;
return new Adman.Class(_99);
}};
Adman.Class.Merge=function(_9c,_9d){
if(_9c&&_9c!=_9d){
var _9e=typeof (_9d);
if(_9e!=typeof (_9c)){
return _9d;
}
switch(_9e){
case "function":
var _9f=function(){
this.parent=arguments.callee.parent;
return _9d.apply(this,arguments);
};
_9f.parent=_9c;
return _9f;
case "object":
return Adman.$merge(_9c,_9d);
}
}
return _9d;
};
Adman.empty=function(){
};
Adman.Events=new Adman.Class({addEvent:function(_a0,fn){
if(fn!=Adman.empty&&typeof (fn)=="function"){
this.events=this.events||{};
this.events[_a0]=this.events[_a0]||[];
Array._remove(this.events[_a0],fn);
Array._include(this.events[_a0],fn);
}
return this;
},removeEvent:function(_a2,fn){
if(this.events&&this.events[_a2]){
if(fn){
this.events[_a2].remove(fn);
}else{
this.events[_a2]=null;
}
}
return this;
},hasEvent:function(_a4){
return (!!(this.events&&this.events[_a4]));
},invokeEvent:function(){
var _a5=Array.prototype.slice.call(arguments);
var _a6=_a5.shift();
if(this.events&&this.events[_a6]){
for(var i=0,l=this.events[_a6].length;i<l;i++){
this.events[_a6][i].apply(this,_a5);
}
}else{
if(!_a6._capitalize){
_a6=_a6.charAt(0).toUpperCase()+_a6.substring(1).toLowerCase();
}else{
_a6=_a6._capitalize();
}
if((fn=this["on"+_a6])){
fn.apply(this,_a5);
}
}
if(_a6!="event"){
if("admanLogger" in window){
window["admanLogger"].apply(this,arguments);
}
if(Adman.debug===true){
var id="";
if(/collapse|expand/.test(_a6)){
id="(EXPANDING) ";
}
if(!/frame|progress/.test(_a6)){
console.log(id+_a6);
}
}
}
return null;
}});
Adman.Options=new Adman.Class({setOptions:function(){
if(!arguments){
return;
}
this.options=Adman.$merge(this.options,arguments[0]);
if(this.options["events"]){
Adman.$each(this.options["events"],function(fn,_ab){
this.addEvent(_ab,fn);
},this);
}
Adman.$each(this.options,function(_ac,key){
if(key.indexOf("on")===0&&typeof (_ac)=="function"){
this.options[key]=null;
this.removeEvent(key.toLowerCase().replace(/on/,""));
this.addEvent(key.toLowerCase().replace(/on/,""),_ac);
}
},this);
Adman.$each(this.options,function(fn,_af){
var _b0=this;
if(typeof (fn)=="function"){
this.options[_af]=function(){
return fn.apply(_b0,arguments);
};
}
},this);
return this;
}});
if(Adman.MS&&(document.body===null||!document.body.id)){
Adman.MS=false;
}
Adman.Flash=new Adman.Class({"options":{"width":300,"height":120,"waitDOM":true,"wmode":"opaque","bgcolor":"#","image":"","url":"","clickTag":"go","syncedTo":null,"enableMetrics":false,"active":true,"flashVars":{"source":"adman","ie":!!window.ie,"gecko":!!window.gecko,"webkit":!!window.webkit},"src":""},"initialize":function(_b1){
this.setOptions(_b1);
if(!this.options.src){
console.warn("Adman.Flash: Sorry you need a valid .swf source to continue");
return false;
}
if(this.options.syncedTo){
Adman.toSync.push({"origin":this,"syncedTo":this.options.syncedTo});
}
var _b2=Adman.Utils.getFlashHTML.call(this);
this.isLoaded=true;
this.isActive=this.options.active;
if(Adman.Utils.detectAutoRefresh()){
this.invokeEvent("autorefresh");
}
if(this.options.waitDOM){
document.writeln("<div class=\"adman-placeholder\" style=\"margin: auto;width:"+this.options.width+"px; height:"+this.options.height+"px;\" id=\"adman-"+Adman.$uniqueID(this)+"\"></div>");
Adman.onLoad(function(){
window.Adman=window.Adman||parent.Adman;
this.placeholder=Adman.$("adman-"+Adman.$uniqueID(this));
this.placeholder.innerHTML=_b2;
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
if(!window.moz&&!window.opera){
try{
if(this.element&&this.element["PercentLoaded"]){
var _b3=this.element.PercentLoaded();
}
}
catch(ex){
this.isLoaded=false;
}
}
try{
if(!window.ie||(window.ie&&this.placeholder.parentNode&&this.placeholder.parentNode.style.styleFloat==="none")){
this.placeholder.style.margin="0 auto";
}
}
catch(ex){
}
this.addEvents();
this.invokeEvent("init");
}._bind(this));
}else{
document.writeln("<div class=\"adman-placeholder\" style=\"margin: auto;width:"+this.options.width+"px; height:"+this.options.height+"px;\" id=\"adman-"+Adman.$uniqueID(this)+"\"> "+_b2+"</div>");
Adman.onLoad(this.addEvents._bind(this));
this.invokeEvent("init");
}
Adman.instances[Adman.$uniqueID(this)]=this;
if(this.options.enableMetrics){
this.metrics=new Adman.Metrics(this);
}
return this;
},getBox:function(){
var pos=Adman.getPosition(this.placeholder);
pos.left=pos.x;
pos.top=pos.y;
delete (pos.y);
delete (pos.x);
pos.width=typeof (this.options.width)==="number"?this.options.width:this.options.width[0];
pos.height=typeof (this.options.height)==="number"?this.options.height:this.options.height[0];
if(typeof (this.options.width)!=="number"){
pos.width_expanded=this.options.width[1];
pos.height_expanded=this.options.height[1];
}
if(this.expanded){
pos.width=pos.left+this.options.width[1];
pos.height=pos.top+this.options.height[1];
}
pos.right=pos.left+pos.width;
pos.bottom=pos.top+pos.height;
return pos;
},getSynced:function(_b5){
if(_b5!==true){
this.sendSynced();
return;
}
var _b6=this.options.syncedTo.indexOf?window[this.options.syncedTo]:this.options.syncedTo,_b7,_b8;
if(!_b6){
return false;
}
_b7=this.getBox();
_b8=_b6.getBox();
return {"id":Adman.$uniqueID(_b6),"top-top":Math.abs(_b7["top"]-_b8["top"]),"left-left":Math.abs(_b7["left"]-_b8["left"]),"bottom-bottom":Math.abs(_b7["bottom"]-_b8["bottom"]),"right-right":Math.abs(_b7["right"]-_b8["right"]),"box-this":_b7,"box-syncedTo":_b8};
},sendSynced:function(){
if(!this.element["getSynced"]){
console.log("Unable to send sync data because getSynced is not defined on the swf");
return false;
}
try{
console.log("Sending synced ...");
this.element.getSynced(this.getSynced(true));
}
catch(ex){
console.log("Unable to send synced data to element, bailing out");
}
},"addEvents":function(){
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
this.placeholder=this.placeholder||Adman.$("adman-"+Adman.$uniqueID(this));
if(!window.moz&&!window.opera){
try{
var _b9=this.element.PercentLoaded();
}
catch(ex){
this.isLoaded=false;
}
}
if(!this.isLoaded){
}
if(this.options.enableMetrics&&this["metrics"]){
this.metrics.add({"timers":["hoverTimer"]});
}
if(this.options.enableMetrics){
Adman.addEvent(window,"DOMContentLoaded",function(){
this.$hoverTimer&&void (this.$hoverTimer.enableIdleCheck());
}._bind(this));
}
this.fixDOM();
this.checkReadyState._delay(Adman.readyStateInterval,this);
Adman.addEvent(this.placeholder,"mouseover",function(_ba){
if(this.options.enableMetrics&&this.$hoverTimer){
void (this.$hoverTimer.start());
}
_ba.stop&&_ba.stop();
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_bb){
if(this.options.enableMetrics&&this.$hoverTimer){
void (this.$hoverTimer.finish());
}
_bb.stop&&_bb.stop();
this.invokeEvent("out");
}._bind(this));
Adman.addEvent(this.placeholder,"mousedown",function(){
this.invokeEvent("click");
}._bind(this));
this.addFlashEvents._delay(10,this);
return this;
},"addFlashEvents":function(){
this.timers={};
var _bc=this;
if(this.element){
var _bd=function(){
try{
if(this.element){
if(!window.ie&&!this.element["PercentLoaded"]){
return false;
}
var _be=this.element.PercentLoaded();
this.invokeEvent("progress",_be);
if(parseInt(_be)===100){
this.timers["progress"]=Adman.$clear(this.timers["progress"]);
this.invokeEvent("load",this.element);
Adman.$each(Adman.toSync,function(_bf,_c0){
var _c1=typeof (_bf.syncedTo)==="string"?window[_bf["syncedTo"]]:_bf;
var _c2=_bf.origin;
if(_c1===_bc){
(function(){
_c2.sendSynced();
Array._remove(Adman.toSync,_bf);
})._delay(100);
}
});
try{
var _c3=window["$WLXRmAd"]||(window.parent&&window.parent["$WLXRmAd"]);
if(_c3){
_c3.init({width:this.options.width[0],height:this.options.height[0],offsetLeft:this.options.width[1]<0?(-this.options.width[1]-this.options.width[0]):0,offsetRight:this.options.width[1]>0?(this.options.width[1]-this.options.width[0]):0,offsetBottom:this.options.height[1]>0?(this.options.height[1]-this.options.height[0]):0,offsetUp:this.options.height[1]<0?(-this.options.height[1]-this.options.height[0]):0});
}
}
catch(e){
}
}
}
}
catch(ex){
}
};
var _c4=function(){
try{
if(this.element&&this.element["CurrentFrame"]){
var _c5=this.element.CurrentFrame();
this.invokeEvent("frame",_c5);
}
}
catch(ex){
if(this.timers){
this.timers["frame"]=Adman.$clear(this.timers["frame"]);
}
}
};
this.timers["progress"]=_bd._periodical(100,this);
this.timers["frame"]=_c4._periodical(50,this);
}
},"checkReadyState":function(){
if(this.__readyStateChecked){
return false;
}
this.__readyStateChecked=true;
var _c6=Adman.$CN("adman-error-container",this.placeholder)[0],_c7=0;
var _c8=true;
try{
_c7=this.element.PercentLoaded();
}
catch(ex){
_c8=false;
}
if(!_c8&&_c6&&_c6.style){
_c6.style.display="none";
return false;
}
try{
if(this.element&&_c7===0&&_c6){
_c6.style.display="block";
}
}
catch(ex){
}
return this;
},activate:function(){
if(this.isActive){
return this;
}
this.element.style.display="block";
if(window.webkit){
this.element.style.visibility="visible";
this.container.style.visibility="visible";
}
this.element.Play();
this.isActive=true;
this.invokeEvent("show");
return null;
},deactivate:function(){
if(!this.isActive){
return false;
}
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
try{
this.element.StopPlay();
}
catch(ex){
}
this.element.style.display="none";
this.isActive=false;
this.invokeEvent("hide");
return null;
},"fixDOM":function(){
return;
if(this.element.innerHTML.indexOf("DartRichMedia")!==-1){
}
var _c9=null;
return;
if(!window.ie||this.isDOMFixed){
return false;
}
this.isDOMFixed=true;
try{
_c9=this.placeholder.previousSibling.previousSibling;
}
catch(ex){
_c9=null;
}
if(_c9&&_c9.nodeName==="DIV"&&_c9.id.toString().indexOf("google_ads_div")!==-1&&_c9.innerHTML.indexOf("gbanner")!==-1){
try{
_c9.parentNode.firstChild.appendChild(this.placeholder);
}
catch(ex){
}
}
}}).implement(new Adman.Options,new Adman.Events);
Adman.Expanding=Adman.Flash.extend({"options":{"width":[50,-600],"height":[100,300],"_asParent":window.webkit||window.ie6||window.ie7||window.opera,"offset":{"top":0,"left":0},"zIndex":null,"expand":true,"collapse":true,"shield":true,"expandOnInit":false,"enableMetrics":false,"placeholder":null,"wmode":"transparent","flow":false},"initialize":function(_ca){
Adman.stackIndex++;
this.zIndex=Adman.stackBase+Adman.stackIndex;
Adman.Utils.detectAdmanMS();
if(window.top&&self!=window.top&&!_ca.inIFrame&&!Adman.MS&&!Adman.Yahoo){
_ca.inIFrame=true;
_ca.type="Expanding";
new Adman.IFrameBursting(_ca);
return;
}
this.setOptions(_ca);
if(!this.options.src){
console.warn("Adman.Expanding: Sorry you need a valid .swf source to continue");
return false;
}
if(this.options.syncedTo){
Adman.toSync.push({"origin":this,"syncedTo":this.options.syncedTo});
}
if(Adman.$(this.options.placeholder)&&!this.options.placeholder.nodeName){
this.options.placeholder=null;
}
var _cb="";
var _cc=[];
var _cd="clip: "+this.getClip(!this.options.expandOnInit);
if(typeof (this.options.width)==="number"){
this.options.width=[this.options.width];
}
if(typeof (this.options.height)==="number"){
this.options.height=[this.options.height];
}
if(this.options.flow){
if(this.options.flow===true){
this.options.flow=3;
}
if(typeof (this.options.flow)==="number"){
this.options.flow={"expand":this.options.flow,"collapse":this.options.flow};
}
}
this.options.width[1]=this.options.width[1]||this.options.width[0];
this.options.height[1]=this.options.height[1]||this.options.height[0];
var _ce=this.options.width[1]<0?-(Math.abs(this.options.width[1])-this.options.width[0]):0;
var top=this.options.height[1]<0?-(Math.abs(this.options.height[1])-this.options.height[0]):0;
this.xy={"x":_ce,"y":top};
if(this.options.offset.top||this.options.offset.left){
if(window.ie7&&this.options.offset.top===0){
this.options.offset.top=1;
}
_cb="position: relative; left: "+((-1)*this.options.offset.left)+"px; top: "+((-1)*this.options.offset.top)+"px;";
}
if((this.options.offset.top||this.options.offset.left)&&window.ie){
}
_cc.push("<div class=\"adman-placeholder\" style=\""+(window.opera&&(this.options.wmode===null||this.options.wmode=="window")?"overflow: hidden;":"")+"z-index: "+(Adman.MS?"11":this.zIndex)+"; position: relative; width:"+this.options.width[0]+"px; height:"+this.options.height[0]+"px;margin: auto;\">");
_cc.push("<div id=\"adman-expanding-"+Adman.$uniqueID(this)+"\" style=\"margin: auto;position: absolute;z-index:"+(Adman.MS?"100":this.zIndex)+"; visibility: hidden; top: "+top+"px; left: "+_ce+"px; "+_cd+";\">");
_cc.push(Adman.Utils.getFlashHTML.call(this,Math.abs(this.options.width[1]),Math.abs(this.options.height[1]),_cb));
_cc.push("</div>");
_cc.push("</div>");
_cc=_cc.join("\n");
this.options.placeholder=Adman.$(this.options.placeholder);
this.isLoaded=true;
if(this.options.expandOnInit){
this.expanded=true;
this.invokeEvent("expand");
}
if(window.ie&&!Adman.MS&&window.getRADIds){
AdmanMSN.inPage=true;
this.options.waitDOM=false;
}
if(this.options.inIFrame||Adman.Yahoo){
var _el=Adman.$C("div");
_el.id="adman-"+Adman.$uniqueID(this);
_el.style.zIndex=999999;
_el.style.width=this.options.width[0];
_el.style.height=this.options.height[0];
_el.style.margin="auto";
_el.innerHTML=_cc;
var _d1=Adman.Yahoo?self.frameElement:Adman.Utils.detectIframe();
if(_d1){
var _d2;
_d1.parentNode.insertBefore(_el,_d1);
_d1.style.display="none";
this.placeholder=_el;
var _d3=Adman.Yahoo?window.parent:self.parent.parent;
this.container=_d3.document.getElementById("adman-expanding-"+Adman.$uniqueID(this));
this.element=_d3.document.getElementById("adman-element-"+Adman.$uniqueID(this));
this.addEvents();
if(typeof (is_ajax_env)!=="undefined"){
_d2=function(){
cleanUpAdAndRestoreIframe=function(_d4,_d5){
_d4.parentNode.removeChild(_d4);
_d5.style.display="block";
};
cleanUpAdAndRestoreIframe(_el,_d1);
};
self.attachEvent?self.attachEvent("onbeforeunload",_d2):self.addEventListener("unload",_d2,false);
}
_d3.window.Adman=self.parent.parent.window.Adman||Adman;
_d3.window.Adman.instances[Adman.$uniqueID(this)]=this;
return null;
}
}
if(this.options.waitDOM){
var _d6=document.body.id;
if(!this.options.placeholder&&!Adman.MS){
if(!document.getElementById("__adman")){
document.close();
document.write("<div style=\"text-align: center;\">");
document.writeln("<div class=\"adman-placeholder\" style=\"margin: auto;z-index: 9999999999;width:"+this.options.width[0]+"px; height:"+this.options.height[0]+"px;\" id=\"adman-"+Adman.$uniqueID(this)+"\"></div>");
document.write("</div>");
}else{
this.placeholder=Adman.$C("div");
this.placeholder.style.zIndex=9999999999;
this.placeholder.style.width=this.options.width[0]+"px";
this.placeholder.style.height=this.options.height[0]+"px";
this.placeholder.id="adman-"+Adman.$uniqueID(this);
document.getElementById("__adman").parentNode.insertBefore(this.placeholder,document.getElementById("__adman"));
}
try{
}
catch(ex){
}
}
if(this.options.enableMetrics){
this.metrics=new Adman.Metrics(this);
}
Adman.onLoad(function(){
if(Adman.MS){
document.close();
document.body.id=_d6;
document.documentElement.style.paddding=document.documentElement.style.margin=document.body.style.margin=document.body.style.padding=0;
if(!this.options._asParent){
this.placeholder=Adman.$C("div");
}else{
this.placeholder=(window.___parent?parent:window).document.createElement("div");
}
this.placeholder.style.zIndex=9999999999;
this.placeholder.style.width=this.options.width[0]+"px";
this.placeholder.style.height=this.options.height[0]+"px";
this.placeholder.id="adman-"+Adman.$uniqueID(this);
if(!this.options._asParent){
document.body.appendChild(this.placeholder);
}else{
(window.___parent?parent:window).document.body.appendChild(this.placeholder);
}
}
this.placeholder=this.placeholder||Adman.$(this.options.placeholder)||Adman.$("adman-"+Adman.$uniqueID(this));
this.placeholder.innerHTML=_cc;
try{
if(!window.ie||(window.ie&&this.placeholder.parentNode&&this.placeholder.parentNode.style.styleFloat==="none")){
this.placeholder.style.margin="0 auto";
}
}
catch(ex){
}
if(this.options._asParent&&Adman.MS||1){
this.container=(window.___parent?window.parent:window).document.getElementById("adman-expanding-"+Adman.$uniqueID(this));
this.element=(window.___parent?window.parent:window).document.getElementById("adman-element-"+Adman.$uniqueID(this));
}else{
this.container=Adman.$("adman-expanding-"+Adman.$uniqueID(this));
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
}
this.addEvents();
this.invokeEvent("init");
}._bind(this));
}else{
this.invokeEvent("init");
if(typeof (AdmanMSN)!=="undefined"&&AdmanMSN.inPage){
var _el=Adman.$C("div");
_el.id="adman-"+Adman.$uniqueID(this);
_el.style.zIndex=999999;
_el.style.width=this.options.width[0];
_el.style.height=this.options.height[0];
_el.style.margin="auto";
_el.innerHTML=_cc;
document.body.appendChild(_el);
this.addEvents();
}else{
document.writeln("<div style=\"margin: auto;z-index: 9999999999;width:"+this.options.width[0]+"px; height:"+this.options.height[0]+"px;\" id=\"adman-"+Adman.$uniqueID(this)+"\">"+_cc+"</div>");
Adman.onLoad(this.addEvents._bind(this));
}
}
Adman.instances[Adman.$uniqueID(this)]=this;
return null;
},"addEvents":function(){
this.container=this.container||Adman.$("adman-expanding-"+Adman.$uniqueID(this));
this.element=this.element||Adman.$("adman-element-"+Adman.$uniqueID(this));
this.placeholder=this.placeholder||Adman.$("adman-"+Adman.$uniqueID(this));
var _d7=this.placeholder.parentNode;
var _d8=parseInt(this.placeholder.style.zIndex);
while(_d7&&_d7.style){
if((parseInt(_d7.style.zIndex)>0)&&(parseInt(_d7.style.zIndex)<_d8)){
_d7.style.zIndex=_d8;
}
_d7=_d7.parentNode;
}
if(this.options.enableMetrics&&this.metrics&&this.metrics.add){
if(Adman.MS&&(this.options.width[0]==this.options.width[1])&&(this.options.height[0]==this.options.height[1])){
}else{
this.metrics.add({"timers":["expandTimer"],"actions":["expand","collapse"]});
}
}
if(this.options.enableMetrics){
Adman.addEvent(window,"DOMContentLoaded",function(){
this.$expandTimer&&void (this.$expandTimer.enableIdleCheck());
}._bind(this));
}
if(!window.moz&&!window.opera){
try{
var _d9=this.element.PercentLoaded();
}
catch(ex){
this.isLoaded=false;
}
}
if(!this.isLoaded&&typeof (_d9)!=="undefined"){
return false;
}
this.fixDOM();
this.checkReadyState._delay(Adman.readyStateInterval,this);
Adman.addEvent(this.placeholder,"mouseover",function(_da){
_da.stop&&_da.stop();
if(this.options.expand){
this.expand();
}
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_db){
_db.stop&&_db.stop();
if(this.options.collapse){
this.collapse();
}
this.invokeEvent("out");
}._bind(this));
Adman.addEvent(this.placeholder,"mousedown",function(){
this.invokeEvent("click");
}._bind(this));
this.addFlashEvents();
Adman.Utils.shield(this.container);
if(document&&document.body&&document.body.id&&Adman.MS&&document.body.id.indexOf("dap")===0){
var _dc=(window.___parent?window.parent:window).document.getElementById(document.body.id);
if(parent.location.href.indexOf("mail")!==-1&&window.document.location.href.toString().indexOf("TodayLight")!==-1){
_dc.parentNode.parentNode.appendChild(this.placeholder);
}else{
_dc.parentNode.insertBefore(this.placeholder,_dc.parentNode.firstChild);
}
_dc.style.display="none";
var _dd=function(){
if(this.placeholder&&this.placeholder.parentNode){
this.placeholder.parentNode.removeChild(this.placeholder);
this.placeholder=null;
}
};
Adman.addEvent(window,"beforeunload",function(_de){
if(document.readyState==="interactive"){
function _df(){
document.detachEvent("onstop",_df);
_dd();
};
document.attachEvent("onstop",_df);
window.setTimeout(function(){
document.detachEvent("onstop",_df);
},0);
}else{
if(document.readyState=="complete"){
_dd();
}
}
});
Adman.addEvent(parent,"unload",_dd._bind(this));
Adman.addEvent(top,"unload",_dd._bind(this));
Adman.addEvent(window,"unload",_dd._bind(this));
}
if(window.flashVersion.major===0){
this.container.style.clip=this.container.style.left=this.container.style.top="auto";
}
return this;
},"setClip":function(_e0){
if(!this.container||!this.container.style){
return false;
}
if(!_e0&&(this.options.offset.left||this.options.offset.top)){
this.container.style.cssText=this.container.style.cssText.replace(/clip.*?;/i,"");
}else{
this.container.style.clip=this.getClip(_e0);
}
return this;
},"getClip":function(_e1){
var top=0,_e3=0,_e4=0,_e5=0;
if(!_e1){
return "rect(auto auto auto auto)";
}
if(this.options.width[1]<0){
_e4=Math.abs(this.options.width[1])-Math.abs(this.options.width[0]);
_e3=Math.abs(this.options.width[1]);
}else{
_e3=this.options.width[0];
}
if(this.options.height[1]<0){
top=Math.abs(this.options.height[1])-Math.abs(this.options.height[0]);
_e5=Math.abs(this.options.height[1]);
}else{
top=0;
_e5=this.options.height[0];
}
top=top?top+"px":"auto";
_e3=_e3?_e3+"px":"auto";
_e4=_e4?_e4+"px":"auto";
_e5=_e5?_e5+"px":"auto";
return "rect("+top+" "+_e3+" "+_e5+" "+_e4+")";
},flow:function(){
this.container.style.top=0;
this.container.style.left=0;
var _e6=Adman.getPosition(this.container);
this.flowScrollTo=_e6.y;
this.flowTransition=(this.flowTransition||new Adman.Transition(this.placeholder,"height")).setOptions({"time":this.options.flow.expand,"onComplete":function(){
document.documentElement.scrollTop=this.flowScrollTo;
}}).start(this.options["height"][1]);
console.log("flow");
return this;
},"unFlow":function(){
var _e7=this;
this.container.style.top=this.xy.y+"px";
this.container.style.left=this.xy.x+"px";
var _e8=Adman.getPosition(this.container);
this.flowScrollTo=_e8.y;
this.flowTransition.setOptions({"time":this.options.flow.collapse,"onComplete":function(){
document.documentElement.scrollTop=this.flowScrollTo;
_e7.collapse(true);
}}).start(this.options["height"][0]);
return this;
},"expand":function(){
if(this.isExpanded){
return null;
}
this.options.flow&&this.flow();
this.toFront();
this.invokeEvent("expand");
this.setClip(false);
if(this.options.enableMetrics&&this.$expandTimer&&this.$expand){
void (this.$expandTimer.start());
void (this.$expand.invoke());
}
this.isExpanded=true;
if(window.ie){
this.placeholder.style.overflow="visible";
}
if(window.opera&&(this.options.wmode==null||this.options.wmode=="window")){
this.element.parentNode.parentNode.style.overflow="visible";
}
if(window.safari&&!this.firstExpanded){
var _e9,_ea,_eb,_ec,_ed=["left","right","top","bottom"];
for(var _i=0,l=_ed.length;_i<l;_i++){
if(this.container.style[_ed[_i]]){
_ea=_ed[_i];
_ec=parseInt(this.container.style[_ea]);
break;
}
}
if(_ea){
_eb="margin"+_ea.charAt(0).toUpperCase()+_ea.slice(1);
this.container.style[_ea]=(_ec+1)+"px";
this.container.style[_eb]="-1px";
(function(){
this.container.style[_ea]=_ec+"px";
this.container.style[_eb]=0;
})._delay(1,this);
}
this.firstExpanded=true;
}
try{
var _f0=window["$WLXRmAd"]||(window.parent&&window.parent["$WLXRmAd"]);
if(_f0){
_f0.expand();
}
}
catch(e){
}
return null;
},"collapse":function(_f1){
if(this.isExpanded==false){
return null;
}
if(this.options.flow&&_f1!==true){
this.unFlow();
return this.invokeEvent("beforeCollapse");
}
this.toBack();
this.invokeEvent("collapse");
this.setClip(true);
if(this.$collapse){
void (this.$collapse.invoke());
void (this.$expandTimer.finish());
}
this.isExpanded=false;
if(window.ie){
this.placeholder.style.overflow="hidden";
try{
var _f2=Adman.$C("div");
document.body.appendChild(_f2);
_f2.parentNode.removeChild(_f2);
}
catch(ex){
}
}
if(window.opera&&(this.options.wmode==null||this.options.wmode=="window")){
this.element.parentNode.parentNode.style.overflow="hidden";
}
try{
var _f3=window["$WLXRmAd"]||(window.parent&&window.parent["$WLXRmAd"]);
if(_f3){
_f3.collapse();
}
}
catch(e){
}
return null;
},toBack:function(){
this.placeholder.style.zIndex=this.container.style.zIndex=this.options.zIndex||Adman.stackBase;
return this.invokeEvent("toBack");
},toFront:function(){
this.placeholder.style.zIndex=this.container.style.zIndex=Adman.stackBase+Adman.stackIndex+1;
return this.invokeEvent("toFront");
},restoreZIndex:function(){
this.placeholder.style.zIndex=this.container.style.zIndex=this.index;
return this.invokeEvent("toBack");
}}).implement(new Adman.Options,new Adman.Events);
Adman.Interstitial=new Adman.Class({"options":{"url":"","src":""},"initialize":function(_f4){
this.setOptions(_f4);
if(!this.options.src){
console.warn("Adman.Interstitial: You need a valid src (redirect uri) page to continue");
return this;
}
top.location=this.options.src+"?adman="+encodeURIComponent(self.location.toString())+"|"+encodeURIComponent(this.options.url);
Adman.instances[Adman.$uniqueID(this)]=this;
return this.invokeEvent("init");
}}).implement(new Adman.Options,new Adman.Events);
Adman.Floating=Adman.Flash.extend({"options":{"scrolling":true,"interval":10,"top":100,"right":null,"shield":true},"initialize":function(_f5){
Adman.stackIndex++;
if(window.top&&self!=window.top&&!_f5.inIFrame){
_f5.inIFrame=true;
_f5.type="Floating";
new Adman.IFrameBursting(_f5);
return;
}
Adman.Utils.detectAdmanMS();
this.setOptions(_f5);
if(!this.options.src){
console.warn("Adman.Floating: Sorry you need a valid .swf source to continue");
return false;
}
this.options.waitDOM?Adman.onLoad(this.build._bind(this)):this.build();
Adman.instances[Adman.$uniqueID(this)]=this;
return this;
},"build":function(){
if(this.currentStyle){
this._marginTop=document.body.currentStyle["margin-top"];
}else{
if(document.defaultView){
this._marginTop=document.defaultView.getComputedStyle(document.body,null).getPropertyValue("margin-top");
}
}
this._marginTop=parseInt(this._marginTop);
this.container=Adman.$C("div");
with(this.container.style){
zIndex=99998;
position="absolute";
width=this.options.width+"px";
height=this.options.height+"px";
}
if(!window.ie){
this.container.style.visibility="hidden";
}
this.offset="top";
if(typeof (this.options.bottom)=="number"){
this.offset="bottom";
this.container.style.bottom=this.options.bottom+"px";
}else{
if(typeof (this.options.top)=="number"){
this.container.style.top=this.options.top+"px";
}
}
if((this.options.top===null||this.options.top===undefined)&&(this.options.bottom===null||this.options.bottom===undefined)){
this.container.style.top=this.container.style.bottom="auto";
this.container.style.top="50%";
this.container.style.marginTop=-(parseInt(this.options.height/2))+"px";
}
if(typeof (this.options.right)=="number"){
this.container.style.right=this.options.right+"px";
}else{
if(typeof (this.options.left)=="number"){
this.container.style.left=this.options.left+"px";
}
}
if((this.options.left===null||this.options.left===undefined)&&(this.options.right===null||this.options.right===undefined)){
this.container.style.left=this.container.style.right="auto";
this.container.style.left="50%";
this.container.style.marginLeft=-(parseInt(this.options.width/2))+"px";
}
if(window!=top&&(Adman.MS||typeof Adman.Utils.detectIframe()!==undefined&&!Adman.inPreviewPage)){
top.document.body.insertBefore(this.container,top.document.body.firstChild);
if(this.options.inIFrame){
top.window.Adman=Adman;
}
this.__window=top;
}else{
document.body.insertBefore(this.container,document.body.firstChild);
this.__window=window;
}
this.container.innerHTML=Adman.Utils.getFlashHTML.call(this);
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
this.addEvents();
this.invokeEvent("init");
this.start();
Adman.addEvent(top.document.body,"mousewheel",function(){
}._bind(this));
return this;
},"scroll":function(){
try{
top.document;
}
catch(ex){
return;
}
var _f6=parseInt(this.__window.document.body.scrollTop||this.__window.document.documentElement.scrollTop);
var now=parseInt(this.container.style[this.offset]);
var gap=this.offset==="top"?now-_f6-this.options.top:now+_f6-this.options.bottom;
if(Math.abs(this.gapPrevious-gap)==0&&this.isScrolling){
this.stop();
return;
}
if(this.gapPrevious==gap){
return;
}
if(!this.isScrolling){
this.start();
}
this.gapPrevious=gap;
if(this.previous){
if(now<this.previous&&(this.direction!="up")){
this.previous=now;
this.direction="up";
this.invokeEvent("redirect",this.direction);
}else{
if(now>=this.previous&&this.direction!="down"){
this.previous=now;
this.direction="down";
this.invokeEvent("redirect",this.direction);
}
}
}
this.previous=now;
this.isScrolling=true;
this.container.style[this.offset]=(now-parseInt(gap/10))+"px";
},"start":function(){
if(this.isScrolling||!this.options.scrolling){
return this;
}
this.timer=this.timer||(this.scroll._periodical(this.options.interval,this));
this.isScrolling=true;
return this.invokeEvent("start");
},"stop":function(_f9){
if(!this.isScrolling){
return this;
}
if(this.options.shield){
Adman.Utils.shield(this.element);
}
this.isScrolling=false;
if(_f9===true){
this.timer=Adman.$clear(this.timer);
}
return this.invokeEvent("stop");
},"close":function(){
this.stop(true);
if(window.ie&&window!=top){
this.container.style.left=-50000+"px";
}else{
(this.container.parentNode&&this.container.parentNode.removeChild(this.container))||(this.container.style.display="none");
}
this.invokeEvent("close");
Adman.$each(this.timers,function(_fa,key){
this.timers[key]=Adman.$clear(_fa);
},this);
this.isClosed=true;
return false;
}}).implement(new Adman.Options,new Adman.Events);
Adman.WebOver=new Adman.Class({options:{"width":"100%","height":"100%"},initialize:function(_fc){
this.setOptions(_fc);
Adman.$each(this.timers,function(_fd,key){
this.timers[key]=Adman.$clear(_fd);
},this);
Adman.instances[Adman.$uniqueID(this)]=this;
return this.build();
},build:function(){
this.container=Adman.$C("div");
with(this.container.style){
zIndex=99998;
position="fixed";
top=0;
left=0;
right=0;
bottom=0;
width=this.options.width;
height=this.options.height;
}
document.body.appendChild(this.container);
this.container.innerHTML=Adman.Utils.getFlashHTML.call(this);
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
return this;
},close:function(){
(this.container.parentNode&&this.container.parentNode.removeChild(this.container))||(this.container.style.display="none");
this.invokeEvent("close");
return false;
}}).implement(new Adman.Events,new Adman.Options);
Adman.ReActive=new Adman.Class({options:{src:"",width:"auto",height:"auto",url:"",urlMask:"",frame:true,intervals:{expand:300,collapse:200},flashVars:{phrase:null},appendBefore:"",appendAfter:"",color:"green",enableMetrics:false,once:false,collapse:true,wmode:"transparent",phrases:[],exclude:[]},initialize:function(_ff){
this.instances=[];
this.timers={};
this.regs={};
this.occurances={};
if(_ff.phrases&&_ff.phrases.toLowerCase){
_ff.phrases=_ff.phrases.split(",");
}
if(_ff.exclude&&_ff.exclude.toLowerCase){
_ff.exclude=_ff.exclude.split(",");
}
this.setOptions(_ff);
if(!this.options.phrases.length){
console.warn("Sorry, no phrases defined for this Adman.ReActive Ad");
return this;
}
if(!this.options.src){
console.warn("Missing src. Bailing out");
return this;
}
this.regs["phrases"]=new RegExp("(\\.|^|,|\\s|!)"+"("+this.options.phrases.join("|")+")"+"(?=\\.|$|,|\\s|!)","gi");
if(this.options.exclude.length){
this.regs["exclude"]=new RegExp("(\\.|^|,|\\s|!)"+"("+this.options.exclude.join("|")+")"+"(?=\\.|$|,|\\s|!)","gi");
}
Adman.onLoad(function(){
if(Adman.ReActive.root===null){
return false;
}
if(!Adman.ReActive.root&&!Adman.ReActive.findRoot()){
return false;
}
var _100=[Adman.ReActive.root];
var _101=function(_102){
for(var i=0,l=_102.childNodes.length;i<l;i++){
if(_102.childNodes[i].nodeType==1){
_101(_102.childNodes[i]);
_100.push(_102.childNodes[i]);
}
}
};
_101(Adman.ReActive.root);
for(var i=0,l=_100.length;i<l;i++){
this.parse(_100[i]);
}
if(this.options.enableMetrics&&this.metrics&&this.metrics.add){
this.metrics.add({"timers":["expandTimer"],"actions":["expand","collapse"]});
}
this.instances.length&&this.process();
}._bind(this));
if(!Adman.ReActive._eventAdded){
Adman.ReActive._eventAdded=true;
Adman.addEvent(window,"blur",function(){
if(Adman.ReActive.active){
Adman.ReActive.active.collapse(null,true);
}
});
(window.iOS||window.android)&&Adman.addEvent(document,"touchstart",function(_107){
if(Adman.ReActive.current&&Adman.ReActive.current.options.collapse){
Adman.ReActive.current.collapse();
}
});
}
Adman.instances[Adman.$uniqueID(this)]=this;
if(this.options.enableMetrics){
this.metrics=new Adman.Metrics(this);
}
return this;
},parse:function(_108){
var _109;
if(!_108||!_108.childNodes||/^(A|G|H1|H2|H3|H4|H5|H6|CANVAS|FIELDSET|LABEL|PATH|IFRAME|CIRCLE|RECT|SVG|EMBED|OBJECT|VIDEO|AUDIO|CCC|IMG|STYLE|SCRIPT|IFRAME|CCC|PRE)$/.test(_108.nodeName)||_108.childNodes.length==0){
return false;
}
for(var i=0,l=_108.childNodes.length;i<l;i++){
node=_108.childNodes[i];
if(node.nodeType!==3||node.nodeValue.replace(/^\s+|\s+$/,"").length===0){
continue;
}
if(this.regs["exclude"]&&(_109=node[window.ie?"nodeValue":"textContent"].match(this.regs["exclude"]))){
return this.invokeEvent("exclude");
}
var _10c=node.innerText||node.textContent;
var self=this;
node[window.ie?"nodeValue":"textContent"]=node[window.ie?"nodeValue":"textContent"].replace(this.regs["phrases"],function(_10e,_10f,_110,_111,s){
if(self.options.once&&self.occurances[_110.toLowerCase()]){
return _10f+_110;
}
self.occurances[_110.toLowerCase()]=(self.occurances[_110]||0)+1;
Adman.ReActive.matches=Adman.ReActive.matches||{};
Adman.ReActive.matches[_110]=true;
self.instances.push({"node":node,"match":_110,"reg":{"before":_10f||"","whole":_10e||"","offset":_111+_10f.length}});
return _10f;
});
}
return this;
},process:function(_113){
var self=this;
var _115,node,_117,_118,_119,_11a;
var _11b;
for(var i=0,l=this.instances.length;i<l;i++){
_115=this.instances[i];
node=_115.node;
_117=_117||node;
if(document.createRange){
_118=document.createRange();
}else{
_118=document.body.createTextRange();
}
_119=_11b||_115.reg.offset;
var t=node[window.ie?"innerText":"textContent"];
if(t&&t.length<_119){
_119=0;
}
if(document.createRange){
_113=document.createElement("a");
_118.setStart(node,_119);
_118.insertNode(_113);
_118.detach();
}else{
_118.moveToElementText(node.parentNode);
_118.move("character",_119);
_118.pasteHTML("<a id=\"adman-reactive-dummy\"></a>");
_113=document.getElementById("adman-reactive-dummy");
try{
if(_113.parentNode&&node.parentNode&&(_113.parentNode!==node.parentNode)){
node.parentNode.appendChild(_113);
}
}
catch(ex){
}
document.getElementById("adman-reactive-dummy").id="";
}
_113.style.cssText="text-decoration: none!important;font-weight: bold!important;padding-bottom:1px!important;color: "+this.options.color+";border-bottom: 2px solid #ccc;";
_113.className="adman-reactive-link"+(self.options.linkClassName?" "+self.options.linkClassName:"");
_113.setAttribute("href",self.options.urlMask||self.options.url);
_113.setAttribute("target","_blank");
_113[window.ie?"innerText":"textContent"]=_115.match;
if(self.options.urlMask){
Adman.addEvent(_113,"mousedown",function(_11f){
_113.setAttribute("href",self.options.url);
});
}
!window.iOS&&!window.android&&Adman.addEvent(_113,"touchstart",function(_120){
_120.stopPropagation();
_120.preventDefault();
});
Adman.addEvent(_113,!window.iOS&&!window.android?"mouseover":"click",function(_121){
if(_121.stopPropagation){
_121.stopPropagation();
_121.preventDefault();
}
self.invokeEvent("hover",_121.target,(_121.target||_121.srcElement).innerHTML);
self.expand(_121.target||_121.srcElement);
});
!window.iOS&&!window.android&&Adman.addEvent(_113,"mouseout",function(_122){
self.invokeEvent("hover",_122.target,(_122.target||_122.srcElement).innerHTML);
self.options.collapse&&self.collapse(_122.target||_122.srcElement);
});
if(this.options.appendBefore){
var _123=Adman.$C("div");
_123.innerHTML=this.options.appendBefore;
for(var i=0,l=_123.childNodes.length;i<l;i++){
_113.parentNode.insertBefore(_123.childNodes[i],_113);
}
_123=null;
}
if(this.options.appendAfter){
var _123=Adman.$C("div");
_123.innerHTML=this.options.appendAfter;
for(var i=0,l=_123.childNodes.length;i<l;i++){
_113.parentNode.insertBefore(_123.childNodes[i],_113.nextSibling);
}
_123=null;
}
if(this.instances[i+1]&&(this.instances[i+1].node==_117)){
this.instances[i+1].node=node.nextSibling.nextSibling;
_11b=this.instances[i+1].reg.offset-(this.instances[i].reg.offset+this.instances[i].match.length);
}else{
_117=null;
_11b=null;
}
}
return this;
},create:function(_124){
var self=this;
this.placeholder=Adman.$C("div");
this.placeholder.style.cssText="padding: 0; width: auto; margin: 0; border: none; font-size: 12px; background: transparent;";
this.placeholder.style.position="absolute";
this.placeholder.style.textAlign="left";
this.placeholder.style.display="none";
this.placeholder.className="adman-reactive-placeholder"+(this.options.className?" "+this.options.className:"");
this.contentholder=Adman.$C("div");
this.contentholder.style.cssText="padding: 0; width: auto; margin: 0; border: none; font-size: 12px;background: transparent;";
this.contentholder.style.width=this.options.width=="auto"?"auto":(this.options.width+"px");
this.contentholder.style.height=this.options.height=="auto"?"auto":(this.options.height+"px");
this.contentholder.className="adman-reactive";
this.placeholder.appendChild(this.contentholder);
this.setContent(this.options.src);
if(this.options.closer){
var img=Adman.$C("img");
Adman.addEvent(img,"load",function(){
this.closer=Adman.$C("div");
this.closer.style.cssText="width: "+img.width+"px;height:"+img.height+"px; background:url("+this.options.closer+"); position: absolute; right: 0; top: 0; margin-right: -"+(img.width/1.5)+"px; margin-top: -"+(img.height/1.5)+"px; cursor: pointer;";
this.placeholder.appendChild(this.closer);
this.closer.onclick=function(){
self.collapse();
};
}._bind(this));
img.src=this.options.closer;
}
!window.iOS&&!window.android&&Adman.addEvent(this.placeholder,"mouseover",function(_127){
self.expand();
});
!window.iOS&&!window.android&&Adman.addEvent(this.placeholder,"mouseout",function(_128){
var rel=_128.toElement||_128.relatedTarget;
var _12a=_128.target||_128.srcElement;
if(rel&&rel!==self.placeholder&&rel.parentNode!==self.placeholder&&(!rel.parentNode.parentNode||(rel.parentNode.parentNode&&rel.parentNode.parentNode!==self.placeholder))){
self.options.collapse&&self.collapse(null);
}
});
document.body.appendChild(this.placeholder);
return this;
},getType:function(_12b){
var type="";
if(/\.swf/i.test(_12b)){
type="flash";
}else{
if(/\.(png|gif|jpg|jpeg|tiff)/gi.test(_12b)){
type="image";
}else{
if(/^http:\/\//.test(_12b)){
type="iframe";
}else{
type="html";
}
}
}
return type;
},setContent:function(_12d){
this.content=_12d;
this.type=this.getType(_12d);
var html="";
if(this.type==="flash"){
html=Adman.Utils.getFlashHTML.call(this,this.options.width,this.options.height);
}else{
if(this.type==="image"){
html="<a href=\""+this.options.url+"\" target=\"_blank\" title=\"click for more\"><img alt=\"click for more\" style=\"display: block; margin: 0; padding: 0; border; none;\" src=\""+_12d+"\" /></a>";
}else{
if(this.type==="iframe"){
html="<iframe src=\""+_12d+"\" style=\"border: none; width: 100%; height: 100%; background: white url(\"http://www.adman.gr/assets/img/loading.gif\") no-repeat center center;\" frameborder=\"none\"></iframe>";
}else{
html=_12d.replace(/\$DESTINATION/gi,this.options.url).replace(/\$PHRASE/gi,this.phrase);
}
}
}
this.contentholder.innerHTML=html;
return this;
},expand:function(_12f,skip){
if(Adman.ReActive.current&&Adman.ReActive.current==this){
Adman.$clear(this.timers["collapse"]);
return this;
}
if(Adman.ReActive.current&&Adman.ReActive.current.isVisisble&&!Adman.ReActive.current.options.collapse){
return this;
}
_12f=_12f||this.target;
!this.placeholder&&this.create();
Adman.$clear(this.timers["collapse"]);
if(this.isVisible&&_12f===this.target){
return this;
}
if(!skip){
this.timers["expand"]=this.expand._delay(this.options.intervals.expand,this,_12f,true);
return this;
}
this.target=_12f;
this.target._admanContentAd=this;
this.prevPhrase=this.phrase;
this.phrase=_12f.innerHTML.toLowerCase();
if(this.type==="flash"){
this.options.flashVars.phrase=String(_12f.innerHTML);
}
if(!this.prevPhrase||((this.prevPhrase!=this.phrase)&&(this.type!=="image"))){
this.setContent(this.content);
}
this.isVisible=true;
Adman.ReActive.current=this;
if(this.options.enableMetrics&&this.$expandTimer&&this.$expand){
void (this.$expandTimer.start());
void (this.$expand.invoke());
}
return this.pos().invokeEvent("expand",this.target);
},collapse:function(_131,skip){
if(arguments.length===0&&_131!==null){
skip=true;
}
if(this.isVisible===false||!this.placeholder){
return this;
}
Adman.$clear(this.timers["expand"]);
if(skip!==true){
this.timers["collapse"]=this.collapse._delay(this.options.intervals.collapse,this,_131,true);
return this;
}
this.placeholder.style.display="none";
this.isVisible=false;
this.target=null;
Adman.ReActive.current=null;
if(this.$collapse){
void (this.$collapse.invoke());
void (this.$expandTimer.finish());
}
return this.invokeEvent("collapse");
},pos:function(){
this.placeholder.style.visibility="hidden";
this.placeholder.style.display="block";
var pos=Adman.getPosition(this.target);
var _134=pos.x;
var _top=pos.y-this.placeholder.offsetHeight-5;
if(window.iOS||window.android){
}
if(_top-(window.pageYOffset||document.body.scrollTop)<0){
_top=pos.y+this.target.offsetHeight+5;
}
with(this.placeholder.style){
left=_134+"px";
top=_top+"px";
visibility="visible";
}
return this;
}}).implement(new Adman.Options,new Adman.Events);
Adman.ReActive.findRoot=function(){
var _136=[];
var _137=[];
var _138,_139;
var _13a={"ARTICLE":100,"POST":50,"P":30,"LI":-10,"DD":-5,"TD":-5,"TH":-5,"A":-40,"SPAN":2,"H1":-5,"H2":-5,"H3":10,"HR":5,"BR":5,"div":-5};
var _13b=function(_13c){
if(_13c.nodeName==="SCRIPT"||_13c.nodeName==="STYLE"){
return;
}
for(var i=0,l=_13c.childNodes.length;i<l;i++){
if(_13c.childNodes[i].nodeType===3){
if(_13c.childNodes[i].nodeValue.replace(/^\s+|\s+$/,"")){
_136.push(_13c.childNodes[i]);
}
}else{
if(!_13c.childNodes[i]._done){
_136.push({"parentNode":_13c.childNodes[i].parentNode,"nodeValue":" ","textContent":" ","parentNode":_13c});
_13c.childNodes[i]._done=true;
}
}
if(_13c.childNodes[i].nodeType===1){
_13b(_13c.childNodes[i]);
}
}
};
document.body&&_13b(document.body);
for(var i=0,l=_136.length;i<l;i++){
_138=_136[i];
_139=_138.parentNode;
if(!_139.$id){
_139.$id=_139.$id||"sort_"+i;
_139.$score=0;
if(_139.className.match(/(comment|meta|footer|footnote)/)){
_139.$score-=150;
}else{
if(_139.className.match(/((^|\\s)(post|hentry|entry[-]?(content|text|body)?|article[-]?(content|text|body)?)(\\s|$))/)){
_139.$score+=25;
}
}
if(_139.id.match(/(comment|meta|footer|footnote)/)){
_139.$score-=150;
}else{
if(_139.id.match(/^(post|hentry|entry[-]?(content|text|body)?|article[-]?(content|text|body)?)$/)){
_139.$score+=25;
}
}
var brbr=_139.innerHTML.split(new RegExp("<br/?>[ \r\ns]*<br/?>","g"));
if(brbr&&brbr.length){
_139.$score+=15;
}
_137.push(_139);
}
_139.$score=_139.$score||0;
var c=_138[window.ie?"nodeValue":"textContent"].replace(/^\s+|\s+$/,"");
var _143=_13a[_139.nodeName]||1;
var _144=(c&&c.length)?c.split(/,| |\./).length:0;
var _145=Math.max(0,c.split(/,/gi).length-1);
if(c.length<25){
_144=0;
}
!_139._scoreAdded&&(_139.$score+=_143);
_139._scoreAdded=true;
_139.$score+=_144*0.5;
_139.$score+=_145*2;
if(/^(P|SPAN|STRONG|EM|A|DD|DL|DT|DL)$/gi.test(_139.nodeName)){
var _146=_139.parentNode;
if(/^(LI|DT|DD|TH|TD)/.test(_139.nodeName)&&_139.parentNode.parentNode){
_146=_139.parentNode.parentNode;
}
if(_146){
if(!_146.$id){
_146.$id=_146.$id||"sort_"+i;
_146.$score=0;
_137.push(_146);
}
if(_139.nodeName==="A"){
_146.$score-=_139.$score;
}else{
if(_146.id==="lala"){
console.log(_139,_139.nodeName,_139.$score);
}
_146.$score+=_139.$score;
}
}
}
}
var fn=function(a,b){
var _a=a.$score;
var _b=b.$score;
if(_a==_b){
return 0;
}
return _a<_b?1:-1;
};
_137.sort(fn);
this.root=_137[0];
console.log(this.root,this.root.$score,_137[1],_137[2]);
if(this.root&&this.root.$score<50){
this.root=null;
return false;
}
if(this.root){
}else{
console.log("NO ROOT");
}
return this.root;
};
Adman.IFrameBursting=new Adman.Class({"options":{"pubSidePath":"/dmn/Adman_ibuster.html"},"iframe":null,"initialize":function(_14c){
this.setOptions(_14c);
var _14d=self.document.referrer;
var _14e=this.getProtocol(_14d)+"//"+this.getHost(_14d)+this.options.pubSidePath;
var _14f="";
var keys="";
Adman.$each(_14c,function(_151,key){
_14f+=_151+"!0!";
keys+=key+"!0!";
});
keys=keys.substring(0,keys.length-3);
return this.createIframe(_14e+"?obj="+keys+"@"+_14f+"&rnd="+(+new Date));
},"getHost":function(path){
var host,_155;
if((path.length>=7)&&(path.substr(0,7)=="http://")){
host=path.substr(7);
}else{
if((path.length>=8)&&(path.substr(0,8)=="https://")){
host=path.substr(8);
}else{
host=path;
}
}
_155=host.indexOf("/");
_155>0&&(host=host.substr(0,_155));
return host;
},"getProtocol":function(path){
var _157="";
if((path.length>=5)&&(path.substr(0,5)=="http:")){
_157="http:";
}else{
if((path.length>=6)&&(path.substr(0,6)=="https:")){
_157="https:";
}else{
_157="http:";
}
}
return _157;
},"createIframe":function(path){
this.iframe=Adman.$C("iframe");
this.iframe.setAttribute("src",path);
this.iframe.setAttribute("id","innerIframe");
this.iframe.setAttribute("heigth",0);
this.iframe.setAttribute("width",0);
this.iframe.setAttribute("frameborder",0);
document.body.appendChild(this.iframe);
return this.iframe;
}}).implement(new Adman.Options);
Adman.Metrics=new Adman.Class({options:{"onUnload":0,"dev":document.location.href.indexOf("192.168.1.200")!==-1,"enabled":true,"trackerURI":"index.php"},initialize:function(_159,_15a){
this.banner=_159;
this.setOptions(_15a);
this.timers={};
this.actions={};
this.trackerURI=this.options.trackerURI;
this.all=[];
var _15b=(function(){
this.tracker=Adman.$C("iframe");
with(this.tracker.style){
position="absolute";
top="-100px";
left="-100px";
}
with(this.tracker){
width=10;
height=10;
frameBorder=0;
}
this.tracker.style.visibility="visible";
})._bind(this);
if(document.body&&!window.ie){
_15b();
this.tracker.style.visibility="hidden";
document.body.appendChild(this.tracker);
}else{
Adman.addEvent(window,"load",function(){
_15b();
this.tracker.style.visibility="hidden";
document.body.appendChild(this.tracker);
}._bind(this));
}
Adman.addEvent(window,"beforeunload",this.submit._bind(this));
if(this.options.timers){
Array._each(this.options.timers,function(_15c){
this.addTimer(_15c);
},this);
}
if(this.options.actions){
Array._each(this.options.actions,function(_15d){
this.addAction(_15d);
},this);
}
return this;
},add:function(obj){
if(obj.timers){
Array._each(obj.timers,function(_15f){
this.addTimer(_15f);
},this);
}
if(obj.actions){
Array._each(obj.actions,function(_160){
this.addAction(_160);
},this);
}
return this;
},detectAdmanURI:function(){
var _161,_162,_163,_164;
if(!this.banner||(!this.banner.element&&!this.banner.options.url)){
return this;
}
if(this.banner.element){
var _165=this.banner.element.getElementsByTagName("param");
for(var i=0;i<_165.length;i++){
if(_165[i].name==="flashvars"){
_161=decodeURIComponent(_165[i].value);
}
}
if(_161){
if(_161=_161.match(/&(go|clickTag)=http:\/\/(.*?)\/click\/(.*?)\/(.*?)\//)){
_162=_161[3];
_163=_161[4];
_164=_161[2];
}
}
}else{
if(matches=this.banner.options.url.match(/http:\/\/(.*?)\/click\/(.*?)\/(.*?)\//)){
_162=matches[2];
_163=matches[3];
_164=matches[1];
}
}
if(!_162&&!_164&&!_163){
console.warn&&console.warn("Unable to figure out bannerID, instanceID && admanBase");
if(!this.options.dev){
this.disableSubmission=true;
}
}else{
window.console&&console.info&&console.info("BannerID: "+_162+",InstanceID: "+_163+", admanBase: "+_164+" are detected");
if(!this.options.dev){
this.options.trackerURI="http://"+_164+"/track/"+_163;
}
this.disableSubmission=false;
}
return true;
},addTimer:function(name){
this.all.push(this.timers[name]=new Adman.Metrics.Timer(name));
this.banner["$"+name]=this.timers[name];
return this.timers[name];
},addAction:function(name){
this.all.push(this.actions[name]=new Adman.Metrics.Action(name));
this.banner["$"+name]=this.actions[name];
return this.actions[name];
},get:function(){
var obj={},self=this;
Adman.$each(this.actions,function(_16b,name){
if(_16b.value>0){
obj[name]=_16b.value;
}
});
Adman.$each(this.timers,function(_16d,name){
var _16f=_16d.get();
_16d.finish();
if(!_16f&&self.actions[name.replace(/Timer/,"")]){
delete (obj[name.replace(/Timer/,"")]);
}
if(_16f>0){
obj[name]=parseInt(_16d.get())+"s";
}
});
return obj;
},submit:function(){
var obj=this.get(),_171=[],skip=true;
if(!this.detectAdmanURI()||this.isSubmmited){
return this;
}
this.isSubmmited=true;
obj["rnd"]=new Date().getTime()+""+Math.floor(Math.random()*100);
Adman.$each(obj,function(_173,key){
if(key!=="rnd"&&parseFloat(_173)){
skip=false;
}
_171.push(key+"="+_173);
});
if(skip||!this.options.enabled){
return;
}
console.log("Submitting metrics");
if(this.tracker&&this.tracker.style){
this.tracker.style.top=this.tracker.style.left=0;
if(Adman.debug){
alert(_171.join("&"));
}
if(!this.disableSubmission){
this.tracker.src=this.options.trackerURI+"/?"+_171.join("&");
}
}else{
return;
}
Array._each(this.all,function(_175,_176){
_175.reset();
});
var ts=+new Date();
for(var i=0;i<2300;i=i+0.01){
}
return;
}}).implement(new Adman.Options);
Adman.Metrics.Timer=new Adman.Class({options:{"minTimer":100,"maxTimer":150000,"maxIdleTs":45000},initialize:function(name,_17a){
this.name=name;
this.value=0;
return this;
},enableIdleCheck:function(){
if(this.idleCheckEnabled){
return false;
}
this._previousIdleTs=+new Date;
Adman.addEvent(window,"mousemove",function(){
this._idleTs=new Date().getTime()-this._previousIdleTs;
this._previousIdleTs=new Date().getTime();
if(this._idleTs>this.options.maxIdleTs){
this.startTs=this._previousIdleTs;
console.warn("Timer exceeded maxTimer: Reseting timer to NOW");
}
}._bind(this));
this.idleCheckEnabled=true;
return this;
},start:function(){
this.isRunning=true;
this.startTs=new Date().getTime();
return this;
},finish:function(){
if(!this.isRunning){
return this;
}
this.value+=Math.abs(new Date().getTime()-this.startTs);
if(this.value>this.options.maxTimer){
this.value=100;
}
if(this.value<this.options.minTimer){
this.value=0;
}
this.isRunning=false;
this.value=Math.abs(this.value);
return this;
},reset:function(){
this.value=0;
return this;
},get:function(){
return parseInt((this.isRunning?this.value+(new Date().getTime()-this.startTs):this.value));
}});
Adman.Metrics.Action=new Adman.Class({initialize:function(name){
this.name=name;
this.value=0;
return this;
},reset:function(){
this.value=0;
return this;
},invoke:function(){
this.value++;
return this;
}});
Adman.loaded=true;
Adman.Overlay=new Adman.Class({options:{color:"black"},initialize:function(_17c,_17d){
this.setOptions(_17d);
this.instance=_17c;
this.element=Adman.$C("div");
this.instance.placeholder.appendChild(this.element);
with(this.element.style){
position="fixed";
display="none";
top=bottom=left=right=0;
zIndex=this.instance.zIndex-1;
backgroundColor=this.options.color;
}
this.isHidden=true;
return this;
},open:function(){
this.element.style.display="block";
this.isHidden=false;
return this.invokeEvent("open");
},close:function(){
this.element.style.display="none";
this.isHidden=true;
return this.invokeEvent("close");
}}).implement(new Adman.Options,new Adman.Events);
Adman.Transition=new Adman.Class({options:{time:300},initialize:function(_17e,_17f,_180){
_180&&this.setOptions(_180);
this.element=Adman.$(_17e);
this.property=_17f;
return this;
},getStyle:function(){
var ret;
if(this.property==="opacity"){
if(this.element.filters){
ret=this.element.filters&&this.element.filters.alpha&&typeof (this.element.filters.alpha.opacity)==="number"?parseFloat(this.element.filters.alpha.opacity)/100:100;
}else{
ret=+this.element.style[this.property];
}
}else{
ret=parseInt(this.element.style[this.property]);
}
return ret;
},setStyle:function(_182){
if(this.property==="opacity"){
this.element.style[this.property]=_182;
this.element.style.filter&&(this.element.style.filter="alpha(opacity="+(_182*100)+")");
}else{
this.element.style[this.property]=_182+"px";
}
return this;
},animate:function(){
var that=this;
this.now=new Date();
this.diff=this.now-this.startTime;
if(this.diff>this.options.time){
this.setStyle(this.to);
this.invokeEvent("complete");
this.timer=Adman.$clear(this.timer);
return this;
}
this.percentage=(Math.floor((this.diff/this.options.time)*100)/100);
this.value=(this.diffAnim*this.percentage)+this.from;
this.setStyle(this.value);
return this;
},start:function(){
var self=this;
if(arguments.length>1){
this.from=arguments[0];
this.to=arguments[1];
}else{
this.from=this.getStyle();
this.to=arguments[0];
}
this.diffAnim=this.to-this.from;
this.stop();
var that=this;
this.startTime=+new Date();
this.timer=setInterval(function(){
self.animate.call(self);
},1);
return this;
},stop:function(){
this.timer=Adman.$clear(this.timer);
return this;
}}).implement(new Adman.Events,new Adman.Options);
window.flashVersion=window.flashVersion||(function(){
var _186={major:0,minor:0,rev:0};
var _187;
if(navigator.plugins&&navigator.mimeTypes.length){
var _187=navigator.plugins["Shockwave Flash"];
if(_187&&_187.description){
_187.description.match(/[a-zA-Z\s]([0-9]+)\.([0-9]+)\s*[rb]([0-9]+)/);
_186={major:RegExp.$1,minor:RegExp.$2,rev:RegExp.$3};
}
}else{
if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>0){
var _188=4;
while(_188){
try{
_188++;
_187=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_188);
_186.major=_188;
}
catch(ex){
s;
_187=null;
}
}
}else{
try{
_187=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(ex){
try{
_187=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_186={major:6,minor:0,rev:21};
_187.AllowScriptaAccess="always";
}
catch(ex){
if(_186.major===6){
return _186;
}
}
}
try{
_187=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(ex){
_187=null;
}
if(_187!==null){
var _189=_187.GetVariable("$version").split(" ")[1].split(",");
_186.major=_189[0];
_186.minor=_189[1];
_186.rev=_189[2];
}else{
}
}
}
Adman.$each(_186,function(_18a,key){
_186[key]=parseInt(_18a);
});
return _186;
})();
if(window.opera){
try{
if(typeof (parent.admanMSCheckState)!=="undefined"){
parent.admanMSCheckState();
}
}
catch(ex){
}
}
if(window.flashVersion){
window.fV=window.flashVersion.major;
}
AdmanMSN={"win":null,"doc":null,"placeholderExp":null,"clicked":false,"dump":null,"left":null,"top":null,"inPage":false,"panel":null,initialize:function(_18c){
var _18d=this.options;
if(this.initialized&&!this.inPage){
this.doc.body.innerHTML="";
this.build(_18c);
return;
}
if(this.initialized){
return false;
}
if(!this.inPage){
this.win=window.createPopup();
this.doc=this.win.document;
}else{
this.placeholderExp=Adman.$C("div");
this.placeholderExp.style.display="none";
this.placeholder=Adman.$(document.getElementsByTagName("div")[2]);
this.placeholder.parentNode.insertBefore(this.placeholderExp,this.placeholder);
}
this.dump={};
this.dump.options={"src":_18d.scr,"wmode":"window","width":this.options.width,"height":this.options.height,"left":0,"top":0,"bgcolor":this.options.bgcolor||"#000000","active":true,"flashVars":this.options.flashVars};
this.build(_18c);
this.initialized=true;
},build:function(_18e){
if(_18e===true){
build_options=Adman.$merge(this.dump,{});
build_options.options.width=this.panel.width;
build_options.options.height=this.panel.height;
build_options.options.src=this.panel.scr;
build_options.options.collapse=false;
}else{
build_options=this.dump;
}
this.timer=setInterval(function(){
if(!AdmanMSN._isMinimized&&window.screenLeft<0&&window.screenTop<0){
AdmanMSN._isMinimized=true;
AdmanMSN.close();
}
},200);
if(!this.inPage){
if(_18e===true){
this.doc.body.innerHTML=Adman.Utils.getFlashHTML.call(build_options);
}else{
with(this.doc){
open();
write("<html><body bottommargin=\"0\" leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" style=\"border: solid black 1px; overflow:hidden;\">");
write(Adman.Utils.getFlashHTML.call(build_options));
write("</body></html>");
close();
}
}
}else{
this.placeholderExp.innerHTML=Adman.Utils.getFlashHTML.call(this.dump);
}
if(build_options.options.collapse!==false){
Adman.addEvent(!this.inPage?this.doc.body:this.placeholderExp,"mouseout",this.close._bind(AdmanMSN));
}
return this;
},hit:function(){
typeof (admanMSClick)!=="undefined"&&Adman.trigger(admanMSClick);
this.close();
this.clicked=true;
(function(){
AdmanMSN.clicked=false;
})._delay(500);
},open:function(_18f){
this.initialize(_18f);
if(this.clicked){
return false;
}
if(this.inPage){
this.placeholder.style.display="none";
this.placeholderExp.style.display="block";
return this;
}
if(_18f===true){
var pw=this.panel.width,ph=this.panel.height;
}else{
var pw=this.options.width,ph=this.options.height;
}
var ox=this.options.left,oy=this.options.top;
var sl=window.screenLeft,st=window.screenTop;
var sw=screen.width,sh=screen.height;
if(this.options.top<0){
if(st<Math.abs(oy)){
oy=-st;
}else{
if(st+ph-Math.abs(oy)>sh){
oy=sh-st-ph;
}
}
}else{
var maxY=sh-st-ph;
if(st+ph>sh){
oy=maxY;
}
}
if(this.options.left<0){
if(sl<Math.abs(ox)){
ox=-sl;
}else{
if(sl+pw-Math.abs(ox)>sw){
ox=sw-sl-pw;
}
}
}else{
var maxX=sw-sl-pw;
if(sl+pw>sw){
ox=maxX;
}else{
if(sl<0){
ox=-sl;
}
}
}
this.win.show(ox,oy,pw,ph,document.body);
},close:function(){
this.timer&&Adman.$clear(this.timer);
this._isMinimized=false;
if(!this.inPage){
return this.win.hide();
}else{
this.placeholder.style.display="block";
this.placeholderExp.style.display="none";
}
},showIP:function(){
this.close();
this.open(true);
},toggleFullScreen:function(mode){
if(mode===true){
(function(){
AdmanMSN.win.show(0,0,screen.width,screen.height);
})._delay(100);
}else{
this.close();
}
}};
Adman.onLoad(function(){
Adman.fixDOM();
if(typeof window.console==="undefined"){
window.console={log:function(msg){
},warn:function(msg){
}};
}
});
})("Adman");

