d16g.types={};d16g.ads={};d16g.getLabel=function(){return"d16g";};d16g.getLogMsg=function(b,a){if(typeof a!=="undefined"&&typeof a.getLabel==="function"){return a.getLabel()+b;}else{return b;}};d16g.log=function(b,a){if(typeof console!=="undefined"&&typeof console.log==="function"&&d16g.adDebug===true){console.log(d16g.getLogMsg(b,a));}};d16g.warn=function(b,a){if(typeof console!=="undefined"&&typeof console.warn==="function"&&d16g.adDebug===true){console.warn(d16g.getLogMsg(b,a));}};d16g.info=function(b,a){if(typeof console!=="undefined"&&typeof console.info==="function"&&d16g.adDebug===true){console.info(d16g.getLogMsg(b,a));}};d16g.error=function(b,a){if(typeof console!=="undefined"&&typeof console.error==="function"&&d16g.adDebug===true){console.error(d16g.getLogMsg(b,a));}};d16g.objToString=function(d){var c;if(d16g.adDebug===true){c="";var a=false;for(var b in d){if(true){if(a===true){c+=", ";}else{a=true;}c+=b+":"+d[b];}}}return c;};d16g.arrToString=function(c){var d;if(d16g.adDebug===true){d="";var b=false;for(var e=0;e<c.length;e++){if(true){if(b===true){d+=", ";}else{b=true;}d+=c[e];}}}return d;};d16g.swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)];}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac};}(),k=function(){if(!M.w3){return;}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f();}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false);}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f();}});if(O==top){(function(){if(J){return;}try{j.documentElement.doScroll("left");}catch(X){setTimeout(arguments.callee,0);return;}f();})();}}if(M.wk){(function(){if(J){return;}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return;}f();})();}s(f);}}();function f(){if(J){return;}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z);}catch(aa){return;}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]();}}function K(X){if(J){X();}else{U[U.length]=X;}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false);}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false);}else{if(typeof O.attachEvent!=D){i(O,"onload",Y);}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y();};}else{O.onload=Y;}}}}}function h(){if(T){V();}else{H();}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)];}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return;}}X.removeChild(aa);Z=null;H();})();}else{H();}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa);}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class");}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align");}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value");}}P(ai,ah,Y,ab);}else{p(ae);if(ab){ab(aa);}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z;}ab(aa);}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y;}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z;}}}return X;}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312);}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null;}else{l=ae;Q=X;}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310";}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137";}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac;}else{ab.flashvars=ac;}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae);}else{setTimeout(arguments.callee,10);}})();}u(aa,ab,X);}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y);}else{setTimeout(arguments.callee,10);}})();}else{Y.parentNode.replaceChild(g(Y),Y);}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML;}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true));}}}}}return aa;}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X;}if(aa){if(typeof ai.id==D){ai.id=Y;}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae];}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"';}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"';}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />';}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id);}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac]);}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac]);}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab]);}}aa.parentNode.replaceChild(Z,aa);X=Z;}}return X;}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa);}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y);}else{setTimeout(arguments.callee,10);}})();}else{X.parentNode.removeChild(X);}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null;}}Y.parentNode.removeChild(Y);}}function c(Z){var X=null;try{X=j.getElementById(Z);}catch(Y){}return X;}function C(X){return j.createElement(X);}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y];}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false;}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return;}var aa=j.getElementsByTagName("head")[0];if(!aa){return;}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null;}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1];}G=X;}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y);}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"));}}}function w(Z,X){if(!m){return;}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y;}else{v("#"+Z,"visibility:"+Y);}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y;}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2]);}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa]);}for(var Y in M){M[Y]=null;}M=null;for(var X in d16g.swfobject){d16g.swfobject[X]=null;}d16g.swfobject=null;});}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false);}else{if(Z){Z({success:false,id:ab});}}},getObjectById:function(X){if(M.w3){return z(X);}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al];}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak];}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai];}else{am.flashvars=ai+"="+Z[ai];}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true);}X.success=true;X.ref=an;}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return;}else{w(ah,true);}}if(ac){ac(X);}});}else{if(ac){ac(X);}}},switchOffAutoHideShow:function(){m=false;},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]};},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X);}else{return undefined;}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y);}},removeSWF:function(X){if(M.w3){y(X);}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X);}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1];}if(aa==null){return L(Z);}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)));}}}return"";},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block";}}if(E){E(B);}}a=false;}}};}();d16g.loadJs=function(b){var a=document.createElement("script");a.src=b;document.getElementsByTagName("head")[0].appendChild(a);};d16g.make=function(a){return new a();};d16g.extend=function(b){var a=function(){};a.prototype=new b();return a;};d16g.parseBool=function(b){var a;switch(typeof b){case"number":a=(b!==0);break;case"string":var c=b.toLowerCase();if(c==="yes"||c==="1"||c==="true"){a=true;}else{if(c==="no"||c==="0"||c==="false"||c===""){a=false;}}break;case"boolean":a=b;break;case"undefined":case"function":d16g.error("d16g.parseBool(): value type is undefined or a function! Parameter type="+typeof b+", value="+b);break;default:d16g.warn("d16g.parseBool(): value type is not handled explicitly. Parameter type="+typeof b+", value="+b);}return a;};d16g.defaultBoolFalse=function(b){var a=b;if(typeof b!=="boolean"){a=false;d16g.log("d16g.defaultBoolFalse(): Returning false as default. Parameter type="+typeof b+", value="+b);}return a;};d16g.defaultBoolTrue=function(b){var a=b;if(typeof b!=="boolean"){a=true;d16g.log("d16g.defaultBoolTrue(): Returning true as default. Parameter type="+typeof b+", value="+b);}return a;};d16g.adFeedback={};d16g.adFeedback.constants=function(){return{USER_ACTION:"userAction",WIDGET_OPEN:"widgetOpened",WIDGET_SUBMITTED:"widgetSubmitted",CHAR_LIMIT:1000};};d16g.adFeedback.logOpen=function(b){var a=d16g.adFeedback.constants();var c=d16g.adFeedback.getMetaData(b);c[a.USER_ACTION]=a.WIDGET_OPEN;d16g.adFeedback.sendClog(c);};d16g.adFeedback.log=function(c){var b=d16g.adFeedback.constants();var d=d16g.adFeedback.getMetaData(c);var a="#adfeedbackpopover"+c.randomId;d[b.USER_ACTION]=b.WIDGET_SUBMITTED;jQuery(a+" input").each(function(){if((this.type==="radio")||(this.type==="checkbox")){if(this.checked){d[this.name]=this.value;}}else{d[this.name]=this.value;}});jQuery(a+" textarea").each(function(){var e=this.value.substring(0,b.CHAR_LIMIT);d[this.name]=e;});jQuery(a+" select").each(function(){d[this.name]=this.value;});d16g.adFeedback.sendClog(d);};d16g.adFeedback.getMetaData=function(a){var b={};b.browser=navigator.userAgent;b.impressionId=a.impressionId;b.pagetype=a.pageType;b.pagesubtype=a.pageSubType;b.slot=a.slotName;b.questionGroupId=a.questionGroupId;b.screenRes="h="+jQuery(window).height()+",w="+jQuery(window).width();b.adContentId=a.adContentId;return b;};d16g.adFeedback.sendClog=function(b){d16g.log("data to be logged:",this);for(var a in b){if(b.hasOwnProperty(a)){d16g.log("key is: "+a+", value is: "+b[a],this);}}if(typeof(window.clientLogger)!="undefined"){d16g.log("sendingCLOG",this);window.clientLogger.sendCLOGEntry("displayad","feedback",b);}};d16g.types.Ad=function(){this.isLoaded=false;this.components={};this.pixels={};};d16g.types.Ad.prototype.recordEvent=function(b){d16g.log(this.getLabel()+'.recordEvent("'+b+'")');var a=this.pixels[b];if(typeof a!=="undefined"){if(typeof a.loaded==="undefined"){d16g.log(this.getLabel()+".recordEvent(): loading "+a.urls.length+' tracking pixel(s), adEvent="'+b+'", adName="'+this.adName+'"');a.loaded=[];for(var c=0;c<a.urls.length;c++){if(a.urls[c]!==""){d16g.log(this.getLabel()+".recordEvent(): now loading pixel url="+a.urls[c]);a.loaded[c]=new Image(1,1);a.loaded[c].src=a.urls[c];}else{d16g.warn(this.getLabel()+".recordEvent(): empty string, urls["+c+']=""');}}}}else{d16g.error(this.getLabel()+'.recordEvent(): pixels["'+b+'"] is not defined for adName="'+this.adName+'"');}};d16g.types.Ad.prototype.loaded=function(){d16g.log(this.getLabel()+".loaded()");this.isLoaded=true;this.stateMachine.trigger("isLoaded");this.recordEvent("show");};d16g.types.Ad.prototype.createComponent=function(b){d16g.log(this.getLabel()+".createComponent("+b+")");var a=d16g.make(d16g.types.AdComponent);a.setAd(this);a.setParams(b);var d=this.adName;var c=a.name;a.getLabel=function(){return this.ad.getLabel()+'.components["'+this.name+'"]';};switch(b.contentType){case"image":amznJQ.onReady(d,function(){a.loadImage();});a.elementId=a.componentId;a.show=function(){a.showImage();};a.hide=function(){a.hideImage();};a.open=function(){};a.close=function(){};break;case"html":amznJQ.onReady(d,function(){a.loadHtml();});a.elementId=a.componentId;a.show=function(){a.showHtml();};a.hide=function(){a.hideHtml();};a.open=function(){a.openHtml();};a.close=function(){a.closeHtml();};break;case"flash":amznJQ.onReady(d,function(){a.loadFlash();});a.elementId=a.componentId;a.show=function(){a.showFlash();};a.hide=function(){a.hideFlash();};a.open=function(){a.openFlash();};a.close=function(){a.closeFlash();};break;case"static":amznJQ.onReady(d,function(){a.loadStatic();});a.elementId=a.staticId;a.show=function(){a.showStatic();};a.hide=function(){a.hideStatic();};a.open=function(){};a.close=function(){};break;}this.components[c]=a;if(a.positioning.type!=="auto"){jQuery(window).bind("resize",function(){a.render();});}d16g.log(a.getLabel()+".createComponent(): added");};d16g.types.Ad.prototype.clickedOpen=function(){d16g.log(this.getLabel()+".clickedOpen()");this.stateMachine.trigger("clickedOpen");this.recordEvent("expand");};d16g.types.Ad.prototype.clickedClose=function(){d16g.log(this.getLabel()+".clickedClose()");this.stateMachine.trigger("clickedClose");this.recordEvent("collapse");};d16g.types.Ad.prototype.opened=function(){d16g.log(this.getLabel()+".opened()");this.stateMachine.trigger("isOpen");};d16g.types.Ad.prototype.closed=function(){d16g.log(this.getLabel()+".closed()");this.stateMachine.trigger("isClosed");};d16g.types.Ad.prototype.clickedUrl=function(a){d16g.log(this.getLabel()+'.clickedUrl("'+a+'")');if(typeof this.clickUrls==="undefined"||typeof this.clickUrls[a]==="undefined"){d16g.error(this.getLabel()+'.clickedUrl(): clickUrls or clickUrls["'+a+'"] is undefined');}else{var b=this.clickUrls[a][0];d16g.log('.clickedUrl(): url="'+b+'"',this);if((b.search(d16g.internalDomainRegex)>0)||(jQuery.browser.safari)){d16g.log('.clickedUrl(): changing document location to "'+b+'"',this);document.location=b;}else{d16g.log('.clickedUrl(): opening new window to"'+b+'"',this);window.open(b);}}};d16g.types.Ad.prototype.componentLoaded=function(){d16g.log(this.getLabel()+".componentLoaded()");for(var a in this.components){if(this.components[a].isLoaded===false){d16g.log(this.getLabel()+".componentLoaded(): component "+a+" is not loaded yet...returning.");return;}}d16g.log(this.getLabel()+".componentLoaded(): components all loaded.");this.loaded();};d16g.types.Ad.prototype.createStateMachine=function(b,c){d16g.log(this.getLabel()+".createStateMachine("+b+", "+c+")");var a=d16g.make(d16g.types.StateMachine);a.setCurrentState(b);a.setModel(c);a.setAd(this);a.getLabel=function(){return this.ad.getLabel()+".stateMachine";};this.stateMachine=a;d16g.log(a.getLabel()+".createStateMachine(): added, currentState="+b);};d16g.types.Ad.prototype.getLabel=function(){return"d16g.types.Ad";};d16g.types.Ad.prototype.removeComponents=function(){jQuery("[d16gErm]").remove();d16g.error(".removeComponents(): All ERM components removed.",this);};d16g.types.AdComponent=function(){this.isLoaded=false;this.anchor="";this.html="";this.contentType="";this.templateFile="";this.name="";this.height={};this.width={};this.actualWidth=0;this.clip={};this.positioning={};this.resizeWidth={};this.htmlInsertion={};this.pushdown=false;this.hidden=false;this.isClipOpen=false;};d16g.types.AdComponent.prototype.hideFlash=function(){d16g.log(this.getLabel()+".hideFlash(), contentId="+this.contentId);this.doUserCallback("hide");if(jQuery.browser.msie){this.render("outOfView");}else{this.render("hideContent","hideElement");}this.hidden=true;};d16g.types.AdComponent.prototype.showFlash=function(){d16g.log(this.getLabel()+".showFlash(), contentId="+this.contentId);this.hidden=false;this.render("positionToBase","showElement","showContent");if(jQuery.browser.msie){this.render("positionToBase");}this.doUserCallback("show");};d16g.types.AdComponent.prototype.applyClip=function(){d16g.log(this.getLabel()+".applyClip()");if(this.wantsClipping===true){d16g.log(this.getLabel()+".applyClip() wantsClipping");var b=this.getClipRectArr();var c=",";if(jQuery.browser.msie){c=" ";}var a=b.join(c);d16g.log(".applyClip(): clip rectangle string (T,R,B,L), "+a,this);jQuery("#"+this.elementId).css("clip","rect("+a+")");}};d16g.types.AdComponent.prototype.getClipRectArr=function(){d16g.log(".getClipRectArr()",this);var f=this.getClipOffsetValue(this.clip.top),d=this.getClipOffsetValue(this.clip.left),h=this.getClipOffsetValue(this.clip.right),c=this.getClipOffsetValue(this.clip.bottom);var e,g,i,a;e=this.getClipString(f);a=this.getClipString(d);g=this.getConvertedClipString(h,parseInt(this.width.unclipped,10));i=this.getConvertedClipString(c,parseInt(this.height.unclipped,10));return[e,g,i,a];};d16g.types.AdComponent.prototype.getClipOffsetValue=function(b){d16g.log(".getClipOffsetValue("+b+")",this);var a=0;if((b>0&&this.isClipOpen===false)||(b<0&&this.isClipOpen===true)){a=Math.abs(b);d16g.log(".getClipOffsetValue: result="+a,this);}return a;};d16g.types.AdComponent.prototype.getClipString=function(b){d16g.log(".getClipString("+b+")",this);var a="auto";if(b>0){a=b+"px";}return a;};d16g.types.AdComponent.prototype.getConvertedClipString=function(c,b){d16g.log(".getConvertedClipString("+c+", "+b+")",this);var a;if(c===0){a="auto";}else{if(c<b){a=this.getClipString(b-c);}else{a=0;}}return a;};d16g.types.AdComponent.prototype.openFlash=function(){d16g.log(this.getLabel()+".openFlash(), contentId="+this.contentId);this.isClipOpen=true;this.doUserCallback("open");this.render("doExpand");};d16g.types.AdComponent.prototype.closeFlash=function(){d16g.log(this.getLabel()+".closeFlash(), contentId="+this.contentId);this.isClipOpen=false;this.render("doCollapse");this.doUserCallback("close");};d16g.types.AdComponent.prototype.loadFlash=function(){d16g.log(this.getLabel()+".loadFlash()");this.createContent();if(jQuery.browser.msie){this.render("outOfView");}else{this.render("inView");}if(typeof this.urls==="undefined"||typeof this.urls.loader==="undefined"||typeof this.urls.ad==="undefined"){d16g.error(".loadFlash(): this component must have a urls.loader and urls.ad defined in the config",this);}else{var h=this.ad.adName;var c=this.name;var g=this.urls.loader;var b={adName:h,cmpName:c,adDebug:d16g.adDebug,adUrl:this.urls.ad};if(typeof this.urls.video!=="undefined"&&this.urls.video!==""){b.vidUrl=this.urls.video;}var a=this.height.unclipped;var e=this.width.unclipped;if(typeof this.height.unclipped==="undefined"||typeof this.width.unclipped==="undefined"){d16g.error(".loadFlash(): height.unclipped and/or width.unclipped is undefined (see ad config params)",this);}else{jQuery("#"+this.elementId).css("width",this.width.unclipped,"height",this.height.unclipped);var f={wmode:"transparent",allowscriptaccess:"always",scale:"showall",salign:"t"};var d={styleclass:"adNoOutline ap_never_hide"};d16g.log(this.getLabel()+".loadFlash arguments: loaderFile="+g+", contentId="+this.contentId+", width="+e+", height="+a+", flashvars adName="+b.adName+", cmpName="+b.cmpName+", adDebug="+d16g.adDebug);d16g.swfobject.embedSWF(g,this.contentId,e,a,"9.0.28","expressInstall.swf",b,f,d);}}d16g.log(this.getLabel()+".loadFlash() end");};d16g.types.AdComponent.prototype.hideStatic=function(a){d16g.log(this.getLabel()+".hideStatic()");this.render("hideElement");this.doUserCallback("hide");this.hidden=true;};d16g.types.AdComponent.prototype.showStatic=function(a){d16g.log(this.getLabel()+".showStatic()");this.hidden=false;this.render("showElement");this.doUserCallback("show");};d16g.types.AdComponent.prototype.loadStatic=function(){d16g.log(this.getLabel()+".loadStatic()");this.loaded();};d16g.types.AdComponent.prototype.hideImage=function(){d16g.log(this.getLabel()+".hideImage()");this.render("hideElement","hideContent");this.hidden=true;};d16g.types.AdComponent.prototype.showImage=function(){d16g.log(this.getLabel()+".showImage()");d16g.fixPngs(jQuery("#"+this.elementId+"_click"));this.hidden=false;this.render("showElement","showContent","positionToBase");};d16g.types.AdComponent.prototype.loadImage=function(){d16g.log(this.getLabel()+".loadImage()");this.createContent();var g=this.ad.adName;var b=this.name;var f=g+"_"+b+"_img";var e=g+"_"+b+"_click";jQuery("#"+this.contentId).html('<span id="'+e+'"></span>');var a=function(){d16g.log('attempting to load image for d16g.ads["'+g+'"].components["'+b+'"]');jQuery("#"+e).append(this);d16g.ads[g].components[b].loaded();};var d=function(){d16g.error('.loadImage(): Could not load image for d16g.ads["'+g+'"].components["'+b+'"]',this);};var c=new Image();jQuery(c).load(a).error(d).attr("src",this.imageUrl).attr("id",f);jQuery("#"+e).click(function(){d16g.ads[g].clickedOpen();});};d16g.types.AdComponent.prototype.hideHtml=function(){d16g.log(this.getLabel()+".hideHtml()");this.doUserCallback("hide");this.render("cssCollapse");if(jQuery.browser.msie){this.render("outOfView");}this.hidden=true;};d16g.types.AdComponent.prototype.showHtml=function(){d16g.log(this.getLabel()+".showHtml()");this.hidden=false;this.render("cssExpand");this.doUserCallback("show");if(jQuery.browser.msie&&this.positioning.type!=="overlay"&&this.positioning.type!=="component"){this.render("undoOutOfView");}this.render();};d16g.types.AdComponent.prototype.loadHtml=function(){d16g.log(this.getLabel()+".loadHtml()");if(typeof this.html==="undefined"){d16g.error(d16g.getLabel()+".loadHtml(): Did not define inner html for adName="+this.ad.adName+", componentName="+this.componentName);}else{this.html='<div id="'+this.elementId+'" class="collapsed">'+this.html+"</div>";this.doHtmlInsertion();this.doUserCallback("load");d16g.fixPngs(jQuery("#"+this.elementId));this.loaded();}};d16g.types.AdComponent.prototype.openHtml=function(){d16g.log(this.getLabel()+".openHtml(), contentId="+this.contentId);this.doUserCallback("open");};d16g.types.AdComponent.prototype.closeHtml=function(){d16g.log(this.getLabel()+".closeHtml(), contentId="+this.contentId);this.doUserCallback("close");};d16g.types.AdComponent.prototype.doUserCallback=function(b){d16g.log(this.getLabel()+".doUserCallback("+b+")");if(typeof this.userCallbacks!=="undefined"){if(typeof this.userCallbacks[b]!=="undefined"){var a=this.userCallbacks[b];try{this[a]();}catch(c){d16g.error('.doUserCallback(): There was a problem trying to run a userCallback "'+b+'". '+c,this);}}else{d16g.info(this.getLabel()+'.doUserCallback(): this.userCallbacks["'+b+'"], one or more callbacks defined for this component, but not one for "'+b+'"');}}else{d16g.info(this.getLabel()+".doUserCallback(): no userCallbacks defined for this component");}};d16g.types.AdComponent.prototype.setAd=function(a){d16g.log(this.getLabel()+".setAd("+a+")");this.ad=a;};d16g.types.AdComponent.prototype.setParams=function(b){d16g.log(this.getLabel()+".setParams("+b+")");if(typeof b==="object"){for(var a in b){if(typeof a==="string"){this[a]=b[a];}}}this.pushdown=d16g.defaultBoolFalse(d16g.parseBool(this.pushdown));if(typeof this.wantsClipping==="undefined"){this.wantsClipping=false;}else{this.wantsClipping=d16g.parseBool(this.wantsClipping);}this.componentId=this.ad.adName+"_"+this.name;this.contentId=this.componentId+"_co";};d16g.types.AdComponent.prototype.setHtml=function(a){d16g.log(this.getLabel()+".setHtml("+a+")");if(typeof a==="string"){this.html=a;}else{d16g.error(this.getLabel()+".setHtml(): Invalid HTML = "+a);}};d16g.types.AdComponent.prototype.loaded=function(){d16g.log(this.getLabel()+".loaded(): isLoaded="+this.isLoaded);if(this.contentType!=="static"){if(this.contentType==="flash"&&!jQuery.browser.msie){this.render("hideContent");}this.hidden=true;}this.actualWidth=this.width.closed;this.isLoaded=true;this.ad.componentLoaded();d16g.log(this.getLabel()+".loaded(): component is now loaded. isLoaded="+this.isLoaded+', hidden="'+this.hidden+'"');};d16g.types.AdComponent.prototype.getBaseTarget=function(){d16g.log(this.getLabel()+".getBaseTarget()");var b;if(this.positioning.type==="component"){var a=this.ad.components[this.positioning.target];d16g.log(".getBaseTarget(): positioning target="+this.positioning.target+", component is "+typeof a,this);b="#"+a.elementId;}else{b=this.positioning.target;}return b;};d16g.types.AdComponent.prototype.getPos=function(){d16g.log(this.getLabel()+".getPos()");var b={};var c=this.getBaseTarget();d16g.log(this.getLabel()+'.getPos(): where positioning type="'+this.positioning.type+'", target="'+c+'"');b=jQuery(c).eq(0).offset();d16g.log(this.getLabel()+'.getPos(): left="'+b.left+'", top="'+b.top+'"');if(typeof this.positioning.targetLeft!=="undefined"){var a=jQuery(this.positioning.targetLeft).eq(0).offset();b.left=a.left;d16g.log(this.getLabel()+'.getPos(): since targetLeft="'+this.positioning.targetLeft+'", overriding to left='+b.left);}d16g.log(this.getLabel()+'.getPos(): final left="'+b.left+'", top="'+b.top+'"');if(this.wantsClipping===true){d16g.log(".getPos(): wantsClipping is true",this);b.top-=Math.abs(parseInt(this.clip.top,10));b.left-=Math.abs(parseInt(this.clip.left,10));d16g.log(this.getLabel()+'.getPos(): final adjusted for clipping: left="'+b.left+'", top="'+b.top+'"');}if(this.positioning.overrideOffsets!=="undefined"&&this.positioning.overrideOffsets=="true"&&jQuery.browser.msie){b.top=document.getElementById(this.positioning.overrideTarget).offsetTop;b.left=document.getElementById(this.positioning.overrideTarget).offsetLeft;d16g.log(this.getLabel()+'.getPos(): offsets adjusted for IE left="'+b.left+'", top="'+b.top+'"');}return b;};d16g.types.AdComponent.prototype.RENDER_STRATEGIES=["positionToBase","outOfView","undoOutOfView","inView","hideElement","showElement","hideContent","showContent","cssCollapse","cssExpand","doCollapse","doExpand","none"];d16g.types.AdComponent.prototype.doResizeWidth=function(){var c=jQuery("#"+this.elementId);d16g.log(this.getLabel()+".doResizeWidth(): resizeWidth.type is "+this.resizeWidth.type);if(this.resizeWidth.type==="auto"){var b;if(typeof this.resizeWidth.target==="undefined"){var d=jQuery(this.getBaseTarget());b=d.width();}else{d16g.log(this.getLabel()+".doResizeWidth(): this.resizeWidth.target is "+this.resizeWidth.target);b=jQuery(this.resizeWidth.target).width();}if(typeof this.resizeWidth.minWidth!=="undefined"){var a=this.resizeWidth.minWidth;d16g.log(this.getLabel()+".doResizeWidth(): minWidth="+a);if(b<a){d16g.log(this.getLabel()+".doResizeWidth(): limiting resize to minWidth of "+a);b=a;}}d16g.log(this.getLabel()+".doResizeWidth(): auto resizing width to "+b);c.width(b);this.actualWidth=b;if(this.contentType==="flash"&&typeof this.resizeWidth.shrinkFlash!=="undefined"&&d16g.parseBool(this.resizeWidth.shrinkFlash)===true){var e;if(this.isClipOpen===true){e=this.width.open;d16g.log(this.getLabel()+".doResizeWidth(): using open width");}else{e=this.width.closed;d16g.log(this.getLabel()+".doResizeWidth(): using close width");}if(e>b){e=b;}d16g.log(this.getLabel()+".doResizeWidth(): resizing flash object to "+e);jQuery("#"+this.contentId).width(e);}}};d16g.types.AdComponent.prototype.render=function(){d16g.log(this.getLabel()+".render("+d16g.arrToString(arguments)+'): adType="'+this.ad.adType+'", positioning.type="'+this.positioning.type+'", hidden='+this.hidden+", isLoaded="+this.isLoaded);if(typeof this.positioning==="undefined"||typeof this.positioning.type==="undefined"){d16g.error(this.getLabel()+".render(): positioning is not defined properly for this component");}else{var e=[];if(arguments.length===0){if(this.hidden===true||this.positioning.type==="auto"){e.push("none");d16g.info("render(): no rendering on hidden or auto-positioned components unless strategy is forced",this);}else{e.push("positionToBase");}}else{e=arguments;}d16g.log(".render(): strategyArr="+d16g.arrToString(e),this);var d;for(var a=0;a<e.length;a++){d=e[a];if(jQuery.inArray(d,this.RENDER_STRATEGIES)===-1){d16g.error(this.getLabel()+'.render(): "'+d+'" is not recognized as a strategy');}else{d16g.log(".render(): action="+d,this);var c=jQuery("#"+this.elementId);var b=jQuery("#"+this.contentId);switch(d){case"positionToBase":var f=this.getPos();c.css({position:"absolute",top:f.top,right:"",bottom:"",left:f.left});d16g.log(this.getLabel()+'.render(): elementId="'+this.elementId+'", adjustedPos.left='+f.left+", adjustedPos.top="+f.top);this.doResizeWidth();this.applyClip();break;case"outOfView":c.css({position:"absolute",left:"-99999px",right:""});break;case"undoOutOfView":c.css({position:"",left:""});break;case"inView":c.css({position:"absolute",top:"",right:0,bottom:0,left:""});break;case"hideElement":c.css("visibility","hidden");break;case"showElement":c.css("visibility","visible");break;case"hideContent":b.css("visibility","hidden");break;case"showContent":b.css("visibility","visible");break;case"cssCollapse":c.removeClass("expanded").addClass("collapsed");break;case"cssExpand":c.removeClass("collapsed").addClass("expanded").css("height","auto");break;case"doCollapse":b.get(0).doCollapse();this.applyClip();break;case"doExpand":b.get(0).doExpand();this.applyClip();break;case"none":break;default:d16g.error(this.getLabel()+'.render(): "'+d+'" is not recognized as a strategy');}}}}};d16g.types.AdComponent.prototype.doHtmlInsertion=function(){d16g.log(this.getLabel()+".doHtmlInsertion()");if(typeof this.htmlInsertion==="undefined"||typeof this.htmlInsertion.type==="undefined"){d16g.error(this.getLabel()+".doHtmlInsertion(): htmlInsertion is not defined properly for loading this component");}else{if(this.htmlInsertion.type==="none"){d16g.log(this.getLabel()+".doHtmlInsertion(): type="+this.htmlInsertion.type+", no insertion needed");}else{if(typeof this.htmlInsertion.target==="undefined"){d16g.error(this.getLabel()+".doHtmlInsertion(): htmlInsertion target is missing");}else{var c=this.htmlInsertion.type;var b=this.htmlInsertion.target;if(d16g.adDebug===true){if(jQuery(b).length===0){d16g.error('.doHtmlInsertion(): target="'+b+'" is not a valid jQuery selector (see config)');}else{d16g.log(this.getLabel()+".doHtmlInsertion(): initialized for insertion, target="+b+", insertionType="+c);}}if(this.contentType==="flash"){if(!jQuery.browser.msie){b="body";c="append";d16g.info(this.getLabel()+".doHtmlInsertion(): overriding for flash contentType, target="+b+", insertionType="+c);}}switch(c){case"html":case"append":case"before":case"after":var a=jQuery(this.html);a.attr("d16gErm","1");jQuery(b)[c](a);d16g.log(this.getLabel()+".doHtmlInsertion() attempted: target="+b+", insertionType="+c);break;default:d16g.error(this.getLabel()+".doHtmlInsertion(): invalid insertionType="+c);}}}}};d16g.types.AdComponent.prototype.createContent=function(){d16g.log(this.getLabel()+".createContent()");if(this.contentType==="static"){d16g.info(this.getLabel()+".createContent(): static component, no action needed");}else{var a=this.elementId;var b=this.elementId+"_wr";var c=this.elementId+"_co";this.html="<div id='"+a+"'><div id='"+b+"'><div id='"+c+"'>this.html</div></div></div>";d16g.log(this.getLabel()+".createContent(): attempting insertion for containerId="+a+", contentId="+c);this.doHtmlInsertion();jQuery("#"+c).css("visibility","hidden");jQuery("#"+a).css("background",this.background).css("visibility","hidden").css("z-index","1");d16g.log(this.getLabel()+".createContent(): html inserted, bgcolor applied, content and outer divs hidden");}};d16g.fixPngsNeeded=function(){var b=parseFloat(jQuery.browser.version);var a=(jQuery.browser.msie===true&&b>=5.5&&b<7);return a;};d16g.fixPngs=function(b){d16g.log(this.getLabel()+".fixPngs(): testing if .png fix is needed");if(d16g.fixPngsNeeded()){var a=this;d16g.info(this.getLabel()+".fixPngs(): browser requires .png fix, applying now...");b.find("*").each(function(){var c=(jQuery(this).css("background-image")||"").match(/url\("(.*\.png)"\)/);if(c){d16g.log(".fixPngs(): background-image="+jQuery(this).css("background-image"),a);var d=c[1];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"',sizingMethod='scale')";}});}};d16g.types.AdComponent.prototype.getLabel=function(){return"d16g.types.AdComponent";};d16g.types.StateMachine=function(){this.model={};this.lock=false;this.createEventQueue();};d16g.types.StateMachine.prototype.createEventQueue=function(){d16g.log(".createEventQueue()",this);this.eventQueue=d16g.make(d16g.types.CallbackQueue);};d16g.types.StateMachine.prototype.setCurrentState=function(a){d16g.log(this.getLabel()+".setCurrentState("+a+"): oldState="+this.currentState);this.currentState=a;};d16g.types.StateMachine.prototype.setModel=function(a){d16g.log(this.getLabel()+".setModel("+a+")");for(var c=0;c<a.length;c++){var e=a[c][0];var d=a[c][1];var b=a[c][2];if(typeof this.model[e]==="undefined"){this.model[e]={};}this.model[e][d]=b;}};d16g.types.StateMachine.prototype.setAd=function(a){this.ad=a;};d16g.types.StateMachine.prototype.onState=function(a,b){d16g.log(this.getLabel()+".onState("+a+", function() )");if(typeof this.model[a]==="undefined"){d16g.error(this.getLabel()+'onState(): this.model["'+a+'"] is undefined');}else{d16g.log(this.getLabel()+".onState(): adding callback to: stateName="+a);jQuery().bind(this.ad.adName+"_"+a,b);}};d16g.types.StateMachine.prototype.trigger=function(a){d16g.log(this.getLabel()+".trigger("+a+")");var b=(this.model[this.currentState])[a];var d=this.ad.adName;var c=this;if(typeof b!=="undefined"){this.eventQueue.addCallback(function(){c._trigger(d,b);});}else{d16g.error(this.getLabel()+".trigger(): Tried to add trigger for '"+a+"' event, while in '"+this.currentState+"' state.");}};d16g.types.StateMachine.prototype._trigger=function(b,a){d16g.log("._trigger(): trigger="+b+"_"+a,this);this.setCurrentState(a);jQuery().trigger(b+"_"+a);};d16g.types.StateMachine.prototype.getLabel=function(){return"d16g.types.StateMachine";};d16g.types.CallbackQueue=function(){this.lock=false;this.callbacks=[];this.nextIndex=0;this.runOnce=true;this.runAlways=true;};d16g.types.CallbackQueue.prototype.addCallback=function(a){d16g.log(".addCallback(): Adding callback... "+a,this);this.callbacks.push(a);if(this.runAlways===true){this.run();}};d16g.types.CallbackQueue.prototype.run=function(){d16g.log(".run(): lock="+this.lock,this);var a=(!this.lock)&&(this.lock=true);if(a!==true){d16g.info(".run(): already running in another pseudothread, abandoning...",this);}else{d16g.info(".run(): master pseudothread, lock added, running queue... ",this);while(this.nextIndex<this.callbacks.length){try{d16g.log(".run(): nextIndex="+this.nextIndex+", f="+this.callbacks[this.nextIndex],this);var b=this.getNextCallback();b();}catch(c){d16g.error(".run(): "+c,this);}}this.lock=false;d16g.info(".run(): lock removed, there are now "+this.callbacks.length+" callbacks in the queue",this);}};d16g.types.CallbackQueue.prototype.getNextCallback=function(){d16g.log(".getNextCallback(): callbacks.length="+this.callbacks.length+", runOnce="+this.runOnce,this);var a;if(this.runOnce===true){a=this.callbacks.shift();this.nextIndex=0;}else{a=this.callbacks[this.nextIndex];this.nextIndex++;}return a;};d16g.types.CallbackQueue.prototype.getLabel=function(){return"d16g.types.CallbackQueue";};d16g.createAd=function(configHash){d16g.log("d16g.createAd("+configHash+")");var ad=d16g.make(d16g.types.Ad);ad.adId=configHash.adId;ad.adName=configHash.adName;ad.getLabel=function(){return'd16g.ads["'+this.adName+'"]';};ad.adType=configHash.adType;d16g.log('.createAd(): ad instantiated, adName= "'+ad.adName+'"',this);ad.createStateMachine(configHash.initialState,configHash.model);var i;for(i=0;i<configHash.components.length;i++){ad.createComponent(configHash.components[i]);}var cb=configHash.callbacks;for(i=0;i<cb.length;i++){var statement='ad.components["'+cb[i][2]+'"].'+cb[i][1];var func=eval(statement);ad.stateMachine.onState(cb[i][0],func);}ad.clickUrls={};var cu=configHash.clickUrls;for(var key in cu){ad.clickUrls[key]=cu[key].urls;d16g.log('.createAd(): added "'+key+'" clickUrl',this);}this.ads[configHash.adName]=ad;d16g.log(ad.getLabel()+" added to d16g object");};d16g.isErmSupportedPlatform=function(){d16g.log(this.getLabel()+".isErmSupportedPlatform()");return d16g.isErmBrowserCompatible()&&d16g.isErmFlashCompatible()&&!d16g.isBadBrowserPlugin();};d16g.isBadBrowserPlugin=function(){var a=false;try{if(jQuery.browser.mozilla&&typeof(navigator.mimeTypes["application/x-skype"])==="object"){a=true;d16g.warn(this.getLabel()+".isBadBrowserPlugin(): Skype extension detected, abandoning ERM rendering");}}catch(b){}return a;};d16g.isErmBrowserCompatible=function(){d16g.log(this.getLabel()+".isErmBrowserCompatible()");var b=false;var a=navigator.platform;if(a.indexOf("Win")!=-1){if(jQuery.browser.msie&&parseFloat(jQuery.browser.version.substr(0,3))>=6){b=true;}else{if(jQuery.browser.mozilla&&parseFloat(jQuery.browser.version.substr(0,3))>=1.9){b=true;}}}else{if(a.indexOf("Mac")!=-1){if(jQuery.browser.safari||(jQuery.browser.mozilla&&parseFloat(jQuery.browser.version.substr(0,3))>=1.9)){b=true;}}}return b;};d16g.isErmFlashCompatible=function(){var d=".isErmFlashCompatible()";d16g.log(this.getLabel()+d);var c=false;var b=false;if((navigator.platform.substr(0,3).toLowerCase().indexOf("win")!=-1)&&jQuery.browser.msie){b=d16g.getFlashActiveXVersion();}else{b=d16g.getFlashPluginVersion();}if(b){var a=d16g.getFlashMinVersion();if(b.major>a.major){d16g.log(this.getLabel()+d+": Major version > min major");c=true;}else{if(b.major==a.major){d16g.log(this.getLabel()+d+": Major version == min major");if(b.minor>a.minor){d16g.log(this.getLabel()+d+": Minor version > min minor");c=true;}else{if(b.minor==a.minor&&b.rev>=a.rev){d16g.log(this.getLabel()+d+": Minor version == min minor and rev >= min rev");c=true;}}}}}return c;};d16g.getFlashPluginVersion=function(){var f=".getFlashPluginVersion()";d16g.log(this.getLabel()+f);var e=false;if(typeof navigator.plugins!=="undefined"){if(typeof navigator.plugins["Shockwave Flash"]!=="undefined"){var b="Shockwave Flash";var c=navigator.plugins[b].description.substr(b.length+1);var a=c.split(/ +/);var d=a[0].split(/\./);e={major:parseInt(d[0],10),minor:parseInt(d[1],10),rev:parseInt(a[1].substr(1),10)};}}return e;};d16g.getFlashActiveXVersion=function(){var h=".getFlashActiveXVersion()";d16g.log(this.getLabel()+h);var f="";var g=false;if(jQuery.browser.msie){var c;try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=c.GetVariable("$version");var b=f.split(/ +/);var a=b[1].split(/,/);g={major:parseInt(a[0],10),minor:parseInt(a[1],10),rev:parseInt(a[2],10)};}catch(d){}}return g;};d16g.getFlashMinVersion=function(){var b=".getFlashMinVersion()";d16g.log(this.getLabel()+b);var a={major:9,minor:0,rev:45};return a;};d16g.tracking={};d16g.tracking.scriptUrls=[];d16g.tracking.addIFramedScript=function(b,a){d16g.tracking.scriptUrls.push({baseUrl:b,url:a,loaded:false});};d16g.tracking.loadIFramedScripts=function(){for(var a=0;a<d16g.tracking.scriptUrls.length;a++){if(!d16g.tracking.scriptUrls[a].loaded){var b=document.createElement("iframe");b.src=d16g.tracking.scriptUrls[a].baseUrl+"#js="+d16g.tracking.scriptUrls[a].url;b.height=0;b.width=0;b.style.border=0;b.style.margin=0;document.body.appendChild(b);d16g.tracking.scriptUrls[a].loaded=true;}}};if(amznJQ!==null){amznJQ.onReady("d16g_JS",function(){d16g.tracking.loadIFramedScripts();});}amznJQ.declareAvailable("d16g_JS");d16g.log("d16g: finished d16g-0.6.6.js");
