jQuery.noConflict();if(typeof Object.make!=="function"){Object.make=function(F){return function(Object){F.prototype=Object;return new F();};}(function(){});}Function.prototype.memoize=function(){var memo={},that=this,obj=arguments.length>0?arguments[i]:null,memoizedFn;memoizedFn=function(){var args=[],i,il;for(i=0,il=arguments.length;i=this.length){start=this.length;}if(start<0){start=this.length+start;}for(i=start;i>=0;--i){if(this[i]===el){return i;}}return -1;};}if(!Array.prototype.remove){Array.prototype.remove=function(from,to){if(!this.splice){return;}this.splice(from,(to||from||1)+(from<0?this.length:0));return this.length;};}if(typeof CN==="undefined"||!CN){var CN={};}CN.isBoolean=function(mixed){return typeof mixed==="boolean";};CN.isDate=function(mixed){return Object.prototype.toString.call(mixed)==="[object Date]";};CN.isEmpty=function(str){return !/\S/.test(str||"");};CN.isNull=function(mixed){return mixed===null;};CN.isNumber=function(mixed){return typeof mixed==="number"&&isFinite(mixed);};CN.isObject=function(mixed){return typeof mixed==="object";};CN.isString=function(mixed){return typeof mixed==="string";};CN.isUndefined=function(mixed){return typeof mixed==="undefined";};CN.url=(function(){var pathCache=[];return{domain:function(url){var d=((url)?url.replace(/^https*:\/\/|(:|\/).*$/g,""):location.hostname).split("."),dl=d.length;return d.slice(dl-2,dl).join(".");},section:function(){return((location.pathname.split("/")[1]||"").match(/^[^\.]*$/)||[""])[0];},isSecure:function(){return location.protocol==="https:";},params:function(param,query,regex){var result=CN.utils.parseStr((query||location.search),(regex||"query"));return(param)?result[param]||"":result;},path:function(){if(pathCache.length===0){pathCache=location.pathname.match(/([^\/]+)/g)||[""];}return pathCache;},getFragment:function(){return location.hash.substring(1)||false;},setFragment:function(value){location.hash=value||"";return this;}};})();CN.utils=(function(){var cache={},parsers={query:/([^?=&]+)(=([^&]*))?/g,hash:/([^#=&]+)(=([^&]*))?/g,usercookie:/([^=|]+)(=([^|]*))?/g},pad=function(str,total,padding,dir){str=String(str||"");padding=String(padding||" ");var strLen=str.length,padLen=padding.length;if(strLen>=total){return str;}while(strLen").replace(/%7C/g,"|").replace(/%3A/g,":").replace(/%3B/g,";").replace(/%7D/g,"}").replace(/%7B/g,"{").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%20/g," ");if(strip){str=str.replace(/%u[0-9|A-F][0-9|A-F][0-9|A-F][0-9|A-F]/g,"").replace(/%u[0-9|A-F][0-9|A-F]/g,"").replace(/%[0-9|A-F][0-9|A-F]/g,"");}else{str=unescape(str);}return str;},padLeft:function(str,total,padding){return pad(str,total,padding,"left");},padRight:function(str,total,padding){return pad(str,total,padding,"right");},uriencdec:function(str,encode){return(encode)?encodeURIComponent(str):decodeURIComponent(str);},mapPropertyArray:function(arr,name,value){name=name||"name";value=value||"value";var obj={};if(jQuery.isArray(arr)){jQuery.each(arr,function(i){obj[arr[i][name]]=arr[i][value];});}else{obj[arr[name]]=arr[value];}return obj;}};})();CN.debug=(function(){var eType={error:{f:"error",msg:"ERROR"},warn:{f:"warn",msg:"WARNING"},info:{f:"info",msg:"INFO"},user:{f:"error",msg:"USER"}},eEnv={DEV:"Development",STAG:"Staging",PREV:"Preview",PROD:"Production"},show=function(type,msg,args){var t=eType[type]||eType.debug;if(CN.site.env==="PROD"&&!CN.site.debug){return;}msg=msg||"NO MSG";args=args||[];if(typeof console==="object"){var func=console[t.f]||console.info;args.unshift(t.msg,msg);for(var i=0;i3?"long":"short";return CN.date.getDayName(d.getDay(),opt);},a:function(d,number){return d.getHours()<12?"AM":"PM";},H:function(d,number){return zeroPad(d.getHours(),number);},k:function(d,number){return zeroPad(d.getHours()+1,number);},K:function(d,number){var hours=d.getHours();return zeroPad(hours-12>=0?hours-12:hours,number);},h:function(d,number){var hours=d.getHours();return zeroPad((hours-13>=0?hours-12:hours),number);},m:function(d,number){return zeroPad(d.getMinutes(),number);},s:function(d,number){return zeroPad(d.getSeconds(),number);},S:function(d,number){return zeroPad(d.getMilliseconds(),number);}};return{isLeapYear:function(year){return !!(year&&(year%4===0)&&(year%100!==0||year%400===0));},getDaysInMonth:function(month,year){return(month===1&&this.isLeapYear(year))?29:[31,28,31,30,31,30,31,31,30,31,30,31][month]||0;},getMonthName:function(month,options){options=options||{};return CN.date.getMonthNames(options)[month]||"";},getMonthNames:function(options){options=options||{};return months[options.lang||"en"]["_"+(options.form||"long")]||[];},getDayName:function(day,options){options=options||{};return CN.date.getDayNames(options)[((day===7)?0:day)]||"";},getDayNames:function(options){options=options||{};return days[options.lang||"en"]["_"+(options.form||"long")]||[];},format:function(d,pattern){if(!CN.isDate(d)){CN.debug.warn("date.format() method requires a JavaScript date object to be passed");return d;}var str="",p=function(q){str+=q;},i,il,current="",flagLength=1,currentToEnd,subPattern;if(CN.isString(pattern)){pattern=pattern.split("");for(i=0,il=pattern.length;i/g};return{path:function(keywords){return this.sanitize(keywords).replace(/\s+/g,"-");},sanitize:function(keywords){return CN.utils.trim(keywords||"").replace(checks.script,"").replace(checks.alphanum,"");}};})();CN.user=(function(){return{isLoggedIn:function(){return CN.cookie.get("amg_user_record")&&CN.cookie.get("amg_user");},isConfirmed:function(){return CN.utils.parseStr(CN.cookie.get("amg_user_record"),"usercookie").conf==="true";},username:function(){return CN.utils.parseStr(CN.cookie.get("amg_user_record"),"usercookie").username||"";},userid:function(){return CN.utils.parseStr(CN.cookie.get("amg_user_record"),"usercookie").uid||0;}};})();CN.world=(function($){var states={msg:"Select your",us:{desc:"state",code:"AL,AK,AZ,AR,CA,CO,CT,DE,DC,FL,GA,HI,ID,IL,IN,IA,KS,KY,LA,ME,MD,MA,MI,MN,MS,MO,MT,NE,NV,NH,NJ,NM,NY,NC,ND,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VT,VA,WA,WV,WI,WY,AE,AA,AP".split(","),name:"Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,District of Columbia,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming,Armed Forces Europe,Armed Forces Americas,Armed Forces Pacific".split(",")},ca:{desc:"province",code:"AB,BC,MB,NB,NL,NT,NS,NU,ON,PE,QC,SK,YT".split(","),name:"Alberta,British Columbia,Manitoba,New Brunswick,Newfoundland and Labrador,Northwest Territories,Nova Scotia,Nunavuta,Ontario,Prince Edward Island,Quebec,Saskatchewan,Yukon".split(",")}},form=function(){return CN.reg.getForm();};return{setForm:function(fid){form=$(fid);return this;},setState:function(){var stateField=$("#state",form),zipField=$("#zip",form),selection=this.value.toLowerCase();if(!(selection in states)){stateField.attr({disabled:"true"});zipField.attr({disabled:"true"}).data("val",zipField[0].value).val("");stateField[0][0].selected=true;CN.reg.removeReq("#zip, #state");}else{CN.reg.setReq("#zip, #state");zipField[0].value=(zipField.attr({disabled:""}).data("val")||zipField[0].value);var choice=stateField.children("[selected]").val()||false;stateField.empty();stateField.attr("disabled","")[0][0]=new Option(states.msg+" "+states[selection].desc,"");$.each(states[selection].code,function(i){stateField[0][i+1]=new Option(states[selection].name[i],this);if(choice&&choice==this){stateField[0][i+1].selected=true;}});}}};})(jQuery);CN.Interface=function(name,methods){var i,il;if(arguments.length!==2){throw new Error("CN.Interface constructor called with "+arguments.length+" arguments, but expected exactly 2");}this.name=name;this.methods=[];for(i=0,il=methods.length;i=0);},resume:function(){if(this.isPaused()){var tempInterval=this.interval-((this.pausedAt-this.startedAt)%this.interval);this.pausedAt=-1;this.start(tempInterval,true);}return this;},restart:function(){return this.stop().start();},addCallback:function(callback,n){if(typeof callback==="function"){this.callbacks.push(callback);if(typeof n==="number"){n=Math.floor(n);this.multipliers.push(n<1?1:n);}else{this.multipliers.push(1);}this.tickCounts.push(0);this.canRun.push(true);}return this;},clearCallbacks:function(){this.callbacks.length=0;this.multipliers.length=0;this.canRun.length=0;this.tickCounts.length=0;this.stoppedThreads=0;return this;}};CN.dom=CN.dom||{};CN.dom.storage={activeClass:"active",inactiveClass:"inactive",innerTag:"span"};CN.dom.storage.activateElement=function(el,storage,klass){var oldLink,newLink,newEl;klass=klass||this.activeClass;if(el.getElementsByTagName("a").length>0){if(jQuery.browser.msie||jQuery.browser.safari){oldLink=jQuery(el.getElementsByTagName("a")[0]);newLink=oldLink.clone(true);storage=jQuery(newLink).get()[0];oldLink.remove();}else{storage=el.removeChild(el.getElementsByTagName("a")[0]);}jQuery(el).addClass(klass);newEl=document.createElement(this.innerTag);newEl.innerHTML=storage.innerHTML;el.appendChild(newEl);return storage;}};CN.dom.storage.deactivateElement=function(el,storage,klass){klass=klass||this.activeClass;if(el.getElementsByTagName(this.innerTag).length>0){var children=el.getElementsByTagName(this.innerTag);el.removeChild(children[0]);el.appendChild(storage);jQuery(el).removeClass(klass);}};CN.functionQueue=(function(){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,tempF;for(i=0;i").attr({allowtransparency:common.transparency,frameBorder:0,scrolling:"no"}).css({border:"none",margin:0,padding:0}),messager=function(type,state){return msg_pre+msg[(state!==false).toString()][type||"gen"];},buildurl=function(ad,url){return common.url+common.site+"/"+(url||ad.zone||common.zone)+"sz="+ad.sz+";tile="+ad.tile+";"+(ad.tile===1&&common.dcopt===true?"dcopt=ist;":"")+(!url?keywordString(ad):"")+buildParams(ad)+"ord="+common.ord+"?";},buildParams=function(ad){var cParams=common.params,paramStr="",param;for(param in cParams){if(cParams.hasOwnProperty(param)){paramStr+=param+"=";paramStr+=(cParams[param].refresh&&(ad.kws.length!==common.ad.kws.length))?cParams[param].refresh(ad):cParams[param].defaultValue;}}return paramStr;},call=function(name,pars){var key=name+pars.sz,zone,ad=ads[key]={tile:common.tiles.push(key),el:$("#"+key+common.container),kws:unique(common.ad.kws,test.kws(pars.kws)||[]),store:pars.store===false?false:common.ad.store,sz:pars.sz,isDrawn:false,xkws:test.kws(pars.kws)||[],zone:pars.zone?test.adzone(pars.zone):false,collapse:pars.collapse===true};if(common.embed){drawEmbedded(key);}else{if(common.ready){if(!isDrawing){draw();}}else{$D.info(messager("queue"),[key,ad]);}}return this;},drawFrame=function(placement,url){var ad=ads[placement],dims=ad.sz.split("x");ad.url=buildurl(ad,url);ad.el.html(ad.frame=nakedFrame.clone().attr({id:placement,name:placement,height:ad.collapse?1:dims[1],width:dims[0],src:ad.url&&common.frameurl+"#"+encodeURIComponent(ad.url)}).bind("load",{key:placement,ad:ad},function(e){if(e.data.ad.tile===1){$window.trigger("CN.customEvents.dartAdDrawn",[placement,"#"+placement,ad]);}onFrameDraw(e);}));ad.isDrawn=true;$D.info(messager("call"),[placement,ad]);return this;},draw=function(e){var i=0,tiles=common.tiles,len=tiles.length;isDrawing=(len>0);for(;i$val.length?$site.length:$val.length,result=[];for(;i<\/script>');},requestQueue=function(e){draw(e.data.key);},refreshQueue=function(e){draw(e.data.key,e.data.url);},requestHandler=function(e){draw(e.data.key);};$window.one("CN.customEvents.dartInitialized",ready);$window.bind("CN.customEvents.dartPlugin",plugin,plugin.finished);timer.mark("start");return{buildurl:buildurl,calls:function(key){return $.extend({},(key===true?ads:(CN.isNumber(key)?ads[common.tiles[key]]:ads[key]||{})));},call:call,timer:timer,clone:function(placement,name){if(common.tiles.length){return call(name,{sz:placement,kws:ads[common.tiles[0]].kws});}return false;},refresh:refresh,get:function(props){props=[].concat(props);var i=0,len=props.length,ret={},prop;for(;i1?ret:ret[prop];},init:init,ondraw:common.embed?false:onFrameDraw,ready:ready,recalSize:recalSize,register:function(install){var i=0,len;if(!install){return this;}install=[].concat(install);len=install.length;for(;i=0;i--){plug=queue[i];if(plug!==plugin&&requires(plug)){$D.info(plugin.name+" found dependency: "+plug.name,["Pushing to callbacks array"]);if(!plug.isFinished){return plug.callbacks.push({func:run,args:null,scope:null});}}}run();},build=function(ad){var kws=$CNd.get("ad").kws,akws=(typeof ad!=="undefined")?ad.kws:kws,value;if(kws.length!==akws.length){value=akws.join("|");}else{value=kws.join("|");}$D.info(plugin.name+" assembled",[{common:kws,ad:akws,value:value}]);return((value.length<=LIMIT)?value:truncateStr(value))+";";},param={pKey:"u",pValue:null,refresh:build},truncateStr=function(str){var pos;$D.info(plugin.name+" limit reached. Truncating",[{limit:LIMIT,length:str.length,str:str}]);str=("trunc|"+str).substr(0,LIMIT-6);pos=str.lastIndexOf("|");return str.substr(0,pos);},requires=function(plug){var i=0,mod=plug.modifies,req=plugin.requires,curr=null;if(mod&&mod.length&&req&&req.length){for(;i