// Core.Packed: 18/08/2010 15:25:01
!("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.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";
window.safari=window.safari2=window.safari3=false;
}
window.iDevice=(navigator.platform.indexOf("iP")===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={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;
}
},$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){
_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]){
ap=arguments[i][_1a];
mp=mix[_1a];
if(typeof (ap)=="object"&&typeof (mp)=="object"){
mix[_1a]=Adman.$merge(mp,ap);
}else{
mix[_1a]=ap;
}
}
}
return mix;
},$extend:function(){
var _1b=arguments;
if(!_1b[1]){
_1b=[this,_1b[0]];
}
if(!_1b[1]){
return _1b[0];
}
for(var p in _1b[1]){
_1b[0][p]=_1b[1][p];
}
return _1b[0];
},$uniqueID:function(obj){
var _1e=Adman.scope;
if(Adman.MS&&window.___parent&&window.parent&&window.parent!=Adman.scope){
_1e=window.parent;
}
if(_1e.AdmanUID==undefined){
_1e.AdmanUID=0;
}else{
_1e.AdmanUID+=1;
}
if(!obj._UID){
obj._UID="UID"+_1e.AdmanUID;
}
return obj._UID;
},$clear:function(_1f){
clearInterval(_1f);
clearTimeout(_1f);
return ((_1f=null));
},getPosition:function(_20){
var el=_20,_22=0,top=0;
do{
_22+=el.offsetLeft||0;
top+=el.offsetTop||0;
el=Adman.$(el.offsetParent);
}while(el);
return {"x":_22,"y":top};
},getNext:function(_24){
if(_24.nodetype==1){
return _24;
}
while((_24=_24.nextSibling)&&_24.nodeType!=1){
}
return _24;
},addEvent:function(_25,_26,fn){
if(!fn){
return false;
}
var _28=false;
if(!_25){
return;
}
if(_26=="mousewheel"&&window.gecko){
_26="DOMMouseScroll";
}
if(Adman.MS&&document.body){
Adman.scope._DOMContentLoadedAdman=true;
}
if(_26=="DOMContentLoaded"&&(document.readyState==="complete"||window._DOMContentLoadedAdman===true)){
fn();
return this;
}
if(_26=="DOMContentLoaded"&&(!document.addEventListener||window.safari2)){
if(!Adman.scope._DOMCLEventsAdman){
Adman.scope._DOMCLEventsAdman=Adman.scope._DOMCLEventsAdman||[];
var _29=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(_2d){
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){
_29();
Adman.scope._DOMScriptElementAdman.onreadystatechange=null;
Adman.scope._DOMScriptElementAdman.parentNode.removeChild(Adman.scope._DOMScriptElementAdman);
window._DOMScriptElementAdman=null;
}else{
window.onload=function(){
_29();
window._DOMScriptElementAdman.onreadystatechange=null;
Adman.scope._DOMScriptElementAdman.parentNode.removeChild(Adman.scope._DOMScriptElementAdman);
window._DOMScriptElementAdman=null;
};
}
},50);
}
};
};
if(window.ie){
_ie();
}else{
if(window.safari){
window._DOMCLTimerAdman=function(){
if(/loaded|complete/.test(document.readyState)){
}
}.periodical(50);
}else{
Adman.addEvent(Adman.scope,"onload",_29);
}
}
}
Adman.scope._DOMCLEventsAdman.push(fn);
_28=true;
}
var _2e=false;
fn=(_2e||fn.bound)?fn:fn._bind(this);
if(!_28){
_25.addEventListener?_25.addEventListener(_26,fn,false):_25.attachEvent("on"+_26,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 _30=document.getElementsByTagName("script"),_31;
if(_30){
Array._each(_30,function(_32,_33){
if(_32.src.indexOf("DartRichMedia")!==-1){
if((_31=Adman.getNext(_32))&&_31.nodeName==="TABLE"){
try{
_31.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(_35){
_35.style.visibility="hidden";
});
Array._each(Adman.$CN("adman-placement"),function(_36){
_36.style.visibility="hidden";
});
};
Adman.show=function(){
Array._each(Adman.$CN("adman-element"),function(_37){
_37.style.visibility="visible";
});
Array._each(Adman.$CN("adman-placement"),function(_38){
_38.style.visibility="hidden";
});
};
var _39={_extend:function(_3a){
for(var i=0,j=_3a.length;i<j;i++){
Array._include(this,_3a[i]);
}
return this;
},_include:function(_3d){
if(!Array._contains(this,_3d)){
this.push(_3d);
}
return this;
},_remove:function(_3e){
var i=0,len=this.length;
while(i<len){
if(this[i]===_3e){
this.splice(i,1);
len--;
}else{
i++;
}
}
return this;
},_contains:function(_41){
return !!(Array._indexOf(this,_41)!=-1);
},_indexOf:function(_42){
for(var i=0;(thisItem=this[i]);i++){
if(thisItem==_42){
return i;
}
}
return -1;
},_each:function(fn,_45){
for(var i=0,j=this.length;i<j;i++){
fn.call((_45||this[i]),this[i],i,this);
}
}};
Adman.$each(_39,function(fn,_49){
Array[_49]=function(_4a){
return fn.apply(_4a,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 _4c=Adman.$A(arguments);
var _4d=_4c.shift();
var _4e=function(e){
return e&&e.type&&!e.extended&&(e.target||e.srcElement!==undefined);
};
var _50=Adman;
var _51=function(){
var _52=_50.$A(arguments)||[];
var evt=_52[_52.length-1],_54;
var _55=_50.$A(_4c);
if(_4e(evt)){
if(_4e(_55[_52.length-1])){
_55.pop();
}
if((_54=_52.pop())&&_54.length){
Array._extend(_55,_52);
}
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){
}
}
};
_55.push(evt);
}else{
_55=_55.concat(_52);
}
if(_4d&&_4d.nodeType&&_4d.nodeType==1){
_4d=$(_4d);
}
return fn.apply(_4d,_55);
};
_51.bound=true;
return _51;
},_delay:function(_56,_57){
var _58=this;
var _59=arguments;
var fn=function(){
return _58.apply(_57,Adman.$A(_59).slice(2));
};
return setTimeout(fn,_56);
},_periodical:function(_5b,_5c){
var _5d=this;
var _5e=arguments;
var fn=function(){
return _5d.apply(_5c,Adman.$A(_5e).slice(2));
};
return setInterval(fn,_5b);
}});
Adman.Utils={shield:function(_60){
var _61,_62,pos,_64,_65;
if(!(window.ie6||window.ie5)){
return _60;
}
if(!(_60=Adman.$(_60))){
return false;
}
if(!_60._shield){
_60._shield=Adman.$C("iframe");
_60._shield.marginheight=0;
_60._shield.marginwidth=0;
_60._shield.scrolling="no";
_60._shield.frameBorder=0;
_60._shield.style.width=_60.offsetWidth+"px";
_60._shield.style.height=_60.offsetHeight+"px";
_60._shield.style.filter="mask()";
_60._shield.style.zIndex=-1;
_60._shield.style.position="absolute";
_60._shield.style.top=0;
_60._shield.style.left=0;
_60.style.visibility="visible";
_60.insertBefore(_60._shield,_60.firstChild);
}
pos=Adman.getPosition(_60);
_64=_60.style.clip;
if(_64&&_64!=="rect(auto auto auto auto)"){
return _60._shield;
}else{
_60._shield.style.display="block";
_61=_60.offsetWidth;
_62=_60.offsetHeight;
}
_60._shield.style.width=_61+"px";
_60._shield.style.height=_62+"px";
return _60._shield;
},getImgHTML:function(src,_67,_68,url){
var _6a="";
if(!src||src.indexOf("http")==-1){
src="http://www.adman.gr/void.gif";
_6a=" style=\"background: url(http://www.adman.gr/void-check.gif)\"";
_68=2;
}
return "<a href=\""+url+"\" target=\"_blank\" title=\"Click here for more information\"><img galleryimg=\"no\" src=\""+src+"\" width=\""+_67+"\" height=\""+_68+"\" alt=\"alt image\" title=\"Click for more information\" "+_6a+" /></a>\n";
},getFlashHTML:function(_6b,_6c,_6d){
_6b=_6b||this.options.width;
_6c=_6c||this.options.height;
_6d=_6d||"";
_6d+=";visibility: visible; z-index:9999;outline: none;";
if(!this.options.active&&!window.webkit){
_6d+="display: none;";
}
var _6e="",_6f=this.options.base;
var _70=[],_71=Adman.$merge(this.options.flashVars),_72="";
if(this.options.url){
_71[this.options.clickTag]=this.options.url;
}
_71["admanInstance"]="Adman.instances['"+Adman.$uniqueID(this)+"']";
if(!_6f&&(_6e=this.options.src.match(/http.*\//))){
_6f=_6e[0];
}
if(!_6f){
_6f=location.href.toString().match(/http.*\//);
if(_6f){
_6f=_6f[0];
}
}
if(this.options.src.indexOf("http://")===-1){
this.options.src=_6f+this.options.src;
}
Adman.$each(_71,function(_73,key){
_72+=(_72?"&":"")+encodeURIComponent(key)+"="+encodeURIComponent(_73);
});
var src=this.options.src;
if(this.options.url){
src+="?"+this.options.clickTag+"="+this.options.url;
}
if(window.iDevice){
return Adman.Utils.getImgHTML(this.options.image,this.options.width,this.options.height,this.options.url);
}
if(1){
_70.push("<object class=\"adman-element\" "+(window.ie?"unselectable=\"on\"":"")+" id=\"adman-element-"+Adman.$uniqueID(this)+"\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ");
if(_6d){
_70.push("style=\""+_6d+"\" ");
}
_70.push("data=\""+src+"\" ");
_70.push("type=\"application/x-shockwave-flash\" ");
_70.push("width=\""+_6b+"\" height=\""+_6c+"\">");
_70.push("<param name=\"menu\" value=\"false\" />");
_70.push("<param name=\"movie\" value=\""+this.options.src+"\" />");
_70.push("<param name=\"wmode\" value=\""+this.options.wmode+"\" />");
_70.push("<param name=\"bgcolor\" value=\""+this.options.bgcolor+"\" />");
if(window.webkit){
_70.push("<param name=\"play\" value=\""+this.options.active+"\" />");
}
_70.push("<param name=\"allownetworking\" value=\"all\" />");
_70.push("<param name=\"allowscriptaccess\" value=\"always\" />");
_70.push("<param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" />");
_70.push("<param name=\"quality\" value=\"high\" />");
if(_6f){
_70.push("<param name=\"base\" value=\""+_6f+"\" />");
}
if(_72){
_70.push("<param name=\"flashvars\" value=\""+_72+"\" />");
}
if(this.options.image){
_70.push(Adman.Utils.getImgHTML(this.options.image,this.options.width,this.options.height,this.options.url));
}else{
_70.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.");
_70.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>");
}
_70.push("</object>");
}else{
_70.push("<embed class=\"adman-element\" id=\"adman-element-"+Adman.$uniqueID(this)+"\" type=\"application/x-shockwave-flash\" src=\""+this.options.src+"\" ");
if(_6d){
_70.push("style=\""+_6d+"\" ");
}
if(_72){
_70.push("flashvars=\""+_72+"\" ");
}
_70.push("width=\""+_6b+"\" allownetworking=\"all\" height=\""+_6c+"\" style=\"outline: none;\"  bgcolor=\""+this.options.bgcolor+"\" wmode=\""+this.options.wmode+"\" quality=\"high\" menu=\"false\" ");
_70.push(" allowScriptAccess=\"always\" play=\""+this.options.active+"\" swLiveConnect=\"true\" />");
}
return _70.join("\n");
},toOpaque:function(_76){
if(_76.push){
_76.each(Adman.utils.toOpaque);
return;
}
var _77,_78,_79;
_76=Adman.$(_76);
if(!_76){
return false;
}
if(_76.nodeName==="OBJECT"){
_79=_76;
_78=_79.getElementsByTagName("embed");
if(_78){
_78=_78[0];
}
}
if(_76.nodeName==="EMBED"){
_78=_76;
_79=_78.parentNode;
}
if(_79&&window.ie){
_79.outerHTML=_79.outerHTML.replace(/param name="wmode" value=".*?"/gi,"param name=\"wmode\" value=\"opaque\"");
}
if(_78){
_78.setAttribute("wmode","opaque");
_79.innerHTML=_79.innerHTML;
}
return true;
}};
Adman.Class=function(_7a){
var _7b=function(){
this.constructor=_7b;
return (arguments[0]!==null&&this.initialize)?this.initialize.apply(this,arguments):this;
};
Adman.$extend(_7b,this);
_7b.prototype=_7a||{};
_7b.constructor=Adman.Class;
return _7b;
};
Adman.Class.prototype={implement:function(){
var obj={},_7d=arguments;
if(typeof (arguments[0])=="string"&&arguments[1]){
obj[arguments[0]]=arguments[1];
_7d=[obj];
}
for(var i=0,l=_7d.length;i<l;i++){
Adman.$extend(this.prototype,_7d[i]);
}
return this;
},extend:function(_80){
var _81=new this(null);
for(var _82 in _80){
var pp=_81[_82];
_81[_82]=Adman.Class.Merge(pp,_80[_82]);
}
_81.constructor=this;
return new Adman.Class(_81);
}};
Adman.Class.Merge=function(_84,_85){
if(_84&&_84!=_85){
var _86=typeof (_85);
if(_86!=typeof (_84)){
return _85;
}
switch(_86){
case "function":
var _87=function(){
this.parent=arguments.callee.parent;
return _85.apply(this,arguments);
};
_87.parent=_84;
return _87;
case "object":
return Adman.$merge(_84,_85);
}
}
return _85;
};
Adman.empty=function(){
};
Adman.Events=new Adman.Class({addEvent:function(_88,fn){
if(fn!=Adman.empty&&typeof (fn)=="function"){
this.events=this.events||{};
this.events[_88]=this.events[_88]||[];
Array._remove(this.events[_88],fn);
Array._include(this.events[_88],fn);
}
return this;
},removeEvent:function(_8a,fn){
if(this.events&&this.events[_8a]){
if(fn){
this.events[_8a].remove(fn);
}else{
this.events[_8a]=null;
}
}
return this;
},hasEvent:function(_8c){
return (!!(this.events&&this.events[_8c]));
},invokeEvent:function(){
var _8d=Array.prototype.slice.call(arguments);
var _8e=_8d.shift();
if(this.events&&this.events[_8e]){
for(var i=0,l=this.events[_8e].length;i<l;i++){
this.events[_8e][i].apply(this,_8d);
}
}else{
if(!_8e._capitalize){
_8e=_8e.charAt(0).toUpperCase()+_8e.substring(1).toLowerCase();
}else{
_8e=_8e._capitalize();
}
if((fn=this["on"+_8e])){
fn.apply(this,_8d);
}
}
if(_8e!="event"){
if("admanLogger" in window){
window["admanLogger"].apply(this,arguments);
}
if(Adman.debug===true){
var id="";
if(/collapse|expand/.test(_8e)){
id="(EXPANDING) ";
}
if(!/frame|progress/.test(_8e)){
console.log(id+_8e);
}
}
}
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,_93){
this.addEvent(_93,fn);
},this);
}
Adman.$each(this.options,function(_94,key){
if(key.indexOf("on")===0&&typeof (_94)=="function"){
this.options[key]=null;
this.addEvent(key.toLowerCase().replace(/on/,""),_94);
}
},this);
Adman.$each(this.options,function(fn,_97){
var _98=this;
if(typeof (fn)=="function"){
this.options[_97]=function(){
return fn.apply(_98,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","enableMetrics":false,"active":true,"flashVars":{"source":"adman","ie":!!window.ie,"gecko":!!window.gecko,"webkit":!!window.webkit},"src":""},"initialize":function(_99){
this.setOptions(_99);
if(!this.options.src){
console.warn("Adman.Flash: Sorry you need a valid .swf source to continue");
return false;
}
var _9a=Adman.Utils.getFlashHTML.call(this);
this.isLoaded=true;
this.isActive=this.options.active;
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=_9a;
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
if(!window.moz&&!window.opera){
try{
if(this.element&&this.element["PercentLoaded"]){
var _9b=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)+"\"> "+_9a+"</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;
},"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 _9c=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(_9d){
if(this.options.enableMetrics&&this.$hoverTimer){
void (this.$hoverTimer.start());
}
_9d.stop&&_9d.stop();
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_9e){
if(this.options.enableMetrics&&this.$hoverTimer){
void (this.$hoverTimer.finish());
}
_9e.stop&&_9e.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={};
if(this.element){
var _9f=function(){
try{
if(this.element){
if(!window.ie&&!this.element["PercentLoaded"]){
return false;
}
var _a0=this.element.PercentLoaded();
this.invokeEvent("progress",_a0);
if(parseInt(_a0)===100){
this.timers["progress"]=Adman.$clear(this.timers["progress"]);
this.invokeEvent("load",this.element);
}
}
}
catch(ex){
}
};
var _a1=function(){
try{
if(this.element&&this.element["CurrentFrame"]){
var _a2=this.element.CurrentFrame();
this.invokeEvent("frame",_a2);
}
}
catch(ex){
if(this.timers){
this.timers["frame"]=Adman.$clear(this.timers["frame"]);
}
}
};
this.timers["progress"]=_9f._periodical(10,this);
this.timers["frame"]=_a1._periodical(10,this);
}
},"checkReadyState":function(){
if(this.__readyStateChecked){
return false;
}
this.__readyStateChecked=true;
var _a3=Adman.$CN("adman-error-container",this.placeholder)[0],_a4=0;
var _a5=true;
try{
_a4=this.element.PercentLoaded();
}
catch(ex){
_a5=false;
}
if(!_a5&&_a3&&_a3.style){
_a3.style.display="none";
return false;
}
try{
if(this.element&&_a4===0&&_a3){
_a3.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.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 _a6=null;
return;
if(!window.ie||this.isDOMFixed){
return false;
}
this.isDOMFixed=true;
try{
_a6=this.placeholder.previousSibling.previousSibling;
}
catch(ex){
_a6=null;
}
if(_a6&&_a6.nodeName==="DIV"&&_a6.id.toString().indexOf("google_ads_div")!==-1&&_a6.innerHTML.indexOf("gbanner")!==-1){
try{
_a6.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},"expand":true,"collapse":true,"shield":true,"expandOnInit":false,"enableMetrics":false,"placeholder":null,"wmode":"transparent","flow":false},"initialize":function(_a7){
this.setOptions(_a7);
if(!this.options.src){
console.warn("Adman.Expanding: Sorry you need a valid .swf source to continue");
return false;
}
var _a8="";
var _a9=[];
var _aa="clip: "+this.getClip(!this.options.expandOnInit);
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;
}
if(typeof (this.options.width)==="number"){
this.options.width=[this.options.width];
}
if(typeof (this.options.height)==="number"){
this.options.height=[this.options.height];
}
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 _ab=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":_ab,"y":top};
if(this.options.offset.top||this.options.offset.left){
if(window.ie7&&this.options.offset.top===0){
this.options.offset.top=1;
}
_a8="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){
}
_a9.push("<div class=\"adman-placeholder\" style=\""+(window.opera&&(this.options.wmode===null||this.options.wmode=="window")?"overflow: hidden;":"")+"z-index: "+(Adman.MS?"11":"99999998")+"; position: relative; width:"+this.options.width[0]+"px; height:"+this.options.height[0]+"px;margin: auto;\">");
_a9.push("<div id=\"adman-expanding-"+Adman.$uniqueID(this)+"\" style=\"margin: auto;position: absolute;z-index:"+(Adman.MS?"100":"99999997")+"; visibility: hidden; top: "+top+"px; left: "+_ab+"px; "+_aa+";\">");
_a9.push(Adman.Utils.getFlashHTML.call(this,Math.abs(this.options.width[1]),Math.abs(this.options.height[1]),_a8));
_a9.push("</div>");
_a9.push("</div>");
_a9=_a9.join("\n");
this.options.placeholder=Adman.$(this.options.placeholder);
this.isLoaded=true;
if(this.options.expandOnInit){
this.expanded=true;
}
if(window.ie&&!Adman.MS&&window.getRADIds){
AdmanMSN.inPage=true;
this.options.waitDOM=false;
}
if(this.options.waitDOM){
var _ad=document.body.id;
if(!this.options.placeholder&&!Adman.MS){
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>");
try{
}
catch(ex){
}
}
if(this.options.enableMetrics){
this.metrics=new Adman.Metrics(this);
}
Adman.onLoad(function(){
if(Adman.MS){
document.close();
document.body.id=_ad;
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=_a9;
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=_a9;
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)+"\">"+_a9+"</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 _af=this.placeholder.parentNode;
var _b0=parseInt(this.placeholder.style.zIndex);
while(_af&&_af.style){
if((parseInt(_af.style.zIndex)>0)&&(parseInt(_af.style.zIndex)<_b0)){
_af.style.zIndex=_b0;
}
_af=_af.parentNode;
}
if(this.options.enableMetrics&&this.metrics&&this.metrics.add){
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 _b1=this.element.PercentLoaded();
}
catch(ex){
this.isLoaded=false;
}
}
if(!this.isLoaded&&typeof (_b1)!=="undefined"){
return false;
}
this.fixDOM();
this.checkReadyState._delay(Adman.readyStateInterval,this);
Adman.addEvent(this.placeholder,"mouseover",function(_b2){
_b2.stop&&_b2.stop();
if(this.options.expand){
this.expand();
}
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_b3){
_b3.stop&&_b3.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 _b4=(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){
_b4.parentNode.parentNode.appendChild(this.placeholder);
}else{
_b4.parentNode.insertBefore(this.placeholder,_b4.parentNode.firstChild);
}
_b4.style.display="none";
var _b5=function(){
if(this.placeholder&&this.placeholder.parentNode){
this.placeholder.parentNode.removeChild(this.placeholder);
this.placeholder=null;
}
};
Adman.addEvent(window,"beforeunload",function(_b6){
if(document.readyState==="interactive"){
function _b7(){
document.detachEvent("onstop",_b7);
_b5();
};
document.attachEvent("onstop",_b7);
window.setTimeout(function(){
document.detachEvent("onstop",_b7);
},0);
}else{
if(document.readyState=="complete"){
_b5();
}
}
});
Adman.addEvent(parent,"unload",_b5._bind(this));
Adman.addEvent(top,"unload",_b5._bind(this));
Adman.addEvent(window,"unload",_b5._bind(this));
}
return this;
},"setClip":function(_b8){
if(!this.container||!this.container.style){
return false;
}
if(!_b8&&(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(_b8);
}
return this;
},"getClip":function(_b9){
var top=0,_bb=0,_bc=0,_bd=0;
if(!_b9){
return "rect(auto auto auto auto)";
}
if(this.options.width[1]<0){
_bc=Math.abs(this.options.width[1])-Math.abs(this.options.width[0]);
_bb=Math.abs(this.options.width[1]);
}else{
_bb=this.options.width[0];
}
if(this.options.height[1]<0){
top=Math.abs(this.options.height[1])-Math.abs(this.options.height[0]);
_bd=Math.abs(this.options.height[1]);
}else{
top=0;
_bd=this.options.height[0];
}
top=top?top+"px":"auto";
_bb=_bb?_bb+"px":"auto";
_bc=_bc?_bc+"px":"auto";
_bd=_bd?_bd+"px":"auto";
return "rect("+top+" "+_bb+" "+_bd+" "+_bc+")";
},"expand":function(){
if(this.isExpanded){
return null;
}
if(this.options.flow){
this.container.style.top=0;
this.container.style.left=0;
var _be=Adman.getPosition(this.container);
document.documentElement.scrollTop=_be.y;
this.placeholder.style.height=Math.abs(this.options["height"][1])+"px";
}
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.opera&&(this.options.wmode==null||this.options.wmode=="window")){
this.element.parentNode.parentNode.style.overflow="visible";
}
if(window.safari&&!this.firstExpanded){
var _bf,_c0,_c1,_c2,_c3=["left","right","top","bottom"];
for(var _i=0,l=_c3.length;_i<l;_i++){
if(this.container.style[_c3[_i]]){
_c0=_c3[_i];
_c2=parseInt(this.container.style[_c0]);
break;
}
}
if(_c0){
_c1="margin"+_c0.charAt(0).toUpperCase()+_c0.slice(1);
this.container.style[_c0]=(_c2+1)+"px";
this.container.style[_c1]="-1px";
(function(){
this.container.style[_c0]=_c2+"px";
this.container.style[_c1]=0;
})._delay(1,this);
}
this.firstExpanded=true;
}
return null;
},"collapse":function(){
if(this.isExpanded==false){
return null;
}
if(this.options.flow){
this.container.style.top=this.xy.y+"px";
this.container.style.left=this.xy.x+"px";
var _c6=Adman.getPosition(this.container);
document.documentElement.scrollTop=_c6.y;
this.placeholder.style.height=Math.abs(this.options["height"][0])+"px";
}
this.invokeEvent("collapse");
this.setClip(true);
if(this.$collapse){
void (this.$collapse.invoke());
void (this.$expandTimer.finish());
}
this.isExpanded=false;
if(window.ie){
try{
var _c7=Adman.$C("div");
document.body.appendChild(_c7);
_c7.parentNode.removeChild(_c7);
}
catch(ex){
}
}
if(window.opera&&(this.options.wmode==null||this.options.wmode=="window")){
this.element.parentNode.parentNode.style.overflow="hidden";
}
return null;
}}).implement(new Adman.Options,new Adman.Events);
Adman.Interstitial=new Adman.Class({"options":{"url":"","src":""},"initialize":function(_c8){
this.setOptions(_c8);
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(_c9){
this.setOptions(_c9);
if(!this.options.src){
console.warn("Adman.Floating: Sorry you need a valid .swf source to continue");
return false;
}
Adman.onLoad(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";
}
document.body.insertBefore(this.container,document.body.firstChild);
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(document.body,"mousewheel",function(){
if(!this.container){
return false;
}
this.start();
}._bind(this));
}._bind(this));
Adman.instances[Adman.$uniqueID(this)]=this;
return this;
},"scroll":function(){
var _ca=parseInt(document.body.scrollTop||document.documentElement.scrollTop);
var now=parseInt(this.container.style[this.offset]);
var gap=this.offset==="top"?now-_ca-this.options.top:now+_ca-this.options.bottom;
if(gap<=0){
this.isScrolling=false;
this.stop();
}
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.scroll._periodical(this.options.interval,this);
this.isScrolling=true;
},"stop":function(){
if(!this.isScrolling){
return this;
}
if(this.options.shield){
Adman.Utils.shield(this.element);
}
this.isScrolling=this.timer=Adman.$clear(this.timer);
return this;
},"close":function(){
this.stop();
this.container.parentNode.removeChild(this.container);
this.invokeEvent("close");
Adman.$each(this.timers,function(_cd,key){
this.timers[key]=Adman.$clear(_cd);
},this);
return false;
}}).implement(new Adman.Options,new Adman.Events);
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(_cf,_d0){
this.banner=_cf;
this.setOptions(_d0);
this.timers={};
this.actions={};
this.trackerURI=this.options.trackerURI;
this.all=[];
var _d1=(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){
_d1();
this.tracker.style.visibility="hidden";
document.body.appendChild(this.tracker);
}else{
Adman.addEvent(window,"load",function(){
_d1();
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(_d2){
this.addTimer(_d2);
},this);
}
if(this.options.actions){
Array._each(this.options.actions,function(_d3){
this.addAction(_d3);
},this);
}
return this;
},add:function(obj){
if(obj.timers){
Array._each(obj.timers,function(_d5){
this.addTimer(_d5);
},this);
}
if(obj.actions){
Array._each(obj.actions,function(_d6){
this.addAction(_d6);
},this);
}
return this;
},detectAdmanURI:function(){
if(!this.banner||!this.banner.element){
return this;
}
var _d7=this.banner.element.getElementsByTagName("param");
var _d8,_d9,_da,_db;
for(var i=0;i<_d7.length;i++){
if(_d7[i].name==="flashvars"){
_d8=decodeURIComponent(_d7[i].value);
}
}
if(_d8){
if(_d8=_d8.match(/&(go|clickTag)=http:\/\/(.*?)\/click\/(.*?)\/(.*?)\//)){
_d9=_d8[3];
_da=_d8[4];
_db=_d8[2];
}
}
if(!_d9&&!_db&&!_da){
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: "+_d9+",InstanceID: "+_da+", admanBase: "+_db+" are detected");
if(!this.options.dev){
this.options.trackerURI="http://"+_db+"/track/"+_da;
}
this.disableSubmission=false;
}
return true;
},addTimer:function(_dd){
this.all.push(this.timers[_dd]=new Adman.Metrics.Timer(_dd));
this.banner["$"+_dd]=this.timers[_dd];
return this.timers[_dd];
},addAction:function(_de){
this.all.push(this.actions[_de]=new Adman.Metrics.Action(_de));
this.banner["$"+_de]=this.actions[_de];
return this.actions[_de];
},get:function(){
var obj={},_e0=this;
Adman.$each(this.actions,function(_e1,_e2){
if(_e1.value>0){
obj[_e2]=_e1.value;
}
});
Adman.$each(this.timers,function(_e3,_e4){
var _e5=_e3.get();
_e3.finish();
if(!_e5&&_e0.actions[_e4.replace(/Timer/,"")]){
delete (obj[_e4.replace(/Timer/,"")]);
}
if(_e5>0){
obj[_e4]=parseInt(_e3.get())+"s";
}
});
return obj;
},submit:function(){
var obj=this.get(),_e7=[],_e8=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(_e9,key){
if(key!=="rnd"&&parseFloat(_e9)){
_e8=false;
}
_e7.push(key+"="+_e9);
});
if(_e8||!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(_e7.join("&"));
}
if(!this.disableSubmission){
this.tracker.src=this.options.trackerURI+"/?"+_e7.join("&");
}
}else{
return this;
}
Array._each(this.all,function(_eb,_ec){
_eb.reset();
});
pol;
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(_ef,_f0){
this.name=_ef;
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(_f1){
this.name=_f1;
this.value=0;
return this;
},reset:function(){
this.value=0;
return this;
},invoke:function(){
this.value++;
return this;
}});
Adman.loaded=true;
window.flashVersion=window.flashVersion||(function(){
var _f2={major:0,minor:0,rev:0};
var _f3;
if(navigator.plugins&&navigator.mimeTypes.length){
var _f3=navigator.plugins["Shockwave Flash"];
if(_f3&&_f3.description){
_f3.description.match(/[a-zA-Z\s]([0-9]+)\.([0-9]+)\s*[rb]([0-9]+)/);
_f2={major:RegExp.$1,minor:RegExp.$2,rev:RegExp.$3};
}
}else{
if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>0){
var _f4=4;
while(_f4){
try{
_f4++;
_f3=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_f4);
_f2.major=_f4;
}
catch(ex){
s;
_f3=null;
}
}
}else{
try{
_f3=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(ex){
try{
_f3=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_f2={major:6,minor:0,rev:21};
_f3.AllowScriptaAccess="always";
}
catch(ex){
if(_f2.major===6){
return _f2;
}
}
}
try{
_f3=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(ex){
_f3=null;
}
if(_f3!==null){
var _f5=_f3.GetVariable("$version").split(" ")[1].split(",");
_f2.major=_f5[0];
_f2.minor=_f5[1];
_f2.rev=_f5[2];
}else{
}
}
}
Adman.$each(_f2,function(_f6,key){
_f2[key]=parseInt(_f6);
});
return _f2;
})();
if(window.opera&&typeof (parent.admanMSCheckState)!=="undefined"){
parent.admanMSCheckState();
}
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,initialize:function(){
var _f8=this.options;
if(this.initialized&&!this.inPage){
this.doc.body.innerHTML="";
this.build();
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":_f8.scr,"wmode":"transparent","width":_f8.width,"height":_f8.height,"left":0,"top":0,"bgcolor":"#","active":true};
this.build();
this.initialized=true;
},build:function(){
if(!this.inPage){
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(this.dump));
write("</body></html>");
close();
}
}else{
this.placeholderExp.innerHTML=Adman.Utils.getFlashHTML.call(this.dump);
}
Adman.addEvent(!this.inPage?this.doc: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(){
this.initialize();
if(this.clicked){
return false;
}
if(this.inPage){
this.placeholder.style.display="none";
this.placeholderExp.style.display="block";
return this;
}
var ox=this.options.left,oy=this.options.top;
var sl=window.screenLeft,st=window.screenTop;
var sh=screen.height,sw=screen.width;
var ph=this.options.height,pw=this.options.width;
if(this.options.top<0){
if(st<ph-60){
oy=-st;
}
}else{
var maxY=sh-st-ph;
if(st+ph>sh){
oy=maxY;
}
}
if((this.options.left<0&&sl<60)||sl<0){
ox=-sl;
}else{
if(sl+pw>sw){
ox=sw-sl-pw;
}
}
this.win.show(ox,oy,this.options.width,this.options.height,document.body);
},close:function(){
if(!this.inPage){
return this.win.hide();
}else{
this.placeholder.style.display="block";
this.placeholderExp.style.display="none";
}
}};
Adman.onLoad(function(){
Adman.fixDOM();
if(typeof window.console==="undefined"){
window.console={log:function(msg){
},warn:function(msg){
}};
}
});
})("Adman");
