/**
This file is generated by a compression script.
Please DO NOT edit it directly or your changes may be lost.
See General Javascript Guidelines on the techwiki for more information.

Compressed by pbronsht on Tue Oct 6 15:12:51 EDT 2009 
*/

/** START
  *    File: ads/dartCall.js
  *    Last Updated: Mon Nov 12 14:28:07 2007
*/
dart=new Object();dart.tile_num=undefined;dart.ord=Math.random()*10000000000000000;dart.url="http://ad.doubleclick.net/adj/";function dartSwap(c){var b=document.getElementById("dartFrame_"+c);var d=(b.contentDocument||b.contentWindow.document).getElementById("adHolder").innerHTML;(b.contentDocument||b.contentWindow.document).location.replace("/nolayout/blankadcontent");d=d.toString();var a=new RegExp(dart[c].dartCall,"i");var e=new String(d);e=e.replace(a,"");e=e.replace(/<script .*?src="\?".*?><\/script>/i,"");document.getElementById("dartTarget_"+c).innerHTML=e;}function dartReload(){dart.ord=Math.random()*10000000000000000;var a=document.getElementsByTagName("iframe");for(i=0;i<a.length;i++){if(a[i].className=="hiddenDAU"){adParts=a[i].id.split("_");if(i==0){dart.tile_num=undefined;}dartRequest(adParts[1]);}}}function dartRequest(b){if(typeof dart.tile_num=="undefined"){dart.tile_num=1;}else{dart.tile_num++;}var a="tile="+dart.tile_num+";ord="+dart.ord;dart[b].dartCall=dart.url+dart[b].dartCall+dart[b].dcopt+dart[b].placement+a+"?";var c="/nolayout/displayad";c+='?exe=dartSwap("'+b+'")';c+="&req="+dart[b].dartCall;document.write('<script type="text/javascript" src="'+dart[b].dartCall+'"><\/script>');}var isSafari="false";var debug={log:function(d){var b=document.getElementsByTagName("head").item(0);debugCSS=document.createElement("link");debugCSS.href="/css/debug.css";debugCSS.type="text/css";debugCSS.rel="stylesheet";var a=document.getElementsByTagName("body").item(0);var c=document.getElementById("debug");if(!c){b.appendChild(debugCSS);c=document.createElement("div");c.id="debug";a.appendChild(c);$("debug").innerHTML="Debug Output window <span><a href=\"javascript: $('debug').style.display='none'; void 0;\">[X]Close</a></span><hr>";}$("debug").innerHTML=$("debug").innerHTML+d+"<br>";}};
/** END ads/dartCall.js */

/** START
  *    File: pluck/cookie.js
  *    Last Updated: Mon Nov 12 14:28:14 2007
*/
function Cookie(h){this.$name=h;var g=document.cookie;if(g==""){return;}var f=g.replace(" ","").split(";");var e=null;for(var d=0;d<f.length;d++){f[d]=f[d].replace(/\s/g,"");if(f[d].substring(0,h.length+1)==(h+"=")){e=f[d];break;}}if(e==null){return;}var c=e.substring(h.length+1);var b=c.split("&");for(var d=0;d<b.length;d++){b[d]=b[d].split("=");}for(var d=0;d<b.length;d++){this[b[d][0]]=decodeURIComponent(b[d][1]);}}Cookie.prototype.store=function(d,b,g,f){var e="";for(var c in this){if((c.charAt(0)=="$")||((typeof this[c])=="function")){continue;}if(e!=""){e+="&";}e+=c+"="+encodeURIComponent(this[c]);}var a=this.$name+"="+e;if(d||d==0){a+="; max-age="+(d*24*60*60);}if(b==undefined){b="/";}if(b){a+="; path="+b;}if(g){a+="; domain="+g;}if(f){a+="; secure";}document.cookie=a;};Cookie.prototype.remove=function(d,c,b){for(var a in this){if(a.charAt(0)!="$"&&typeof this[a]!="function"){delete this[a];}}this.store(0,d,c,b);};Cookie.enabled=function(){if(navigator.cookieEnabled!=undefined){return navigator.cookieEnabled;}if(Cookie.enabled.cache!=undefined){return Cookie.enabled.cache;}document.cookie="testcookie=test; max-age=10000";var a=document.cookie;if(a.indexOf("testcookie=test")==-1){return Cookie.enabled.cache=false;}else{document.cookie="testcookie=test; max-age=0";return Cookie.enabled.cache=true;}};
/** END pluck/cookie.js */

