(function(){var d=document.getElementsByTagName("script");var h;for(var f=d.length-1;f>-1;f--){if(d[f].src.match("jsAds-")!=null){h=d[f];break}}var b=h.previousElementSibling;if((b===undefined)||(b==null)){b=h.previousSibling}var c=g(b.text);function g(n){if((n===undefined)||(n==null)||(n.length<1)){return{}}var p,o;var q={};var u=n.split("\n");var l=[];for(p=0;p<u.length;p++){if(u[p].length>1){sublines=u[p].split("m3ad");for(o=0;o<sublines.length;o++){if(sublines[o].length>1){l.push("m3ad"+sublines[o])}}}}for(p=0;p<l.length;p++){var v=l[p];if(v.length>1){var t=v.split("=");if(t.length>=2){for(o=0;o<t.length;o++){var m=t[0].replace(/^\s+|\s+$/g,"").toLowerCase();t.shift();var r=t.join("=").replace(/^\s+|\s+$/g,"").replace(/;/g,"").replace(/"/g,"");if((m.length>0)&&(r.length>0)&&(m.indexOf("m3ads_")!=-1)){q[m]=r}}}}}return q}var a=[];function e(i){}var k=document.createElement("div");k.style.display="inline-block";k.style.visibility="visible";k.style.position="relative";j(k,h);function j(l,p){function T(Z,af,ab,aj){var ad=[];var aa;if(m!=null){aa=m+encodeURIComponent(af.clickurl)}else{aa=af.clickurl}if((af.thirdpartyurl!=null)&&(af.thirdpartyurl.length>0)){var ac=document.createElement("iframe");var ae="m3iframeid"+Math.round(Math.random()*1000000000);ac.setAttribute("id",ae);ac.setAttribute("name",ae);ac.setAttribute("src",af.thirdpartyurl);ac.setAttribute("frameborder","0");ac.setAttribute("vspace","0");ac.setAttribute("hspace","0");ac.setAttribute("marginwidth","0");ac.setAttribute("marginheight","0");ac.setAttribute("scrolling","no");ac.setAttribute("width","100%");ac.setAttribute("height","100%");ac.style.display="block";ac.style.visibility="visible";Z.appendChild(ac)}else{if((af.thirdpartytag!=null)&&(af.thirdpartytag.length>0)){setTimeout(function(){var am=document.createElement("iframe");var al="m3iframeid"+Math.round(Math.random()*1000000000);am.setAttribute("id",al);am.setAttribute("name",al);am.setAttribute("frameborder","0");am.setAttribute("vspace","0");am.setAttribute("hspace","0");am.setAttribute("marginwidth","0");am.setAttribute("marginheight","0");am.setAttribute("scrolling","no");am.setAttribute("width","100%");am.setAttribute("height","100%");am.style.display="block";am.style.visibility="visible";Z.appendChild(am);var ak=am.contentDocument;if(ak==undefined||ak==null){ak=am.contentWindow.document}if((ak!=undefined)&&(ak!=null)){ak.open();ak.write(af.thirdpartytag);ak.close()}},0)}else{if(af.mediatype!=null&&af.mediatype=="Banner"){ad.push('<a class="a n'+Z.n+'" target="_blank" rel="nofollow" href="'+aa+'">');if(af.imageurl!=null){ad.push('<div class="i">');var ah="";if(af.imagetitle!=null){ah=af.imagetitle}else{if(af.title!=null){ah=af.title}else{if(af.displayurl!=null){ah=af.displayurl}}}ad.push('<img alt="'+ah+'" title="'+ah+'" src="'+af.imageurl+'">');ad.push("</div>")}ad.push("</a>");Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="StandardText"){ad.push('<a class="a n'+Z.n+'" target="_blank" rel="nofollow" href="'+aa+'">');if(af.imageurl!=null){ad.push('<div class="i">');ad.push('<img alt="'+af.imagetitle+'" title="'+af.imagetitle+'" src="'+af.imageurl+'">');ad.push("</div>")}ad.push('<div class="x">');if(af.title!=null){ad.push('<div class="t">'+af.title+"</div>")}if(af.description!=null){ad.push('<div class="d">'+af.description+"</div>")}if(af.displayurl!=null){ad.push('<div class="u">'+af.displayurl+"</div>")}ad.push("</div>");ad.push("</a>");Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="Video"){Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="Bullet"){Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="Mobile"){Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="Html5"){Z.innerHTML+=ad.join("")}else{if(af.mediatype!=null&&af.mediatype=="Flash"){aa=encodeURIComponent(m==null?af.clickurl:m+af.clickurl);ad.push('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');ad.push('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="myFlashMovie" width="'+ab+'" height="'+aj+'">');ad.push('<param name=movie value="'+af.imageurl+"&clickTAG="+aa+'"/>');ad.push('<param name="quality" value="high" />');ad.push('<embed src="'+af.imageurl+"&clickTAG="+aa+'" quality="high" ');ad.push('width="'+ab+'" height="'+aj+'" type="application/x-shockwave-flash" ');ad.push('pluginspage="http://www.macromedia.com/go/getflashplayer" />');ad.push("</object >");Z.innerHTML+=ad.join("")}else{if(af.admeld!=undefined&&af.admeld==true){var ai="m3admeldcallback"+Math.round(Math.random()*1000000000);var ag="http://tag.admeld.com/ad/json?publisher_id=974&site_id=adzouk&placement="+af.site+"&size="+af.copywidth+"x"+af.copyheight+"&container="+ai;a[ai]=setTimeout(function(){clearTimeout(a[ai]);a[ai]=null;e(ai)},10000);A.get(ag,"",function(ao){if(a[ao.ad.container]){clearTimeout(a[ao.ad.container]);a[ao.ad.container]=null}else{return}var an=[];if(ao.ad&&ao.ad.creative){an.push(ao.ad.creative)}for(f in ao.ad.pixels){an.push(ao.ad.pixels[f])}Z.innerHTML+=an.join("");var al;if(X==true){al="http://qa."}else{al="http://"}var ap=parseInt(ao.ad.bid.toFixed(2)*1000);var am=[];var ak="";if(V.indexOf(encodeURIComponent("AdZouk"))!=-1){ak="feed.adzouk.com/"}else{ak="feed.mirago.com/"}am.push('<img height="0" width="0" src="'+al+ak+"impression.ashx?a="+P+"&sys="+V+"&site="+af.site+"&bp="+ap+"&vt="+af.vt+"&vu="+af.vu+"&vc="+af.vc+'&prv=1"/>');Z.innerHTML+=am.join("")})}}}}}}}}}}}var A=(function(){var Z=0,ab,ae,aa,ac=this;function ad(ai){var ah=document.createElement("script"),ag=false;ah.src=ai;ah.async=false;ah.onload=ah.onreadystatechange=function(){if(!ag&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){ag=true;ah.onload=ah.onreadystatechange=null;if(ah&&ah.parentNode){ah.parentNode.removeChild(ah)}}};if(!ab){ab=document.getElementsByTagName("head")[0]}ab.appendChild(ah)}function af(ah,aj,ak){ae="";aj=aj||{};for(aa in aj){if(aj.hasOwnProperty(aa)){ae+=aa+"="+aj[aa]+"&"}}if(ae.length>0){ae="&"+ae}else{ae="&"}var ag=Math.round(Math.random()*1000000000);var ai="m3advertscallback"+ag;ac[ai]=function(al){ak(al);ac[ai]=null;try{delete ac[ai]}catch(am){}};ad(ah+ae+"callback="+ai);return ai}return{get:af}}());var X=false;if(!(c.m3ads_qa===undefined)){if(c.m3ads_qa.toLowerCase()==="true"){X=true}}var V=(c.m3ads_system===undefined)?null:encodeURIComponent(c.m3ads_system);var P=(c.m3ads_partnernumber===undefined)?null:encodeURIComponent(c.m3ads_partnernumber);var n=(c.m3ads_keywords===undefined)?null:encodeURIComponent(c.m3ads_keywords);var x=(c.m3ads_sectors===undefined)?null:encodeURIComponent(c.m3ads_sectors);var v=(c.m3ads_sectornames===undefined)?null:encodeURIComponent(c.m3ads_sectornames);var z=(c.m3ads_zones===undefined)?null:encodeURIComponent(c.m3ads_zones);var Q=(c.m3ads_referrer===undefined)?null:encodeURIComponent(c.m3ads_referrer);var y=(c.m3ads_ip===undefined)?null:encodeURIComponent(c.m3ads_ip);var J=(c.m3ads_includeimages===undefined)?null:encodeURIComponent(c.m3ads_includeimages);var F=(c.m3ads_subpartner===undefined)?null:encodeURIComponent(c.m3ads_subpartner);var C=(c.m3ads_keywordmode===undefined)?null:encodeURIComponent(c.m3ads_keywordmode);var W=(c.m3ads_mediatype===undefined)?null:encodeURIComponent(c.m3ads_mediatype);var G=(c.m3ads_telephony===undefined)?null:encodeURIComponent(c.m3ads_telephony);var B=(c.m3ads_location===undefined)?null:encodeURIComponent(c.m3ads_location);var t=(c.m3ads_latitude===undefined)?null:encodeURIComponent(c.m3ads_latitude);var M=(c.m3ads_longitude===undefined)?null:encodeURIComponent(c.m3ads_longitude);var K=(c.m3ads_locationcategory===undefined)?null:encodeURIComponent(c.m3ads_locationcategory);var N=(c.m3ads_filter===undefined)?null:encodeURIComponent(c.m3ads_filter);var o=(c.m3ads_backfill===undefined)?null:encodeURIComponent(c.m3ads_backfill);var Y=(c.m3ads_prices===undefined)?null:encodeURIComponent(c.m3ads_prices);var w=(c.m3ads_imagewidth===undefined)?null:encodeURIComponent(c.m3ads_imagewidth);var S=(c.m3ads_imageheight===undefined)?null:encodeURIComponent(c.m3ads_imageheight);var r=(c.m3ads_logoimagewidth===undefined)?null:encodeURIComponent(c.m3ads_logoimagewidth);var E=(c.m3ads_logoimageheight===undefined)?null:encodeURIComponent(c.m3ads_logoimageheight);var L=(c.m3ads_imagewidthlandscape===undefined)?null:encodeURIComponent(c.m3ads_imagewidthlandscape);var R=(c.m3ads_imageheightlandscape===undefined)?null:encodeURIComponent(c.m3ads_imageheightlandscape);var s=(c.m3ads_numberadverts===undefined)?null:encodeURIComponent(c.m3ads_numberadverts);var I=(c.m3ads_effectivemeasure===undefined)?null:encodeURIComponent(c.m3ads_effectivemeasure);var D=(c.m3ads_language===undefined)?null:encodeURIComponent(c.m3ads_language);var H=(c.m3ads_cssurl===undefined)?null:c.m3ads_cssurl;var m=(c.m3ads_3rdpartyclickurl===undefined)?null:c.m3ads_3rdpartyclickurl;var i=(c.m3ads_3rdpartyimpressionurl===undefined)?null:c.m3ads_3rdpartyimpressionurl;var q;if(X==true){if(V.indexOf(encodeURIComponent("AdZouk"))!=-1){q="http://qa.feed.adzouk.com/feed.jsonp.ashx?a="+P+"&sys="+V}else{if(V.indexOf(encodeURIComponent("4WM"))!=-1){q="http://qa.feed.4wnet.com/feed.jsonp.ashx?a="+P+"&sys="+V}else{q="http://qa.feed.mirago.com/feed.jsonp.ashx?a="+P+"&sys="+V}}}else{if(V.indexOf(encodeURIComponent("AdZouk"))!=-1){q="http://feed.adzouk.com/feed.jsonp.ashx?a="+P+"&sys="+V}else{if(V.indexOf(encodeURIComponent("4WM"))!=-1){q="http://feed.4wnet.com/feed.jsonp.ashx?a="+P+"&sys="+V}else{q="http://feed.mirago.com/feed.jsonp.ashx?a="+P+"&sys="+V}}}if((s!=null)&&(s.length>0)){q+="&n="+s}else{q+="&n=1"}var u="";if((x!=null)&&(x.length>0)){q+="&ch="+x;u=x.replace(new RegExp(",","g"),"-")}else{if((v!=null)&&(v.length>0)){q+="&sec="+v;u=c.m3ads_sectornames.replace(new RegExp(",","g"),"-");u=u.replace(new RegExp(" ","g"),"");u=u.replace(new RegExp("&","g"),"")}}if((Q!=null)&&(Q.length>0)){q+="&u="+Q}else{q+="&u=REF"}if((n!=null)&&(n.length>0)){q+="&q="+n}if((z!=null)&&(z.length>0)){q+="&zone="+z}if((H!=null)&&(H.length>0)){var U=document.getElementsByTagName("head")[0];var O=document.createElement("link");O.type="text/css";O.rel="stylesheet";O.href=H;U.appendChild(O)}if((y!=null)&&(y.length>0)){q+="&ip="+y}if((J!=null)&&(J.length>0)){q+="&i="+J}else{q+="&i=1"}if((F!=null)&&(F.length>0)){q+="&s="+F}if((C!=null)&&(C.length>0)){q+="&m="+C}if((W!=null)&&(W.length>0)){q+="&mt="+W}if((G!=null)&&(G.length>0)){q+="&tel="+G}if((B!=null)&&(B.length>0)){q+="&loc="+B}if((t!=null)&&(t.length>0)){q+="&lat="+t}if((M!=null)&&(M.length>0)){q+="&long="+M}if((K!=null)&&(K.length>0)){q+="&ct="+K}if((N!=null)&&(N.length>0)){q+="&f="+N}if((o!=null)&&(o.length>0)){q+="&b="+o}if((Y!=null)&&(Y.length>0)){q+="&p="+Y}if((w!=null)&&(w.length>0)){q+="&cpw="+w}if((S!=null)&&(S.length>0)){q+="&cph="+S}if((L!=null)&&(L.length>0)){q+="&iwl="+L}if((R!=null)&&(R.length>0)){q+="&ihl="+R}if((r!=null)&&(r.length>0)){q+="&iw="+r}if((E!=null)&&(E.length>0)){q+="&ih="+E}if((D!=null)&&(D.length>0)){q+="&lang="+D}A.get(q,"",function(ab){var ac=0;var af=ab.adverts.results;var aa=1;if((s!=null)&&(s.length>0)){aa=s}if(ab.adverts.backfills!=undefined&&ab.adverts.results<aa){for(ac=0;ac<ab.adverts.backfills.length;ac++){if(ab.adverts.backfills[ac]=="admeld"){while(ab.adverts.results<aa){var ai=new Object();ai.admeld=true;ai.site=(ab.adverts.site!=undefined&&ab.adverts.site!=null)?ab.adverts.site:0;if(ab.adverts.copywidth!=undefined&&ab.adverts.copywidth!=null&&ab.adverts.copywidth>0){ai.copywidth=ab.adverts.copywidth}else{if(w!=null&&w.length>0){ai.copywidth=w}else{ai.copywidth=300}}if(ab.adverts.copyheight!=undefined&&ab.adverts.copyheight!=null&&ab.adverts.copyheight>0){ai.copyheight=ab.adverts.copyheight}else{if(w!=null&&w.length>0){ai.copyheight=S}else{ai.copyheight=250}}ai.vt=(ab.adverts.vt!=undefined&&ab.adverts.vt!=null&&ab.adverts.vt>0)?ab.adverts.vt:0;ai.vu=(ab.adverts.vu!=undefined&&ab.adverts.vu!=null&&ab.adverts.vu>0)?ab.adverts.vu:0;ai.vc=(ab.adverts.vc!=undefined&&ab.adverts.vc!=null&&ab.adverts.vc>0)?ab.adverts.vc:0;ab.adverts.advert.push(ai);ab.adverts.results+=1}}}}if(ab.adverts.results<1){return}for(ac=0;ac<ab.adverts.results;ac++){l.n=ac+1;T(l,ab.adverts.advert[ac],ab.adverts.copywidth,ab.adverts.copyheight)}if(!((ab.adverts.copywidth==42)&&(ab.adverts.copyheight==42))){l.style.width=ab.adverts.copywidth+"px";l.style.height=ab.adverts.copyheight+"px"}if((I=="True")||(I=="true")||(I=="1")){var Z=[];Z.push('<img src="//me.effectivemeasure.net/emnb_24_'+u+'.gif" height="1" width="1" style="position: absolute;" />');if(((ab.adverts.advert[0].thirdpartytag!=null)&&(ab.adverts.advert[0].thirdpartytag.length>0))||((ab.adverts.advert[0].thirdpartyurl!=null)&&(ab.adverts.advert[0].thirdpartyurl.length>0))){var ad=document.createElement("div");ad.innerHTML=Z.join("");l.appendChild(ad)}else{l.innerHTML+=Z.join("")}}if((af>0)&&(ab.adverts.m3adstitle!=null)&&(ab.adverts.m3adstitle.length>0)){var aj=[];var ah=l.style.width;var ae=l.style.height;aj.push('<div style="position:relative;">');aj.push(l.innerHTML);aj.push('<div style="clear:both;"></div><div style="position:absolute; font-weight:bold; opacity:0.6; z-index=9999; bottom:2px; right:0; background-color:black; color:white; padding-bottom:0.2em; padding-left:0.5em; padding-right:0.5em; font-size:8px;"><a style="color:white!important; text-decoration:none!important;" target="_blank" rel="nofollow" href="'+ab.adverts.m3adsurl+'">'+ab.adverts.m3adstitle+"</a></div>");aj.push("</div>");if(((ab.adverts.advert[0].thirdpartytag!=null)&&(ab.adverts.advert[0].thirdpartytag.length>0))||((ab.adverts.advert[0].thirdpartyurl!=null)&&(ab.adverts.advert[0].thirdpartyurl.length>0))){var ag=document.createElement("div");ag.style.position="relative";ag.style.right="0";ag.style.bottom="0";ag.innerHTML+='<div style="clear:both;"></div><div style="position:absolute; font-weight:bold; opacity:0.6; z-index=9999; bottom:0; right:0; background-color:black; color:white; padding-bottom:0.2em; padding-left:0.5em; padding-right:0.5em; font-size:8px;"><a style="color:white!important; text-decoration:none!important;" target="_blank" rel="nofollow" href="'+ab.adverts.m3adsurl+'">'+ab.adverts.m3adstitle+"</a></div>";setTimeout(function(){l.appendChild(ag)},0)}else{l.innerHTML=aj.join("")}}p.parentNode.insertBefore(l,p)})}})();
