// { 'adman.js', dt: '25/09/2009 12:05:55' }
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;
}else{
if(document.getBoxObjectFor!==null&&!window.opera){
window.gecko=window.moz=true;
}
}
}
window.chrome=!window.sidebar&&!window.gecko&&window.webkit&&!window.ie;
if(!window.console){
console={log:function(){
},info:function(){
},warn:function(){
},error:function(){
}};
}
if(!window.Adman){
Adman={scope:window,MS:parent!=top||typeof (getRADIds)!=="undefined",$: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!=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};
},addEvent:function(_24,_25,fn){
if(!fn){
return false;
}
var _27=false;
if(_25=="mousewheel"&&window.gecko){
_25="DOMMouseScroll";
}
if(Adman.MS&&document.body){
Adman.scope.DOMContentLoaded=true;
}
if(_25==="DOMContentLoaded"&&Adman.scope.DOMContentLoaded===true){
fn();
return this;
}
if(_25=="DOMContentLoaded"&&(!document.addEventListener||window.safari)){
if(!Adman.scope._DOMCLEvents){
Adman.scope._DOMCLEvents=Adman.scope._DOMCLEvents||[];
var _28=function(){
Adman.$clear(Adman.scope._DOMCLTimer);
for(var i=0,l=Adman.scope._DOMCLEvents.length;i<l;i++){
Adman.scope._DOMCLEvents[i]();
}
Adman.scope._DOMCLEvents=null;
};
if(window.ie){
Adman.scope.document.write("<scr"+"ipt id=__ie_onload defer src="+(window.location.protocol=="https"?"https://0":"javascript:void(0)")+"></scr"+"ipt>");
Adman.scope._DOMScriptElement=Adman.scope.document.all["__ie_onload"];
if(Adman.scope._DOMScriptElement){
Adman.scope._DOMScriptElement.onreadystatechange=function(){
if(this.readyState=="complete"){
(function(){
_28();
Adman.scope._DOMScriptElement.onreadystatechange=null;
Adman.scope._DOMScriptElement.parentNode.removeChild(Adman.scope._DOMScriptElement);
Adman.scope._DOMScriptElement=null;
})._delay(10,window);
Adman.scope.DOMContentLoaded=true;
}
};
}
}else{
if(window.safari){
Adman.scope._DOMCLTimer=setInterval(function(){
if(/loaded|complete/.test(Adman.scope.document.readyState)){
_28();
}
},50);
}else{
Adman.addEvent(Adman.scope,"load",_28);
}
}
}
Adman.scope._DOMCLEvents.push(fn);
_27=true;
}
var _2b=false;
fn=(_2b||fn.bound)?fn:fn._bind(this);
if(!_27){
_24.addEventListener?_24.addEventListener(_25,fn,false):_24.attachEvent("on"+_25,fn);
}
},trigger:function(url){
if(!Adman.MS&&url.indexOf("http://")!==0){
window[!Adman.inPreviewPage?"console.warn":"alert"]("[ERROR] Track URI does not being with 'http://\n\n\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();
}};
}
Adman.readyStateInterval=1000;
Adman.instances=Adman.instances||{};
Adman.inPreviewPage=document.location.href.indexOf("preview.php")!=-1&&document.location.host.indexOf("adman")!=-1;
Adman.onLoad=function(fn){
Adman.addEvent(Adman.scope,"DOMContentLoaded",fn);
};
Adman.track=Adman.trigger;
var AdmanArrayMethods={_extend:function(_2e){
for(var i=0,j=_2e.length;i<j;i++){
Array._include(this,_2e[i]);
}
return this;
},_include:function(_31){
if(!Array._contains(this,_31)){
this.push(_31);
}
return this;
},_remove:function(_32){
var i=0,len=this.length;
while(i<len){
if(this[i]===_32){
this.splice(i,1);
len--;
}else{
i++;
}
}
return this;
},_contains:function(_35){
return !!(Array._indexOf(this,_35)!=-1);
},_indexOf:function(_36){
for(var i=0;(thisItem=this[i]);i++){
if(thisItem==_36){
return i;
}
}
return -1;
},_each:function(fn,_39){
for(var i=0,j=this.length;i<j;i++){
fn.call((_39||this[i]),this[i],i,this);
}
}};
Adman.$each(AdmanArrayMethods,function(fn,_3d){
Array[_3d]=function(_3e){
return fn.apply(_3e,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 _40=Adman.$A(arguments);
var _41=_40.shift();
var _42=function(e){
return e&&e.type&&!e.extended&&(e.target||e.srcElement!==undefined);
};
var _44=Adman;
var _45=function(){
var _46=_44.$A(arguments)||[];
var evt=_46[_46.length-1],_48;
var _49=_44.$A(_40);
if(_42(evt)){
if(_42(_49[_46.length-1])){
_49.pop();
}
if((_48=_46.pop())&&_48.length){
Array._extend(_49,_46);
}
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){
}
}
};
_49.push(evt);
}else{
_49=_49.concat(_46);
}
if(_41&&_41.nodeType&&_41.nodeType==1){
_41=$(_41);
}
return fn.apply(_41,_49);
};
_45.bound=true;
return _45;
},_delay:function(_4a,_4b){
var _4c=this;
var _4d=arguments;
var fn=function(){
return _4c.apply(_4b,Adman.$A(_4d).slice(2));
};
return setTimeout(fn,_4a);
},_periodical:function(_4f,_50){
var _51=this;
var _52=arguments;
var fn=function(){
return _51.apply(_50,Adman.$A(_52).slice(2));
};
return setInterval(fn,_4f);
}});
Adman.Utils={shield:function(_54){
var _55,_56,pos,_58,_59;
if(!(window.ie6||window.ie5)){
return _54;
}
if(!(_54=Adman.$(_54))){
return false;
}
if(!_54._shield){
_54._shield=Adman.$C("iframe");
_54._shield.marginheight=0;
_54._shield.marginwidth=0;
_54._shield.scrolling="no";
_54._shield.frameBorder=0;
_54._shield.style.width=_54.offsetWidth+"px";
_54._shield.style.height=_54.offsetHeight+"px";
_54._shield.style.filter="mask()";
_54._shield.style.zIndex=-1;
_54._shield.style.position="absolute";
_54._shield.style.top=0;
_54._shield.style.left=0;
_54.style.visibility="visible";
_54.insertBefore(_54._shield,_54.firstChild);
}
pos=Adman.getPosition(_54);
_58=_54.style.clip;
if(_58&&_58!=="rect(auto auto auto auto)"){
return _54._shield;
}else{
_54._shield.style.display="block";
_55=_54.offsetWidth;
_56=_54.offsetHeight;
}
_54._shield.style.width=_55+"px";
_54._shield.style.height=_56+"px";
return _54._shield;
},getImgHTML:function(src,_5b,_5c){
return "<img galleryimg=\"no\" src=\""+src+"\" width=\""+_5b+"\" height=\""+_5c+"\" alt=\"alt image\" title=\"Click for more information\" />\n";
},getFlashHTML:function(_5d,_5e,_5f){
_5d=_5d||this.options.width;
_5e=_5e||this.options.height;
_5f=_5f||"";
_5f+=";visibility: visible; z-index:9999;outline: none;";
if(!this.options.active&&!window.webkit){
_5f+="display: none;";
}
var _60="",_61=this.options.base;
var _62=[],_63=Adman.$merge(this.options.flashVars),_64="";
if(this.options.url){
_63[this.options.clickTag]=this.options.url;
}
_63["admanInstance"]="Adman.instances['"+Adman.$uniqueID(this)+"']";
if(!_61&&(_60=this.options.src.match(/http.*\//))){
_61=_60[0];
}
if(!_61){
_61=location.href.toString().match(/http.*\//);
if(_61){
_61=_61[0];
}
}
if(this.options.src.indexOf("http://")===-1){
this.options.src=_61+this.options.src;
}
Adman.$each(_63,function(_65,key){
_64+=(_64?"&":"")+encodeURIComponent(key)+"="+encodeURIComponent(_65);
});
var src=this.options.src;
if(this.options.url){
src+="?"+this.options.clickTag+"="+this.options.url;
}
if(1){
_62.push("<object "+(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(_5f){
_62.push("style=\""+_5f+"\" ");
}
_62.push("data=\""+src+"\" ");
_62.push("type=\"application/x-shockwave-flash\" ");
_62.push("width=\""+_5d+"\" height=\""+_5e+"\">");
_62.push("<param name=\"menu\" value=\"false\" />");
_62.push("<param name=\"movie\" value=\""+this.options.src+"\" />");
_62.push("<param name=\"wmode\" value=\""+this.options.wmode+"\" />");
_62.push("<param name=\"bgcolor\" value=\""+this.options.bgcolor+"\" />");
if(window.webkit){
_62.push("<param name=\"play\" value=\""+this.options.active+"\" />");
}
_62.push("<param name=\"allownetworking\" value=\"all\" />");
_62.push("<param name=\"allowscriptaccess\" value=\"always\" />");
_62.push("<param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" />");
_62.push("<param name=\"quality\" value=\"high\" />");
if(_61){
_62.push("<param name=\"base\" value=\""+_61+"\" />");
}
if(_64){
_62.push("<param name=\"flashvars\" value=\""+_64+"\" />");
}
if(this.options.image){
_62.push(Adman.Utils.getImgHTML(this.options.image,this.options.width,this.options.height));
}else{
_62.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.");
_62.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>");
}
_62.push("</object>");
}else{
_62.push("<embed id=\"adman-element-"+Adman.$uniqueID(this)+"\" type=\"application/x-shockwave-flash\" src=\""+this.options.src+"\" ");
if(_5f){
_62.push("style=\""+_5f+"\" ");
}
if(_64){
_62.push("flashvars=\""+_64+"\" ");
}
_62.push("width=\""+_5d+"\" allownetworking=\"all\" height=\""+_5e+"\" style=\"outline: none;\"  bgcolor=\""+this.options.bgcolor+"\" wmode=\""+this.options.wmode+"\" quality=\"high\" menu=\"false\" ");
_62.push(" allowScriptAccess=\"always\" play=\""+this.options.active+"\" swLiveConnect=\"true\" />");
}
return _62.join("\n");
},toOpaque:function(_68){
if(_68.push){
_68.each(Adman.utils.toOpaque);
return;
}
var _69,_6a,_6b;
_68=Adman.$(_68);
if(!_68){
return false;
}
if(_68.nodeName==="OBJECT"){
_6b=_68;
_6a=_6b.getElementsByTagName("embed");
if(_6a){
_6a=_6a[0];
}
}
if(_68.nodeName==="EMBED"){
_6a=_68;
_6b=_6a.parentNode;
}
if(_6b&&window.ie){
_6b.outerHTML=_6b.outerHTML.replace(/param name="wmode" value=".*?"/gi,"param name=\"wmode\" value=\"opaque\"");
}
if(_6a){
_6a.setAttribute("wmode","opaque");
_6b.innerHTML=_6b.innerHTML;
}
return true;
}};
Adman.Class=function(_6c){
var _6d=function(){
this.constructor=_6d;
return (arguments[0]!==null&&this.initialize)?this.initialize.apply(this,arguments):this;
};
Adman.$extend(_6d,this);
_6d.prototype=_6c||{};
_6d.constructor=Adman.Class;
return _6d;
};
Adman.Class.prototype={implement:function(){
var obj={},_6f=arguments;
if(typeof (arguments[0])=="string"&&arguments[1]){
obj[arguments[0]]=arguments[1];
_6f=[obj];
}
for(var i=0,l=_6f.length;i<l;i++){
Adman.$extend(this.prototype,_6f[i]);
}
return this;
},extend:function(_72){
var _73=new this(null);
for(var _74 in _72){
var pp=_73[_74];
_73[_74]=Adman.Class.Merge(pp,_72[_74]);
}
_73.constructor=this;
return new Adman.Class(_73);
}};
Adman.Class.Merge=function(_76,_77){
if(_76&&_76!=_77){
var _78=typeof (_77);
if(_78!=typeof (_76)){
return _77;
}
switch(_78){
case "function":
var _79=function(){
this.parent=arguments.callee.parent;
return _77.apply(this,arguments);
};
_79.parent=_76;
return _79;
case "object":
return Adman.$merge(_76,_77);
}
}
return _77;
};
Adman.empty=function(){
};
Adman.Events=new Adman.Class({addEvent:function(_7a,fn){
if(fn!=Adman.empty&&typeof (fn)=="function"){
this.events=this.events||{};
this.events[_7a]=this.events[_7a]||[];
Array._remove(this.events[_7a],fn);
Array._include(this.events[_7a],fn);
}
return this;
},removeEvent:function(_7c,fn){
if(this.events&&this.events[_7c]){
if(fn){
this.events[_7c].remove(fn);
}else{
this.events[_7c]=null;
}
}
return this;
},hasEvent:function(_7e){
return (!!(this.events&&this.events[_7e]));
},invokeEvent:function(){
var _7f=Array.prototype.slice.call(arguments);
var _80=_7f.shift();
if(this.events&&this.events[_80]){
for(var i=0,l=this.events[_80].length;i<l;i++){
this.events[_80][i].apply(this,_7f);
}
}else{
if(!_80._capitalize){
_80=_80.charAt(0).toUpperCase()+_80.substring(1).toLowerCase();
}else{
_80=_80._capitalize();
}
if((fn=this["on"+_80])){
fn.apply(this,_7f);
}
}
return this;
}});
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,_84){
this.addEvent(_84,fn);
},this);
}
Adman.$each(this.options,function(_85,key){
if(key.indexOf("on")===0&&typeof (_85)=="function"){
this.options[key]=null;
this.addEvent(key.toLowerCase().replace(/on/,""),_85);
}
},this);
Adman.$each(this.options,function(fn,_88){
var _89=this;
if(typeof (fn)=="function"){
this.options[_88]=function(){
return fn.apply(_89,arguments);
};
}
},this);
return this;
}});
Adman.onLoad(function(){
if(typeof console==="undefined"){
console={log:function(msg){
},warn:function(msg){
}};
}
});
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","active":true,"flashVars":{"source":"adman","ie":!!window.ie,"gecko":!!window.gecko,"webkit":!!window.webkit},"src":""},"initialize":function(_8c){
this.setOptions(_8c);
if(!this.options.src){
console.warn("Adman.Flash: Sorry you need a valid .swf source to continue");
return false;
}
var _8d=Adman.Utils.getFlashHTML.call(this);
this.isLoaded=true;
this.isActive=this.options.active;
if(this.options.waitDOM){
document.writeln("<div 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=_8d;
this.element=Adman.$("adman-element-"+Adman.$uniqueID(this));
if(!window.moz&&!window.opera){
try{
if(this.element&&this.element["PercentLoaded"]){
var _8e=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 style=\"margin: auto;width:"+this.options.width+"px; height:"+this.options.height+"px;\" id=\"adman-"+Adman.$uniqueID(this)+"\"> "+_8d+"</div>");
Adman.onLoad(this.addEvents._bind(this));
this.invokeEvent("init");
}
Adman.instances[Adman.$uniqueID(this)]=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 _8f=this.element.PercentLoaded();
}
catch(ex){
this.isLoaded=false;
}
}
if(!this.isLoaded){
}
this.fixDOM();
this.checkReadyState._delay(Adman.readyStateInterval,this);
Adman.addEvent(this.placeholder,"mouseover",function(_90){
_90.stop&&_90.stop();
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_91){
_91.stop&&_91.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 _92=function(){
try{
if(this.element){
if(!window.ie&&!this.element["PercentLoaded"]){
return false;
}
var _93=this.element.PercentLoaded();
this.invokeEvent("progress",_93);
if(parseInt(_93)===100){
this.timers["progress"]=Adman.$clear(this.timers["progress"]);
this.invokeEvent("load",this.element);
}
}
}
catch(ex){
}
};
var _94=function(){
try{
if(this.element&&this.element["CurrentFrame"]){
var _95=this.element.CurrentFrame();
this.invokeEvent("frame",_95);
}
}
catch(ex){
if(this.timers){
this.timers["frame"]=Adman.$clear(this.timers["frame"]);
}
}
};
this.timers["progress"]=_92._periodical(10,this);
this.timers["frame"]=_94._periodical(10,this);
}
},"checkReadyState":function(){
if(this.__readyStateChecked){
return false;
}
this.__readyStateChecked=true;
var _96=Adman.$CN("adman-error-container",this.placeholder)[0],_97=0;
var _98=true;
try{
_97=this.element.PercentLoaded();
}
catch(ex){
_98=false;
}
if(!_98&&_96&&_96.style){
_96.style.display="none";
return false;
}
try{
if(this.element&&_97===0&&_96){
_96.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(){
var _99=null;
return;
if(!window.ie||this.isDOMFixed){
return false;
}
this.isDOMFixed=true;
try{
_99=this.placeholder.previousSibling.previousSibling;
}
catch(ex){
_99=null;
}
if(_99&&_99.nodeName==="DIV"&&_99.id.toString().indexOf("google_ads_div")!==-1&&_99.innerHTML.indexOf("gbanner")!==-1){
try{
_99.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":true,"placeholder":null,"wmode":"transparent"},"initialize":function(_9a){
this.setOptions(_9a);
if(!this.options.src){
console.warn("Adman.Expanding: Sorry you need a valid .swf source to continue");
return false;
}
var _9b="";
var _9c=[];
var _9d="clip: "+this.getClip(!this.options.expandOnInit);
Adman.MS=(parent!=window)||typeof (getRADIds)!=="undefined";
if(Adman.MS&&(document.body===null||!document.body.id)){
Adman.MS=false;
}
if(Adman.MS){
this.options.waitDOM=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 _9e=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;
if(this.options.offset.top||this.options.offset.left){
if(window.ie7&&this.options.offset.top===0){
this.options.offset.top=1;
}
_9b="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){
}
_9c.push("<div style=\"z-index: "+(Adman.MS?"1":"99999998")+"; position: relative; width:"+this.options.width[0]+"px; height:"+this.options.height[0]+"px;margin: auto;\">");
_9c.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: "+_9e+"px; "+_9d+";\">");
_9c.push(Adman.Utils.getFlashHTML.call(this,Math.abs(this.options.width[1]),Math.abs(this.options.height[1]),_9b));
_9c.push("</div>");
_9c.push("</div>");
_9c=_9c.join("\n");
this.options.placeholder=Adman.$(this.options.placeholder);
this.isLoaded=true;
if(this.options.waitDOM){
var _a0=document.body.id;
if(!this.options.placeholder&&!Adman.MS){
document.close();
document.write("<div style=\"text-align: center;\">");
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)+"\"></div>");
document.write("</div>");
try{
}
catch(ex){
}
}
Adman.onLoad(function(){
if(Adman.MS){
document.close();
document.body.id=_a0;
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=parent.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{
parent.document.body.appendChild(this.placeholder);
}
}
this.placeholder=this.placeholder||Adman.$(this.options.placeholder)||Adman.$("adman-"+Adman.$uniqueID(this));
this.placeholder.innerHTML=_9c;
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=parent.document.getElementById("adman-expanding-"+Adman.$uniqueID(this));
this.element=parent.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{
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)+"\">"+_9c+"</div>");
this.invokeEvent("init");
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 _a1=this.placeholder.parentNode;
var _a2=parseInt(this.placeholder.style.zIndex);
while(_a1&&_a1.style){
if((parseInt(_a1.style.zIndex)>0)&&(parseInt(_a1.style.zIndex)<_a2)){
_a1.style.zIndex=_a2;
}
_a1=_a1.parentNode;
}
if(this.options.enableMetrics){
this.metrics=new Adman.Metrics(this,{"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 _a3=this.element.PercentLoaded();
}
catch(ex){
this.isLoaded=false;
}
}
if(!this.isLoaded&&typeof (_a3)!=="undefined"){
return false;
}
this.fixDOM();
this.checkReadyState._delay(Adman.readyStateInterval,this);
Adman.addEvent(this.placeholder,"mouseover",function(_a4){
_a4.stop&&_a4.stop();
if(this.options.expand){
this.expand();
}
this.invokeEvent("over");
}._bind(this));
Adman.addEvent(this.placeholder,"mouseout",function(_a5){
_a5.stop&&_a5.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 _a6=parent.document.getElementById(document.body.id);
if(parent.location.href.indexOf("mail")!==-1&&window.document.location.href.toString().indexOf("TodayLight")!==-1){
_a6.parentNode.parentNode.appendChild(this.placeholder);
}else{
_a6.parentNode.insertBefore(this.placeholder,_a6.parentNode.firstChild);
}
_a6.style.display="none";
var _a7=function(){
if(this.placeholder&&this.placeholder.parentNode){
this.placeholder.parentNode.removeChild(this.placeholder);
this.placholder=null;
}
};
Adman.addEvent(window,"beforeunload",function(_a8){
if(document.readyState==="interactive"){
function _a9(){
document.detachEvent("onstop",_a9);
_a7();
};
document.attachEvent("onstop",_a9);
window.setTimeout(function(){
document.detachEvent("onstop",_a9);
},0);
}else{
if(document.readyState=="complete"){
_a7();
}
}
});
Adman.addEvent(parent,"unload",_a7._bind(this));
Adman.addEvent(top,"unload",_a7._bind(this));
Adman.addEvent(window,"unload",_a7._bind(this));
}
return this;
},"setClip":function(_aa){
if(!this.container||!this.container.style){
return false;
}
if(!_aa&&(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(_aa);
}
return this;
},"getClip":function(_ab){
var top=0,_ad=0,_ae=0,_af=0;
if(!_ab){
return "rect(auto auto auto auto)";
}
if(this.options.width[1]<0){
_ae=Math.abs(this.options.width[1])-Math.abs(this.options.width[0]);
_ad=Math.abs(this.options.width[1]);
}else{
_ad=this.options.width[0];
}
if(this.options.height[1]<0){
top=Math.abs(this.options.height[1])-Math.abs(this.options.height[0]);
_af=Math.abs(this.options.height[1]);
}else{
top=0;
_af=this.options.height[0];
}
top=top?top+"px":"auto";
_ad=_ad?_ad+"px":"auto";
_ae=_ae?_ae+"px":"auto";
_af=_af?_af+"px":"auto";
return "rect("+top+" "+_ad+" "+_af+" "+_ae+")";
},"expand":function(){
if(this.isExpanded){
return null;
}
this.invokeEvent("expand");
this.setClip(false);
if(this.options.enableMetrics){
void (this.$expandTimer.start());
void (this.$expand.invoke());
}
this.isExpanded=true;
return null;
},"collapse":function(){
if(!this.isExpanded){
return null;
}
this.invokeEvent("collapse");
this.setClip(true);
if(this.$collapse){
void (this.$collapse.invoke());
void (this.$expandTimer.finish());
}
this.isExpanded=false;
return null;
}}).implement(new Adman.Options,new Adman.Events);
Adman.Interstitial=new Adman.Class({"options":{"url":"","src":""},"initialize":function(_b0){
this.setOptions(_b0);
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(_b1){
this.setOptions(_b1);
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 _b2=parseInt(document.body.scrollTop||document.documentElement.scrollTop);
var now=parseInt(this.container.style[this.offset]);
var gap=this.offset==="top"?now-_b2-this.options.top:now+_b2-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(_b5,key){
this.timers[key]=Adman.$clear(_b5);
},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(_b7,_b8){
this.banner=_b7;
this.setOptions(_b8);
this.timers={};
this.actions={};
this.trackerURI=this.options.trackerURI;
this.all=[];
if(!this.detectAdmanURI()){
return true;
}
var _b9=(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){
_b9();
this.tracker.style.visibility="hidden";
document.body.appendChild(this.tracker);
}else{
Adman.addEvent(window,"load",function(){
_b9();
this.tracker.style.visibility="hidden";
document.body.appendChild(this.tracker);
}._bind(this));
}
Adman.addEvent(window,"beforeunload",this.submit._bind(this));
Array._each(this.options.timers,function(_ba){
this.addTimer(_ba);
},this);
Array._each(this.options.actions,function(_bb){
this.addAction(_bb);
},this);
return this;
},detectAdmanURI:function(){
var _bc=this.banner.element.getElementsByTagName("param");
var _bd,_be,_bf;
for(var i=0;i<_bc.length;i++){
if(_bc[i].name==="flashvars"){
_bd=decodeURIComponent(_bc[i].value);
}
}
if(_bd){
if(_bd=_bd.match(/&go=http:\/\/(.*?)\/click\/(.*?)\//)){
_be=_bd[2];
_bf=_bd[1];
}
}
if(!_be&&!_bf){
console.warn&&console.warn("Unable to figure out bannerID && admanBase");
if(!this.options.dev){
this.disableSubmission=true;
}
}else{
window.console&&console.info&&console.info("BannerID: "+_be+", admanBase: "+_bf+" are detected");
this.options.trackerURI="http://"+_bf+"/track/"+_be;
this.disableSubmission=false;
}
return true;
},addTimer:function(_c1){
this.all.push(this.timers[_c1]=new Adman.Metrics.Timer(_c1));
this.banner["$"+_c1]=this.timers[_c1];
return this.timers[_c1];
},addAction:function(_c2){
this.all.push(this.actions[_c2]=new Adman.Metrics.Action(_c2));
this.banner["$"+_c2]=this.actions[_c2];
return this.actions[_c2];
},get:function(){
var obj={};
Adman.$each(this.actions,function(_c4,_c5){
obj[_c5]=_c4.value;
});
Adman.$each(this.timers,function(_c6,_c7){
obj[_c7]=_c6.get();
});
return obj;
},submit:function(){
var obj=this.get(),_c9=[];
obj["rnd"]=Math.random()*100;
Adman.$each(obj,function(_ca,key){
_c9.push(key+"="+_ca);
});
if(!this.options.enabled){
return;
}
this.tracker.style.top=this.tracker.style.left=0;
if(!this.disableSubmission){
this.tracker.src=this.options.trackerURI+"?"+_c9.join("&");
}
Array._each(this.all,function(_cc,_cd){
_cc.reset();
});
return;
}}).implement(new Adman.Options);
Adman.Metrics.Timer=new Adman.Class({options:{"maxTimer":120000,"maxIdleTs":45000},initialize:function(_ce,_cf){
this.name=_ce;
this.value=0;
return this;
},enableIdleCheck:function(){
if(this.idleCheckEnabled){
return false;
}
this._previousIdleTs=new Date().getTime();
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(){
this.value+=(new Date().getTime()-this.startTs);
if(this.value>this.options.maxTimer){
this.value=10;
}
this.isRunning=false;
return this;
},reset:function(){
this.value=0;
return this;
},get:function(){
return (this.isRunning?this.value+(new Date().getTime()-this.startTs):this.value);
}});
Adman.Metrics.Action=new Adman.Class({initialize:function(_d0){
this.name=_d0;
this.value=0;
return this;
},reset:function(){
this.value=0;
return this;
},invoke:function(){
this.value++;
return this;
}});
Adman.loaded=true;
window.flashVersion=null;
window.flashVersion=(function(){
var _d1={major:0,minor:0,rev:0};
var _d2;
if(navigator.plugins&&navigator.mimeTypes.length){
var _d2=navigator.plugins["Shockwave Flash"];
if(_d2&&_d2.description){
_d2.description.match(/[a-zA-Z\s]([0-9]+)\.([0-9]+)\s*[rb]([0-9]+)/);
_d1={major:RegExp.$1,minor:RegExp.$2,rev:RegExp.$3};
}
}else{
if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>0){
var _d3=4;
while(_d3){
try{
_d3++;
_d2=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_d3);
_d1.major=_d3;
}
catch(ex){
s;
_d2=null;
}
}
}else{
try{
_d2=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(ex){
try{
_d2=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_d1={major:6,minor:0,rev:21};
_d2.AllowScriptaAccess="always";
}
catch(ex){
if(_d1.major===6){
return _d1;
}
}
}
try{
_d2=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(ex){
_d2=null;
}
if(_d2!==null){
var _d4=_d2.GetVariable("$version").split(" ")[1].split(",");
_d1.major=_d4[0];
_d1.minor=_d4[1];
_d1.rev=_d4[2];
}else{
}
}
}
Adman.$each(_d1,function(_d5,key){
_d1[key]=parseInt(_d5);
});
return _d1;
})();
if(window.opera&&typeof (parent.admanMSCheckState)!=="undefined"){
parent.admanMSCheckState();
}
if(window.flashVersion){
window.fV=window.flashVersion.major;
}