/** START
  *    File: flash/flash.js
  *    Last Updated: Mon Nov 12 14:28:09 2007
*/
var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(a,b){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac")){return;}UFO.getFlashVersion();UFO.foList[b]=UFO.updateFO(a);UFO.createCSS("#"+b,"visibility:hidden;");UFO.domLoad(b);},updateFO:function(a){if(typeof a.xi!="undefined"&&a.xi=="true"){if(typeof a.ximovie=="undefined"){a.ximovie=UFO.ximovie;}if(typeof a.xiwidth=="undefined"){a.xiwidth=UFO.xiwidth;}if(typeof a.xiheight=="undefined"){a.xiheight=UFO.xiheight;}}a.mainCalled=false;return a;},domLoad:function(b){var a=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(b)!=null){UFO.main(b);clearInterval(a);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(b);clearInterval(a);},null);}},main:function(b){var a=UFO.foList[b];if(a.mainCalled){return;}UFO.foList[b].mainCalled=true;document.getElementById(b).style.visibility="hidden";if(UFO.hasRequired(b)){if(UFO.hasFlashVersion(parseInt(a.majorversion,10),parseInt(a.build,10))){if(typeof a.setcontainercss!="undefined"&&a.setcontainercss=="true"){UFO.setContainerCSS(b);}UFO.writeSWF(b);}else{if(a.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(b);}}}document.getElementById(b).style.visibility="visible";},createCSS:function(a,e){var d=document.getElementsByTagName("head")[0];var c=UFO.createElement("style");if(!UFO.uaHas("ieWin")){c.appendChild(document.createTextNode(a+" {"+e+"}"));}c.setAttribute("type","text/css");c.setAttribute("media","screen");d.appendChild(c);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var b=document.styleSheets[document.styleSheets.length-1];if(typeof b.addRule=="object"){b.addRule(a,e);}}},setContainerCSS:function(d){var c=UFO.foList[d];var a=/%/.test(c.width)?"":"px";var b=/%/.test(c.height)?"":"px";UFO.createCSS("#"+d,"width:"+c.width+a+"; height:"+c.height+b+";");if(c.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");}if(c.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");}},createElement:function(a){return(UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a);},createObjParam:function(b,d,c){var a=UFO.createElement("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a);},uaHas:function(e){var d=UFO.ua;switch(e){case"w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case"xml":var a=document.getElementsByTagName("meta");var c=a.length;for(var b=0;b<c;b++){if(/content-type/i.test(a[b].getAttribute("http-equiv"))&&/xml/i.test(a[b].getAttribute("content"))){return true;}}return false;case"ieMac":return/msie/.test(d)&&!/opera/.test(d)&&/mac/.test(d);case"ieWin":return/msie/.test(d)&&!/opera/.test(d)&&/win/.test(d);case"gecko":return/gecko/.test(d)&&!/applewebkit/.test(d);case"opera":return/opera/.test(d);case"safari":return/applewebkit/.test(d);default:return false;}},getFlashVersion:function(){if(UFO.fv[0]!=0){return;}if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var a=navigator.plugins["Shockwave Flash"].description;if(typeof a!="undefined"){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var b=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);var f=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[b,f];}}else{if(window.ActiveXObject){UFO.pluginType="ax";try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(d){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];c.AllowScriptAccess="always";}catch(d){if(UFO.fv[0]==6){return;}}try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(d){}}if(typeof c=="object"){var a=c.GetVariable("$version");if(typeof a!="undefined"){a=a.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(a[0],10),parseInt(a[2],10)];}}}}},hasRequired:function(c){var b=UFO.req.length;for(var a=0;a<b;a++){if(typeof UFO.foList[c][UFO.req[a]]=="undefined"){return false;}}return true;},hasFlashVersion:function(b,a){return(UFO.fv[0]>b||(UFO.fv[0]==b&&UFO.fv[1]>=a))?true:false;},writeSWF:function(d){var g=UFO.foList[d];var j=document.getElementById(d);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(j.hasChildNodes()){j.removeChild(j.firstChild);}var k=UFO.createElement("object");k.setAttribute("type","application/x-shockwave-flash");k.setAttribute("data",g.movie);k.setAttribute("width",g.width);k.setAttribute("height",g.height);var f=UFO.optAtt.length;for(var h=0;h<f;h++){if(typeof g[UFO.optAtt[h]]!="undefined"){k.setAttribute(UFO.optAtt[h],g[UFO.optAtt[h]]);}}var e=UFO.opt.concat(UFO.optExc);var f=e.length;for(var h=0;h<f;h++){if(typeof g[e[h]]!="undefined"){UFO.createObjParam(k,e[h],g[e[h]]);}}j.appendChild(k);}else{var l="";var e=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var f=e.length;for(var h=0;h<f;h++){if(typeof g[e[h]]!="undefined"){l+=" "+e[h]+'="'+g[e[h]]+'"';}}j.innerHTML='<embed type="application/x-shockwave-flash" src="'+g.movie+'" width="'+g.width+'" height="'+g.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+l+"></embed>";}}else{if(UFO.pluginType=="ax"){var c="";var f=UFO.optAtt.length;for(var h=0;h<f;h++){if(typeof g[UFO.optAtt[h]]!="undefined"){c+=" "+UFO.optAtt[h]+'="'+g[UFO.optAtt[h]]+'"';}}var a="";var f=UFO.opt.length;for(var h=0;h<f;h++){if(typeof g[UFO.opt[h]]!="undefined"){a+='<param name="'+UFO.opt[h]+'" value="'+g[UFO.opt[h]]+'" />';}}var b=window.location.protocol=="https:"?"https:":"http:";j.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+c+' width="'+g.width+'" height="'+g.height+'" codebase="'+b+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+g.majorversion+",0,"+g.build+',0"><param name="movie" value="'+g.movie+'" />'+a+"</object>";}}},createDialog:function(a){var c=UFO.foList[a];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(c.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(c.xiheight,10)/2)+"px; width:"+c.xiwidth+"px; height:"+c.xiheight+"px;");var i=document.getElementsByTagName("body")[0];var g=UFO.createElement("div");g.setAttribute("id","xi-con");var e=UFO.createElement("div");e.setAttribute("id","xi-dia");g.appendChild(e);i.appendChild(g);var j=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var h=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}else{var h=document.title=document.title.slice(0,47)+" - Flash Player Installation";}var b=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var f=typeof c.xiurlcancel!="undefined"?"&xiUrlCancel="+c.xiurlcancel:"";var d=typeof c.xiurlfailed!="undefined"?"&xiUrlFailed="+c.xiurlfailed:"";UFO.foList["xi-dia"]={movie:c.ximovie,width:c.xiwidth,height:c.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+j+"&MMplayerType="+b+"&MMdoctitle="+h+f+d};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){var b=document.getElementsByTagName("body")[0];var a=document.getElementById("xi-con");b.removeChild(a);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;");},cleanupIELeaks:function(){var b=document.getElementsByTagName("object");var d=b.length;for(var c=0;c<d;c++){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=null;}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks);}
/** END flash/flash.js */

/** START
  *    File: stats/tracking.js
  *    Last Updated: Wed Oct 22 10:22:46 2008
*/
var vs=new (function(){var a=this;a.sensorDomain;a.sensorPath;a.internalDoms;a.fileTypes;a.customProps={};a.standardProps={};a.RE={"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g};a.setSensorDomain=function(b){a.sensorDomain=b;};a.setSensorPath=function(b){a.sensorPath=b;};a.setInternalDoms=function(b){a.internalDoms=b;};a.setFileTypes=function(b){a.fileTypes=b;};a.setStandardProperty=function(c,b){a.standardProps[c]=b;};a.setCustomProperty=function(c,b){a.customProps[c]=b;};a.setStandardProperty("URL",document.location.pathname);a.setStandardProperty("REFERRER",document.referrer);a.setStandardProperty("screenres",screen.availWidth+"x"+screen.availHeight);a.setStandardProperty("cachedefeat",(new Date()).getTime());a.setStandardProperty("vs.dns",document.location.host);a.setStandardProperty("vs.pt",document.title);a.setStandardProperty("vs.ver","1.7");a.META=function(){var b;if(document.all){b=document.all.tags("meta");}else{if(document.documentElement){b=document.getElementsByTagName("meta");}}if(typeof(b)!="undefined"){for(var c=1;c<=b.length;c++){var d=b.item(c-1);if(d.name){if(d.name.indexOf("vs.")==0){a.customProps[d.name.substring(3)]=d.content;}}}}};a.A=function(c,b){return"&"+c+"="+a.ESCAPE(b,a.RE);};a.ESCAPE=function(b,d){if(typeof(d)!="undefined"){var c=new String(b);for(R in d){c=c.replace(d[R],R);}return c;}else{return escape(b);}};a.StatCall=function(){c="";if(a.sensorDomain==undefined){a.sensorDomain=document.location.host;}if(a.sensorPath==undefined){a.sensorPath="/js/stats/zag.js";}var c="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+a.sensorDomain+a.sensorPath+"?Log=1";for(N in a.standardProps){if(a.standardProps[N]){c+=a.A(N,a.standardProps[N]);}}for(N in a.customProps){if(a.customProps[N]){c+=a.A(N,a.customProps[N]);}}if(document.location.search!=""){c+="&"+document.location.search.substring(1);}var d=document.getElementsByTagName("head").item(0);var e=document.getElementById("loadScript");if(e){d.removeChild(e);}var b=document.createElement("script");b.src=c;b.type="text/javascript";b.id="loadScript";d.appendChild(b);};a.StatEvent=function(){a.setStandardProperty("REFERRER",document.location);if(arguments.length%2==0){for(var b=0;b<arguments.length;b+=2){a.standardProps[arguments[b]]=arguments[b+1];}a.setStandardProperty("cachedefeat",(new Date()).getTime());a.StatCall();}};a.OnsiteCheck=function(d){if(a.internalDoms==undefined){a.internalDoms=a.getDomain(document.location.hostname);}var b=a.internalDoms.split(",");for(var c=0;c<b.length;c++){if(d.indexOf(b[c])!=-1){return 1;}}return 0;};a.Evt=function(c,b){var d=c.target||c.srcElement;while(d.tagName&&(d.tagName!=b)){d=d.parentElement||d.parentNode;}return d;};a.EventBind=function(c,b){if((typeof(b)=="function")&&document.body){if(document.body.addEventListener){document.addEventListener(c,b,false);}else{if(document.body.attachEvent){document.body.attachEvent("on"+c,b);}}}};a.ET=function(){a.EventBind("mousedown",function(b){a.TrackDownload(b);});a.EventBind("mousedown",function(b){a.TrackOffsite(b);});};a.getDomain=function(c){var b=c.toLowerCase().split(".");var d=b[b.length-2]+"."+b[b.length-1];return d;};a.TrackDownload=function(b){b=b||(window.event||"");if(b){var g=a.Evt(b,"A");if(g.hostname){sitedomain=a.getDomain(g.hostname);}else{sitedomain="";}if(typeof(g.pathname)!="undefined"){var c=/^\//;if(!g.pathname.match(c)){newpathname="/"+g.pathname;}else{newpathname=g.pathname;}}else{return 0;}if(sitedomain&&a.OnsiteCheck(sitedomain)){if(a.fileTypes==undefined){a.fileTypes="xls,doc,pdf,txt,csv,zip,mp3,mpg,avi,mov,gz,gzip";}if(a.fileTypes.indexOf(newpathname.substring(newpathname.lastIndexOf(".")+1,newpathname.length))!=-1){var d=g.search?g.search.substring(g.search.indexOf("?")+1,g.search.length):"";var f=newpathname?((newpathname.indexOf("/")!=0)?"/"+newpathname:newpathname):"/";a.setStandardProperty("vs.dl","http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+g.hostname+f+g.search);a.StatEvent("URL","","vs.os","","httpStatuscode","","vs.pt","");}}}};a.TrackOffsite=function(b){b=b||(window.event||"");if(b){var f=a.Evt(b,"A");if(f.hostname){sitedomain=a.getDomain(f.hostname);}else{sitedomain="";}if(sitedomain&&!a.OnsiteCheck(sitedomain)&&f.className!="internal_lnk"){var c=f.search?f.search.substring(f.search.indexOf("?")+1,f.search.length):"";var d=f.pathname?((f.pathname.indexOf("/")!=0)?"/"+f.pathname:f.pathname):"/";a.setStandardProperty("vs.os","http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+f.hostname+d+f.search);a.StatEvent("URL","","vs.dl","","httpStatuscode","","vs.pt","");}}};});
/** END stats/tracking.js */

/** START
  *    File: eventmanager.js
  *    Last Updated: Mon Nov 12 14:28:08 2007
*/
function addEvent(b,d,c){if(b.addEventListener){b.addEventListener(d,c,false);}else{if(!c.$$guid){c.$$guid=addEvent.guid++;}if(!b.events){b.events={};}var a=b.events[d];if(!a){a=b.events[d]={};if(b["on"+d]){a[0]=b["on"+d];}b["on"+d]=handleEvent;}a[c.$$guid]=c;}}addEvent.guid=1;function removeEvent(a,c,b){if(a.removeEventListener){a.removeEventListener(c,b,false);}else{if(a.events&&a.events[c]&&b.$$guid){delete a.events[c][b.$$guid];}}}function handleEvent(d){d=d||fixEvent(window.event);var c=true;var a=this.events[d.type];for(var b in a){if(!Object.prototype[b]){this.$$handler=a[b];if(this.$$handler(d)===false){c=false;}}}if(this.$$handler){this.$$handler=null;}return c;}function fixEvent(a){a.preventDefault=fixEvent.preventDefault;a.stopPropagation=fixEvent.stopPropagation;return a;}fixEvent.preventDefault=function(){this.returnValue=false;};fixEvent.stopPropagation=function(){this.cancelBubble=true;};if(!window.addEventListener){document.onreadystatechange=function(){if(window.onload&&window.onload!=handleEvent){addEvent(window,"load",window.onload);window.onload=handleEvent;}};}function ScriptLoader(){this.scripts=new Array();}ScriptLoader.prototype.init=function(a){this.scripts=a;};ScriptLoader.prototype.load=function(){for(var a=0;a<this.scripts.length;a++){this.loadScript(this.scripts[a]);}};ScriptLoader.prototype.loadScript=function(c){var a=document.createElement("script");a.src=c;a.type="text/javascript";var b=document.getElementsByTagName("head").item(0);b.appendChild(a);b.appendChild(a);};var scriptLoader=new ScriptLoader();var aScripts=new Array();aScripts.push("/js/ads/adLayer.js");scriptLoader.init(aScripts);scriptLoader.load();aScripts=null;
/** END eventmanager.js */

/** START
  *    File: magnet.popups.js
  *    Last Updated: Tue Jul 21 11:25:34 2009
*/
/*
* @file magnet.popups.js
* @author Paul Bronshteyn
* @comment Built by a geek loaded on caffeine ...
* @copyright (c) Conde Nast Digital
*/
if(typeof MAGNET==="undefined"||!MAGNET){var MAGNET={};}MAGNET.popups=(function(p){var h=true,q=true,x=false,f=false,v={scrollbars:0,location:0,directories:0,status:0,menubar:0,toolbar:0,resizable:0},g={name:"arrivalpop",cookie:"ArrivalCookie",path:"/nolayout/arrival",width:460,height:295,top:-50,left:-50},r={name:"exitingpop",cookie:"ExitingCookie",path:"/nolayout/exit",width:460,height:295,top:50,left:50},n=24,e=3,d=location.pathname,o=p.site.domain,k=["/sweeps","/registration","/services/newsletters"],t=[],i=["buysub.com","condenastdirect.com","clk.atdmt.com","magazinestoresubscriptions.com"],m=["mbid"],s={arriving:{},exiting:{}},a=function(B,z){var A=0,y=z.length;for(;A<y;A++){if(B.indexOf(z[A])!==-1){return true;}}return false;},l=function(A,y){for(var z in y){if(y[z].strict){if(A===z){return y[z].options;}}else{if(A.indexOf(z)!==-1){return y[z].options;}}}return false;},b=function(B,z){var A=0,y=B.length;for(;A<y;A++){if(jQuery.inArray(B[A],z)===-1){z.push(B[A]);}}},w=function(C,A){var B=0,y=C.length,z;for(;B<y;B++){z=jQuery.inArray(C[B],A);if(z>-1){A.remove(z,1);}}},j=function(y){var z,A="",B;if(y.cookie){p.cookie.set(y.cookie,y.cookie,{expires:y.cookieLife||n,path:"/",domain:o});}y.args=jQuery.extend({},v,y.args||{});for(z in y.args){A+=","+z+"="+y.args[z];}B=window.open(y.path,y.name,"height="+(y.height||screen.height)+",width="+(y.width||screen.width)+",top="+parseInt(screen.height/2-(y.height||screen.height)/2+y.top)+",left="+parseInt(screen.width/2-(y.width||screen.width)/2+y.left)+A);return(B)?(true,B.focus()):false;},u=function(){if(x||(!j(g)&&f)){if(p.ecom&&p.ecom.floatingAd){p.cookie.set(g.cookie,g.cookie,{expires:g.cookieLife||n,path:"/",domain:o});p.ecom.floatingAd.init();}}},c=function(A){var y=l(d,s.exiting),B="",z="";if(y){jQuery(window).unbind("unload",c);if(A.type==="click"){B=(A.target.parentNode.pathname||A.target.pathname||"").replace(/(^[^/])/,"/$1");}if((y.cookie&&!p.cookie.get(y.cookie))&&(y.excludePath&&!a(B,y.excludePath))){j(y);}return;}if(!q||a(d,t)||p.cookie.get(r.cookie)){return;}if(A.type==="click"){jQuery(window).unbind("unload",c);if(/^(#|javascript:)/.test(this.href)){return;}z=A.target.parentNode.hostname||A.target.hostname||"";}z=(z)?p.url.domain(z):"";if(z===o||a(z,i)){return;}j(r);};return{init:function(){var z=0,y=m.length,A=p.url.params();for(;z<y;z++){if(A[m[z]]){return this;}}jQuery("a").live("click",c);jQuery(window).bind("unload",c);jQuery(function(){jQuery("form").bind("submit",function(){jQuery(window).unbind("unload",c);});});if(p.site.env==="DEV"){n=1;}if(!h||p.cookie.get(g.cookie)||a(d,k)){return this;}setTimeout(u,e*1000);return this;},setArriving:function(z,y){h=z;jQuery.extend(g,(y||{}));return this;},setExiting:function(z,y){q=z;jQuery.extend(r,(y||{}));return this;},setLayer:function(y){x=y;return this;},setForceLayer:function(y){f=y;return this;},isLayer:function(){return x||f;},setCookieLife:function(y){n=p.utils.intval(y)||n;return this;},setPopDelay:function(y){e=p.utils.intval(y)||e;return this;},setPopArguments:function(y){jQuery.extend(v,(y||{}));return this;},setCustomExitPath:function(A,z,y){if(!A){return this;}if(p.isBoolean(z)){y=z;z=r;}s.exiting[A]={strict:y||false,options:z||r};return this;},excludePath:function(){b(arguments,k);b(arguments,t);return this;},excludeArrivalPath:function(){b(arguments,k);return this;},removeArrivalPath:function(){w(arguments,k);return this;},excludeExitPath:function(){b(arguments,t);return this;},removeExitPath:function(){w(arguments,t);return this;},excludeExitDomain:function(){b(arguments,i);return this;},removeExitDomain:function(){w(arguments,i);return this;},excludeUrlParam:function(){b(arguments,m);return this;},removeUrlParam:function(){w(arguments,m);return this;}};})(MAGNET);
/** END magnet.popups.js */

/** START
  *    File: magnet.ecom.js
  *    Last Updated: Thu Oct 1 17:20:56 2009
*/
/*
* @file magnet.ecom.js
* @author Paul Bronshteyn
* @comment Built by a geek loaded on caffeine ...
* @copyright (c) Conde Nast Digital
*/
if(typeof MAGNET==="undefined"||!MAGNET){var MAGNET={};}MAGNET.ecom=MAGNET.ecom||{};MAGNET.ecom.rolloverAd=(function(c){var j=true,a,g,k=10,b,i=false,e=0,h=0,d=function(){if(i||!j){return;}i=!i;g=jQuery(this);var m=g.offset();a.css({top:(m.top+g.height()+e),left:(m.left+h)}).show();b=setTimeout(f,k*1000);jQuery(window).bind("resize",function(){var n=g.offset();a.css({top:(n.top+g.height()+e),left:(n.left+h)});});},f=function(){a.hide();clearTimeout(b);i=!i;},l=function(m){f();if(!this.href||this.href.indexOf("#")>-1){m.stopImmediatePropagation();return false;}};return{init:function(){if(j){jQuery("#rolloverAd_show,#logo-link-a,.showForm,#global_navBar a").live("mouseover",d);a=jQuery("#rolloverAd");var m=a.bind("click mousedown keypress",function(){clearTimeout(b);}).find("form");jQuery("#rolloverAd_header,#rolloverAd_footer",a).bind("mousedown",function(){clearTimeout(b);}).find("a").bind("click",l);if(m.length){m.bind("reset",f);}else{jQuery("#rolloverAd_content a",a).bind("click",l);}}return this;},setRollover:function(m){j=m;return this;},setOffset:function(n,m){e=c.utils.intval(n);h=c.utils.intval(m);return this;},timeout:function(m){k=c.utils.intval(m)||k;return this;}};})(MAGNET);MAGNET.ecom.floatingAd=(function(b){var a,e=15,g,d=function(){a.show();g=setTimeout(f,e*1000);},f=function(){a.hide();clearTimeout(g);},c=function(h){f();if(!this.href||this.href.indexOf("#")>-1){h.stopImmediatePropagation();return false;}};return{init:function(){jQuery(function(){a=jQuery("#floatingAd");if(!a.length){return this;}var h=a.bind("click mousedown keypress",function(){clearTimeout(g);}).find("form");jQuery("#floatingAd_header",a).bind("mousedown",function(){clearTimeout(g);}).find("a").bind("click",c);if(h.length){h.bind("reset",f);}else{jQuery("#floatingAd_content a",a).bind("click",function(i){i.stopImmediatePropagation();f();});}d();});return this;},timeout:function(h){e=b.utils.intval(h)||e;return this;}};})(MAGNET);
/** END magnet.ecom.js */

/** START
  *    File: main.js
  *    Last Updated: Mon Oct 5 13:20:48 2009
*/
MAGNET.popups.setArriving(false).setExiting(false).setLayer(true).init();document.writeln('<script src="/js/elis.js"><\/script>');function queryString(d){var f="";d=d.toUpperCase()+"=";var g=location.search;if(location.search.indexOf("?")!=-1){g=location.search.substring(1,g.length);var c=g.toUpperCase();if(c.indexOf(d)!=-1){var b=parseInt(c.indexOf(d))+d.length;var e=c.indexOf("&",b);var e=(e!=-1)?e:c.length;f=g.substring(b,e);}var a=f.indexOf("+");while(a!=-1){f=f.substring(0,a)+" "+f.substring(a+1,f.length);a=f.indexOf("+");}}return unescape(f);}function newsletterSampleClass(){this.keys=new Object();this.keys.sampleWeekly="/services/sampleWeekly";}var newsletterSample=new newsletterSampleClass();function openpopup(){window.open(newsletterSample.keys[this.id],"mywindow","menubar=1,resizable=1,scrollbars=yes,width=750,height=800");}function assignLinks(){for(id in this.keys){if(document.getElementById(id)!=null){document.getElementById(id).onclick=openpopup;}}}newsletterSampleClass.prototype.assign=assignLinks;function loadEvents(){newsletterSample.assign();}function unloadEvents(a){}function clickEvents(a){}function toggle(a){if(document.getElementById){target=document.getElementById(a);if(target.style.display=="none"){target.style.display="";}else{target.style.display="none";}}}try{var pluckUser=new Cookie("at");}catch(ex){var pluckUser=null;}MAGNET.functionQueue=(function($M){var q=[];return{addToQueue:function(f,a,qId){var temp={fName:f,args:a};q.push(temp);},execute:function(qId){var l=q.length,i;var tempF;for(i=0;i<l;i++){tempF=eval(q[i].fName);tempF.apply(tempF,q[i].args);}}};})(MAGNET);jQuery(function(){MSEXT_domain=document.location.host.split(".");MSEXT_domain=MSEXT_domain[(MSEXT_domain.length-2)];MSEXT_path=document.location.pathname.split("/");MSEXT_request=document.location.protocol+"//view.atdmt.com/action/MSFT_CondeNet_AE_ExtData/v3/atc1."+MSEXT_domain;MSEXT_request+=(MSEXT_path[1]!=""&&MSEXT_path[1]!=undefined)?"/atc2."+MSEXT_path[1]:"";MSEXT_request+=(MSEXT_path[2]!=""&&MSEXT_path[2]!=undefined)?"/atc3."+MSEXT_path[2]:"";MSEXT_request+="/";jQuery("body").append('<img src="'+MSEXT_request+'" height="1" width="1" border="0" />');});
/** END main.js */

