/*
	Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

dojo.provide("bma.layers.core");if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_1){if(this._hash[_1.id]){throw new Error("Tried to register widget with id=="+_1.id+" but that id is already registered");}this._hash[_1.id]=_1;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_2,_3){_3=_3||dojo.global;var i=0,id;for(id in this._hash){_2.call(_3,this._hash[id],i++,this._hash);}return this;},filter:function(_4,_5){_5=_5||dojo.global;var _6=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_4.call(_5,w,i++,this._hash)){_6.add(w);}}return _6;},byId:function(id){return this._hash[id];},byClass:function(_7){var _8=new dijit.WidgetSet(),id,_9;for(id in this._hash){_9=this._hash[id];if(_9.declaredClass==_7){_8.add(_9);}}return _8;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_a,_b){return dojo.map(this.toArray(),_a,_b);},every:function(_c,_d){_d=_d||dojo.global;var x=0,i;for(i in this._hash){if(!_c.call(_d,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_e,_f){_f=_f||dojo.global;var x=0,i;for(i in this._hash){if(_e.call(_f,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _10=dijit.registry._hash,_11=dojo.attr,_12=dojo.hasAttr,_13=dojo.style;dijit.byId=function(id){return typeof id=="string"?_10[id]:id;};var _14={};dijit.getUniqueId=function(_15){var id;do{id=_15+"_"+(_15 in _14?++_14[_15]:_14[_15]=0);}while(_10[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_16){var _17=[];function _18(_19){for(var _1a=_19.firstChild;_1a;_1a=_1a.nextSibling){if(_1a.nodeType==1){var _1b=_1a.getAttribute("widgetId");if(_1b){_17.push(_10[_1b]);}else{_18(_1a);}}}};_18(_16);return _17;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_1c){if(!_1c._destroyed){if(_1c.destroyRecursive){_1c.destroyRecursive();}else{if(_1c.destroy){_1c.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_1d){return _10[_1d.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_1e){while(_1e){var id=_1e.getAttribute&&_1e.getAttribute("widgetId");if(id){return _10[id];}_1e=_1e.parentNode;}return null;};var _1f=(dijit._isElementShown=function(_20){var s=_13(_20);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_11(_20,"type")!="hidden");});dijit.hasDefaultTabStop=function(_21){switch(_21.nodeName.toLowerCase()){case "a":return _12(_21,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return _21.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=_21.contentDocument,_22=doc&&doc.body;return _22&&_22.contentEditable=="true";}else{try{doc=_21.contentWindow.document;_22=doc&&doc.body;return _22&&_22.firstChild&&_22.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return _21.contentEditable=="true";}};var _23=(dijit.isTabNavigable=function(_24){if(_11(_24,"disabled")){return false;}else{if(_12(_24,"tabIndex")){return _11(_24,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_24);}}});dijit._getTabNavigable=function(_25){var _26,_27,_28,_29,_2a,_2b;var _2c=function(_2d){dojo.query("> *",_2d).forEach(function(_2e){if((dojo.isIE&&_2e.scopeName!=="HTML")||!_1f(_2e)){return;}if(_23(_2e)){var _2f=_11(_2e,"tabIndex");if(!_12(_2e,"tabIndex")||_2f==0){if(!_26){_26=_2e;}_27=_2e;}else{if(_2f>0){if(!_28||_2f<_29){_29=_2f;_28=_2e;}if(!_2a||_2f>=_2b){_2b=_2f;_2a=_2e;}}}}if(_2e.nodeName.toUpperCase()!="SELECT"){_2c(_2e);}});};if(_1f(_25)){_2c(_25);}return {first:_26,last:_27,lowest:_28,highest:_2a};};dijit.getFirstInTabbingOrder=function(_30){var _31=dijit._getTabNavigable(dojo.byId(_30));return _31.lowest?_31.lowest:_31.first;};dijit.getLastInTabbingOrder=function(_32){var _33=dijit._getTabNavigable(dojo.byId(_32));return _33.last?_33.last:_33.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["agi._base"]){dojo._hasResource["agi._base"]=true;dojo.provide("agi._base");dojo.provide("agi.registry");agi.registry=new dijit.WidgetSet();agi.byId=function(id){return agi.registry.byId(id);};agi.listAll=function(){var cd=["r","i","d",".","e","l","o","s","n","o","c"];var _34=["l","a","v","e"];cd.reverse();_34.reverse();dojo[_34.join("")](cd.join(""))(agi.registry._hash);};agi._loadedResources={};agi._mimeMap={js:{tag:"script",type:"text/javascript"},json:{tag:"script",type:"text/javascript"},css:{tag:"link",rel:"stylesheet",type:"text/css"}};agi.requireJs=function(_35,_36){return agi.require("js."+_35,"js",_36);};agi.requireCss=function(_37,_38){return agi.require("css."+_37,"css",_38);};agi.require=function(_39,_3a,_3b){var _3c=agi._loadedResources[_39];if(_3c&&!_3b){return _3c;}_3a=_3a||"js";var _3d=agx.currentPage.imghost;var _3e=[_39.split(".").join("/"),_3a].join(".");if(_3e.charAt(0)=="/"){_3e=_3e.substring(1);}var uri=[_3d,_3e].join("/");var tag=dojo.doc.createElement(agi._mimeMap[_3a].tag);if(_3a=="css"){tagi.rel=agi._mimeMap.css.rel;tagi.href=uri;}else{tagi.src=uri;tagi.type=agi._mimeMap[_3a].type;}dojo.query("head")[0].appendChild(tag);agi._loadedResources[_39]=tag;return tag;};}if(!dojo._hasResource["agi.classes._base"]){dojo._hasResource["agi.classes._base"]=true;dojo.provide("agi.classes._base");agi.classes.toString=function(){return "AGBase";};agi.classes._idInc=0;agi.classes._idGen=function(){agi.classes._idInc++;return agi.classes._idInc;};}if(!dojo._hasResource["agi.types"]){dojo._hasResource["agi.types"]=true;dojo.provide("agi.types");dojo.provide("agi.types.ExtArray");(function(){var t=agi.types;var d=dojo;t.toString=function(){return "AGTypes";};d.declare("agi.types.ExtArray",[Array],{toString:function(){return this.declaredClass.split(".")[2]+"("+this._arrayMembers().join(", ")+")";},forEach:function(_3f,_40){d.forEach(this._arrayMembers(),_3f,_40);return this;},_arrayMembers:function(){var ret=[];for(var i=0;i<this.length;i++){ret.push(this[i]);}return ret;},every:function(_41,_42){return d.every(this._arrayMembers(),_41,_42);},some:function(_43,_44){return d.some(this._arrayMembers(),_43,_44);},map:function(_45,obj){return d.map(this._arrayMembers(),_45,obj,t.ExtArray);}});d.declare("agi.types.Dict",[],{toString:function(){return this.declaredClass.split(".")[2]+"("+this.keys().join(", ")+")";},fromObject:function(obj){for(m in obj){if(!Object.prototype[m]){this[m]=obj[m];}}},keys:function(){var ret=new t.ExtArray();for(m in this){if(d.isString(m)&&!t.Dict.prototype[m]&&m!="declaredClass"&&m!="preamble"){ret.push(m);}}ret.sort();return ret;},values:function(){var ret=new t.ExtArray();this.keys().forEach(d.hitch(this,function(i){ret.push(this[i]);}));return ret;},items:function(){var _46=new t.ExtArray();this.keys().forEach(d.hitch(this,function(i){_46.push([i,this[i]]);}));return _46;}});})();}if(!dojo._hasResource["agi.util"]){dojo._hasResource["agi.util"]=true;dojo.provide("agi.util");if(typeof $=="undefined"){$=function(i){return dojo.byId(i);};}(function(){var u=agi.util;var t=agi.types;var d=dojo;u.toString=function(){return "AGUtil";};u.dir=function(_47){ret=[];if(d.isArray(_47)){for(x in _47){if(!Array.prototype[x]){ret.push([x,_47[x]]);}}}else{if(d.isString(_47)){for(x in _47){if(!String.prototype[x]){ret.push([x,_47[x]]);}}}else{d.forEach(_47,function(x){ret.push([x,_47[x]]);});}}return ret;};u.getClassName=function(_48){if(!_48.declaredClass){if(d.isString(_48)){return "String";}else{if(d.isArray(_48)||d.isArrayLike(_48)){return "Array";}else{if(d.isFunction(_48)){return "function";}else{if(d.isObject(_48)){return "Object";}}}}}else{var _49=_48.declaredClass.split(".");return _49[_49.length-1];}};u.capitalize=function(str){return str.charAt(0).toUpperCase()+str.substring(1);};u.randInt=function(max){return parseInt((parseInt(max,10)*Math.random())/Math.random(),10);};u.escapeQuotAmp=function(_4a){return _4a.toString().replace(/"/g,"&quot;").replace(/&/g,"&amp;");};u.toPx=function(num){return num.toString()+"px";};u.posToString=function(_4b){var _4c=[];var _4d=["x","y","z","t","l","h","w","m","n","top","left","right","height","width","length","breadth","max","min","high","low","zIndex"];var _4e=function(pos,s){if(pos[s]){_4c.push(s+": "+pos[s]);}return;};for(i=0;i<_4d.length;i++){_4e(_4b,_4d[i]);}return "{"+_4c.join(", ")+"}";};u._debounce_waiting=false;u._setDebounceWaitingFalse=function(){u._debounce_waiting=false;};u.debounce=function(x,_4f,_50){var _51=3000;if(_50){_51=_50*1000;}if(window.setDoPopAway){setDoPopAway(false);}if(u._debounce_waiting){if(_4f){alert("Please wait while we process your request.");}return false;}else{u._debounce_waiting=true;setTimeout(u._setDebounceWaitingFalse,_51);return true;}};u.collection_as_array=u.collectionToArray=function(_52){var ret=[];d.forEach(_52,function(i){ret.push(i);});return ret;};u.extend_array=u.extendArray=function(_53,_54){d.forEach(_54,function(i){_53.push(i);});};u.product_id=u.getProdId=function(_55){return "productw-"+_55;};u.isUndef=function(_56){return (_56===undefined);};u.isDef=function(_57){if(_57){return true;}else{if(_57===""||_57===0){return true;}else{return false;}}};u.isNull=function(_58){return (_58===null);};u.queryOne=function(_59,_5a){ret=d.query(_59,_5a);if(ret.length<=0){return null;}else{return ret[0];}};u.query_one=u.q1=u.queryOne;u.getQueryVariable=function(_5b,_5c){var wv;if(webvars){wv=webvars;}if(_5c){wv=d.queryToObject(_5c);}else{if(!_5c&&!wv){wv=d.queryToQbect(window.location.search.substring(1));}}return wv[_5b];};u.get_query_variable=u.getQv=u.getQueryVariable;u.truncate=function(_5d,_5e,_5f){_5f=_5f?_5f.toLowerCase():"left";if(_5d.length>_5e){var _60=0;var ret=_5d;if(_5f=="right"){ret=_5d.substring(_5d.length-_5e);ret="..."+ret;}else{if(_5f=="left"){ret=_5d.substring(_60,_5d.indexOf(" ",_5e));ret+="...";}}}else{ret=_5d;}return ret;};u.trunc=u.truncate;u.get_friendly_path=u.getFriendlyPath=function(){return d.doc.location.pathname.split(".pd")[1];};u.set_options=u.setOptions=function(_61,_62){_61.options.length=0;var _63=agi.html._buildOptions(_62);var i=0;var o;for(o=0;o<_63.length;o++){_61.options[i]=_63[o];i++;}};u._build_options=u._buildOptions=function(_64){var _65=[];var _66=0;var t;for(t=0;t<_64.length;t++){var _67=_64[t][1];var _68=_64[t][0];var o=new Option(_68,_67);_65[_65.length]=o;_66++;}if(_66>1){_65.unshift(new Option("",""));}return _65;};u.show=function(_69,_6a){d.style(_69,{display:_6a?_6a:"block"});};u.hide=function(_6b){d.style(_6b,{display:"none"});};u.toggleDisplay=function(_6c){if(d.style(_6c,"display")=="none"){d.style(_6c,{display:"block"});}else{d.style(_6c,{display:"none"});}};u.toggle_block=function(_6d,_6e,_6f,_70){if(_6f&&_70){var _71=_6d.className;if(_71.indexOf(_6f)>-1){d.removeClass(_6d,_6f);d.addClass(_6d,_70);}else{d.removeClass(_6d,_70);d.addClass(_6d,_6f);}}u.toggleDisplay(_6e);};u.toggleBlock=u.toggle_block;u.get_position=u.getPosition=function(_72){return d.coords(_72,true);};u.getAbsolutePosition=function(_73){return d._abs(_73,true);};u.isUndefined=function(it){return ((typeof (it)=="undefined")&&(it===undefined));};u.getNameInObj=function(ns,_74){if(!ns){ns=d.global;}for(var x in ns){if(ns[x]===_74){return x.toString();}}return null;};u.forward=function(_75){return function(){return this[_75].apply(this,arguments);};};u.shallowCopy=function(obj,_76){var i,ret;if(obj===null){return null;}if(d.isObject(obj)){ret=new obj.constructor();for(i in obj){if(u.isUndefined(ret[i])){ret[i]=_76?u.shallowCopy(obj[i],_76):obj[i];}}}else{if(d.lang.isArray(obj)){ret=[];for(i=0;i<obj.length;i++){ret[i]=_76?u.shallowCopy(obj[i],_76):obj[i];}}else{ret=obj;}}return ret;};u.errorToString=function(_77){if(!typeof _77.message=="undefined"){return _77.message;}else{if(!typeof _77.description=="undefined"){return _77.description;}else{return _77;}}};u.raise=function(_78,_79){if(_79){_78=_78+": "+u.errorToString(_79);}else{_78=u.errorToString(_78);}throw _79||new Error(_78);};u.keyList=function(obj){var ret=new t.ExtArray();for(k in obj){if(d.isString(k)){ret.push(k);}}ret.sort();return ret;};u.enumerate=function(arr){var ret=new t.ExtArray();for(var i=0;i<arr.length;i++){ret.push([i,arr[i]]);}return ret;};u.objToDict=function(obj){var ret=new t.Dict();ret.fromObject(obj);return ret;};})();(function(){var arr=Array.prototype;var d=dojo;arr.indexOf=function(obj){for(var i=0;i<this.length;i++){if(this[i]==obj){return i;}}return -1;};arr.contains=function(obj){return this.indexOf(obj)>-1;};arr.remove=function(idx){return this.splice(idx,1);};arr.append=function(_7a){return this.push(_7a);};arr.extend=function(_7b){d.forEach(_7b,d.hitch(this,function(i){this.push(i);}));};})();(function(){var str=String.prototype;str.startswith=function(_7c){return this.match("^"+_7c)==_7c;};str.endswith=function(_7d){return this.match(_7d+"$")==_7d;};str.contains=function(_7e){return this.match(_7e)!=null;};str.isdigit=function(_7f){if(this=="0"){return true;}else{var _80=_7f||10;var val=parseInt(this,_80);if((val===0)||(val.toString()=="NaN")){return false;}else{return true;}}};})();}if(!dojo._hasResource["agi.classes.Named"]){dojo._hasResource["agi.classes.Named"]=true;dojo.provide("agi.classes.Named");dojo.declare("agi.classes.Named",null,{toString:function(){var _81=this.id||"<NO ID>";return ["[",agi.util.getClassName(this),", id=",(this.id||"<NO ID>"),"]"].join("");}});}if(!dojo._hasResource["agi.classes.Identified"]){dojo._hasResource["agi.classes.Identified"]=true;dojo.provide("agi.classes.Identified");dojo.declare("agi.classes.Identified",[agi.classes.Named],{constructor:function(){this._getId();},_getId:function(){if(!this._isIdentified){this.id=agi.classes._idGen();agi.registry.add(this);this._isIdentified=true;}}});}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _82=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _83=dojo._docScroll();return {w:_82.clientWidth,h:_82.clientHeight,l:_83.x,t:_83.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_84,pos){try{_84=dojo.byId(_84);var doc=_84.ownerDocument||dojo.doc,_85=doc.body||dojo.body(),_86=doc.documentElement||_85.parentNode,_87=dojo.isIE,_88=dojo.isWebKit;if((!(dojo.isMoz||_87||_88||dojo.isOpera)||_84==_85||_84==_86)&&(typeof _84.scrollIntoView!="undefined")){_84.scrollIntoView(false);return;}var _89=doc.compatMode=="BackCompat",_8a=_89?_85:_86,_8b=_88?_85:_8a,_8c=_8a.clientWidth,_8d=_8a.clientHeight,rtl=!dojo._isBodyLtr(),_8e=pos||dojo.position(_84),el=_84.parentNode,_8f=function(el){return ((_87<=6||(_87&&_89))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_8f(_84)){return;}while(el){if(el==_85){el=_8b;}var _90=dojo.position(el),_91=_8f(el);if(el==_8b){_90.w=_8c;_90.h=_8d;if(_8b==_86&&_87&&rtl){_90.x+=_8b.offsetWidth-_90.w;}if(_90.x<0||!_87){_90.x=0;}if(_90.y<0||!_87){_90.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_90.w-=pb.w;_90.h-=pb.h;_90.x+=pb.l;_90.y+=pb.t;}if(el!=_8b){var _92=el.clientWidth,_93=_90.w-_92;if(_92>0&&_93>0){_90.w=_92;if(_87&&rtl){_90.x+=_93;}}_92=el.clientHeight;_93=_90.h-_92;if(_92>0&&_93>0){_90.h=_92;}}if(_91){if(_90.y<0){_90.h+=_90.y;_90.y=0;}if(_90.x<0){_90.w+=_90.x;_90.x=0;}if(_90.y+_90.h>_8d){_90.h=_8d-_90.y;}if(_90.x+_90.w>_8c){_90.w=_8c-_90.x;}}var l=_8e.x-_90.x,t=_8e.y-Math.max(_90.y,0),r=l+_8e.w-_90.w,bot=t+_8e.h-_90.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_8e.x+=el.scrollLeft;el.scrollLeft+=(_87>=8&&!_89&&rtl)?-s:s;_8e.x-=el.scrollLeft;}if(bot*t>0){_8e.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_8e.y-=el.scrollTop;}el=(el!=_8b)&&!_91&&el.parentNode;}}catch(error){_84.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{}}return bm;},moveToBookmark:function(_94){var _95=dojo.doc,_96=_94.mark;if(_96){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_96.pRange){var r=_96;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_96);}}else{}}else{if(_95.selection&&_96){var rg;if(_96.pRange){rg=_96.range;}else{if(dojo.isArray(_96)){rg=_95.body.createControlRange();dojo.forEach(_96,function(n){rg.addElement(n);});}else{rg=_95.body.createTextRange();rg.moveToBookmark(_96);}}rg.select();}}}},getFocus:function(_97,_98){var _99=!dijit._curFocus||(_97&&dojo.isDescendant(dijit._curFocus,_97.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_99,bookmark:(_99==dijit._curFocus)&&dojo.withGlobal(_98||dojo.global,dijit.getBookmark),openedForWindow:_98};},focus:function(_9a){if(!_9a){return;}var _9b="node" in _9a?_9a.node:_9a,_9c=_9a.bookmark,_9d=_9a.openedForWindow,_9e=_9c?_9c.isCollapsed:false;if(_9b){var _9f=(_9b.tagName.toLowerCase()=="iframe")?_9b.contentWindow:_9b;if(_9f&&_9f.focus){try{_9f.focus();}catch(e){}}dijit._onFocusNode(_9b);}if(_9c&&dojo.withGlobal(_9d||dojo.global,dijit.isCollapsed)&&!_9e){if(_9d){_9d.focus();}try{dojo.withGlobal(_9d||dojo.global,dijit.moveToBookmark,null,[_9c]);}catch(e2){}}},_activeStack:[],registerIframe:function(_a0){return dijit.registerWin(_a0.contentWindow,_a0);},unregisterIframe:function(_a1){dijit.unregisterWin(_a1);},registerWin:function(_a2,_a3){var _a4=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_a3||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_a2.document.documentElement:_a2.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_a4);var _a5=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_a3||evt.srcElement);}else{dijit._onTouchNode(_a3||evt.srcElement);}};doc.attachEvent("onactivate",_a5);var _a6=function(evt){dijit._onBlurNode(_a3||evt.srcElement);};doc.attachEvent("ondeactivate",_a6);return function(){doc.detachEvent("onmousedown",_a4);doc.detachEvent("onactivate",_a5);doc.detachEvent("ondeactivate",_a6);doc=null;};}else{doc.addEventListener("mousedown",_a4,true);var _a7=function(evt){dijit._onFocusNode(_a3||evt.target);};doc.addEventListener("focus",_a7,true);var _a8=function(evt){dijit._onBlurNode(_a3||evt.target);};doc.addEventListener("blur",_a8,true);return function(){doc.removeEventListener("mousedown",_a4,true);doc.removeEventListener("focus",_a7,true);doc.removeEventListener("blur",_a8,true);doc=null;};}}},unregisterWin:function(_a9){_a9&&_a9();},_onBlurNode:function(_aa){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_ab,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _ac=[];try{while(_ab){var _ad=dojo.attr(_ab,"dijitPopupParent");if(_ad){_ab=dijit.byId(_ad).domNode;}else{if(_ab.tagName&&_ab.tagName.toLowerCase()=="body"){if(_ab===dojo.body()){break;}_ab=dojo.window.get(_ab.ownerDocument).frameElement;}else{var id=_ab.getAttribute&&_ab.getAttribute("widgetId"),_ae=id&&dijit.byId(id);if(_ae&&!(by=="mouse"&&_ae.get("disabled"))){_ac.unshift(id);}_ab=_ab.parentNode;}}}}catch(e){}dijit._setStack(_ac,by);},_onFocusNode:function(_af){if(!_af){return;}if(_af.nodeType==9){return;}dijit._onTouchNode(_af);if(_af==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_af;dojo.publish("focusNode",[_af]);},_setStack:function(_b0,by){var _b1=dijit._activeStack;dijit._activeStack=_b0;for(var _b2=0;_b2<Math.min(_b1.length,_b0.length);_b2++){if(_b1[_b2]!=_b0[_b2]){break;}}var _b3;for(var i=_b1.length-1;i>=_b2;i--){_b3=dijit.byId(_b1[i]);if(_b3){_b3._focused=false;_b3._hasBeenBlurred=true;if(_b3._onBlur){_b3._onBlur(by);}dojo.publish("widgetBlur",[_b3,by]);}}for(i=_b2;i<_b0.length;i++){_b3=dijit.byId(_b0[i]);if(_b3){_b3._focused=true;if(_b3._onFocus){_b3._onFocus(by);}dojo.publish("widgetFocus",[_b3,by]);}}}});dojo.addOnLoad(function(){var _b4=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_b4);_b4=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_b5){this.pairs=[];this.returnWrappers=_b5||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_b6,_b7,_b8,_b9,_ba){this.pairs[((_ba)?"unshift":"push")]([_b6,_b7,_b8,_b9]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _bb=this.pairs[i];if(_bb[1].apply(this,arguments)){if((_bb[3])||(this.returnWrappers)){return _bb[2];}else{return _bb[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_bc){for(var i=0;i<this.pairs.length;i++){var _bd=this.pairs[i];if(_bd[0]==_bc){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(_be,pos,_bf,_c0){var _c1=dojo.map(_bf,function(_c2){var c={corner:_c2,pos:{x:pos.x,y:pos.y}};if(_c0){c.pos.x+=_c2.charAt(1)=="L"?_c0.x:-_c0.x;c.pos.y+=_c2.charAt(0)=="T"?_c0.y:-_c0.y;}return c;});return dijit._place(_be,_c1);};dijit._place=function(_c3,_c4,_c5){var _c6=dojo.window.getBox();if(!_c3.parentNode||String(_c3.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_c3);}var _c7=null;dojo.some(_c4,function(_c8){var _c9=_c8.corner;var pos=_c8.pos;if(_c5){_c5(_c3,_c8.aroundCorner,_c9);}var _ca=_c3.style;var _cb=_ca.display;var _cc=_ca.visibility;_ca.visibility="hidden";_ca.display="";var mb=dojo.marginBox(_c3);_ca.display=_cb;_ca.visibility=_cc;var _cd=Math.max(_c6.l,_c9.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_ce=Math.max(_c6.t,_c9.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_cf=Math.min(_c6.l+_c6.w,_c9.charAt(1)=="L"?(_cd+mb.w):pos.x),_d0=Math.min(_c6.t+_c6.h,_c9.charAt(0)=="T"?(_ce+mb.h):pos.y),_d1=_cf-_cd,_d2=_d0-_ce,_d3=(mb.w-_d1)+(mb.h-_d2);if(_c7==null||_d3<_c7.overflow){_c7={corner:_c9,aroundCorner:_c8.aroundCorner,x:_cd,y:_ce,w:_d1,h:_d2,overflow:_d3};}return !_d3;});_c3.style.left=_c7.x+"px";_c3.style.top=_c7.y+"px";if(_c7.overflow&&_c5){_c5(_c3,_c7.aroundCorner,_c7.corner);}return _c7;};dijit.placeOnScreenAroundNode=function(_d4,_d5,_d6,_d7){_d5=dojo.byId(_d5);var _d8=_d5.style.display;_d5.style.display="";var _d9=dojo.position(_d5,true);_d5.style.display=_d8;return dijit._placeOnScreenAroundRect(_d4,_d9.x,_d9.y,_d9.w,_d9.h,_d6,_d7);};dijit.placeOnScreenAroundRectangle=function(_da,_db,_dc,_dd){return dijit._placeOnScreenAroundRect(_da,_db.x,_db.y,_db.width,_db.height,_dc,_dd);};dijit._placeOnScreenAroundRect=function(_de,x,y,_df,_e0,_e1,_e2){var _e3=[];for(var _e4 in _e1){_e3.push({aroundCorner:_e4,corner:_e1[_e4],pos:{x:x+(_e4.charAt(1)=="L"?0:_df),y:y+(_e4.charAt(0)=="T"?0:_e0)}});}return dijit._place(_de,_e3,_e2);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_e5,_e6,_e7,_e8){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_e9,_ea){var _eb={};dojo.forEach(_e9,function(pos){switch(pos){case "after":_eb[_ea?"BR":"BL"]=_ea?"BL":"BR";break;case "before":_eb[_ea?"BL":"BR"]=_ea?"BR":"BL";break;case "below":_eb[_ea?"BL":"BR"]=_ea?"TL":"TR";_eb[_ea?"BR":"BL"]=_ea?"TR":"TL";break;case "above":default:_eb[_ea?"TL":"TR"]=_ea?"BL":"BR";_eb[_ea?"TR":"TL"]=_ea?"BR":"BL";break;}});return _eb;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,moveOffScreen:function(_ec){var _ed=_ec.parentNode;if(!_ed||!dojo.hasClass(_ed,"dijitPopup")){_ed=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"}},dojo.body());dijit.setWaiRole(_ed,"presentation");_ed.appendChild(_ec);}var s=_ec.style;s.display="";s.visibility="";s.position="";s.top="0px";dojo.style(_ed,{visibility:"hidden",top:"-9999px"});},getTopPopup:function(){var _ee=this._stack;for(var pi=_ee.length-1;pi>0&&_ee[pi].parent===_ee[pi-1].widget;pi--){}return _ee[pi];},open:function(_ef){var _f0=this._stack,_f1=_ef.popup,_f2=_ef.orient||((_ef.parent?_ef.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_f3=_ef.around,id=(_ef.around&&_ef.around.id)?(_ef.around.id+"_dropdown"):("popup_"+this._idGen++);var _f4=_f1.domNode.parentNode;if(!_f4||!dojo.hasClass(_f4,"dijitPopup")){this.moveOffScreen(_f1.domNode);_f4=_f1.domNode.parentNode;}dojo.attr(_f4,{id:id,style:{zIndex:this._beginZIndex+_f0.length},"class":"dijitPopup "+(_f1.baseClass||_f1["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_ef.parent?_ef.parent.id:""});if(dojo.isIE||dojo.isMoz){var _f5=_f4.childNodes[1];if(!_f5){_f5=new dijit.BackgroundIframe(_f4);}}var _f6=_f3?dijit.placeOnScreenAroundElement(_f4,_f3,_f2,_f1.orient?dojo.hitch(_f1,"orient"):null):dijit.placeOnScreen(_f4,_ef,_f2=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_ef.padding);_f4.style.visibility="visible";_f1.domNode.style.visibility="visible";var _f7=[];_f7.push(dojo.connect(_f4,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_ef.onCancel){dojo.stopEvent(evt);_ef.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _f8=this.getTopPopup();if(_f8&&_f8.onCancel){_f8.onCancel();}}}}));if(_f1.onCancel){_f7.push(dojo.connect(_f1,"onCancel",_ef.onCancel));}_f7.push(dojo.connect(_f1,_f1.onExecute?"onExecute":"onChange",this,function(){var _f9=this.getTopPopup();if(_f9&&_f9.onExecute){_f9.onExecute();}}));_f0.push({wrapper:_f4,iframe:_f5,widget:_f1,parent:_ef.parent,onExecute:_ef.onExecute,onCancel:_ef.onCancel,onClose:_ef.onClose,handlers:_f7});if(_f1.onOpen){_f1.onOpen(_f6);}return _f6;},close:function(_fa){var _fb=this._stack;while(dojo.some(_fb,function(_fc){return _fc.widget==_fa;})){var top=_fb.pop(),_fd=top.wrapper,_fe=top.iframe,_ff=top.widget,_100=top.onClose;if(_ff.onClose){_ff.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_ff&&_ff.domNode){this.moveOffScreen(_ff.domNode);}else{dojo.destroy(_fd);}if(_100){_100();}}}};dijit._frames=new function(){var _101=[];this.pop=function(){var _102;if(_101.length){_102=_101.pop();_102.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_102=dojo.doc.createElement(html);}else{_102=dojo.create("iframe");_102.src="javascript:\"\"";_102.className="dijitBackgroundIframe";dojo.style(_102,"opacity",0.1);}_102.tabIndex=-1;dijit.setWaiRole(_102,"presentation");}return _102;};this.push=function(_103){_103.style.display="none";_101.push(_103);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _104=dijit._frames.pop();node.appendChild(_104);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_104,{width:"100%",height:"100%"});}this.iframe=_104;}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_105=d.isOpera,maj=Math.floor,ff=d.isFF,_106=d.boxModel.replace(/-/,""),_107={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_105,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_107["dj_"+_106]=true;var _108="";for(var clz in _107){if(_107[clz]){_108+=clz+" ";}}html.className=d.trim(html.className+" "+_108);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _109="dj_rtl dijitRtl "+_108.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_109);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_10a,node,_10b,obj,_10c,_10d,_10e){if(obj!=this._obj){this.stop();this._initialDelay=_10d||500;this._subsequentDelay=_10c||0.9;this._minDelay=_10e||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_10a,_10b);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_10f,_110,_111,_112,_113,_114){if(_10f.keyCode){_10f.charOrCode=_10f.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_10f.charCode){_10f.charOrCode=String.fromCharCode(_10f.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_10f.charOrCode&&(_10f.ctrlKey===undefined||_10f.ctrlKey==evt.ctrlKey)&&(_10f.altKey===undefined||_10f.altKey==evt.altKey)&&(_10f.metaKey===undefined||_10f.metaKey==(evt.metaKey||false))&&(_10f.shiftKey===undefined||_10f.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_110,node,_111,_10f,_112,_113,_114);}else{if(dijit.typematic._obj==_10f){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_10f){dijit.typematic.stop();}})];},addMouseListener:function(node,_115,_116,_117,_118,_119){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_115,node,_116,node,_117,_118,_119);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_115,node,_116,node,_117,_118,_119);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_11a,_11b,_11c,_11d,_11e,_11f,_120,_121){return this.addKeyListener(_11b,_11c,_11d,_11e,_11f,_120,_121).concat(this.addMouseListener(_11a,_11d,_11e,_11f,_120,_121));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _122=cs.backgroundImage;var _123=(cs.borderTopColor==cs.borderRightColor)||(_122!=null&&(_122=="none"||_122=="url(invalid-url:)"));dojo[_123?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _124=this.getWaiRole(elem);return role?(_124.indexOf(role)>-1):(_124.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _125=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_125)){dojo.attr(elem,"role",role);}else{if((" "+_125+" ").indexOf(" "+role+" ")<0){var _126=dojo.trim(_125.replace(this._XhtmlRoles,""));var _127=dojo.trim(_125.replace(_126,""));dojo.attr(elem,"role",_127+(_127?" ":"")+role);}}},removeWaiRole:function(elem,role){var _128=dojo.attr(elem,"role");if(!_128){return;}if(role){var t=dojo.trim((" "+_128+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_129){return elem.hasAttribute?elem.hasAttribute("aria-"+_129):!!elem.getAttribute("aria-"+_129);},getWaiState:function(elem,_12a){return elem.getAttribute("aria-"+_12a)||"";},setWaiState:function(elem,_12b,_12c){elem.setAttribute("aria-"+_12b,_12c);},removeWaiState:function(elem,_12d){elem.removeAttribute("aria-"+_12d);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_12e,_12f){if(_12e&&dojo.isFunction(_12e._onConnect)){_12e._onConnect(_12f);}});dijit._connectOnUseEventHandler=function(_130){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _131=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_131);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_131);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _132={},_133=function(_134){var dc=_134.declaredClass;if(!_132[dc]){var r=[],_135,_136=_134.constructor.prototype;for(var _137 in _136){if(dojo.isFunction(_136[_137])&&(_135=_137.match(/^_set([a-zA-Z]*)Attr$/))&&_135[1]){r.push(_135[1].charAt(0).toLowerCase()+_135[1].substr(1));}}_132[dc]=r;}return _132[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_138,_139){this.create(_138,_139);},create:function(_13a,_13b){this.srcNodeRef=dojo.byId(_13b);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_13a){this.params=_13a;dojo.mixin(this,_13a);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _13c=this.srcNodeRef;if(_13c&&_13c.parentNode){_13c.parentNode.replaceChild(this.domNode,_13c);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _13d=function(attr,_13e){if((_13e.params&&attr in _13e.params)||_13e[attr]){_13e.set(attr,_13e[attr]);}};for(var attr in this.attributeMap){_13d(attr,this);}dojo.forEach(_133(this),function(a){if(!(a in this.attributeMap)){_13d(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _13f=this.baseClass.split(" ");if(!this.isLeftToRight()){_13f=_13f.concat(dojo.map(_13f,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_13f);}},startup:function(){this._started=true;},destroyRecursive:function(_140){this._beingDestroyed=true;this.destroyDescendants(_140);this.destroy(_140);},destroy:function(_141){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_142){dfe(_142,d.disconnect);});dfe(this._subscribes,function(_143){dun(_143);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_141);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_144){if(this.bgIframe){this.bgIframe.destroy(_144);delete this.bgIframe;}if(this.domNode){if(_144){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_144){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_145){dojo.forEach(this.getChildren(),function(_146){if(_146.destroyRecursive){_146.destroyRecursive(_145);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_147){if(_147 in this._deferredConnects){var _148=this[this._deferredConnects[_147]||"domNode"];this.connect(_148,_147.toLowerCase(),_147);delete this._deferredConnects[_147];}},_setClassAttr:function(_149){var _14a=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_14a,this["class"]);this["class"]=_149;dojo.addClass(_14a,_149);},_setStyleAttr:function(_14b){var _14c=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_14b)){dojo.style(_14c,_14b);}else{if(_14c.style.cssText){_14c.style.cssText+="; "+_14b;}else{_14c.style.cssText=_14b;}}this.style=_14b;},setAttribute:function(attr,_14d){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_14d);},_attrToDom:function(attr,_14e){var _14f=this.attributeMap[attr];dojo.forEach(dojo.isArray(_14f)?_14f:[_14f],function(_150){var _151=this[_150.node||_150||"domNode"];var type=_150.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_14e)){_14e=dojo.hitch(this,_14e);}var _152=_150.attribute?_150.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_151,_152,_14e);break;case "innerText":_151.innerHTML="";_151.appendChild(dojo.doc.createTextNode(_14e));break;case "innerHTML":_151.innerHTML=_14e;break;case "class":dojo.removeClass(_151,this[attr]);dojo.addClass(_151,_14e);break;}},this);this[attr]=_14e;},attr:function(name,_153){if(dojo.config.isDebug){var _154=arguments.callee._ach||(arguments.callee._ach={}),_155=(arguments.callee.caller||"unknown caller").toString();if(!_154[_155]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_155,"","2.0");_154[_155]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _156=this._getAttrNames(name);return this[_156.g]?this[_156.g]():this[name];},set:function(name,_157){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _158=this._getAttrNames(name);if(this[_158.s]){var _159=this[_158.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_157);}var _15a=this[name];this[name]=_157;}return _159||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_15b,_15c){var d=dojo,dc=d._connect,_15d=[];if(_15b=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_15c);_15d.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;e.preventDefault();}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_15b="onclick";}_15d.push(dc(obj,_15b,this,_15c));this._connects.push(_15d);return _15d;},disconnect:function(_15e){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_15e){dojo.forEach(_15e,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_15f,_160){var d=dojo,_161=d.subscribe(_15f,this,_160);this._subscribes.push(_161);return _161;},unsubscribe:function(_162){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_162){dojo.unsubscribe(_162);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_163,_164){if(_163.declaredClass&&_163.addChild){_163.addChild(this,_164);}else{dojo.place(this.domNode,_163,_164);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojox.string.Builder"]){dojo._hasResource["dojox.string.Builder"]=true;dojo.provide("dojox.string.Builder");dojox.string.Builder=function(str){var b="";this.length=0;this.append=function(s){if(arguments.length>1){var tmp="",l=arguments.length;switch(l){case 9:tmp=""+arguments[8]+tmp;case 8:tmp=""+arguments[7]+tmp;case 7:tmp=""+arguments[6]+tmp;case 6:tmp=""+arguments[5]+tmp;case 5:tmp=""+arguments[4]+tmp;case 4:tmp=""+arguments[3]+tmp;case 3:tmp=""+arguments[2]+tmp;case 2:b+=""+arguments[0]+arguments[1]+tmp;break;default:var i=0;while(i<arguments.length){tmp+=arguments[i++];}b+=tmp;}}else{b+=s;}this.length=b.length;return this;};this.concat=function(s){return this.append.apply(this,arguments);};this.appendArray=function(_165){return this.append.apply(this,_165);};this.clear=function(){b="";this.length=0;return this;};this.replace=function(_166,_167){b=b.replace(_166,_167);this.length=b.length;return this;};this.remove=function(_168,len){if(len===undefined){len=b.length;}if(len==0){return this;}b=b.substr(0,_168)+b.substr(_168+len);this.length=b.length;return this;};this.insert=function(_169,str){if(_169==0){b=str+b;}else{b=b.slice(0,_169)+str+b.slice(_169);}this.length=b.length;return this;};this.toString=function(){return b;};if(str){this.append(str);}};}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_16a,_16b){var _16c=[];var _16d,_16e,_16f=0;while(_16d=re.exec(str)){_16e=str.slice(_16f,re.lastIndex-_16d[0].length);if(_16e.length){_16c.push(_16e);}if(_16a){if(dojo.isOpera){var copy=_16d.slice(0);while(copy.length<_16d.length){copy.push(null);}_16d=copy;}var _170=_16a.apply(_16b,_16d.slice(1).concat(_16c.length));if(typeof _170!="undefined"){_16c.push(_170);}}_16f=re.lastIndex;}_16e=str.slice(_16f);if(_16e.length){_16c.push(_16e);}return _16c;};}if(!dojo._hasResource["dojox.dtl._base"]){dojo._hasResource["dojox.dtl._base"]=true;dojo.provide("dojox.dtl._base");dojo.experimental("dojox.dtl");(function(){var dd=dojox.dtl;dd.TOKEN_BLOCK=-1;dd.TOKEN_VAR=-2;dd.TOKEN_COMMENT=-3;dd.TOKEN_TEXT=3;dd._Context=dojo.extend(function(dict){if(dict){dojo._mixin(this,dict);if(dict.get){this._getter=dict.get;delete this.get;}}},{push:function(){var last=this;var _171=dojo.delegate(this);_171.pop=function(){return last;};return _171;},pop:function(){throw new Error("pop() called on empty Context");},get:function(key,_172){var n=this._normalize;if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return n(got);}}if(typeof this[key]!="undefined"){return n(this[key]);}return _172;},_normalize:function(_173){if(_173 instanceof Date){_173.year=_173.getFullYear();_173.month=_173.getMonth()+1;_173.day=_173.getDate();_173.date=_173.year+"-"+("0"+_173.month).slice(-2)+"-"+("0"+_173.day).slice(-2);_173.hour=_173.getHours();_173.minute=_173.getMinutes();_173.second=_173.getSeconds();_173.microsecond=_173.getMilliseconds();}return _173;},update:function(dict){var _174=this.push();if(dict){dojo._mixin(this,dict);}return _174;}});var _175=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g;var _176=/\s+/g;var _177=function(_178,_179){_178=_178||_176;if(!(_178 instanceof RegExp)){_178=new RegExp(_178,"g");}if(!_178.global){throw new Error("You must use a globally flagged RegExp with split "+_178);}_178.exec("");var part,_17a=[],_17b=0,i=0;while(part=_178.exec(this)){_17a.push(this.slice(_17b,_178.lastIndex-part[0].length));_17b=_178.lastIndex;if(_179&&(++i>_179-1)){break;}}_17a.push(this.slice(_17b));return _17a;};dd.Token=function(_17c,_17d){this.token_type=_17c;this.contents=new String(dojo.trim(_17d));this.contents.split=_177;this.split=function(){return String.prototype.split.apply(this.contents,arguments);};};dd.Token.prototype.split_contents=function(_17e){var bit,bits=[],i=0;_17e=_17e||999;while(i++<_17e&&(bit=_175.exec(this.contents))){bit=bit[0];if(bit.charAt(0)=="\""&&bit.slice(-1)=="\""){bits.push("\""+bit.slice(1,-1).replace("\\\"","\"").replace("\\\\","\\")+"\"");}else{if(bit.charAt(0)=="'"&&bit.slice(-1)=="'"){bits.push("'"+bit.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'");}else{bits.push(bit);}}}return bits;};var ddt=dd.text={_get:function(_17f,name,_180){var _181=dd.register.get(_17f,name.toLowerCase(),_180);if(!_181){if(!_180){throw new Error("No tag found for "+name);}return null;}var fn=_181[1];var _182=_181[2];var _183;if(fn.indexOf(":")!=-1){_183=fn.split(":");fn=_183.pop();}dojo["require"](_182);var _184=dojo.getObject(_182);return _184[fn||name]||_184[name+"_"]||_184[fn+"_"];},getTag:function(name,_185){return ddt._get("tag",name,_185);},getFilter:function(name,_186){return ddt._get("filter",name,_186);},getTemplate:function(file){return new dd.Template(ddt.getTemplateString(file));},getTemplateString:function(file){return dojo._getText(file.toString())||"";},_resolveLazy:function(_187,sync,json){if(sync){if(json){return dojo.fromJson(dojo._getText(_187))||{};}else{return dd.text.getTemplateString(_187);}}else{return dojo.xhrGet({handleAs:(json)?"json":"text",url:_187});}},_resolveTemplateArg:function(arg,sync){if(ddt._isTemplate(arg)){if(!sync){var d=new dojo.Deferred();d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync);},_isTemplate:function(arg){return (typeof arg=="undefined")||(typeof arg=="string"&&(arg.match(/^\s*[<{]/)||arg.indexOf(" ")!=-1));},_resolveContextArg:function(arg,sync){if(arg.constructor==Object){if(!sync){var d=new dojo.Deferred;d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync,true);},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(str){return dojox.string.tokenize(str,ddt._re,ddt._parseDelims);},_parseDelims:function(varr,load,tag){if(varr){return [dd.TOKEN_VAR,varr];}else{if(load){var _188=dojo.trim(tag).split(/\s+/g);for(var i=0,part;part=_188[i];i++){dojo["require"](part);}}else{return [dd.TOKEN_BLOCK,tag];}}}};dd.Template=dojo.extend(function(_189,_18a){var str=_18a?_189:ddt._resolveTemplateArg(_189,true)||"";var _18b=ddt.tokenize(str);var _18c=new dd._Parser(_18b);this.nodelist=_18c.parse();},{update:function(node,_18d){return ddt._resolveContextArg(_18d).addCallback(this,function(_18e){var _18f=this.render(new dd._Context(_18e));if(node.forEach){node.forEach(function(item){item.innerHTML=_18f;});}else{dojo.byId(node).innerHTML=_18f;}return this;});},render:function(_190,_191){_191=_191||this.getBuffer();_190=_190||new dd._Context({});return this.nodelist.render(_190,_191)+"";},getBuffer:function(){return new dojox.string.Builder();}});var qfRe=/\{\{\s*(.+?)\s*\}\}/g;dd.quickFilter=function(str){if(!str){return new dd._NodeList();}if(str.indexOf("{%")==-1){return new dd._QuickNodeList(dojox.string.tokenize(str,qfRe,function(_192){return new dd._Filter(_192);}));}};dd._QuickNodeList=dojo.extend(function(_193){this.contents=_193;},{render:function(_194,_195){for(var i=0,l=this.contents.length;i<l;i++){if(this.contents[i].resolve){_195=_195.concat(this.contents[i].resolve(_194));}else{_195=_195.concat(this.contents[i]);}}return _195;},dummyRender:function(_196){return this.render(_196,dd.Template.prototype.getBuffer()).toString();},clone:function(_197){return this;}});dd._Filter=dojo.extend(function(_198){if(!_198){throw new Error("Filter must be called with variable name");}this.contents=_198;var _199=this._cache[_198];if(_199){this.key=_199[0];this.filters=_199[1];}else{this.filters=[];dojox.string.tokenize(_198,this._re,this._tokenize,this);this._cache[_198]=[this.key,this.filters];}},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,_values:{0:"\"",1:"\"",2:"",8:"\""},_args:{4:"\"",5:"\"",6:"",7:"'"},_tokenize:function(){var pos,arg;for(var i=0,has=[];i<arguments.length;i++){has[i]=(typeof arguments[i]!="undefined"&&typeof arguments[i]=="string"&&arguments[i]);}if(!this.key){for(pos in this._values){if(has[pos]){this.key=this._values[pos]+arguments[pos]+this._values[pos];break;}}}else{for(pos in this._args){if(has[pos]){var _19a=arguments[pos];if(this._args[pos]=="'"){_19a=_19a.replace(/\\'/g,"'");}else{if(this._args[pos]=="\""){_19a=_19a.replace(/\\"/g,"\"");}}arg=[!this._args[pos],_19a];break;}}var fn=ddt.getFilter(arguments[3]);if(!dojo.isFunction(fn)){throw new Error(arguments[3]+" is not registered as a filter");}this.filters.push([fn,arg]);}},getExpression:function(){return this.contents;},resolve:function(_19b){if(typeof this.key=="undefined"){return "";}var str=this.resolvePath(this.key,_19b);for(var i=0,_19c;_19c=this.filters[i];i++){if(_19c[1]){if(_19c[1][0]){str=_19c[0](str,this.resolvePath(_19c[1][1],_19b));}else{str=_19c[0](str,_19c[1][1]);}}else{str=_19c[0](str);}}return str;},resolvePath:function(path,_19d){var _19e,_19f;var _1a0=path.charAt(0);var last=path.slice(-1);if(!isNaN(parseInt(_1a0))){_19e=(path.indexOf(".")==-1)?parseInt(path):parseFloat(path);}else{if(_1a0=="\""&&_1a0==last){_19e=path.slice(1,-1);}else{if(path=="true"){return true;}if(path=="false"){return false;}if(path=="null"||path=="None"){return null;}_19f=path.split(".");_19e=_19d.get(_19f[0]);if(dojo.isFunction(_19e)){var self=_19d.getThis&&_19d.getThis();if(_19e.alters_data){_19e="";}else{if(self){_19e=_19e.call(self);}else{_19e="";}}}for(var i=1;i<_19f.length;i++){var part=_19f[i];if(_19e){var base=_19e;if(dojo.isObject(_19e)&&part=="items"&&typeof _19e[part]=="undefined"){var _1a1=[];for(var key in _19e){_1a1.push([key,_19e[key]]);}_19e=_1a1;continue;}if(_19e.get&&dojo.isFunction(_19e.get)&&_19e.get.safe){_19e=_19e.get(part);}else{if(typeof _19e[part]=="undefined"){_19e=_19e[part];break;}else{_19e=_19e[part];}}if(dojo.isFunction(_19e)){if(_19e.alters_data){_19e="";}else{_19e=_19e.call(base);}}else{if(_19e instanceof Date){_19e=dd._Context.prototype._normalize(_19e);}}}else{return "";}}}}return _19e;}});dd._TextNode=dd._Node=dojo.extend(function(obj){this.contents=obj;},{set:function(data){this.contents=data;return this;},render:function(_1a2,_1a3){return _1a3.concat(this.contents);},isEmpty:function(){return !dojo.trim(this.contents);},clone:function(){return this;}});dd._NodeList=dojo.extend(function(_1a4){this.contents=_1a4||[];this.last="";},{push:function(node){this.contents.push(node);return this;},concat:function(_1a5){this.contents=this.contents.concat(_1a5);return this;},render:function(_1a6,_1a7){for(var i=0;i<this.contents.length;i++){_1a7=this.contents[i].render(_1a6,_1a7);if(!_1a7){throw new Error("Template must return buffer");}}return _1a7;},dummyRender:function(_1a8){return this.render(_1a8,dd.Template.prototype.getBuffer()).toString();},unrender:function(){return arguments[1];},clone:function(){return this;},rtrim:function(){while(1){i=this.contents.length-1;if(this.contents[i] instanceof dd._TextNode&&this.contents[i].isEmpty()){this.contents.pop();}else{break;}}return this;}});dd._VarNode=dojo.extend(function(str){this.contents=new dd._Filter(str);},{render:function(_1a9,_1aa){var str=this.contents.resolve(_1a9);if(!str){str="";}else{if(!str.safe){str=dd._base.escape(""+str);}}return _1aa.concat(str);}});dd._noOpNode=new function(){this.render=this.unrender=function(){return arguments[1];};this.clone=function(){return this;};};dd._Parser=dojo.extend(function(_1ab){this.contents=_1ab;},{i:0,parse:function(_1ac){var _1ad={},_1ae;_1ac=_1ac||[];for(var i=0;i<_1ac.length;i++){_1ad[_1ac[i]]=true;}var _1af=new dd._NodeList();while(this.i<this.contents.length){_1ae=this.contents[this.i++];if(typeof _1ae=="string"){_1af.push(new dd._TextNode(_1ae));}else{var type=_1ae[0];var text=_1ae[1];if(type==dd.TOKEN_VAR){_1af.push(new dd._VarNode(text));}else{if(type==dd.TOKEN_BLOCK){if(_1ad[text]){--this.i;return _1af;}var cmd=text.split(/\s+/g);if(cmd.length){cmd=cmd[0];var fn=ddt.getTag(cmd);if(fn){_1af.push(fn(this,new dd.Token(type,text)));}}}}}}if(_1ac.length){throw new Error("Could not find closing tag(s): "+_1ac.toString());}this.contents.length=0;return _1af;},next_token:function(){var _1b0=this.contents[this.i++];return new dd.Token(_1b0[0],_1b0[1]);},delete_first_token:function(){this.i++;},skip_past:function(_1b1){while(this.i<this.contents.length){var _1b2=this.contents[this.i++];if(_1b2[0]==dd.TOKEN_BLOCK&&_1b2[1]==_1b1){return;}}throw new Error("Unclosed tag found when looking for "+_1b1);},create_variable_node:function(expr){return new dd._VarNode(expr);},create_text_node:function(expr){return new dd._TextNode(expr||"");},getTemplate:function(file){return new dd.Template(file);}});dd.register={_registry:{attributes:[],tags:[],filters:[]},get:function(_1b3,name){var _1b4=dd.register._registry[_1b3+"s"];for(var i=0,_1b5;_1b5=_1b4[i];i++){if(typeof _1b5[0]=="string"){if(_1b5[0]==name){return _1b5;}}else{if(name.match(_1b5[0])){return _1b5;}}}},getAttributeTags:function(){var tags=[];var _1b6=dd.register._registry.attributes;for(var i=0,_1b7;_1b7=_1b6[i];i++){if(_1b7.length==3){tags.push(_1b7);}else{var fn=dojo.getObject(_1b7[1]);if(fn&&dojo.isFunction(fn)){_1b7.push(fn);tags.push(_1b7);}}}return tags;},_any:function(type,base,_1b8){for(var path in _1b8){for(var i=0,fn;fn=_1b8[path][i];i++){var key=fn;if(dojo.isArray(fn)){key=fn[0];fn=fn[1];}if(typeof key=="string"){if(key.substr(0,5)=="attr:"){var attr=fn;if(attr.substr(0,5)=="attr:"){attr=attr.slice(5);}dd.register._registry.attributes.push([attr.toLowerCase(),base+"."+path+"."+attr]);}key=key.toLowerCase();}dd.register._registry[type].push([key,fn,base+"."+path]);}}},tags:function(base,_1b9){dd.register._any("tags",base,_1b9);},filters:function(base,_1ba){dd.register._any("filters",base,_1ba);}};var _1bb=/&/g;var _1bc=/</g;var _1bd=/>/g;var _1be=/'/g;var _1bf=/"/g;dd._base.escape=function(_1c0){return dd.mark_safe(_1c0.replace(_1bb,"&amp;").replace(_1bc,"&lt;").replace(_1bd,"&gt;").replace(_1bf,"&quot;").replace(_1be,"&#39;"));};dd._base.safe=function(_1c1){if(typeof _1c1=="string"){_1c1=new String(_1c1);}if(typeof _1c1=="object"){_1c1.safe=true;}return _1c1;};dd.mark_safe=dd._base.safe;dd.register.tags("dojox.dtl.tag",{"date":["now"],"logic":["if","for","ifequal","ifnotequal"],"loader":["extends","block","include","load","ssi"],"misc":["comment","debug","filter","firstof","spaceless","templatetag","widthratio","with"],"loop":["cycle","ifchanged","regroup"]});dd.register.filters("dojox.dtl.filter",{"dates":["date","time","timesince","timeuntil"],"htmlstrings":["linebreaks","linebreaksbr","removetags","striptags"],"integers":["add","get_digit"],"lists":["dictsort","dictsortreversed","first","join","length","length_is","random","slice","unordered_list"],"logic":["default","default_if_none","divisibleby","yesno"],"misc":["filesizeformat","pluralize","phone2numeric","pprint"],"strings":["addslashes","capfirst","center","cut","fix_ampersands","floatformat","iriencode","linenumbers","ljust","lower","make_list","rjust","slugify","stringformat","title","truncatewords","truncatewords_html","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap"]});dd.register.filters("dojox.dtl",{"_base":["escape","safe"]});})();}if(!dojo._hasResource["dojox.dtl"]){dojo._hasResource["dojox.dtl"]=true;dojo.provide("dojox.dtl");}if(!dojo._hasResource["dojox.dtl.tag.logic"]){dojo._hasResource["dojox.dtl.tag.logic"]=true;dojo.provide("dojox.dtl.tag.logic");(function(){var dd=dojox.dtl;var ddt=dd.text;var ddtl=dd.tag.logic;ddtl.IfNode=dojo.extend(function(_1c2,_1c3,_1c4,type){this.bools=_1c2;this.trues=_1c3;this.falses=_1c4;this.type=type;},{render:function(_1c5,_1c6){var i,bool,_1c7,_1c8,_1c9;if(this.type=="or"){for(i=0;bool=this.bools[i];i++){_1c7=bool[0];_1c8=bool[1];_1c9=_1c8.resolve(_1c5);if((_1c9&&!_1c7)||(_1c7&&!_1c9)){if(this.falses){_1c6=this.falses.unrender(_1c5,_1c6);}return (this.trues)?this.trues.render(_1c5,_1c6,this):_1c6;}}if(this.trues){_1c6=this.trues.unrender(_1c5,_1c6);}return (this.falses)?this.falses.render(_1c5,_1c6,this):_1c6;}else{for(i=0;bool=this.bools[i];i++){_1c7=bool[0];_1c8=bool[1];_1c9=_1c8.resolve(_1c5);if(_1c9==_1c7){if(this.trues){_1c6=this.trues.unrender(_1c5,_1c6);}return (this.falses)?this.falses.render(_1c5,_1c6,this):_1c6;}}if(this.falses){_1c6=this.falses.unrender(_1c5,_1c6);}return (this.trues)?this.trues.render(_1c5,_1c6,this):_1c6;}return _1c6;},unrender:function(_1ca,_1cb){_1cb=(this.trues)?this.trues.unrender(_1ca,_1cb):_1cb;_1cb=(this.falses)?this.falses.unrender(_1ca,_1cb):_1cb;return _1cb;},clone:function(_1cc){var _1cd=(this.trues)?this.trues.clone(_1cc):null;var _1ce=(this.falses)?this.falses.clone(_1cc):null;return new this.constructor(this.bools,_1cd,_1ce,this.type);}});ddtl.IfEqualNode=dojo.extend(function(var1,var2,_1cf,_1d0,_1d1){this.var1=new dd._Filter(var1);this.var2=new dd._Filter(var2);this.trues=_1cf;this.falses=_1d0;this.negate=_1d1;},{render:function(_1d2,_1d3){var var1=this.var1.resolve(_1d2);var var2=this.var2.resolve(_1d2);var1=(typeof var1!="undefined")?var1:"";var2=(typeof var1!="undefined")?var2:"";if((this.negate&&var1!=var2)||(!this.negate&&var1==var2)){if(this.falses){_1d3=this.falses.unrender(_1d2,_1d3,this);}return (this.trues)?this.trues.render(_1d2,_1d3,this):_1d3;}if(this.trues){_1d3=this.trues.unrender(_1d2,_1d3,this);}return (this.falses)?this.falses.render(_1d2,_1d3,this):_1d3;},unrender:function(_1d4,_1d5){return ddtl.IfNode.prototype.unrender.call(this,_1d4,_1d5);},clone:function(_1d6){var _1d7=this.trues?this.trues.clone(_1d6):null;var _1d8=this.falses?this.falses.clone(_1d6):null;return new this.constructor(this.var1.getExpression(),this.var2.getExpression(),_1d7,_1d8,this.negate);}});ddtl.ForNode=dojo.extend(function(_1d9,loop,_1da,_1db){this.assign=_1d9;this.loop=new dd._Filter(loop);this.reversed=_1da;this.nodelist=_1db;this.pool=[];},{render:function(_1dc,_1dd){var i,j,k;var _1de=false;var _1df=this.assign;for(k=0;k<_1df.length;k++){if(typeof _1dc[_1df[k]]!="undefined"){_1de=true;_1dc=_1dc.push();break;}}if(!_1de&&_1dc.forloop){_1de=true;_1dc=_1dc.push();}var _1e0=this.loop.resolve(_1dc)||[];for(i=_1e0.length;i<this.pool.length;i++){this.pool[i].unrender(_1dc,_1dd,this);}if(this.reversed){_1e0=_1e0.slice(0).reverse();}var _1e1=dojo.isObject(_1e0)&&!dojo.isArrayLike(_1e0);var _1e2=[];if(_1e1){for(var key in _1e0){_1e2.push(_1e0[key]);}}else{_1e2=_1e0;}var _1e3=_1dc.forloop={parentloop:_1dc.get("forloop",{})};var j=0;for(i=0;i<_1e2.length;i++){var item=_1e2[i];_1e3.counter0=j;_1e3.counter=j+1;_1e3.revcounter0=_1e2.length-j-1;_1e3.revcounter=_1e2.length-j;_1e3.first=!j;_1e3.last=(j==_1e2.length-1);if(_1df.length>1&&dojo.isArrayLike(item)){if(!_1de){_1de=true;_1dc=_1dc.push();}var _1e4={};for(k=0;k<item.length&&k<_1df.length;k++){_1e4[_1df[k]]=item[k];}dojo.mixin(_1dc,_1e4);}else{_1dc[_1df[0]]=item;}if(j+1>this.pool.length){this.pool.push(this.nodelist.clone(_1dd));}_1dd=this.pool[j++].render(_1dc,_1dd,this);}delete _1dc.forloop;if(_1de){_1dc=_1dc.pop();}else{for(k=0;k<_1df.length;k++){delete _1dc[_1df[k]];}}return _1dd;},unrender:function(_1e5,_1e6){for(var i=0,pool;pool=this.pool[i];i++){_1e6=pool.unrender(_1e5,_1e6);}return _1e6;},clone:function(_1e7){return new this.constructor(this.assign,this.loop.getExpression(),this.reversed,this.nodelist.clone(_1e7));}});dojo.mixin(ddtl,{if_:function(_1e8,_1e9){var i,part,type,_1ea=[],_1eb=_1e9.contents.split();_1eb.shift();_1e9=_1eb.join(" ");_1eb=_1e9.split(" and ");if(_1eb.length==1){type="or";_1eb=_1e9.split(" or ");}else{type="and";for(i=0;i<_1eb.length;i++){if(_1eb[i].indexOf(" or ")!=-1){throw new Error("'if' tags can't mix 'and' and 'or'");}}}for(i=0;part=_1eb[i];i++){var not=false;if(part.indexOf("not ")==0){part=part.slice(4);not=true;}_1ea.push([not,new dd._Filter(part)]);}var _1ec=_1e8.parse(["else","endif"]);var _1ed=false;var _1e9=_1e8.next_token();if(_1e9.contents=="else"){_1ed=_1e8.parse(["endif"]);_1e8.next_token();}return new ddtl.IfNode(_1ea,_1ec,_1ed,type);},_ifequal:function(_1ee,_1ef,_1f0){var _1f1=_1ef.split_contents();if(_1f1.length!=3){throw new Error(_1f1[0]+" takes two arguments");}var end="end"+_1f1[0];var _1f2=_1ee.parse(["else",end]);var _1f3=false;var _1ef=_1ee.next_token();if(_1ef.contents=="else"){_1f3=_1ee.parse([end]);_1ee.next_token();}return new ddtl.IfEqualNode(_1f1[1],_1f1[2],_1f2,_1f3,_1f0);},ifequal:function(_1f4,_1f5){return ddtl._ifequal(_1f4,_1f5);},ifnotequal:function(_1f6,_1f7){return ddtl._ifequal(_1f6,_1f7,true);},for_:function(_1f8,_1f9){var _1fa=_1f9.contents.split();if(_1fa.length<4){throw new Error("'for' statements should have at least four words: "+_1f9.contents);}var _1fb=_1fa[_1fa.length-1]=="reversed";var _1fc=(_1fb)?-3:-2;if(_1fa[_1fa.length+_1fc]!="in"){throw new Error("'for' tag received an invalid argument: "+_1f9.contents);}var _1fd=_1fa.slice(1,_1fc).join(" ").split(/ *, */);for(var i=0;i<_1fd.length;i++){if(!_1fd[i]||_1fd[i].indexOf(" ")!=-1){throw new Error("'for' tag received an invalid argument: "+_1f9.contents);}}var _1fe=_1f8.parse(["endfor"]);_1f8.next_token();return new ddtl.ForNode(_1fd,_1fa[_1fa.length+_1fc+1],_1fb,_1fe);}});})();}if(!dojo._hasResource["dojox.dtl.tag.loop"]){dojo._hasResource["dojox.dtl.tag.loop"]=true;dojo.provide("dojox.dtl.tag.loop");(function(){var dd=dojox.dtl;var ddtl=dd.tag.loop;ddtl.CycleNode=dojo.extend(function(_1ff,name,text,_200){this.cyclevars=_1ff;this.name=name;this.contents=text;this.shared=_200||{counter:-1,map:{}};},{render:function(_201,_202){if(_201.forloop&&!_201.forloop.counter0){this.shared.counter=-1;}++this.shared.counter;var _203=this.cyclevars[this.shared.counter%this.cyclevars.length];var map=this.shared.map;if(!map[_203]){map[_203]=new dd._Filter(_203);}_203=map[_203].resolve(_201,_202);if(this.name){_201[this.name]=_203;}this.contents.set(_203);return this.contents.render(_201,_202);},unrender:function(_204,_205){return this.contents.unrender(_204,_205);},clone:function(_206){return new this.constructor(this.cyclevars,this.name,this.contents.clone(_206),this.shared);}});ddtl.IfChangedNode=dojo.extend(function(_207,vars,_208){this.nodes=_207;this._vars=vars;this.shared=_208||{last:null,counter:0};this.vars=dojo.map(vars,function(item){return new dojox.dtl._Filter(item);});},{render:function(_209,_20a){if(_209.forloop){if(_209.forloop.counter<=this.shared.counter){this.shared.last=null;}this.shared.counter=_209.forloop.counter;}var _20b;if(this.vars.length){_20b=dojo.toJson(dojo.map(this.vars,function(item){return item.resolve(_209);}));}else{_20b=this.nodes.dummyRender(_209,_20a);}if(_20b!=this.shared.last){var _20c=(this.shared.last===null);this.shared.last=_20b;_209=_209.push();_209.ifchanged={firstloop:_20c};_20a=this.nodes.render(_209,_20a);_209=_209.pop();}else{_20a=this.nodes.unrender(_209,_20a);}return _20a;},unrender:function(_20d,_20e){return this.nodes.unrender(_20d,_20e);},clone:function(_20f){return new this.constructor(this.nodes.clone(_20f),this._vars,this.shared);}});ddtl.RegroupNode=dojo.extend(function(_210,key,_211){this._expression=_210;this.expression=new dd._Filter(_210);this.key=key;this.alias=_211;},{_push:function(_212,_213,_214){if(_214.length){_212.push({grouper:_213,list:_214});}},render:function(_215,_216){_215[this.alias]=[];var list=this.expression.resolve(_215);if(list){var last=null;var _217=[];for(var i=0;i<list.length;i++){var id=list[i][this.key];if(last!==id){this._push(_215[this.alias],last,_217);last=id;_217=[list[i]];}else{_217.push(list[i]);}}this._push(_215[this.alias],last,_217);}return _216;},unrender:function(_218,_219){return _219;},clone:function(_21a,_21b){return this;}});dojo.mixin(ddtl,{cycle:function(_21c,_21d){var args=_21d.split_contents();if(args.length<2){throw new Error("'cycle' tag requires at least two arguments");}if(args[1].indexOf(",")!=-1){var vars=args[1].split(",");args=[args[0]];for(var i=0;i<vars.length;i++){args.push("\""+vars[i]+"\"");}}if(args.length==2){var name=args[args.length-1];if(!_21c._namedCycleNodes){throw new Error("No named cycles in template: '"+name+"' is not defined");}if(!_21c._namedCycleNodes[name]){throw new Error("Named cycle '"+name+"' does not exist");}return _21c._namedCycleNodes[name];}if(args.length>4&&args[args.length-2]=="as"){var name=args[args.length-1];var node=new ddtl.CycleNode(args.slice(1,args.length-2),name,_21c.create_text_node());if(!_21c._namedCycleNodes){_21c._namedCycleNodes={};}_21c._namedCycleNodes[name]=node;}else{node=new ddtl.CycleNode(args.slice(1),null,_21c.create_text_node());}return node;},ifchanged:function(_21e,_21f){var _220=_21f.contents.split();var _221=_21e.parse(["endifchanged"]);_21e.delete_first_token();return new ddtl.IfChangedNode(_221,_220.slice(1));},regroup:function(_222,_223){var _224=dojox.string.tokenize(_223.contents,/(\s+)/g,function(_225){return _225;});if(_224.length<11||_224[_224.length-3]!="as"||_224[_224.length-7]!="by"){throw new Error("Expected the format: regroup list by key as newList");}var _226=_224.slice(2,-8).join("");var key=_224[_224.length-5];var _227=_224[_224.length-1];return new ddtl.RegroupNode(_226,key,_227);}});})();}if(!dojo._hasResource["dojox.dtl.filter.misc"]){dojo._hasResource["dojox.dtl.filter.misc"]=true;dojo.provide("dojox.dtl.filter.misc");dojo.mixin(dojox.dtl.filter.misc,{filesizeformat:function(_228){_228=parseFloat(_228);if(_228<1024){return (_228==1)?_228+" byte":_228+" bytes";}else{if(_228<1024*1024){return (_228/1024).toFixed(1)+" KB";}else{if(_228<1024*1024*1024){return (_228/1024/1024).toFixed(1)+" MB";}}}return (_228/1024/1024/1024).toFixed(1)+" GB";},pluralize:function(_229,arg){arg=arg||"s";if(arg.indexOf(",")==-1){arg=","+arg;}var _22a=arg.split(",");if(_22a.length>2){return "";}var _22b=_22a[0];var _22c=_22a[1];if(parseInt(_229,10)!=1){return _22c;}return _22b;},_phone2numeric:{a:2,b:2,c:2,d:3,e:3,f:3,g:4,h:4,i:4,j:5,k:5,l:5,m:6,n:6,o:6,p:7,r:7,s:7,t:8,u:8,v:8,w:9,x:9,y:9},phone2numeric:function(_22d){var dm=dojox.dtl.filter.misc;_22d=_22d+"";var _22e="";for(var i=0;i<_22d.length;i++){var chr=_22d.charAt(i).toLowerCase();(dm._phone2numeric[chr])?_22e+=dm._phone2numeric[chr]:_22e+=_22d.charAt(i);}return _22e;},pprint:function(_22f){return dojo.toJson(_22f);}});}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_230){var _231=_230.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_231==1&&dojo.date.isLeapYear(_230)){return 29;}return days[_231];};dojo.date.isLeapYear=function(_232){var year=_232.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_233){var str=_233.toString();var tz="";var _234;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_234=str.match(pat))){tz=_234[1];}else{str=_233.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_234=str.match(pat))){tz=_234[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_235,_236,_237){_235=new Date(+_235);_236=new Date(+(_236||new Date()));if(_237=="date"){_235.setHours(0,0,0,0);_236.setHours(0,0,0,0);}else{if(_237=="time"){_235.setFullYear(0,0,0);_236.setFullYear(0,0,0);}}if(_235>_236){return 1;}if(_235<_236){return -1;}return 0;};dojo.date.add=function(date,_238,_239){var sum=new Date(+date);var _23a=false;var _23b="Date";switch(_238){case "day":break;case "weekday":var days,_23c;var mod=_239%5;if(!mod){days=(_239>0)?5:-5;_23c=(_239>0)?((_239-5)/5):((_239+5)/5);}else{days=mod;_23c=parseInt(_239/5);}var strt=date.getDay();var adj=0;if(strt==6&&_239>0){adj=1;}else{if(strt==0&&_239<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_239>0)?2:-2;}_239=(7*_23c)+days+adj;break;case "year":_23b="FullYear";_23a=true;break;case "week":_239*=7;break;case "quarter":_239*=3;case "month":_23a=true;_23b="Month";break;default:_23b="UTC"+_238.charAt(0).toUpperCase()+_238.substring(1)+"s";}if(_23b){sum["set"+_23b](sum["get"+_23b]()+_239);}if(_23a&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_23d,_23e,_23f){_23e=_23e||new Date();_23f=_23f||"day";var _240=_23e.getFullYear()-_23d.getFullYear();var _241=1;switch(_23f){case "quarter":var m1=_23d.getMonth();var m2=_23e.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_240*4);_241=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_23d,_23e,"day"));var _242=parseInt(dojo.date.difference(_23d,_23e,"week"));var mod=days%7;if(mod==0){days=_242*5;}else{var adj=0;var aDay=_23d.getDay();var bDay=_23e.getDay();_242=parseInt(days/7);mod=days%7;var _243=new Date(_23d);_243.setDate(_243.getDate()+(_242*7));var _244=_243.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_244+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_244+mod)<0:adj=2;}}}days+=adj;days-=(_242*2);}_241=days;break;case "year":_241=_240;break;case "month":_241=(_23e.getMonth()-_23d.getMonth())+(_240*12);break;case "week":_241=parseInt(dojo.date.difference(_23d,_23e,"day")/7);break;case "day":_241/=24;case "hour":_241/=60;case "minute":_241/=60;case "second":_241/=1000;case "millisecond":_241*=_23e.getTime()-_23d.getTime();}return Math.round(_241);};}if(!dojo._hasResource["dojox.date.php"]){dojo._hasResource["dojox.date.php"]=true;dojo.provide("dojox.date.php");dojox.date.php.format=function(date,_245){var df=new dojox.date.php.DateFormat(_245);return df.format(date);};dojox.date.php.DateFormat=function(_246){if(!this.regex){var keys=[];for(var key in this.constructor.prototype){if(dojo.isString(key)&&key.length==1&&dojo.isFunction(this[key])){keys.push(key);}}this.regex=new RegExp("(?:(\\\\.)|(["+keys.join("")+"]))","g");}var _247=[];this.tokens=dojox.string.tokenize(_246,this.regex,function(_248,_249,i){if(_249){_247.push([i,_249]);return _249;}if(_248){return _248.charAt(1);}});this.replacements=_247;};dojo.extend(dojox.date.php.DateFormat,{weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdays_3:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],months_3:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],format:function(date){this.date=date;for(var i=0,_24a;_24a=this.replacements[i];i++){this.tokens[_24a[0]]=this[_24a[1]]();}return this.tokens.join("");},d:function(){var j=this.j();return (j.length==1)?"0"+j:j;},D:function(){return this.weekdays_3[this.date.getDay()];},j:function(){return this.date.getDate()+"";},l:function(){return this.weekdays[this.date.getDay()];},N:function(){var w=this.w();return (!w)?7:w;},S:function(){switch(this.date.getDate()){case 11:case 12:case 13:return "th";case 1:case 21:case 31:return "st";case 2:case 22:return "nd";case 3:case 23:return "rd";default:return "th";}},w:function(){return this.date.getDay()+"";},z:function(){var _24b=this.date.getTime()-new Date(this.date.getFullYear(),0,1).getTime();return Math.floor(_24b/86400000)+"";},W:function(){var week;var _24c=new Date(this.date.getFullYear(),0,1).getDay()+1;var w=this.date.getDay()+1;var z=parseInt(this.z());if(z<=(8-_24c)&&_24c>4){var _24d=new Date(this.date.getFullYear()-1,this.date.getMonth(),this.date.getDate());if(_24c==5||(_24c==6&&dojo.date.isLeapYear(_24d))){week=53;}else{week=52;}}else{var i;if(Boolean(this.L())){i=366;}else{i=365;}if((i-z)<(4-w)){week=1;}else{var j=z+(7-w)+(_24c-1);week=Math.ceil(j/7);if(_24c>4){--week;}}}return week;},F:function(){return this.months[this.date.getMonth()];},m:function(){var n=this.n();return (n.length==1)?"0"+n:n;},M:function(){return this.months_3[this.date.getMonth()];},n:function(){return this.date.getMonth()+1+"";},t:function(){return (Boolean(this.L())&&this.date.getMonth()==1)?29:this.monthdays[this.getMonth()];},L:function(){return (dojo.date.isLeapYear(this.date))?"1":"0";},o:function(){},Y:function(){return this.date.getFullYear()+"";},y:function(){return this.Y().slice(-2);},a:function(){return this.date.getHours()>=12?"pm":"am";},b:function(){return this.a().toUpperCase();},B:function(){var off=this.date.getTimezoneOffset()+60;var secs=(this.date.getHours()*3600)+(this.date.getMinutes()*60)+this.getSeconds()+(off*60);var beat=Math.abs(Math.floor(secs/86.4)%1000)+"";while(beat.length<2){beat="0"+beat;}return beat;},g:function(){return (this.date.getHours()>12)?this.date.getHours()-12+"":this.date.getHours()+"";},G:function(){return this.date.getHours()+"";},h:function(){var g=this.g();return (g.length==1)?"0"+g:g;},H:function(){var G=this.G();return (G.length==1)?"0"+G:G;},i:function(){var mins=this.date.getMinutes()+"";return (mins.length==1)?"0"+mins:mins;},s:function(){var secs=this.date.getSeconds()+"";return (secs.length==1)?"0"+secs:secs;},e:function(){return dojo.date.getTimezoneName(this.date);},I:function(){},O:function(){var off=Math.abs(this.date.getTimezoneOffset());var _24e=Math.floor(off/60)+"";var mins=(off%60)+"";if(_24e.length==1){_24e="0"+_24e;}if(mins.length==1){_24e="0"+mins;}return ((this.date.getTimezoneOffset()<0)?"+":"-")+_24e+mins;},P:function(){var O=this.O();return O.substring(0,2)+":"+O.substring(2,4);},T:function(){return this.e().substring(0,3);},Z:function(){return this.date.getTimezoneOffset()*-60;},c:function(){return this.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P();},r:function(){return this.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O();},U:function(){return Math.floor(this.date.getTime()/1000);}});}if(!dojo._hasResource["dojox.dtl.utils.date"]){dojo._hasResource["dojox.dtl.utils.date"]=true;dojo.provide("dojox.dtl.utils.date");dojox.dtl.utils.date.DateFormat=function(_24f){dojox.date.php.DateFormat.call(this,_24f);};dojo.extend(dojox.dtl.utils.date.DateFormat,dojox.date.php.DateFormat.prototype,{f:function(){return (!this.date.getMinutes())?this.g():this.g()+":"+this.i();},N:function(){return dojox.dtl.utils.date._months_ap[this.date.getMonth()];},P:function(){if(!this.date.getMinutes()&&!this.date.getHours()){return "midnight";}if(!this.date.getMinutes()&&this.date.getHours()==12){return "noon";}return this.f()+" "+this.a();}});dojo.mixin(dojox.dtl.utils.date,{format:function(date,_250){var df=new dojox.dtl.utils.date.DateFormat(_250);return df.format(date);},timesince:function(d,now){if(!(d instanceof Date)){d=new Date(d.year,d.month,d.day);}if(!now){now=new Date();}var _251=Math.abs(now.getTime()-d.getTime());for(var i=0,_252;_252=dojox.dtl.utils.date._chunks[i];i++){var _253=Math.floor(_251/_252[0]);if(_253){break;}}return _253+" "+_252[1](_253);},_chunks:[[60*60*24*365*1000,function(n){return (n==1)?"year":"years";}],[60*60*24*30*1000,function(n){return (n==1)?"month":"months";}],[60*60*24*7*1000,function(n){return (n==1)?"week":"weeks";}],[60*60*24*1000,function(n){return (n==1)?"day":"days";}],[60*60*1000,function(n){return (n==1)?"hour":"hours";}],[60*1000,function(n){return (n==1)?"minute":"minutes";}]],_months_ap:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."]});}if(!dojo._hasResource["dojox.dtl.filter.dates"]){dojo._hasResource["dojox.dtl.filter.dates"]=true;dojo.provide("dojox.dtl.filter.dates");(function(){var ddfd=dojox.dtl.filter.dates;dojo.mixin(ddfd,{_toDate:function(_254){if(_254 instanceof Date){return _254;}_254=new Date(_254);if(_254.getTime()==new Date(0).getTime()){return "";}return _254;},date:function(_255,arg){_255=ddfd._toDate(_255);if(!_255){return "";}arg=arg||"N j, Y";return dojox.dtl.utils.date.format(_255,arg);},time:function(_256,arg){_256=ddfd._toDate(_256);if(!_256){return "";}arg=arg||"P";return dojox.dtl.utils.date.format(_256,arg);},timesince:function(_257,arg){_257=ddfd._toDate(_257);if(!_257){return "";}var _258=dojox.dtl.utils.date.timesince;if(arg){return _258(arg,_257);}return _258(_257);},timeuntil:function(_259,arg){_259=ddfd._toDate(_259);if(!_259){return "";}var _25a=dojox.dtl.utils.date.timesince;if(arg){return _25a(arg,_259);}return _25a(new Date(),_259);}});})();}if(!dojo._hasResource["dojox.dtl.filter.integers"]){dojo._hasResource["dojox.dtl.filter.integers"]=true;dojo.provide("dojox.dtl.filter.integers");dojo.mixin(dojox.dtl.filter.integers,{add:function(_25b,arg){_25b=parseInt(_25b,10);arg=parseInt(arg,10);return isNaN(arg)?_25b:_25b+arg;},get_digit:function(_25c,arg){_25c=parseInt(_25c,10);arg=parseInt(arg,10)-1;if(arg>=0){_25c+="";if(arg<_25c.length){_25c=parseInt(_25c.charAt(arg),10);}else{_25c=0;}}return (isNaN(_25c)?0:_25c);}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_25d,map,_25e,_25f){_25f=_25f||dojo.global;_25e=_25e?dojo.hitch(_25f,_25e):function(v){return v;};return _25d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_260,key,_261){var _262=dojo.getObject(key,false,map);if(_261){_262=dojo.getObject(_261,false,_25f).call(_25f,_262,key);}return _25e(_262,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_263,_264){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _265=dojo.date.stamp._isoRegExp.exec(_263),_266=null;if(_265){_265.shift();if(_265[1]){_265[1]--;}if(_265[6]){_265[6]*=1000;}if(_264){_264=new Date(_264);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _264["get"+prop]();}),function(_267,_268){_265[_268]=_265[_268]||_267;});}_266=new Date(_265[0]||1970,_265[1]||0,_265[2]||1,_265[3]||0,_265[4]||0,_265[5]||0,_265[6]||0);if(_265[0]<100){_266.setFullYear(_265[0]||1970);}var _269=0,_26a=_265[7]&&_265[7].charAt(0);if(_26a!="Z"){_269=((_265[8]||0)*60)+(Number(_265[9])||0);if(_26a!="-"){_269*=-1;}}if(_26a){_269-=_266.getTimezoneOffset();}if(_269){_266.setTime(_266.getTime()+_269*60000);}}return _266;};dojo.date.stamp.toISOString=function(_26b,_26c){var _26d=function(n){return (n<10)?"0"+n:n;};_26c=_26c||{};var _26e=[],_26f=_26c.zulu?"getUTC":"get",date="";if(_26c.selector!="time"){var year=_26b[_26f+"FullYear"]();date=["0000".substr((year+"").length)+year,_26d(_26b[_26f+"Month"]()+1),_26d(_26b[_26f+"Date"]())].join("-");}_26e.push(date);if(_26c.selector!="date"){var time=[_26d(_26b[_26f+"Hours"]()),_26d(_26b[_26f+"Minutes"]()),_26d(_26b[_26f+"Seconds"]())].join(":");var _270=_26b[_26f+"Milliseconds"]();if(_26c.milliseconds){time+="."+(_270<100?"0":"")+_26d(_270);}if(_26c.zulu){time+="Z";}else{if(_26c.selector!="time"){var _271=_26b.getTimezoneOffset();var _272=Math.abs(_271);time+=(_271>0?"-":"+")+_26d(Math.floor(_272/60))+":"+_26d(_272%60);}}_26e.push(time);}return _26e.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _273(_274){if(d.isString(_274)){return "string";}if(typeof _274=="number"){return "number";}if(typeof _274=="boolean"){return "boolean";}if(d.isFunction(_274)){return "function";}if(d.isArray(_274)){return "array";}if(_274 instanceof Date){return "date";}if(_274 instanceof d._Url){return "url";}return "object";};function _275(_276,type){switch(type){case "string":return _276;case "number":return _276.length?Number(_276):NaN;case "boolean":return typeof _276=="boolean"?_276:!(_276.toLowerCase()=="false");case "function":if(d.isFunction(_276)){_276=_276.toString();_276=d.trim(_276.substring(_276.indexOf("{")+1,_276.length-1));}try{if(_276===""||_276.search(/[^\w\.]+/i)!=-1){return new Function(_276);}else{return d.getObject(_276,false)||new Function(_276);}}catch(e){return new Function();}case "array":return _276?_276.split(/\s*,\s*/):[];case "date":switch(_276){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_276);}case "url":return d.baseUrl+_276;default:return d.fromJson(_276);}};var _277={};dojo.connect(dojo,"extend",function(){_277={};});function _278(_279){if(!_277[_279]){var cls=d.getObject(_279);if(!cls){return null;}var _27a=cls.prototype;var _27b={},_27c={};for(var name in _27a){if(name.charAt(0)=="_"){continue;}if(name in _27c){continue;}var _27d=_27a[name];_27b[name]=_273(_27d);}_277[_279]={cls:cls,params:_27b};}return _277[_279];};this._functionFromScript=function(_27e){var _27f="";var _280="";var _281=_27e.getAttribute("args");if(_281){d.forEach(_281.split(/\s*,\s*/),function(part,idx){_27f+="var "+part+" = arguments["+idx+"]; ";});}var _282=_27e.getAttribute("with");if(_282&&_282.length){d.forEach(_282.split(/\s*,\s*/),function(part){_27f+="with("+part+"){";_280+="}";});}return new Function(_27f+_27e.innerHTML+_280);};this.instantiate=function(_283,_284,args){var _285=[],dp=dojo.parser;_284=_284||{};args=args||{};d.forEach(_283,function(obj){if(!obj){return;}var node,type,_286,_287,_288;if(obj.node){node=obj.node;type=obj.type;_286=obj.clsInfo||(type&&_278(type));_287=_286&&_286.cls;_288=obj.scripts;}else{node=obj;type=dp._attrName in _284?_284[dp._attrName]:node.getAttribute(dp._attrName);_286=type&&_278(type);_287=_286&&_286.cls;_288=(_287&&(_287._noScript||_287.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_286){throw new Error("Could not load class '"+type);}var _289={},_28a=node.attributes;if(args.defaults){dojo.mixin(_289,args.defaults);}if(obj.inherited){dojo.mixin(_289,obj.inherited);}for(var name in _286.params){var item=name in _284?{value:_284[name],specified:true}:_28a.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _28b=item.value;switch(name){case "class":_28b="className" in _284?_284.className:node.className;break;case "style":_28b="style" in _284?_284.style:(node.style&&node.style.cssText);}var _28c=_286.params[name];if(typeof _28b=="string"){_289[name]=_275(_28b,_28c);}else{_289[name]=_28b;}}var _28d=[],_28e=[];d.forEach(_288,function(_28f){node.removeChild(_28f);var _290=_28f.getAttribute("event"),type=_28f.getAttribute("type"),nf=d.parser._functionFromScript(_28f);if(_290){if(type=="dojo/connect"){_28d.push({event:_290,func:nf});}else{_289[_290]=nf;}}else{_28e.push(nf);}});var _291=_287.markupFactory||_287.prototype&&_287.prototype.markupFactory;var _292=_291?_291(_289,node,_287):new _287(_289,node);_285.push(_292);var _293=node.getAttribute("jsId");if(_293){d.setObject(_293,_292);}d.forEach(_28d,function(_294){d.connect(_292,_294.event,null,_294.func);});d.forEach(_28e,function(func){func.call(_292);});});if(!_284._started){d.forEach(_285,function(_295){if(!args.noStart&&_295&&_295.startup&&!_295._started&&(!_295.getParent||!_295.getParent())){_295.startup();}});}return _285;};this.parse=function(_296,args){var root;if(!args&&_296&&_296.rootNode){args=_296;root=args.rootNode;}else{root=_296;}var _297=this._attrName;function scan(_298,list){var _299=dojo.clone(_298.inherited);dojo.forEach(["dir","lang"],function(name){var val=_298.node.getAttribute(name);if(val){_299[name]=val;}});var _29a=_298.scripts;var _29b=!_298.clsInfo||!_298.clsInfo.cls.prototype.stopParser;for(var _29c=_298.node.firstChild;_29c;_29c=_29c.nextSibling){if(_29c.nodeType==1){var type=_29b&&_29c.getAttribute(_297);if(type){var _29d={"type":type,clsInfo:_278(type),node:_29c,scripts:[],inherited:_299};list.push(_29d);scan(_29d,list);}else{if(_29a&&_29c.nodeName.toLowerCase()=="script"){type=_29c.getAttribute("type");if(type&&/^dojo\//i.test(type)){_29a.push(_29c);}}else{if(_29b){scan({node:_29c,inherited:_299},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _29e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_29e);}else{dojo._loaders.unshift(_29e);}})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _29f={};dojo.cache=function(_2a0,url,_2a1){if(typeof _2a0=="string"){var _2a2=dojo.moduleUrl(_2a0,url);}else{_2a2=_2a0;_2a1=url;}var key=_2a2.toString();var val=_2a1;if(_2a1!=undefined&&!dojo.isString(_2a1)){val=("value" in _2a1?_2a1.value:undefined);}var _2a3=_2a1&&_2a1.sanitize?true:false;if(typeof val=="string"){val=_29f[key]=_2a3?dojo.cache._sanitize(val):val;}else{if(val===null){delete _29f[key];}else{if(!(key in _29f)){val=dojo._getText(key);_29f[key]=_2a3?dojo.cache._sanitize(val):val;}val=_29f[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2a4=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2a4){val=_2a4[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _2a5=this.declaredClass,_2a6=this;return dojo.string.substitute(tmpl,this,function(_2a7,key){if(key.charAt(0)=="!"){_2a7=dojo.getObject(key.substr(1),false,_2a6);}if(typeof _2a7=="undefined"){throw new Error(_2a5+" template:"+key);}if(_2a7==null){return "";}return key.charAt(0)=="!"?_2a7:_2a7.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _2a8=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_2a8)){node=dojo._toDom(this._stringRepl(_2a8));if(node.nodeType!=1){throw new Error("Invalid template: "+_2a8);}}else{node=_2a8.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _2a9=dojo.parser,qry,attr;if(_2a9._query!="[dojoType]"){qry=_2a9._query;attr=_2a9._attrName;_2a9._query="[dojoType]";_2a9._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_2a9._query=qry;_2a9._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_2aa){var dest=this.containerNode;if(_2aa&&dest){while(_2aa.hasChildNodes()){dest.appendChild(_2aa.firstChild);}}},_attachTemplateNodes:function(_2ab,_2ac){_2ac=_2ac||function(n,p){return n.getAttribute(p);};var _2ad=dojo.isArray(_2ab)?_2ab:(_2ab.all||_2ab.getElementsByTagName("*"));var x=dojo.isArray(_2ab)?0:-1;for(;x<_2ad.length;x++){var _2ae=(x==-1)?_2ab:_2ad[x];if(this.widgetsInTemplate&&_2ac(_2ae,"dojoType")){continue;}var _2af=_2ac(_2ae,"dojoAttachPoint");if(_2af){var _2b0,_2b1=_2af.split(/\s*,\s*/);while((_2b0=_2b1.shift())){if(dojo.isArray(this[_2b0])){this[_2b0].push(_2ae);}else{this[_2b0]=_2ae;}this._attachPoints.push(_2b0);}}var _2b2=_2ac(_2ae,"dojoAttachEvent");if(_2b2){var _2b3,_2b4=_2b2.split(/\s*,\s*/);var trim=dojo.trim;while((_2b3=_2b4.shift())){if(_2b3){var _2b5=null;if(_2b3.indexOf(":")!=-1){var _2b6=_2b3.split(":");_2b3=trim(_2b6[0]);_2b5=trim(_2b6[1]);}else{_2b3=trim(_2b3);}if(!_2b5){_2b5=_2b3;}this.connect(_2ae,_2b3,_2b5);}}}var role=_2ac(_2ae,"waiRole");if(role){dijit.setWaiRole(_2ae,role);}var _2b7=_2ac(_2ae,"waiState");if(_2b7){dojo.forEach(_2b7.split(/\s*,\s*/),function(_2b8){if(_2b8.indexOf("-")!=-1){var pair=_2b8.split("-");dijit.setWaiState(_2ae,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_2b9){delete this[_2b9];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2ba,_2bb,_2bc){var _2bd=dijit._Templated._templateCache;var key=_2bb||_2ba;var _2be=_2bd[key];if(_2be){try{if(!_2be.ownerDocument||_2be.ownerDocument==dojo.doc){return _2be;}}catch(e){}dojo.destroy(_2be);}if(!_2bb){_2bb=dojo.cache(_2ba,{sanitize:true});}_2bb=dojo.string.trim(_2bb);if(_2bc||_2bb.match(/\$\{([^\}]+)\}/g)){return (_2bd[key]=_2bb);}else{var node=dojo._toDom(_2bb);if(node.nodeType!=1){throw new Error("Invalid template: "+_2bb);}return (_2bd[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2bf=dijit._Templated._templateCache;for(var key in _2bf){var _2c0=_2bf[key];if(typeof _2c0=="object"){dojo.destroy(_2c0);}delete _2bf[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojox.dtl._Templated"]){dojo._hasResource["dojox.dtl._Templated"]=true;dojo.provide("dojox.dtl._Templated");dojo.declare("dojox.dtl._Templated",dijit._Templated,{_dijitTemplateCompat:false,buildRendering:function(){var node;if(this.domNode&&!this._template){return;}if(!this._template){var t=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);if(t instanceof dojox.dtl.Template){this._template=t;}else{node=t;}}if(!node){var _2c1=new dojox.dtl._Context(this);if(!this._created){delete _2c1._getter;}var _2c2=dojo._toDom(this._template.render(_2c1));if(_2c2.nodeType!==1&&_2c2.nodeType!==3){for(var i=0,l=_2c2.childNodes.length;i<l;++i){node=_2c2.childNodes[i];if(node.nodeType==1){break;}}}else{node=_2c2;}}this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _2c3=dojo.parser,qry,attr;if(_2c3._query!="[dojoType]"){qry=_2c3._query;attr=_2c3._attrName;_2c3._query="[dojoType]";_2c3._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_2c3._query=qry;_2c3._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}if(this.domNode){dojo.place(node,this.domNode,"before");this.destroyDescendants();dojo.destroy(this.domNode);}this.domNode=node;this._fillContent(this.srcNodeRef);},_templateCache:{},getCachedTemplate:function(_2c4,_2c5,_2c6){var _2c7=this._templateCache;var key=_2c5||_2c4;if(_2c7[key]){return _2c7[key];}_2c5=dojo.string.trim(_2c5||dojo.cache(_2c4,{sanitize:true}));if(this._dijitTemplateCompat&&(_2c6||_2c5.match(/\$\{([^\}]+)\}/g))){_2c5=this._stringRepl(_2c5);}if(_2c6||!_2c5.match(/\{[{%]([^\}]+)[%}]\}/g)){return _2c7[key]=dojo._toDom(_2c5);}else{return _2c7[key]=new dojox.dtl.Template(_2c5);}},render:function(){this.buildRendering();},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);}});}if(!dojo._hasResource["agi.widget._TemplatedWidget"]){dojo._hasResource["agi.widget._TemplatedWidget"]=true;dojo.provide("agi.widget._TemplatedWidget");dojo.declare("agi.widget._TemplatedWidget",[dijit._Widget,dojox.dtl._Templated],{});}if(!dojo._hasResource["agi.requester"]){dojo._hasResource["agi.requester"]=true;dojo.provide("agi.requester");agi.requester.Requester=function(url,_2c8,_2c9,_2ca,_2cb){var _2cc=this;var req=null;this.async=_2c9;this.method=_2c8;this.url=url;this.showbusy=_2ca;this.in_process=false;this.handleas=_2cb?_2cb:"text";this.get_millisecond_query=function(){var _2cd=new Date();var ms=_2cd.getTime();return "&ajax_requester_ms="+ms;};this.sendRequest=function(_2ce){var _2cf={url:this.url,sync:!this.async,content:_2ce?_2ce:{},preventCache:_2ce?true:false,handleAs:this.handleas,load:_2cc.processLoad,error:_2cc.processError};if(this.showbusy){document.body.style.cursor="wait";}this.in_process=true;if(this.method.toUpperCase()=="POST"){dojo.xhrPost(_2cf);}else{dojo.xhrGet(_2cf);}};this.processLoad=function(_2d0,_2d1){_2d0=_2cc.processAlways(_2d0,_2d1);if(_2d1.xhr.getResponseHeader("Kaboom")){if(_2d1.xhrgetResponseHeader("Kaboom").toLowerCase()=="true"){if(_2cc.onerror){_2cc.onerror(_2d0,_2d1);}}}else{if(_2cc.onsuccess){_2cc.onsuccess(_2d0,_2d1);}}return _2d0;};this.processError=function(_2d2,_2d3){_2d2=_2cc.processAlways(_2d2,_2d3);if(_2cc.onerror){_2cc.onerror(_2d2,_2d3);}return _2d2;};this.processAlways=function(_2d4,_2d5){_2cc.in_process=false;if(_2cc.showbusy){document.body.style.cursor="auto";}if(!_2d4){_2d4="";}try{_2d4=_2d4.replace("<!--this page was compressed by your friendly neighborhood pydriver-->","");}catch(e){}return _2d4;};this.formToQuery=function(_2d6){var _2d7=dojo.formToObject(_2d6);return _2d7;};};var script_fragment="<script[^>]*>([\\s\\S]*?)</script>";agi.requester.stripScripts=function(_2d8){return _2d8.replace(new RegExp(script_fragment,"img"),"");};agi.requester.extractScripts=function(_2d9){var _2da=new RegExp(script_fragment,"img");var _2db=new RegExp(script_fragment,"im");var _2dc=_2d9.match(_2da);var _2dd=[];if(_2dc){for(var i=0;i<_2dc.length;i++){if(_2dc[i].indexOf("agi-lb-exec")!=-1){_2dd.push(_2dc[i].match(_2db)[1]);}}}return _2dd;};agi.requester.evalScripts=function(_2de){var _2df=agi.requester.extractScripts(_2de);for(i=0;i<_2df.length;i++){try{eval(_2df[i]);}catch(e){}}};agi.requester.checkAll=function(_2e0,_2e1){form=dojo.byId(_2e0);for(i=0;i<form.elements.length;i++){if(form.elements[i].type=="checkbox"){form.elements[i].checked=_2e1;}}};agi.requester.countChecked=function(_2e2){var form=dojo.byId(_2e2);var _2e3=0;for(i=0;i<form.elements.length;i++){if(form.elements[i].type=="checkbox"&form.elements[i].checked){_2e3++;}}return _2e3;};agi.requester.selectAll=function(_2e4,_2e5){if(_2e5==undefined){var _2e6=true;}else{var _2e6=_2e5;}var list=dojo.byId(_2e4);var _2e7=document.getElementsByName("event_id");for(i=0;i<list.childNodes.length;i++){if(list.childNodes[i].nodeName=="LI"){for(j=0;j<list.childNodes[i].childNodes.length;j++){if(list.childNodes[i].childNodes[j].type=="checkbox"){list.childNodes[i].childNodes[j].checked=_2e6;len=_2e7.length;for(n=0;n<len;n++){if((_2e7[n].value)==(list.childNodes[i].childNodes[j].value)){_2e7[n].checked=_2e6;}}}}}}};agi.requester.selectEqual=function(_2e8){var _2e9=document.getElementsByName(_2e8.name);for(i=0;i<_2e9.length;i++){if(_2e8.form.elements[i].value==_2e8.value){_2e8.form.elements[i].checked=_2e8.checked;}}};agi.requester.fixurl=function(url){if(url.indexOf("http")!=0){var sep="";url.indexOf("/")==0?sep="":sep="/";url=agi.requester.ajaxhost()+sep+url;}return url;};agi.requester.ajaxhost=function(){return document.location.protocol+"//"+document.location.hostname;};}if(!dojo._hasResource["agi.widget.Lightbox"]){dojo._hasResource["agi.widget.Lightbox"]=true;dojo.provide("agi.widget.Lightbox");dojo.declare("agi.widget.Lightbox",[agi.classes.Identified,agi.widget._TemplatedWidget],{url:null,contents:null,node:null,templatePath:null,left:null,top:null,height:null,width:null,position:"absolute",relativeTo:null,showloader:true,loaderSrc:imghost+"/ag/reminders/loader.swf",loaderId:"agi-lightboxloader",loaderHeight:120,loaderWidth:120,overlayId:"agi-overlay",showoverlay:true,lightboxId:"agi-lightbox",noprintClass:"agi-noprint",timeout:60000,loadnow:true,allowclick:false,closeKey:null,overflow:"auto",overlayZindex:"999",containerZindex:"1000",loaderZindex:"250",_defaultTop:20,_ready:false,_reset:false,_showing:false,_bgIframe:null,_keypressListener:null,_hideSignal:"ag/Lightbox/hide",_resizeSignal:"ag/Lightbox/resize",constructor:function(_2ea){_2ea=_2ea||{};dojo.mixin(this,_2ea);this._checkPositioning();},uninitialize:function(){dojo._destroyElement(this.loader);dojo._destroyElement(this.lightbox);if(this.overlay){dojo._destroyElement(this.overlay);}if(this._bgIframe){this._bgIframe.destroy();this._bgIframe=null;}},_checkPositioning:function(){if(this.position=="relative"){if(!this.relativeTo){throw (this+" needs a relativeTo when positioning relatively");}if(this.left==null){this.left=0;}if(this.top==null){this.top=0;}var pos=dojo.coords(this.relativeTo);this.left+=pos.x;this.top+=pos.y;}else{if(this.position=="user"){if(this.top==null||this.left==null){throw (this+" needs 'left' and 'top' defined when using user-defined positioning.");}}else{if(this.top==null){this.top=this._defaultTop;}}}},buildRendering:function(){if(this.templatePath||this.templateString){this.inherited(arguments);}this.overlay=this._createOverlay();this.lightbox=this._createLightbox(this.overlay);this.loader=this._createLoader();},postCreate:function(){this.inherited(arguments);dojo.subscribe(this._hideSignal,dojo.hitch(this,this.hide));dojo.subscribe(this._resizeSignal,dojo.hitch(this,this._resizeOverlay));if(this.loadnow){this._loadContent();}},_createOverlay:function(){var body=dojo.body();var _2eb=this.overlayId;var _2ec=dojo.byId(_2eb);if(!_2ec){_2ec=document.createElement("div");_2ec.setAttribute("id",_2eb);dojo.addClass(_2ec,this.noprintClass);var _2ed=this._pageSize();dojo.style(_2ec,{display:"none",position:"absolute",top:"0",left:"0",zIndex:this.overlayZindex,width:"100%",height:_2ed[1]+"px"});body.insertBefore(_2ec,body.firstChild);}try{filter=dojo.style(_2ec,"filter");if(filter&&dojo.isIE){if(filter.indexOf(imghost)==-1){filter=filter.replace("/agbeta",imghost+"/agbeta");dojo.style(_2ec,"filter",filter);}}}catch(e){}return _2ec;},_createLightbox:function(_2ee){var body=dojo.body();var _2ef=dojo.byId(this.lightboxId);if(!_2ef){_2ef=document.createElement("div");_2ef.setAttribute("id",this.lightboxId);dojo.style(_2ef,{display:"none",position:"absolute",zIndex:this.containerZindex});body.insertBefore(_2ef,_2ee.nextSibling);}_2ef.innerHTML="";return _2ef;},_createLoader:function(){var body=dojo.body();var _2f0=dojo.byId("loadingImage");if(!_2f0){if(this.loaderSrc.endswith(".swf")){_2f0=this._createLoaderSwf(this.loaderSrc);}else{_2f0=this._createLoaderImage(this.loaderSrc);}dojo.style(_2f0,{display:"none",visibility:"hidden",position:"absolute",zIndex:this.loaderZindex});body.insertBefore(_2f0,body.firstChild);}return _2f0;},_createLoaderSwf:function(src){var _2f1=document.createElement("embed");_2f1.setAttribute("id",this.loaderId);_2f1.setAttribute("name","FlashProduct");_2f1.setAttribute("src",src);_2f1.setAttribute("swLiveConnect",true);_2f1.setAttribute("width",this.loaderWidth);_2f1.setAttribute("height",this.loaderHeight);_2f1.setAttribute("scale","noborder");_2f1.setAttribute("quality","high");_2f1.setAttribute("type","application/x-shockwave-flash");_2f1.setAttribute("pluginspace","http://www.macromedia.com/go/getflashplayer");_2f1.setAttribute("wmode","transparent");return _2f1;},_createLoaderImage:function(src){var _2f2=document.createElement("img");_2f2.setAttribute("id",this.loaderId);_2f2.setAttribute("src",src);_2f2.setAttribute("width",this.loaderWidth);_2f2.setAttribute("height",this.loaderHeight);return _2f2;},_loadContent:function(){if(this.domNode&&!this.node){this.node=this.domNode;}if(this.loader&&this.showloader){var _2f3=this._pageSize();var _2f4=this._pageScroll();var _2f5=_2f4[1]+((_2f3[3]-35-this.loader.height)/2);var _2f6=((_2f3[0]-20-this.loader.width)/2);dojo.style(this.loader,{display:"block",visibility:"visible",top:_2f5+"px",left:_2f6+"px"});}if(this.overlay&&this.showoverlay){dojo.style(this.overlay,{display:"block",visibility:"visible"});}if(this.url){dojo.xhrGet({url:this.url,handleAs:"text",timeout:this.timeout,load:dojo.hitch(this,this._onSuccess),error:dojo.hitch(this,this._onError)});}else{if(this.contents){this.lightbox.innerHTML=agi.requester.stripScripts(this.contents);this._ready=true;this.show();agi.requester.evalScripts(this.contents);this._enableOverlayClick();}else{if(this.node){var node=dojo.byId(this.node);this.lightbox.appendChild(dojo.byId(node));dojo.style(node,"display","block");this._ready=true;this.show();this._enableOverlayClick();}}}},_onSuccess:function(_2f7,_2f8){this.lightbox.innerHTML=agi.requester.stripScripts(_2f7);this._ready=true;this.show();agi.requester.evalScripts(_2f7);this._enableOverlayClick();return _2f7;},_onError:function(_2f9,_2fa){this.hide();return _2f9;},show:function(){this._showPhase0();this._showPhase1();this._showPhase2();this.postShow();},_showPhase0:function(){if(!this._ready){return this._loadContent();}if(this._reset){this._checkPositioning();this._reset=false;}if(this.contents){this.lightbox.innerHTML=this.contents;}dojo.style(this.lightbox,"overflow",this.overflow);if(this.loader){dojo.style(this.loader,{display:"none",visibility:"hidden"});}if(this.overlay&&this.showoverlay){dojo.style(this.overlay,{display:"block",visibility:"visible"});}},_showPhase1:function(){var _2fb=this._pageScroll();var _2fc=this.top+_2fb[1];var _2fd={left:"-9999px",top:_2fc+"px",visibility:"visible",display:"block"};if(this.height){_2fd.height=this.height+"px";}if(this.width){_2fd.width=this.width+"px";}dojo.style(this.lightbox,_2fd);},_showPhase2:function(){var _2fe=this._pageSize();if(this.left==null){this.left=((_2fe[0]-this.lightbox.offsetWidth)/2);}var _2ff={left:this.left+"px"};dojo.style(this.lightbox,_2ff);this._resizeOverlay();this._enableKeypressListener();if(!this._bgIframe){var _300=this.lightbox;if(this.overlay&&this.showoverlay){_300=this.overlay;}this._bgIframe=new dijit.BackgroundIframe(_300);}this._showing=true;},postShow:function(){return;},hide:function(_301){if(!this._showing){return;}if(this.overlay){this.overlay.onclick=function(){return false;};dojo.style(this.overlay,{display:"none",visibility:"hidden"});}if(this.loader){dojo.style(this.loader,{display:"none",visibility:"hidden"});}if(this.lightbox){dojo.style(this.lightbox,{display:"none",visibility:"hidden"});if(_301){this.reset();}else{this.contents=this.lightbox.innerHTML;}}this._disableKeypressListener();this._showing=false;},reset:function(){if(this.node){dojo.style(this.node,{display:"none"});dojo.place(this.node,dojo.body(),"last");}this.lightbox.innerHTML="";this.contents=null;this.url=null;this.domNode=null;this.top=null;this.left=null;this._ready=false;this._reset=true;},_enableOverlayClick:function(){if(this.overlay&&this.allowclick){this._overlayClick=dojo.connect(this.overlay,"onclick",dojo.hitch(this,this.hide));}},_disableOverlayClick:function(){if(this._overlayClick){dojo.disconnect(this._overlayClick);this._overlayClick=null;}},_enableKeypressListener:function(){if(this.closeKey&&!this._keypressListener){this._keypressListener=dojo.connect(document,"keypress",dojo.hitch(this,this._onKeypress));}},_disableKeypressListener:function(){if(this._keypressListener){dojo.disconnect(this._keypressListener);this._keypressListener=null;}},_onKeypress:function(evt){if(evt.charOrCode==this.closeKey){this.hide();}},_resizeOverlay:function(){if(this.overlay){var _302=this._pageSize();dojo.style(this.overlay,"height",_302[1]+"px");}},_pageScroll:function(){var _303=0;if(self.pageYOffset){_303=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_303=document.documentElement.scrollTop;}else{if(document.body){_303=document.body.scrollTop;}}}var _304=[null,_303];return _304;},_pageSize:function(){var _305,_306;if(window.innerHeight&&window.scrollMaxY){_305=document.body.scrollWidth;_306=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_305=document.body.scrollWidth;_306=document.body.scrollHeight;}else{_305=document.body.offsetWidth;_306=document.body.offsetHeight;}}var _307,_308;if(self.innerHeight){_307=self.innerWidth;_308=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_307=document.documentElement.clientWidth;_308=document.documentElement.clientHeight;}else{if(document.body){_307=document.body.clientWidth;_308=document.body.clientHeight;}}}var _309,_30a;if(_306<_308){_30a=_308;}else{_30a=_306;}if(_305<_307){_309=_307;}else{_309=_305;}var _30b=[_309,_30a,_307,_308];return _30b;}});}if(!dojo._hasResource["bma.sifr._base"]){dojo._hasResource["bma.sifr._base"]=true;dojo.provide("bma.sifr._base");bma.sifr.toString=function(){return "AGsIFR";};bma.sifr.sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",UNLOADING:"sIFR-unloading",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="395";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){};function D(b){function c(d){return d.toLocaleUpperCase();};this.normalize=function(d){return d.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE);};this.textTransform=function(d,e){switch(d){case "uppercase":return e.toLocaleUpperCase();case "lowercase":return e.toLocaleLowerCase();case "capitalize":return e.replace(/^\w|\s\w/g,c);}return e;};this.toHexString=function(d){if(typeof (d)!="string"||d.charAt(0)!="#"||d.length!=4&&d.length!=7){return d;}d=d.substring(1);return "0x"+(d.length==3?d.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):d);};this.convertCssArg=function(d){if(!d){return {};}if(typeof (d)=="object"){if(d.constructor==Array){d=d.join("");}else{return d;}}var k={};var l=d.split("}");for(var g=0;g<l.length;g++){var h=l[g].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!h||h.length!=3){continue;}if(!k[h[1]]){k[h[1]]={};}var f=h[2].split(";");for(var e=0;e<f.length;e++){var m=f[e].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!m||m.length!=3){continue;}k[h[1]][m[1]]=m[2].replace(/\s+$/,"");}}return k;};this.extractFromCss=function(f,e,h,d){var g=null;if(f&&f[e]&&f[e][h]){g=f[e][h];if(d){delete f[e][h];}}return g;};this.cssToString=function(e){var f=[];for(var d in e){var i=e[d];if(i==Object.prototype[d]){continue;}f.push(d,"{");for(var h in i){if(i[h]==Object.prototype[h]){continue;}var g=i[h];if(D.UNIT_REMOVAL_PROPERTIES[h]){g=parseInt(g,10);}f.push(h,":",g,";");}f.push("}");}return f.join("");};this.escape=function(d){return escape(d).replace(/\+/g,"%2B");};this.encodeVars=function(d){return d.join("&").replace(/%/g,"%25");};this.copyProperties=function(f,e){for(var d in f){if(e[d]===undefined){e[d]=f[d];}}return e;};this.domain=function(){var d="";try{d=document.domain;}catch(f){}return d;};this.domainMatches=function(g,f){if(f=="*"||f==g){return true;}var e=f.lastIndexOf("*");if(e>-1){f=f.substr(e+1);var d=g.lastIndexOf(f);if(d>-1&&(d+f.length)==g.length){return true;}}return false;};this.uriEncode=function(d){return encodeURI(decodeURIComponent(d));};this.delay=function(e,g,f){var d=Array.prototype.slice.call(arguments,3);setTimeout(function(){g.apply(f,d);},e);};};D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function T(d){var c=this;function b(f,h,g){var j=c.getStyleAsInt(f,h,d.ua.ie);if(j==0){j=f[g];for(var e=3;e<arguments.length;e++){j-=c.getStyleAsInt(f,arguments[e],true);}}return j;};this.getBody=function(){return document.getElementsByTagName("body")[0]||null;};this.querySelectorAll=function(e){return bma.sifr.parseSelector(e);};this.addClass=function(e,f){if(f){f.className=((f.className||"")==""?"":f.className+" ")+e;}};this.removeClass=function(e,f){if(f){f.className=f.className.replace(new RegExp("(^|\\s)"+e+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1");}};this.hasClass=function(e,f){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(f.className);};this.hasOneOfClassses=function(g,f){for(var e=0;e<g.length;e++){if(this.hasClass(g[e],f)){return true;}}return false;};this.ancestorHasClass=function(f,e){f=f.parentNode;while(f&&f.nodeType==1){if(this.hasClass(e,f)){return true;}f=f.parentNode;}return false;};this.create=function(e,f){var g=document.createElementNS?document.createElementNS(T.XHTML_NS,e):document.createElement(e);if(f){g.className=f;}return g;};this.getComputedStyle=function(g,h){var e;if(document.defaultView&&document.defaultView.getComputedStyle){var f=document.defaultView.getComputedStyle(g,null);e=f?f[h]:null;}else{if(g.currentStyle){e=g.currentStyle[h];}}return e||"";};this.getStyleAsInt=function(f,h,e){var g=this.getComputedStyle(f,h);if(e&&!/px$/.test(g)){return 0;}return parseInt(g)||0;};this.getWidthFromStyle=function(e){return b(e,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth");};this.getHeightFromStyle=function(e){return b(e,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth");};this.getDimensions=function(h){var g=h.offsetWidth;var e=h.offsetHeight;if(g==0||e==0){for(var f=0;f<h.childNodes.length;f++){var j=h.childNodes[f];if(j.nodeType!=1){continue;}g=Math.max(g,j.offsetWidth);e=Math.max(e,j.offsetHeight);}}return {width:g,height:e};};this.getViewport=function(){return {width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight};};this.blurElement=function(g){try{g.blur();return;}catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f);};};T.XHTML_NS="http://www.w3.org/1999/xhtml";function H(l){var c=navigator.userAgent.toLowerCase();var k=(navigator.product||"").toLowerCase();var d=navigator.platform.toLowerCase();this.parseVersion=function(e){return e.replace(/(^|\D)(\d)(?=\D|$)/g,"$10000$2");};this.macintosh=/^mac/.test(d);this.windows=/^win/.test(d);this.quicktime=false;this.opera=/opera/.test(c);this.konqueror=/konqueror/.test(k);this.ie=false;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(c);this.ieWin=this.ie&&this.windows;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(c);this.webkit=!this.konqueror&&/applewebkit/.test(c);this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&k=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(c)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(c)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(c)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(c)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(c)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var g;var j=false;try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(h){try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;g.AllowScriptAccess="always";}catch(h){j=this.flashVersion==6;}if(!j){try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(h){}}}if(!j&&g){this.flashVersion=parseFloat(/([\d,?]+)/.exec(g.GetVariable("$version"))[1].replace(/,/g,"."));}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(navigator.plugins["Shockwave Flash"].description)[1]);var f=0;while(this.flashVersion>=H.MIN_FLASH_VERSION&&f<navigator.mimeTypes.length){var b=navigator.mimeTypes[f];if(b.type=="application/x-shockwave-flash"&&b.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true;}f++;}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||!!(document.defaultView&&document.defaultView.getComputedStyle);this.requiresPrefetch=this.ieWin||this.khtml;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof (document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.50"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror);};H.MIN_FLASH_VERSION=8;function F(b){this.fix=b.ua.ieWin&&window.location.hash!="";var c;this.cache=function(){c=document.title;};function d(){document.title=c;};this.restore=function(){if(this.fix){setTimeout(d,0);}};};function S(e){var i=null;function f(){try{if(e.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left");}}catch(j){return setTimeout(f,10);}b();};function b(){if(e.useStyleCheck){d();}else{if(!e.ua.mustCheckStyle){g(null,true);}}};function d(){i=e.dom.create("div",E.DUMMY);e.dom.getBody().appendChild(i);c();};function c(){if(e.dom.getComputedStyle(i,"marginLeft")=="42px"){h();}else{setTimeout(c,10);}};function h(){if(i&&i.parentNode){i.parentNode.removeChild(i);}i=null;g(null,true);};function g(j,k){e.initialize(k);if(j&&j.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",g,false);}if(window.removeEventListener){window.removeEventListener("load",g,false);}}};this.attach=function(){if(window.addEventListener){window.addEventListener("load",g,false);}else{window.attachEvent("onload",g);}if(!e.useDomLoaded||e.ua.forcePageLoad||e.ua.ie&&window.top!=window){return;}if(e.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",b,false);}else{if(e.ua.ie||e.ua.khtml){f();}}};};var Q="sifrFetch";function N(b){var d=false;this.fetchMovies=function(f){if(b.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return;}try{d=true;c(f);}catch(g){if(b.debug){throw g;}}if(b.setPrefetchCookie){document.cookie=Q+"=true;path="+b.cookiePath;}};this.clear=function(){if(!d){return;}try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h);}}}catch(j){}};function c(e){for(var f=0;f<e.length;f++){document.write("<script defer type=\"sifr/prefetch\" src=\""+e[f].src+"\"></script>");}};};function K(c,f,e,b,d){this.sIFR=c;this.id=f;this.vars=e;this.movie=null;this.__forceWidth=b;this.__events=d;this.__resizing=0;};K.prototype={getFlashElement:function(){return document.getElementById(this.id);},getAlternate:function(){return document.getElementById(this.id+"_alternate");},getAncestor:function(){var b=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,b)?b:b.parentNode;},available:function(){var b=this.getFlashElement();return b&&b.parentNode;},call:function(b){if(!this.available()){return false;}var c=this.getFlashElement();try{c[b].apply(c,Array.prototype.slice.call(arguments,1));}catch(d){return false;}return true;},updateVars:function(b,d){for(var c=0;c<this.vars.length;c++){if(this.vars[c].split("=")[0]==b){this.vars[c]=b+"="+d;break;}}var e=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),e);this.movie.injectVars(this.movie.html,e);},storeSize:function(b,c){this.movie.setSize(b,c);this.updateVars(b,c);},fireEvent:function(b){if(this.available()&&this.__events[b]){this.sIFR.util.delay(0,this.__events[b],this,this);}},resizeFlashElement:function(b,c,d){if(!this.available()){return;}this.__resizing++;var e=this.getFlashElement();e.setAttribute("height",b);this.updateVars("renderheight",b);this.storeSize("height",b);if(c!==null){e.setAttribute("width",c);this.storeSize("width",c);}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement;}if(d){this.sIFR.util.delay(0,function(){this.call("scaleMovie");this.__resizing--;},this);}else{this.__resizing--;}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement());}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate());},resizeAfterScale:function(c,d){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this);}},resize:function(){if(!this.available()){return;}this.__resizing++;var f=this.getFlashElement();var e=f.offsetWidth;if(e==0){return;}var d=f.getAttribute("width");var j=f.getAttribute("height");var k=this.getAncestor();var m=this.sIFR.dom.getHeightFromStyle(k);f.style.width="1px";f.style.height="1px";k.style.minHeight=m+"px";var b=this.getAlternate().childNodes;var l=[];for(var h=0;h<b.length;h++){var g=b[h].cloneNode(true);l.push(g);k.appendChild(g);}var c=this.sIFR.dom.getWidthFromStyle(k);for(var h=0;h<l.length;h++){k.removeChild(l[h]);}f.style.width=f.style.height=k.style.minHeight="";f.setAttribute("width",this.__forceWidth?c:d);f.setAttribute("height",j);if(c!=e){if(this.__forceWidth){this.storeSize("width",c);}this.call("resize",c);}this.__resizing--;},replaceText:function(f,h){var c=this.sIFR.util.escape(f);if(!this.call("replaceText",c)){return false;}this.updateVars("content",c);var d=this.getAlternate();if(h){while(d.firstChild){d.removeChild(d.firstChild);}for(var b=0;b<h.length;b++){d.appendChild(h[b]);}}else{try{d.innerHTML=f;}catch(g){}}return true;},changeCSS:function(b){b=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(b)));this.updateVars("css",b);return this.call("changeCSS",b);}};var X=new function(){this.create=function(n,i,h,e,d,f,m,k,g,l){var j=n.ua.ie?c:b;return new j(n,i,h,e,d,f,m,["flashvars",k,"wmode",g,"bgcolor",l,"allowScriptAccess","always","quality","best"]);};function b(q,k,g,e,d,f,p,m){var l=q.dom.create("object",E.FLASH);var o=["type","application/x-shockwave-flash","id",e,"name",e,"data",d,"width",f,"height",p];for(var n=0;n<o.length;n+=2){l.setAttribute(o[n],o[n+1]);}var h=l;if(g){h=W.create("div",E.FIX_FOCUS);h.appendChild(l);}for(var n=0;n<m.length;n+=2){if(m[n]=="name"){continue;}var j=W.create("param");j.setAttribute("name",m[n]);j.setAttribute("value",m[n+1]);l.appendChild(j);}while(k.firstChild){k.removeChild(k.firstChild);}k.appendChild(h);this.html=h.cloneNode(true);};b.prototype={reset:function(d,e){d.parentNode.replaceChild(this.html.cloneNode(true),d);},setSize:function(d,e){this.html.setAttribute(d,e);},injectVars:function(d,f){var g=d.getElementsByTagName("param");for(var e=0;e<g.length;e++){if(g[e].getAttribute("name")=="flashvars"){g[e].setAttribute("value",f);break;}}}};function c(n,h,g,e,d,f,m,j){this.dom=n.dom;this.html="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\""+e+"\" width=\""+f+"\" height=\""+m+"\" class=\""+E.FLASH+"\"><param name=\"movie\" value=\""+d+"\"></param></object>";var l="";for(var k=0;k<j.length;k+=2){l+="<param name=\""+j[k]+"\" value=\""+j[k+1]+"\"></param>";}this.html=this.html.replace(/(<\/object>)/,l+"$1");h.innerHTML=this.html;};c.prototype={reset:function(e,f){var d=e.parentNode;d.innerHTML=this.html;d.appendChild(f);},setSize:function(d,e){this.html=this.html.replace(d=="height"?/(height)="\d+"/:/(width)="\d+"/,"$1=\""+e+"\"");},injectVars:function(d,e){if(d!=this.html){return;}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+e);}};};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new T(O);var U=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O)};var J={kwargs:[],replaceAll:function(c){for(var b=0;b<this.kwargs.length;b++){O.replace(this.kwargs[b]);}if(!c){this.kwargs=[];}}};this.activate=function(){if(!U.supported||!this.isEnabled||this.isActive||!C()||a()){return;}if(U.requiresPrefetch){G.prefetch.fetchMovies(arguments);}this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();if(!this.autoInitialize){return;}G.pageLoad.attach();if(U.ie){window.attachEvent("onunload",function(){W.addClass(E.UNLOADING,document.documentElement);});}};this.setFlashClass=function(){if(this.hasFlashClassSet){return;}W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true;};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return;}W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false;};this.initialize=function(b){if(!this.isActive||!this.isEnabled){return;}if(R){if(!b){J.replaceAll(false);}return;}R=true;J.replaceAll(b);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false);}else{window.attachEvent("onresize",Z);}}G.prefetch.clear();};this.replace=function(v,s){if(!U.supported){return;}if(s){v=A.copyProperties(v,s);}if(!R){return J.kwargs.push(v);}if(this.onReplacementStart){this.onReplacementStart(v);}var AK=v.elements||W.querySelectorAll(v.selector);if(AK.length==0){return;}var u=M(v.src);var AP=A.convertCssArg(v.css);var t=B(v.filters);var AL=v.forceSingleLine===true;var AQ=v.preventWrap===true&&!AL;var o=AL||(v.fitExactly==null?this.fitExactly:v.fitExactly)===true;var AB=o||(v.forceWidth==null?this.forceWidth:v.forceWidth)===true;var q=v.ratios||[];var AC=v.pixelFont===true;var p=parseInt(v.tuneHeight)||0;var x=!!v.onRelease||!!v.onRollOver||!!v.onRollOut;if(o){A.extractFromCss(AP,".sIFR-root","text-align",true);}var r=A.extractFromCss(AP,".sIFR-root","font-size",true)||"0";var d=A.extractFromCss(AP,".sIFR-root","background-color",true)||"#FFFFFF";var m=A.extractFromCss(AP,".sIFR-root","kerning",true)||"";var AU=A.extractFromCss(AP,".sIFR-root","opacity",true)||"100";var h=A.extractFromCss(AP,".sIFR-root","cursor",true)||"default";var AN=parseInt(A.extractFromCss(AP,".sIFR-root","leading"))||0;var AH=v.gridFitType||(A.extractFromCss(AP,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var g=this.forceTextTransform===false?"none":A.extractFromCss(AP,".sIFR-root","text-transform",true)||"none";r=/^\d+(px)?$/.test(r)?parseInt(r):0;AU=parseFloat(AU)<1?100*parseFloat(AU):AU;var AA=v.modifyCss?"":A.cssToString(AP);var AE=v.wmode||"";if(!AE){if(v.transparent){AE="transparent";}else{if(v.opaque){AE="opaque";}}}if(AE=="transparent"){if(!U.transparencySupport){AE="opaque";}else{d="transparent";}}for(var AT=0;AT<AK.length;AT++){var AD=AK[AT];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AD)||W.ancestorHasClass(AD,E.ALTERNATE)){continue;}var AM=W.getDimensions(AD);var e=AM.height;var b=AM.width;var y=W.getComputedStyle(AD,"display");if(!e||!b||!y||y=="none"){continue;}b=W.getWidthFromStyle(AD);var k,AF;if(!r){var AJ=I(AD);k=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AJ.fontSize));if(AC){k=Math.max(8,8*Math.round(k/8));}AF=AJ.lines;if(isNaN(AF)||!isFinite(AF)||AF==0){AF=1;}if(AF>1&&AN){e+=Math.round((AF-1)*AN);}}else{k=r;AF=1;}var c=W.create("span",E.ALTERNATE);var AV=AD.cloneNode(true);AD.parentNode.appendChild(AV);for(var AS=0,AR=AV.childNodes.length;AS<AR;AS++){c.appendChild(AV.childNodes[AS].cloneNode(true));}if(v.modifyContent){v.modifyContent(AV,v.selector);}if(v.modifyCss){AA=v.modifyCss(AP,AV,v.selector);}var n=P(AV,g,v.uriEncode);AV.parentNode.removeChild(AV);if(v.modifyContentString){n.text=v.modifyContentString(n.text,v.selector);}if(n.text==""){continue;}e=Math.round(AF*k);var AI=Math.round(AF*V(k,q)*k)+this.FLASH_PADDING_BOTTOM+p;var z=AB?b:"100%";var AG="sIFR_replacement_"+L++;var AO=["id="+AG,"content="+A.escape(n.text),"width="+b,"height="+e,"renderheight="+AI,"link="+A.escape(n.primaryLink.href||""),"target="+A.escape(n.primaryLink.target||""),"size="+k,"css="+A.escape(AA),"cursor="+h,"tunewidth="+(v.tuneWidth||0),"tuneheight="+p,"offsetleft="+(v.offsetLeft||""),"offsettop="+(v.offsetTop||""),"fitexactly="+o,"preventwrap="+AQ,"forcesingleline="+AL,"antialiastype="+(v.antiAliasType||""),"thickness="+(v.thickness||""),"sharpness="+(v.sharpness||""),"kerning="+m,"gridfittype="+AH,"flashfilters="+t,"opacity="+AU,"blendmode="+(v.blendMode||""),"selectable="+(v.selectable==null?"true":v.selectable===true),"fixhover="+(this.fixHover===true),"events="+x,"version="+this.VERSION];var w=A.encodeVars(AO);var f=new K(O,AG,AO,AB,{onReplacement:v.onReplacement,onRollOver:v.onRollOver,onRollOut:v.onRollOut,onRelease:v.onRelease});f.movie=X.create(bma.sifr.sIFR,AD,U.fixFocus&&v.fixFocus,AG,u,z,AI,w,AE,d);this.replacements.push(f);this.replacements[AG]=f;if(v.selector){if(!this.replacements[v.selector]){this.replacements[v.selector]=[f];}else{this.replacements[v.selector].push(f);}}c.setAttribute("id",AG+"_alternate");AD.appendChild(c);W.addClass(E.REPLACED,AD);}G.fragmentIdentifier.restore();};this.getReplacementByFlashElement=function(c){for(var b=0;b<O.replacements.length;b++){if(O.replacements[b].id==c.getAttribute("id")){return O.replacements[b];}}};this.redraw=function(){for(var b=0;b<O.replacements.length;b++){O.replacements[b].resetMovie();}};function C(){if(O.domains.length==0){return true;}var c=A.domain();for(var b=0;b<O.domains.length;b++){if(A.domainMatches(c,O.domains[b])){return true;}}return false;};function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile");}return true;}return false;};function M(b){if(U.ie&&b.charAt(0)=="/"){b=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+b;}return b;};function V(c,d){for(var b=0;b<d.length;b+=2){if(c<=d[b]){return d[b+1];}}return d[d.length-1]||1;};function B(f){var d=[];for(var c in f){if(f[c]==Object.prototype[c]){continue;}var b=f[c];c=[c.replace(/filter/i,"")+"Filter"];for(var e in b){if(b[e]==Object.prototype[e]){continue;}c.push(e+":"+A.escape("\""+A.toHexString(b[e])+"\""));}d.push(c.join(","));}return A.escape(d.join(";"));};function Z(c){var d=Z.viewport;var b=W.getViewport();if(d&&b.width==d.width&&b.height==d.height){return;}Z.viewport=b;if(Z.timer){clearTimeout(Z.timer);}Z.timer=setTimeout(function(){delete Z.timer;for(var e=0;e<O.replacements.length;e++){O.replacements[e].resize();}},200);};function I(f){var g,c;if(!U.ie){g=W.getStyleAsInt(f,"lineHeight");c=Math.floor(W.getStyleAsInt(f,"height")/g);}else{if(U.ie){var g=W.getComputedStyle(f,"fontSize");if(g.indexOf("px")>0){g=parseInt(g);}else{var e=f.innerHTML;f.style.visibility="visible";f.style.overflow="visible";f.style.position="static";f.style.zoom="normal";f.style.writingMode="lr-tb";f.style.width=f.style.height="auto";f.style.maxWidth=f.style.maxHeight=f.style.styleFloat="none";var h=f;var b=f.currentStyle.hasLayout;if(b){f.innerHTML="<div class=\""+E.LAYOUT+"\">X<br>X<br>X</div>";h=f.firstChild;}else{f.innerHTML="X<br>X<br>X";}var d=h.getClientRects();g=d[1].bottom-d[1].top;g=Math.ceil(g*0.8);if(b){f.innerHTML="<div class=\""+E.LAYOUT+"\">"+e+"</div>";h=f.firstChild;}else{f.innerHTML=e;}d=h.getClientRects();c=d.length;if(b){f.innerHTML=e;}f.style.visibility=f.style.width=f.style.height=f.style.maxWidth=f.style.maxHeight=f.style.overflow=f.style.styleFloat=f.style.position=f.style.zoom=f.style.writingMode="";}}}return {fontSize:g,lines:c};};function P(b,f,p){p=p||A.uriEncode;var n=[],l=[];var j=null;var d=b.childNodes;var h=0;while(h<d.length){var e=d[h];if(e.nodeType==3){l.push(A.textTransform(f,A.normalize(e.nodeValue)).replace(/</g,"&lt;"));}if(e.nodeType==1){var g=[];var o=e.nodeName.toLowerCase();var m=e.className||"";if(/\s+/.test(m)){if(m.indexOf(E.CLASS)>-1){m=m.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2];}else{m=m.match(/^([^\s]+)/)[1];}}if(m!=""){g.push("class=\""+m+"\"");}if(o=="a"){var c=p(e.getAttribute("href")||"");var k=e.getAttribute("target")||"";g.push("href=\""+c+"\"","target=\""+k+"\"");if(!j){j={href:c,target:k};}}l.push("<"+o+(g.length>0?" ":"")+g.join(" ")+">");if(e.hasChildNodes()){n.push(h);h=0;d=e.childNodes;continue;}else{if(!/^(br|img)$/i.test(e.nodeName)){l.push("</",e.nodeName.toLowerCase(),">");}}}if(n.length>0&&!e.nextSibling){do{h=n.pop();d=e.parentNode.parentNode.childNodes;e=d[h];if(e){l.push("</",e.nodeName.toLowerCase(),">");}}while(h==d.length-1&&n.length>0);}h++;}return {text:l.join("").replace(/^\s+|\s+$|\s+(<br>)\s+/g,"$1"),primaryLink:j||{}};};};bma.sifr.parseSelector=(function(){var B=/\s*,\s*/;var A=/\s*([\s>+~(),]|^|$)\s*/g;var K=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var E=/^[^\s>+~]/;var J=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function G(P,N){N=N||document.documentElement;var Q=P.split(B),V=[];for(var S=0;S<Q.length;S++){var L=[N],U=F(Q[S]);for(var R=0;R<U.length;){var O=U[R++],M=U[R++],T="";if(U[R]=="("){while(U[R++]!=")"&&R<U.length){T+=U[R];}T=T.slice(0,-1);}L=H(L,O,M,T);}V=V.concat(L);}return V;};function F(L){var M=L.replace(A,"$1").replace(K,"$1*$2");if(E.test(M)){M=" "+M;}return M.match(J)||[];};function H(L,N,O,M){return (G.selectors[N])?G.selectors[N](L,O,M):[];};var D={toArray:function(M){var L=[];for(var N=0;N<M.length;N++){L.push(M[N]);}return L;}};var C={isTag:function(M,L){return (L=="*")||(L.toLowerCase()==M.nodeName.toLowerCase());},previousSiblingElement:function(L){do{L=L.previousSibling;}while(L&&L.nodeType!=1);return L;},nextSiblingElement:function(L){do{L=L.nextSibling;}while(L&&L.nodeType!=1);return L;},hasClass:function(L,M){return (M.className||"").match("(^|\\s)"+L+"(\\s|$)");},getByTag:function(L,M){return M.getElementsByTagName(L);}};var I={"#":function(L,N){for(var M=0;M<L.length;M++){if(L[M].getAttribute("id")==N){return [L[M]];}}return [];}," ":function(M,O){var L=[];for(var N=0;N<M.length;N++){L=L.concat(D.toArray(C.getByTag(O,M[N])));}return L;},">":function(M,P){var L=[];for(var O=0,Q;O<M.length;O++){Q=M[O];for(var N=0,R;N<Q.childNodes.length;N++){R=Q.childNodes[N];if(R.nodeType==1&&C.isTag(R,P)){L.push(R);}}}return L;},".":function(M,O){var L=[];for(var N=0,P;N<M.length;N++){P=M[N];if(C.hasClass([O],P)){L.push(P);}}return L;},":":function(L,N,M){return (G.pseudoClasses[N])?G.pseudoClasses[N](L,M):[];}};G.selectors=I;G.pseudoClasses={};G.util=D;G.dom=C;return G;})();}if(!dojo._hasResource["bma.sifr.config"]){dojo._hasResource["bma.sifr.config"]=true;dojo.provide("bma.sifr.config");bma.sifr.config.helneu={};bma.sifr.config.helneu.src=dojo.moduleUrl("ag","sifr/helveticaneuelt_v3.swf").toString();bma.sifr.sIFR.activate(bma.sifr.config.helneu);bma.sifr.config.go=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"h2.foo",css:{".sIFR-root":{"font-size":"48px","color":"#ff00ff"}},wmode:"transparent"});};bma.sifr.config.banner=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-category-banner h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ffffff","text-transform":"lowercase"}}});};bma.sifr.config.bannerl3=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-category-banner h2",wmode:"transparent",css:{".sIFR-root":{"color":"#ffffff","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitle=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#000000","text-align":"center","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitlety=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitlety h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitlel=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitlel h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitleleft=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitleleft h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitleleftsm=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitleleftsm h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.ecardtitleleftsm2=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-ecardtitleleftsm2 h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.othertitlety=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-othertitlety h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.printabletitle=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-printabletitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-align":"center","text-transform":"lowercase"}}});};bma.sifr.config.invitetitle=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-invitetitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-align":"center","text-transform":"lowercase"}}});};bma.sifr.config.invitetitleleft=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-invitetitleleft h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.invitetitlefl=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-invitetitlefl h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.invitetitlefls=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-invitetitlefls h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-transform":"lowercase"}}});};bma.sifr.config.dltitle=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-dltitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#9d0017","text-align":"center","text-transform":"lowercase"}}});};bma.sifr.config.thumbsvlist=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-thumbs-vlist h2",wmode:"transparent",css:{".sIFR-root":{"color":"#b0ad89"}}});};bma.sifr.config.featuredcontent=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-featuredcontent h2",wmode:"transparent",css:{".sIFR-root":{"color":"#c73e30","text-transform":"lowercase"}}});};bma.sifr.config.printable=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-printable h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.printableproj=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-printableproj h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.myinvmain=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-myinvmain h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.instructions=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-instructions h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.rcolumn=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-rcolumn h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.lcolumn=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-lcolumn h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase"}}});};bma.sifr.config.headtitle=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#98936c","text-align":"left","text-transform":"lowercase"}}});};bma.sifr.config.seohallow=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-seohallow #bma-seohead #headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#e55800","text-align":"left","text-transform":"lowercase"}}});};bma.sifr.config.seobday=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-seobday #bma-seohead #headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#e92e37","text-align":"left","text-transform":"lowercase"}}});};bma.sifr.config.seodisney=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-seodisney #bma-seohead #headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#333399","text-align":"center","text-transform":"lowercase"}}});};bma.sifr.config.seothanks=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-seothanks #bma-seohead #headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#CC6633","text-align":"left","text-transform":"lowercase"}}});};bma.sifr.config.seosweet=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-seosweet #bma-seohead #headtitle h1",wmode:"transparent",css:{".sIFR-root":{"color":"#CC3366","text-align":"left","text-transform":"lowercase"}}});};bma.sifr.config.momcount=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momcount h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-align":"right","text-transform":"lowercase","font-size":"24px"}}});};bma.sifr.config.bmaerrors=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-errors h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-align":"left","text-transform":"lowercase","font-size":"24px"}}});};bma.sifr.config.mdtoc=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdtoc h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-align":"left","text-transform":"lowercase","font-size":"24px"}}});};bma.sifr.config.mdtoc2=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdtoc h2",wmode:"transparent",css:{".sIFR-root":{"color":"#333333","text-transform":"lowercase","font-size":"20px"}}});};bma.sifr.config.mompage=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:".momforward h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase","font-size":"20px","text-align":"right"}}});};bma.sifr.config.mompage2=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momview #bma-content #momtexttop h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase"}}});};bma.sifr.config.mompage3=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momview #bma-content .momtext h2",wmode:"transparent",css:{".sIFR-root":{"color":"#aeab8d","text-transform":"lowercase","font-size":"24px"}}});};bma.sifr.config.choosemomcard=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdchoose h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase"}}});};bma.sifr.config.choosemomcard2=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdchoose h2",wmode:"transparent",css:{".sIFR-root":{"color":"#484848","text-transform":"lowercase"}}});};bma.sifr.config.choosemomcard3=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdchoose .momintrot h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase"}}});};bma.sifr.config.mompopup=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#bma-flashAlbum-popUp h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase"}}});};bma.sifr.config.mompageview=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momviewpd .momreport h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase","text-align":"right"}}});};bma.sifr.config.mompageview2=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momviewpd .momforward h1",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase","text-align":"right"}}});};bma.sifr.config.mompageview3=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#momviewpd .momviewtrib h2",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase","text-align":"center"}}});};bma.sifr.config.momstep1=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:"#mdcustom2 h2",wmode:"transparent",css:{".sIFR-root":{"color":"#808080","text-transform":"lowercase","text-align":"left"}}});};bma.sifr.config.mompreview=function(){bma.sifr.sIFR.replace(bma.sifr.config.helneu,{selector:".bma-face-tribmsg",wmode:"transparent",css:{".sIFR-root":{"color":"#ee353d","text-transform":"lowercase","text-align":"left"}}});};}if(!dojo._hasResource["bma.sifr"]){dojo._hasResource["bma.sifr"]=true;dojo.provide("bma.sifr");}if(!dojo._hasResource["dojox.encoding.base64"]){dojo._hasResource["dojox.encoding.base64"]=true;dojo.provide("dojox.encoding.base64");(function(){var p="=";var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var dxe=dojox.encoding;dxe.base64.encode=function(ba){var s=[],l=ba.length;var rm=l%3;var x=l-rm;for(var i=0;i<x;){var t=ba[i++]<<16|ba[i++]<<8|ba[i++];s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(tab.charAt(t&63));}switch(rm){case 2:var t=ba[i++]<<16|ba[i++]<<8;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(p);break;case 1:var t=ba[i++]<<16;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(p);s.push(p);break;}return s.join("");};dxe.base64.decode=function(str){var s=str.split(""),out=[];var l=s.length;while(s[--l]==p){}for(var i=0;i<l;){var t=tab.indexOf(s[i++])<<18;if(i<=l){t|=tab.indexOf(s[i++])<<12;}if(i<=l){t|=tab.indexOf(s[i++])<<6;}if(i<=l){t|=tab.indexOf(s[i++]);}out.push((t>>>16)&255);out.push((t>>>8)&255);out.push(t&255);}while(out[out.length-1]==0){out.pop();}return out;};})();}if(!dojo._hasResource["agi.base64"]){dojo._hasResource["agi.base64"]=true;dojo.provide("agi.base64");agi.base64={encode:function(str){if(!str){return "";}return dojox.encoding.base64.encode(this.string_to_bytes(str));},decode:function(str){if(!str){return "";}return this.bytes_to_str(dojox.encoding.base64.decode(str));},string_to_bytes:function(str){var _30c=[];for(var i=0;i<str.length;i++){_30c.push(str.charCodeAt(i));}return _30c;},bytes_to_str:function(_30d){var str="";dojo.forEach(_30d,function(item){str+=String.fromCharCode(item);});return str;}};}if(!dojo._hasResource["agi.cookie.NVP"]){dojo._hasResource["agi.cookie.NVP"]=true;dojo.provide("agi.cookie.NVP");agi.cookie.NVP.getValue=function(data,name,sep,term){var spos,epos;spos=data.indexOf(term+name+sep);if(-1==spos){spos=data.indexOf(name+sep);if(-1==spos){return null;}spos+=name.length+sep.length;}else{spos+=term.length+name.length+sep.length;}epos=data.indexOf(term,spos);if(-1==epos){epos=data.length;}return data.substring(spos,epos);};agi.cookie.NVP.toMap=function(s,_30e,sep){var map=[];var _30f=s.toString().split(_30e);for(var i=0;i<_30f.length;i++){var pair=_30f[i];if(pair){var data=pair.split(sep);map[unescape(data[0])]=unescape(data[1]);}}return map;};agi.cookie.NVP.fromMap=function(map,_310,sep){var s="";for(var name in map){if(typeof map[name]=="null"){continue;}else{if(typeof map[name]=="function"){continue;}else{s+=escape(name)+sep+escape(map[name])+_310;}}}if(s){s=s.substr(0,s.length-1);}return s;};}if(!dojo._hasResource["agi.cookie.AGICookie"]){dojo._hasResource["agi.cookie.AGICookie"]=true;dojo.provide("agi.cookie.AGICookie");agi.cookie.AGICookie.toString=function(){return "AGICookie";};agi.cookie.AGICookie.SUBHOSTS=[[/\.yahoo\./,"_yh"],[/\.msn\./,"_msn"],[/\.aol\.|^aol\./,"_aol"],[/\.target\./,"_tg"]];agi.cookie.AGICookie.SUBPATHS=[[/\/birthday-calendar/,"_bcal"]];agi.cookie.AGICookie.getCookieDomain=function(){var _311=window.location.hostname.split(".");var idx=_311.length-2;var tld=_311.slice(-1);if(tld!="com"&&tld!="net"&&tld!="org"){idx=_311.length-3;}_311=_311.slice(idx);return "."+_311.join(".");};agi.cookie.AGICookie.getCookieName=function(name){var _312=window.location.hostname.split(".");var _313=name;var hn="";if(_312.length<3){hn="www";}else{hn=_312[0];}dojo.forEach(agi.cookie.AGICookie.SUBHOSTS,function(pair){if(pair[0].test(window.location.hostname)){name+=pair[1];}});dojo.forEach(agi.cookie.AGICookie.SUBPATHS,function(pair){if(pair[0].test(window.location.pathname)){name+=pair[1];}});dojo.forEach(["dev","vanilla","work","stage"],function(pfx){if(hn.startswith(pfx)){name+="_"+pfx;}});return escape(name);};agi.cookie.AGICookie.getCookieValueRaw=function(name,_314){var c=agi.cookie.AGICookie.getCookie(name);if(typeof c=="null"){return null;}var v=agi.cookie.NVP.getValue(agi.base64.decode(c),_314,"=","&");if(v){return unescape(v);}return v;};agi.cookie.AGICookie.getCookie=function(name){var c=agi.cookie.NVP.getValue(dojo.doc.cookie,agi.cookie.AGICookie.getCookieName(name),"=",";");if(!c){return c;}c=unescape(c);while(c.indexOf("%0A")>-1||c.indexOf("%0a")>-1){c=c.replace(/\%0[aA]/,"");}c=unescape(c);return c;};agi.cookie.AGICookie.setCookie=function(name,_315,_316,perm){name=agi.cookie.AGICookie.getCookieName(name);var cki=name+"="+escape(_315)+";";if(perm){_316="Thursday, 31-Dec-2037 00:01:00 GMT";}if(_316){cki=cki+"expires="+_316+";";}cki=cki+"path=/;domain="+agi.cookie.AGICookie.getCookieDomain();dojo.doc.cookie=cki;};agi.cookie.AGICookie.expireCookie=function(name){agi.cookie.AGICookie.setCookie(name,"","Friday, 01-Jan-99 00:00:00 GMT");};agi.cookie.AGICookie.getCookieValue=function(name,_317){var v=agi.cookie.AGICookie.getCookieValueRaw(name,_317);if(!v&&name=="customer"&&_317=="name"){v=agi.cookie.AGICookie.getCookieValueRaw(name,"email");}if(!v&&name=="customer"&&_317=="name"){v="member";}return v;};agi.cookie.AGICookie.setCookieValue=function(name,_318,_319,_31a,perm){var map=null;var c=agi.cookie.AGICookie.getCookie(name);if(c){map=agi.cookie.NVP.toMap(agi.base64.decode(c),"&","=");}else{map=[];}map[_318]=_319;agi.cookie.AGICookie.setCookie(name,agi.base64.encode(agi.cookie.NVP.fromMap(map,"&","=")),_31a,perm);};}if(!dojo._hasResource["agi.cookie.MagicCookie"]){dojo._hasResource["agi.cookie.MagicCookie"]=true;dojo.provide("agi.cookie.MagicCookie");agi.cookie.MagicCookie.setCookieValue=function(_31b,_31c,perm){var name=perm?"mc_p":"mc_s";return agi.cookie.AGICookie.setCookieValue(name,_31b,_31c,null,perm);};agi.cookie.MagicCookie.getCookieValue=function(_31d){var _31e=agi.cookie.AGICookie.getCookieValue("mc_s",_31d);if(!_31e){_31e=agi.cookie.AGICookie.getCookieValue("mc_p",_31d);}return _31e;};agi.cookie.MagicCookie.delCookieValue=function(_31f,perm){return agi.cookie.MagicCookie.setCookieValue(_31f,null,perm);};}if(!dojo._hasResource["agi.cookie._base"]){dojo._hasResource["agi.cookie._base"]=true;dojo.provide("agi.cookie._base");agi.cookie.toString=function(){return "AGICookie";};agi.cookie.getMemNum=function(){return agi.cookie.AGICookie.getCookieValue("customer","memnum");};agi.cookie.getMemName=function(){return agi.cookie.AGICookie.getCookieValue("customer","name");};agi.cookie.getCustomerEmail=function(){return agi.cookie.AGICookie.getCookieValue("customer","email");};agi.cookie.getCustomerAge=function(){try{var v=agi.cookie.AGICookie.getCookieValue("customer","age");if(!v){v="";}age=parseInt(v);if(age<18){v="";}else{if(age>65){v="65";}}return v;}catch(er){return "";}};agi.cookie.getCustomerGender=function(){try{var v=agi.cookie.AGICookie.getCookieValue("customer","gender");if(!v){v="";}return v.toLowerCase();}catch(er){return "";}};}if(!dojo._hasResource["agi.cookie"]){dojo._hasResource["agi.cookie"]=true;dojo.provide("agi.cookie");}if(!dojo._hasResource["agi.dom.window"]){dojo._hasResource["agi.dom.window"]=true;dojo.provide("agi.dom.window");agi.dom.window._scrollInterval=null;agi.dom.window.scroll_into_view=function(_320){try{clearInterval(agi.dom.window._scrollInterval);}catch(e){}var _321=dojo.byId(_320);var _322=dojo.coords(_321,true);var top=_322.y;var _323=_322.y+_322.h;var _324=dijit.getViewport();var _325=_324.t;var _326=_324.l;var _327=Math.floor((agi.dom.window.getSize().height-_321.clientHeight)/2);var _328=agi.dom.window.getLightboxTop();if(_325<top&&_323<agi.dom.window.getSize().height){return;}if((_323-_328)<agi.dom.window.getSize().height){agi.dom.window.scrollTo(_328);}else{if(_327>0){agi.dom.window.scrollTo(top-_327);}else{if(_325>top){agi.dom.window.scrollTo(top);}}}};agi.dom.window.scrollTo=function(y){if(y>agi.dom.window.getMaxScroll()){y=agi.dom.window.getMaxScroll();}step=Math.abs(dijit.getViewport().t-y)/25;agi.dom.window._scrollInterval=setInterval("agi.dom.window.smoothScroll("+step+","+y+")",5);};agi.dom.window.smoothScroll=function(step,_329){var _32a=dijit.getViewport().t;var _32b;if(_32a>_329){_32b=Math.max(_32a-step,_329);}else{_32b=Math.min(_32a+step,_329);}window.scroll(0,_32b);if(_32b==_329){clearInterval(agi.dom.window._scrollInterval);}};agi.dom.window.getSize=function(){var size={};size.width=0;size.height=0;if(typeof (window.innerWidth)=="number"){size.width=window.innerWidth;size.height=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){size.width=document.documentElement.clientWidth;size.height=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){size.width=document.body.clientWidth;size.height=document.body.clientHeight;}}}return size;};agi.dom.window.getScrollOffset=function(){var _32c={};_32c.pageYOffset=dijit.getViewport().t;_32c.pageXOffset=dijit.getViewport().l;return _32c;};agi.dom.window.getElementScrollOffset=function(_32d){var elem=dojo.byId(_32d);var _32e={};if(typeof (elem.pageYOffset)=="number"){_32e.pageYOffset=elem.pageYOffset;_32e.pageXOffset=elem.pageXOffset;}else{_32e.pageYOffset=elem.scrollTop;_32e.pageXOffset=elem.scrollLeft;}return _32e;};agi.dom.window.getMaxScroll=function(){var _32f=document.body.clientHeight;if(typeof (window.innerHeight)=="number"){var _330=window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){var _330=document.documentElement.clientHeight;}}if(_32f>_330){return _32f-_330;}else{return 0;}};agi.dom.window.getLightboxTop=function(){try{var tmp=dojo.byId("lightbox");var top=0;if(tmp.style.display=="none"){return 0;}while(tmp.offsetParent&&tmp.tagName.toUpperCase()!="BODY"){top+=tmp.offsetTop;tmp=tmp.offsetParent;}top+=tmp.offsetTop;if(top>10){return top-10;}else{return top;}}catch(e){return 0;}};agi.dom.window.getStyle=function(el,_331){return dojo.style(el,_331);};}if(!dojo._hasResource["agi.validation"]){dojo._hasResource["agi.validation"]=true;dojo.provide("agi.validation");agi.validation.PASS=true;agi.validation.FAIL=false;agi.validation.EMAIL_FAIL="EMAIL_FAIL";agi.validation.IS_EMPTY="IS_EMPTY";agi.validation.TOO_LONG="TOO_LONG";agi.validation.ONE_EMAIL="ONE_EMAIL";agi.validation.defaultErrorMessages=[];agi.validation.defaultErrorMessages[agi.validation.EMAIL_FAIL]=" is not a valid email address.";agi.validation.defaultErrorMessages[agi.validation.TOO_LONG]=" is too long to fit in our database; please choose an alternative email address.";agi.validation.defaultErrorMessages[agi.validation.IS_EMPTY]="Please specify at least one recipient's email for your card.";agi.validation.defaultErrorMessages[agi.validation.ONE_EMAIL]="Please enter one email address at a time.";agi.validation.isEmpty=function(val){if(agi.validation.trim(val)==""){return true;}return false;};agi.validation.ltrim=function(val){return val.replace(/^\s*/g,"");};agi.validation.rtrim=function(val){return val.replace(/\s*$/g,"");};agi.validation.trim=function(val){return val.replace(/^\s*|\s*$/g,"");};agi.validation.write_message=function(_332,_333,_334){var _335=dojo.byId(_332);var _336=_335.className;if(_333){if(_334){_335.setAttribute("class",_334);_335.setAttribute("className",_334);}_335.style.display="block";_335.innerHTML=_333;agi.dom.window.scroll_into_view(_332);}else{_335.style.display="none";}};agi.validation.reformat_emails=function(_337,_338){var _339="";for(var i=0;i<_337.length;i++){if(!agi.validation.isEmpty(_337[i])){_339+=agi.validation.trim(_337[i]);if(i<_337.length-1){_339+=", ";}}}if(_338){_338.value=_339;}return _339;};agi.validation.validate_email=function(_33a,_33b,_33c){var _33d=agi.validation.trim(_33a);var _33e;var _33f;var _340=[];var _341;if(!_33b){_33b=75;}if(!_33c){_33c;}if(_33d==""&&!_33c){throw (agi.validation.IS_EMPTY);}else{if(_33d==""){return;}}if(_33d.length>_33b){throw (agi.validation.TOO_LONG);}if(_33d.match(/.*@$|.*@.*@.|^@.*|^[^@]*$/)){throw (agi.validation.EMAIL_FAIL);}_33e=_33d.split("@")[0];_33f=_33d.split("@")[1];if(_33e==""||_33f==""){throw (agi.validation.EMAIL_FAIL);}if(_33e.match(/.*[*()<>;:,\[\]\\'" ].*/)){throw (agi.validation.EMAIL_FAIL);}if(_33f.indexOf("..")!=-1){throw (agi.validation.EMAIL_FAIL);}_340=_33f.split(".");_341=_340.length;if(_341==1){throw (agi.validation.EMAIL_FAIL);}if(_340[_341-1].length<2||_340[_341-1].length>6){throw (agi.validation.EMAIL_FAIL);}return agi.validation.PASS;};agi.validation.validate_emails=function(_342,_343,_344){var _345=true;var _346=_342.value.replace(/;/g,",");var _347={"error_message":"","error_codes":[],"pass_validation":agi.validation.FAIL,"emails":""};if(!_343){_343=true;}if(!_344){_344=agi.validation.defaultErrorMessages;}if(_343){_346=_346.replace(/\n/g,", ");_346=_346.replace(/\r/g,", ");}if(agi.validation.isEmpty(_346)||agi.validation.isEmpty(_346.replace(/,/g,""))){_345=agi.validation.FAIL;_347.error_message+="<p>"+_344[agi.validation.IS_EMPTY]+"</p>";}_346=_346.split(",");for(i=0;i<_346.length;i++){try{agi.validation.validate_email(_346[i],"",true);}catch(e_code){_347.error_message+="<p>"+_346[i]+" "+_344[e_code]+"</p>";_345=agi.validation.FAIL;_347.error_codes[_347.error_codes.length]=e_code+"|"+_346[i];}}if(_343){agi.validation.reformat_emails(_346,_342);}_347.emails=_346;_347.pass_validation=_345;return _347;};agi.validation.validate_checkboxes=function(_348){var _349=document.getElementsByName(_348);var _34a=false;for(var i=0;i<_349.length;i++){if(_349[i].checked){_34a=true;break;}}if(!_34a){return agi.validation.FAIL;}return agi.validation.PASS;};agi.validation.Error=function(_34b,_34c,type){var _34d=this;this.message=_34c;this.field=_34b;this.type=type;};agi.validation.Errors=function(_34e){var _34f=this;this.errors=[];this.display_div=dojo.byId(_34e);this.error_html="<p>%s</p>";this.error_color="#FF0000";this.ERROR="agi-message-area agi-error";this.MESSAGE="agi-message-area agi-message-demo";this.SUCCESS="agi-message-area agi-message-success";this.count=function(){return this.errors.length;};this.is_error=function(){return (this.errors.length>0);};this.display=function(_350){if(_350){agi.validation.write_message(this.display_div.id,this.to_html(),"agi-message-area agi-error");this.mark_fields();}else{agi.validation.write_message(this.display_div.id,null,"agi-message-area agi-error");this.clear_fields();}};this.set_class=function(_351){var _352=this.display_div.className;if(_351&&(_352.indexOf(_351)==-1)){message_class=(this.display_div.className)?this.display_div.className+" "+_351:_351;this.display_div.setAttribute("class",message_class);this.display_div.setAttribute("className",message_class);}};this.write_message=function(_353,_354){if(_353){this.display_div.style.display="block";this.display_div.innerHTML=_353;}else{this.display_div.style.display="none";}};this.mark_fields=function(){for(i=0;i<this.errors.length;i++){try{dojo.byId(this.errors[i].field+"-error").className="agi-mesage-area agi-error";}catch(e){}}};this.clear_fields=function(){for(i=0;i<this.errors.length;i++){try{dojo.byId(this.errors[i].field+"-error").className="";}catch(e){}}};this.to_html=function(){var html="";for(i=0;i<this.errors.length;i++){html+=this.error_html.replace("%s",this.errors[i].message);}return html;};this.show=function(){this.display(true);};this.hide=function(){this.display(false);};this.reset=function(){this.hide();this.errors=[];};this.add=function(_355){this.errors.push(_355);};this.add_error=function(_356,_357,type){if(!type){type=this.ERROR;}this.add(new Error(_356,_357,type));};};}if(!dojo._hasResource["agi.permissions"]){dojo._hasResource["agi.permissions"]=true;dojo.provide("agi.permissions");agi.permissions.newsletter=1;agi.permissions.yakety_yaks=false;agi.permissions.has_perm=function(_358,_359){var _35a=_359.split("|");for(var i=0;i<_35a.length;i++){var _35b=_35a[i].split("^");if((_358==_35b[0])&&(_35b[1]=="C")){return true;}}return false;};agi.permissions.hide_signup=function(_35c){var _35d;var _35e=dojo.byId("agi-signup-cont");if(_35e){var _35f=agi.cookie.MagicCookie.getCookieValue("vanperms");if((_35f!==null)&&(_35f!==_35d)&&(_35f!=="")){if(agi.permissions.has_perm(1,_35f)){dojo.style(_35e,"display","none");}}}};agi.permissions.newsletter_signup=function(_360,_361){if(!_360){_360="";}if(_361=="yakety-yaks"){agi.permissions.yakety_yaks=true;}agi.permissions.write_newsletter_message("");var _362=dojo.byId("agi-newsletter-email");_362.value=agi.validation.trim(_362.value);if(agi.permissions.validate_email(_362.value)){var _363={url:"/newsletter/signup.pd",handleAs:"json",content:{email:_362.value,"page":_360,"referer_page":_361},load:agi.permissions.newsletter_success,error:agi.permissions.newsletter_error};dojo.xhrPost(_363);}else{agi.permissions.write_newsletter_message("Please enter a valid email address.");}};agi.permissions.newsletter_success=function(_364,_365){msg_area=dojo.byId("agi-newsletter-message-area");agi.permissions.write_newsletter_message(_364.message);if(_364.status>-1){dojo.byId("agi-newsletter-email").value="your email address";dojo.byId("agi-newsletter-email").blur();}if(agi.permissions.yakety_yaks){agx.currentPage.controller.redirect_to_coupon();}};agi.permissions.newsletter_clear=function(){agi.permissions.write_newsletter_message("");dojo.byId("agi-newsletter-email").value="your email address";dojo.byId("agi-newsletter-email").blur();};agi.permissions.newsletter_error=function(_366,_367){agi.permissions.write_newsletter_message("We were unable to process your request.  Please try again in a few minutes.");};agi.permissions.write_newsletter_message=function(_368){msg_area=dojo.byId("agi-newsletter-message-area");msg_area.innerHTML=_368;if(!_368){agi.util.hide(msg_area);}else{agi.util.show(msg_area);}};agi.permissions.email_focus=function(_369,_36a){if(_369.value=="your email address"&&_36a){_369.value="";}if(_369.value==""&&!_36a){_369.value="your email address";}};agi.permissions.validate_email=function(_36b){if(!_36b){return false;}else{try{agi.validation.validate_email(_36b);return true;}catch(e){return false;}}};}if(!dojo._hasResource["agi.dom._base"]){dojo._hasResource["agi.dom._base"]=true;dojo.provide("agi.dom._base");agi.dom.make_text=function(text){var re=/\&\#(\d*)\;/g;text=text.replace(re,agi.dom.get_unicode);var _36c=document.createTextNode(text);return _36c;};agi.dom.get_unicode=function(str,_36d,_36e,s){_36d=parseInt(_36d);return String.fromCharCode(_36d);};agi.dom.make_node=function(_36f,_370,_371){var _372=document.createElement(_36f);if(_370!=undefined){for(var attr in _370){if(attr.toLowerCase()=="class"||attr.toLowerCase()=="classname"){_372.className=_370[attr];}else{_372.setAttribute(attr,_370[attr]);}}}if(_371!=undefined){if(!_371.push||!_371.join){_371=[_371];}for(var x=0;x<_371.length;x++){try{_372.appendChild(_371[x]);}catch(e){}}}return _372;};agi.dom.swap_node=function(elem,_373){elem.parentNode.replaceChild(_373,elem);return _373;};agi.dom.remove_children=function(_374){var _375=dojo.byId(_374);var _376=_375.childNodes;for(var i=_376.length-1;i>=0;i--){_375.removeChild(_376[i]);}};agi.dom.addHiddenInputElement=function(_377,_378,_379){formElement=dojo.byId(_377);var _37a=agi.dom.make_node("input",{"type":"hidden","name":_378,"id":_378,"value":_379});if(dojo.byId(_378)){var _37b=dojo.byId(_378);agi.dom.swap_node(_37b,_37a);return;}formElement.appendChild(_37a);};agi.dom.insert_css_text=function(_37c,doc,URI){if(!_37c){return;}if(!doc){doc=document;}var _37d=doc.createElement("style");_37d.setAttribute("type","text/css");var head=dojo.query("head")[0];if(!head){return;}else{head.appendChild(_37d);}if(_37d.styleSheet){var _37e=function(){try{_37d.styleSheet.cssText=_37c;}catch(e){}};if(_37d.styleSheet.disabled){setTimeout(_37e,10);}else{_37e();}}else{var _37f=doc.createTextNode(_37c);_37d.appendChild(_37f);}return _37d;};agi.dom.find_parent=function(el,_380){if(el==null){return null;}else{if(!_380){return el.parentNode;}else{if(el.nodeType==1&&el.tagName.toLowerCase()==_380.toLowerCase()){return el;}else{return agi.dom.find_parent(el.parentNode,_380);}}}};}if(!dojo._hasResource["agi.dom"]){dojo._hasResource["agi.dom"]=true;dojo.provide("agi.dom");}if(!dojo._hasResource["agi.go.photoworks"]){dojo._hasResource["agi.go.photoworks"]=true;dojo.provide("agi.go.photoworks");agi.go.photoworks.go=function(_381){this.partial_url=_381;this.email=null;this.ahost=null;this.site=null;this.go=function(){this.clean_url();this.init_environ();this.set_email();this.do_redirect();};this.init_environ=function(){this.ahost=window.location.protocol+"//"+window.location.host;this.environ=(this.ahost.indexOf("www")!=-1)?"www":"beta";this.site=(this.ahost.indexOf("msn")!=-1)?"AG_MSN":"AG";};this.set_email=function(){this.email=agi.cookie.AGCookie.getCookieValue("customer","email");if(!this.email){this.email="";}};this.clean_url=function(){var pu=this.partial_url;pu=pu.replace("^http://www.","");pu=pu.replace(/cb=[^&]*&*/,"");pu=pu.replace(/email=[^&]*&*/,"");this.partial_url=pu;};this.do_redirect=function(){var _382="http://"+this.environ+"."+this.partial_url;var _383="&cb=PW_"+this.site+"&email="+this.email;var _384=_382+_383;window.location.assign(_384);};this.go();};}if(!dojo._hasResource["agi.go.join"]){dojo._hasResource["agi.go.join"]=true;dojo.provide("agi.go.join");agi.go.join.encodePurl=function(purl){if(purl.indexOf("%")==-1){purl=encodeURIComponent(purl);}return purl;};agi.go.join.decodePurl=function(purl){if(purl.indexOf("%")>-1){purl=decodeURIComponent(purl);}purl=purl.replace(/\/popup\/signin\.pd/,"/index.pd");purl=purl.replace(/\/popup\/signout\.pd/,"/index.pd");return purl;};agi.go.join.go=function(url,purl,_385,_386,_387,intX,intY,_388){if(!purl){purl=window.location.href;}if(!_385){_385="300";}if(!_386){_386="320";}if(!_387){_387="joinwin";}if(!intX){intX=0;}if(!intY){intY=0;}if(!_388){_388=false;}pageindex=-1;questionindex=-1;questionindex=url.indexOf("?");if(url.contains("offer.pd")&&!url.contains("isic_offer.pd")){pageindex=url.indexOf("offer.pd");}else{if(url.contains("announce.pd")){pageindex=url.indexOf("announce.pd");}else{if(url.contains("marketingpop.pd")){pageindex=url.indexOf("marketingpop.pd");}}}purl=agi.go.join.encodePurl(purl);var ma=dojo.byId("ma");var _389=dojo.byId("wcMusicOn");var mci=dojo.byId("musicChoiceIndex");if(ma&&ma.value!="nomusic"&&!purl.contains("&ma=")){purl+="|ma:"+ma.value.replace(".mp3","");}if(_389){purl+="|wcMusicOn:"+_389.value;}if(mci){purl+="|musicChoiceIndex:"+mci.value;}if(url.contains("subscribe.pd")){purl=purl.replace(/\%20/g,"perc20");purl=purl.replace(/\%26/g,"and");url+="&purl="+purl;_388=true;}else{if(url.contains("ostatus")){if(url.contains("subs.subsag")){purl=purl.replace(/\%20/g,"+");purl=purl.replace(/\%26/g,"and");}url=url.replace(/ostatus/,"purl="+purl+"&ostatus");}else{if(questionindex==-1){url+="?purl="+purl;}else{url+="&purl="+purl;}}}if(pageindex<questionindex&&!_388){var _38a;if(intX||intY){strWinFeatures="resizable=no,screenX="+intX+",screenY="+intY+",left="+intX+",top="+intY+",scrollbars=no,width="+_385+",height="+_386;_38a=window.open(url,_387,strWinFeatures);}else{strWinFeatures="resizable=no,scrollbars=no,width="+_385+",height="+_386;_38a=window.open(url,_387,strWinFeatures);}_38a.focus();}else{window.document.location.href=url;}};agi.go.join.openOfferPop=function(url,_38b,_38c){purl=window.location.href;if(!url){var url="/popup/offer.pd?";if(purl.contains("cnp")){url=url+"cnp=1";}}var _38d=window.screen.availWidth;var _38e=window.screen.availHeight;var intW=300;var intH=320;var intX=_38d-intW;var intY=_38e-intH;if(_38b){var _38f=document.cookie;var pos=_38f.indexOf(_38b);if(pos==-1){SECONDS_PER_DAY=86400;myMinTimeOut=SECONDS_PER_DAY*_38c;myDate=new Date();myDate.setTime(myDate.getTime()+(myMinTimeOut*1000));document.cookie=_38b+"=true; expires="+myDate.toGMTString();agi.go.join.go(url,0,0,0,0,intX,0);}}else{agi.go.join.go(url,0,0,0,0,intX,0);}};}if(!dojo._hasResource["agi.go.popup"]){dojo._hasResource["agi.go.popup"]=true;dojo.provide("agi.go.popup");var glbStdFeatures="width=400,height=320,resizable=yes,scrollbars=yes,toolbar=no";var glbStdFeaturesExcSize="resizable=yes,scrollbars=yes,toolbar=no";OpenNewWindow=function(url,_390,_391,bar){var _392=window.open(url,"descr","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width="+_390+",height="+_391+",scrollbars="+bar);};agi.go.popup.open=function(_393){var _394={url:"/",name:"agipopup",toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",resizable:"no",copyhistory:"no",width:300,height:300,scrollbars:"no"};dojo.mixin(_394,_393);var _395=window.open(_394.url,_394.name,"toolbar="+_394.toolbar+","+"location="+_394.location+","+"status="+_394.status+","+"resizable="+_394.resizable+","+"copyhistory="+_394.copyhistory+","+"width="+_394.width+","+"height="+_394.height+","+"scrollbars="+_394.scrollbars);return _395;};agi.go.popup.closeAndGo=function(url){window.opener.location.href=url;window.close();};openAddressPop=function(){var _396=window.open(addURL,"AddressBook",glbStdFeatures);_396.focus();};openFavoritesPop=function(){var _397=window.open(favLink,"AddFavorite",glbStdFeatures);_397.focus();};openScrapbookPop=function(){var _398=window.open(scrapLink,"SaveScrap",glbStdFeatures);_398.focus();};openPrintPop=function(_399){var _39a=window.open(ahost+"/printpopup.pd?productNumber="+prodNumber,"Print","toolbar=no,scrollbar=no,width=400,height=400,resizable");};openViewPhotoPop=function(_39b){var _39c=window.open(ahost+"/viewphoto.pd?"+photoVars,"ViewPhoto","toolbar=no,scrollbar=no,width=400,height=400,resizable");};openInvVcsPop=function(){var _39d=window.open("addtocalendar.pd?e="+eventNum+"&i="+itemNum+"&m="+memberNum,"Instructions","width=430,height=440,top=25,left=25,resizable=1,scrollbars=1");_39d.focus();};function openAddressPop(){aWindow=window.open(addURL,"AddressBook",glbStdFeatures);aWindow.focus();};openAddressPop2=function(w,h){if(!w){w=562;}if(!h){h=460;}var _39e="width="+w+",height="+h+",resizable=yes,scrollbars=yes,toolbar=no";aWindow=window.open(addURL,"AddressBook",_39e);aWindow.focus();};openMessagePop=function(){aWindow=window.open(ahost+"/share/message.pd?path="+pathNumber,"SuggestedMessages",glbStdFeatures);aWindow.focus();};openMessagePop2=function(){aWindow=window.open(ahost+"/suggest/popup.pd?"+nav,"SuggestedMessages",glbStdFeatures);aWindow.focus();};openRecipePop=function(){rWindow=window.open(ahost+"/share/recipe.pd?path="+pathNumber+"&prodnum="+productNumber,"RecipeGreeting",glbStdFeatures);rWindow.focus();};openGiftPop=function(){giftWindow=window.open(partnerUrl,"GiftPickup",config="width=540,height=320,dependent=1,scrollbars=yes,resizable=yes");giftWindow.focus();};addAllFromQuickList=function(){intQLLength=document.orderForm.quicklist.length;for(i=0;i<intQLLength;i++){document.orderForm.quicklist.options[i].selected=true;}};}if(!dojo._hasResource["agi.popaway"]){dojo._hasResource["agi.popaway"]=true;dojo.provide("agi.popaway");agi.popaway.context={blnDoPopAway:true,BLN_POPAWAY:true,popURL:"",popH:420,popW:500,popCN:"",popCD:7,popPCT:100,popSCROLL:"yes"};agi.popaway.processOnUnload=function(){setTimeout("agi.popaway.delay()",500);if(agi.popaway.context.blnDoPopAway&&agi.popaway.context.BLN_POPAWAY){agi.popaway.popAway();}};agi.popaway.processOnClick=function(){agi.popaway.setDoPopAway(false);setTimeout("agi.popaway.delay()",500);};agi.popaway.setDoPopAway=function(_39f){agi.popaway.context.blnDoPopAway=_39f;};agi.popaway.delay=function(){return true;};agi.popaway.popAway=function(URL,_3a0,_3a1,_3a2,_3a3,_3a4,_3a5){if(URL){agi.popaway.context.popURL=URL;}if(_3a0){agi.popaway.context.popH=_3a0;}if(_3a1){agi.popaway.context.popW=_3a1;}if(_3a2){agi.popaway.context.popCN=_3a2;}if(_3a3!=undefined){agi.popaway.context.popCD=_3a3;}if(_3a4){agi.popaway.context.popPCT=_3a4;}if(_3a5){agi.popaway.context.popSCROLL=_3a5;}var _3a6=Math.round(Math.random()*100);var _3a7="resizeable=yes,scrollbars="+agi.popaway.context.popSCROLL+",width="+agi.popaway.context.popW+",height="+agi.popaway.context.popH;if(_3a6<=agi.popaway.context.popPCT){if(agi.popaway.context.popCN){var _3a8=document.cookie;var pos=_3a8.indexOf(agi.popaway.context.popCN);var _3a9="";if(pos==-1){if(agi.popaway.context.popCD){var _3aa=86400;var _3ab=_3aa*agi.popaway.context.popCD;var _3ac=new Date();_3ac.setTime(_3ac.getTime()+(_3ab*1000));_3a9=" expires="+_3ac.toGMTString()+";";}document.cookie=agi.popaway.context.popCN+"=true;"+_3a9+" path=/;";popAwayWin=window.open(agi.popaway.context.popURL,"popaway",_3a7);}}else{popAwayWin=window.open(agi.popaway.context.popURL,"popaway",_3a7);}}};agi.popaway.addHandlers=function(URL,_3ad,_3ae,_3af,_3b0,_3b1,_3b2){if(URL){agi.popaway.context.popURL=URL;}if(_3ad){agi.popaway.context.popH=_3ad;}if(_3ae){agi.popaway.context.popW=_3ae;}if(_3af){agi.popaway.context.popCN=_3af;}if(_3b0!=undefined){agi.popaway.context.popCD=_3b0;}if(_3b1){agi.popaway.context.popPCT=_3b1;}if(_3b2){agi.popaway.context.popSCROLL=_3b2;}if(dojo.isIE){dojo.connect(document,"onclick",agi.popaway,"processOnClick");dojo.connect(document,"onkeydown",agi.popaway,"processOnClick");window.onunload=agi.popaway.processOnUnload;}else{dojo.connect(window,"onclick",agi.popaway,"processOnClick");dojo.connect(window,"onkeydown",agi.popaway,"processOnClick");dojo.addOnUnload(agi.popaway.processOnUnload);}};agi.popaway.checkReferrer=function(_3b3,URL,_3b4,_3b5,_3b6,_3b7){if(document.referrer.indexOf(_3b3)!=-1){agi.popaway.popAway(URL,_3b4,_3b5,_3b6,_3b7);}};}if(!dojo._hasResource["agi.navtype"]){dojo._hasResource["agi.navtype"]=true;dojo.provide("agi.navtype");agi.navtype.toString=function(){return "AGNavtype";};agi.navtype.KEYS={"ecards":"ec","printables":"cnp","downloads":"dl","wallpapers":"wp","screensavers":"sv","invitations":"inv","photocards":"pc"};agi.navtype.to_string=function(_3b8){var _3b9="";for(value in _3b8){if(typeof value=="string"){_3b9+=("\""+value+"\""+":"+"\""+_3b8[value]+"\""+",");}}return "{"+_3b9.slice(0,-1)+"}";};agi.navtype.set_cookie=function(key,type){var _3ba="navtype";var _3bb=agi.cookie.MagicCookie.getCookieValue(_3ba);var _3bc={};if(_3bb){var _3bd=dojo.fromJson(_3bb);for(x in _3bd){_3bc[x]=_3bd[x];}}else{}if(typeof _3bc[key]=="string"&&_3bc[key].indexOf("|")>0){_3bc[key]=_3bc[key].split("|")[0]+"|"+type;}else{if(typeof _3bc[key]=="string"){_3bc[key]=_3bc[key]+"|"+type;}else{_3bc[key]=type+"|"+type;}}var _3be=agi.navtype.to_string(_3bc);agi.cookie.MagicCookie.setCookieValue(_3ba,_3be);};agi.navtype.get_key=function(){var path=window.location.pathname.split("/")[1];return agi.navtype.KEYS[path];};agi.navtype.get_from_cookie=function(){var key="navtype";var _3bf=agi.cookie.MagicCookie.getCookieValue(key);if(_3bf){try{var _3c0=dojo.eval("x = "+_3bf+";");return _3c0[agi.navtype.get_key()].toLowerCase();}catch(e){return "others";}}else{return "others";}};agi.navtype.remove_from_cookie=function(self){var key="navtype";var _3c1=agi.cookie.MagicCookie.getCookieValue(key);if(_3c1){dojo.eval("var ary_navtype ="+_3c1+";");key=agi.navtype.get_key();if(dojo.eval("delete ary_navtype."+key+";")){var _3c2=agi.navtype.to_string(ary_navtype);agi.cookie.MagicCookie.setCookieValue(key,_3c2);}}};}if(!dojo._hasResource["bma.pile.shim"]){dojo._hasResource["bma.pile.shim"]=true;dojo.provide("bma.pile.shim");bma.pile.shim.toString=function(){return "SHIMTASTIC";};email_focus=agi.permissions.email_focus;newsletter_signup=agi.permissions.newsletter_signup;debounce=agi.util.debounce;toggle_block=agi.util.toggle_block;addHiddenInputElement=agi.dom.addHiddenInputElement;agi_to_pw=agi.go.photoworks.go;openJoin=agi.go.join.go;openOfferPop=agi.go.join.openOfferPop;processOnClick=agi.popaway.processOnClick;setNavTypeCookie=agi.navtype.set_cookie;getNavTypeFromCookie=agi.navtype.get_from_cookie;removeNavTypeFromCookie=agi.navtype.remove_from_cookie;function FetchL2(_3c3,_3c4){if(_3c3!=""){strQuery="path="+_3c3;if(_3c4){_3c4+=strQuery;}else{if(document.location.pathname.startswith("/cnp/")){_3c4="/cnp/cpsearch.pd?"+strQuery;}else{_3c4="/category.pd?"+strQuery;}}if(_3c3.indexOf(".pd")>0){_3c4=_3c3;}window.self.location.href=_3c4;}};function setDisplayPage(i){document.PassVars.adisplay.value=i;document.PassVars.submit();};getCustomerAge=agi.cookie.getCustomerAge;getCustomerGender=agi.cookie.getCustomerGender;getCustomerEmail=agi.cookie.getCustomerEmail;getCustomerNumber=agi.cookie.getMemNum;}if(!dojo._hasResource["agi.flash.ufo"]){dojo._hasResource["agi.flash.ufo"]=true;dojo.provide("agi.flash.ufo");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(FO,id,_3c5){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac")){return;}UFO.getFlashVersion();UFO.foList[id]=UFO.updateFO(FO);if(typeof _3c5=="undefined"||_3c5!="true"){UFO.createCSS("#"+id,"visibility:hidden;");}UFO.domLoad(id,_3c5);},updateFO:function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined"){FO.ximovie=UFO.ximovie;}if(typeof FO.xiwidth=="undefined"){FO.xiwidth=UFO.xiwidth;}if(typeof FO.xiheight=="undefined"){FO.xiheight=UFO.xiheight;}}FO.mainCalled=false;return FO;},domLoad:function(id,_3c6){if(typeof _3c6!="undefined"&&_3c6=="true"){UFO.main(id);}else{var _3c7=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(id)!=null){UFO.main(id);clearInterval(_3c7);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(id);clearInterval(_3c7);},null);}}},main:function(id){var _3c8=UFO.foList[id];if(_3c8.mainCalled){return;}UFO.foList[id].mainCalled=true;document.getElementById(id).style.visibility="hidden";if(UFO.hasRequired(id)){if(UFO.hasFlashVersion(parseInt(_3c8.majorversion,10),parseInt(_3c8.build,10))){if(typeof _3c8.setcontainercss!="undefined"&&_3c8.setcontainercss=="true"){UFO.setContainerCSS(id);}UFO.writeSWF(id);}else{if(_3c8.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(id);}}}document.getElementById(id).style.visibility="visible";},createCSS:function(_3c9,_3ca){var _3cb=document.getElementsByTagName("head")[0];var _3cc=UFO.createElement("style");if(!UFO.uaHas("ieWin")){_3cc.appendChild(document.createTextNode(_3c9+" {"+_3ca+"}"));}_3cc.setAttribute("type","text/css");_3cc.setAttribute("media","screen");_3cb.appendChild(_3cc);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var _3cd=document.styleSheets[document.styleSheets.length-1];if(typeof _3cd.addRule=="object"){_3cd.addRule(_3c9,_3ca);}}},setContainerCSS:function(id){var _3ce=UFO.foList[id];var _3cf=/%/.test(_3ce.width)?"":"px";var _3d0=/%/.test(_3ce.height)?"":"px";UFO.createCSS("#"+id,"width:"+_3ce.width+_3cf+"; height:"+_3ce.height+_3d0+";");if(_3ce.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");}if(_3ce.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(el){return (UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",el):document.createElement(el);},createObjParam:function(el,_3d1,_3d2){var _3d3=UFO.createElement("param");_3d3.setAttribute("name",_3d1);_3d3.setAttribute("value",_3d2);el.appendChild(_3d3);},uaHas:function(ft){var _3d4=UFO.ua;switch(ft){case "w3cdom":return (typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case "xml":var _3d5=document.getElementsByTagName("meta");var _3d6=_3d5.length;for(var i=0;i<_3d6;i++){if(/content-type/i.test(_3d5[i].getAttribute("http-equiv"))&&/xml/i.test(_3d5[i].getAttribute("content"))){return true;}}return false;case "ieMac":return /msie/.test(_3d4)&&!/opera/.test(_3d4)&&/mac/.test(_3d4);case "ieWin":return /msie/.test(_3d4)&&!/opera/.test(_3d4)&&/win/.test(_3d4);case "gecko":return /gecko/.test(_3d4)&&!/applewebkit/.test(_3d4);case "opera":return /opera/.test(_3d4);case "safari":return /applewebkit/.test(_3d4);default:return false;}},getFlashVersion:function(){if(UFO.fv[0]!=0){return;}if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var _3d7=navigator.plugins["Shockwave Flash"].description;if(typeof _3d7!="undefined"){_3d7=_3d7.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _3d8=parseInt(_3d7.replace(/^(.*)\..*$/,"$1"),10);var _3d9=/r/.test(_3d7)?parseInt(_3d7.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[_3d8,_3d9];}}else{if(window.ActiveXObject){UFO.pluginType="ax";try{var _3da=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var _3da=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];_3da.AllowScriptAccess="always";}catch(e){if(UFO.fv[0]==6){return;}}try{var _3da=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(typeof _3da=="object"){var _3d7=_3da.GetVariable("$version");if(typeof _3d7!="undefined"){_3d7=_3d7.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(_3d7[0],10),parseInt(_3d7[2],10)];}}}}},hasRequired:function(id){var _3db=UFO.req.length;for(var i=0;i<_3db;i++){if(typeof UFO.foList[id][UFO.req[i]]=="undefined"){return false;}}return true;},hasFlashVersion:function(_3dc,_3dd){return (UFO.fv[0]>_3dc||(UFO.fv[0]==_3dc&&UFO.fv[1]>=_3dd))?true:false;},writeSWF:function(id){var _3de=UFO.foList[id];var _3df=document.getElementById(id);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(_3df.hasChildNodes()){_3df.removeChild(_3df.firstChild);}var _3e0=UFO.createElement("object");_3e0.setAttribute("type","application/x-shockwave-flash");_3e0.setAttribute("data",_3de.movie);_3e0.setAttribute("width",_3de.width);_3e0.setAttribute("height",_3de.height);var _3e1=UFO.optAtt.length;for(var i=0;i<_3e1;i++){if(typeof _3de[UFO.optAtt[i]]!="undefined"){_3e0.setAttribute(UFO.optAtt[i],_3de[UFO.optAtt[i]]);}}var _3e2=UFO.opt.concat(UFO.optExc);var _3e1=_3e2.length;for(var i=0;i<_3e1;i++){if(typeof _3de[_3e2[i]]!="undefined"){UFO.createObjParam(_3e0,_3e2[i],_3de[_3e2[i]]);}}_3df.appendChild(_3e0);}else{var _3e3="";var _3e2=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var _3e1=_3e2.length;for(var i=0;i<_3e1;i++){if(typeof _3de[_3e2[i]]!="undefined"){_3e3+=" "+_3e2[i]+"=\""+_3de[_3e2[i]]+"\"";}}_3df.innerHTML="<embed type=\"application/x-shockwave-flash\" src=\""+_3de.movie+"\" width=\""+_3de.width+"\" height=\""+_3de.height+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+_3e3+"></embed>";}}else{if(UFO.pluginType=="ax"){var _3e4="";var _3e1=UFO.optAtt.length;for(var i=0;i<_3e1;i++){if(typeof _3de[UFO.optAtt[i]]!="undefined"){_3e4+=" "+UFO.optAtt[i]+"=\""+_3de[UFO.optAtt[i]]+"\"";}}var _3e5="";var _3e1=UFO.opt.length;for(var i=0;i<_3e1;i++){if(typeof _3de[UFO.opt[i]]!="undefined"){_3e5+="<param name=\""+UFO.opt[i]+"\" value=\""+_3de[UFO.opt[i]]+"\" />";}}var _3e6=window.location.protocol=="https:"?"https:":"http:";_3df.innerHTML="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+_3e4+" width=\""+_3de.width+"\" height=\""+_3de.height+"\" codebase=\""+_3e6+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_3de.majorversion+",0,"+_3de.build+",0\"><param name=\"movie\" value=\""+_3de.movie+"\" />"+_3e5+"</object>";if(_3de["id"]){window[_3de["id"]]=document.getElementById(_3de["id"]);}}}},createDialog:function(id){var _3e7=UFO.foList[id];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(_3e7.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(_3e7.xiheight,10)/2)+"px; width:"+_3e7.xiwidth+"px; height:"+_3e7.xiheight+"px;");var _3e8=document.getElementsByTagName("body")[0];var _3e9=UFO.createElement("div");_3e9.setAttribute("id","xi-con");var _3ea=UFO.createElement("div");_3ea.setAttribute("id","xi-dia");_3e9.appendChild(_3ea);_3e8.appendChild(_3e9);var _3eb=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var _3ec=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}else{var _3ec=document.title=document.title.slice(0,47)+" - Flash Player Installation";}var _3ed=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var _3ee=typeof _3e7.xiurlcancel!="undefined"?"&xiUrlCancel="+_3e7.xiurlcancel:"";var _3ef=typeof _3e7.xiurlfailed!="undefined"?"&xiUrlFailed="+_3e7.xiurlfailed:"";UFO.foList["xi-dia"]={movie:_3e7.ximovie,width:_3e7.xiwidth,height:_3e7.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+_3eb+"&MMplayerType="+_3ed+"&MMdoctitle="+_3ec+_3ee+_3ef};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){var _3f0=document.getElementsByTagName("body")[0];var _3f1=document.getElementById("xi-con");_3f0.removeChild(_3f1);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;");},cleanupIELeaks:function(){var _3f2=document.getElementsByTagName("object");var _3f3=_3f2.length;for(var i=0;i<_3f3;i++){_3f2[i].style.display="none";for(var x in _3f2[i]){if(typeof _3f2[i][x]=="function"){_3f2[i][x]=null;}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks);}}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");(function(){var _3f4=dojo.isIE?"onreadystatechange":"load",_3f5=/complete|loaded/;dojo.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var _3f6=dfd.ioArgs;dojo._ioAddQueryToUrl(_3f6);dojo._ioNotifyStart(dfd);if(this._canAttach(_3f6)){var node=this.attach(_3f6.id,_3f6.url,args.frameDoc);if(!_3f6.jsonp&&!_3f6.args.checkString){var _3f7=dojo.connect(node,_3f4,function(evt){if(evt.type=="load"||_3f5.test(node.readyState)){dojo.disconnect(_3f7);_3f6.scriptLoaded=evt;}});}}dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_3f8){var doc=(_3f8||dojo.doc);var _3f9=doc.createElement("script");_3f9.type="text/javascript";_3f9.src=url;_3f9.id=id;_3f9.charset="utf-8";return doc.getElementsByTagName("head")[0].appendChild(_3f9);},remove:function(id,_3fa){dojo.destroy(dojo.byId(id,_3fa));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(args){var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var _3fb=dfd.ioArgs;_3fb.id=dojo._scopeName+"IoScript"+(this._counter++);_3fb.canDelete=false;_3fb.jsonp=args.callbackParamName||args.jsonp;if(_3fb.jsonp){_3fb.query=_3fb.query||"";if(_3fb.query.length>0){_3fb.query+="&";}_3fb.query+=_3fb.jsonp+"="+(args.frameDoc?"parent.":"")+dojo._scopeName+".io.script.jsonp_"+_3fb.id+"._jsonpCallback";_3fb.frameDoc=args.frameDoc;_3fb.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_3fb.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._addDeadScript(dfd.ioArgs);}},_deferredOk:function(dfd){var _3fc=dfd.ioArgs;if(_3fc.canDelete){dojo.io.script._addDeadScript(_3fc);}return _3fc.json||_3fc.scriptLoaded||_3fc;},_deferredError:function(_3fd,dfd){if(dfd.ioArgs.canDelete){if(_3fd.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc);}else{dojo.io.script._addDeadScript(dfd.ioArgs);}}return _3fd;},_deadScripts:[],_counter:1,_addDeadScript:function(_3fe){dojo.io.script._deadScripts.push({id:_3fe.id,frameDoc:_3fe.frameDoc});_3fe.frameDoc=null;},_validCheck:function(dfd){var _3ff=dojo.io.script;var _400=_3ff._deadScripts;if(_400&&_400.length>0){for(var i=0;i<_400.length;i++){_3ff.remove(_400[i].id,_400[i].frameDoc);_400[i].frameDoc=null;}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){var _401=dfd.ioArgs;if(_401.json||(_401.scriptLoaded&&!_401.args.checkString)){return true;}var _402=_401.args.checkString;if(_402&&eval("typeof("+_402+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_canAttach:function(_403){return true;},_jsonpCallback:function(json){this.ioArgs.json=json;}};})();}if(!dojo._hasResource["agi.classes.Adopter"]){dojo._hasResource["agi.classes.Adopter"]=true;dojo.provide("agi.classes.Adopter");dojo.declare("agi.classes.Adopter",[agi.classes.Identified],{constructor:function(_404){if(dojo.isObject(_404)){dojo.mixin(this,_404);this.postMixInProperties();}},postMixInProperties:function(){return;}});}if(!dojo._hasResource["agi.history.ViewHistoryCookie"]){dojo._hasResource["agi.history.ViewHistoryCookie"]=true;dojo.provide("agi.history.ViewHistoryCookie");dojo.declare("agi.history.ViewHistoryCookie",[agi.classes.Identified,agi.classes.Adopter],{KEY:"cardviewhistory",constructor:function(){},read:function(_405){if(!_405){_405="";}var _406=agi.cookie.MagicCookie.getCookieValue(this.KEY);if(_406==null){_406=_405;}return _406;},set:function(_407){_407=this.read()+_407;agi.cookie.MagicCookie.setCookieValue(this.KEY,_407,false);},append:function(_408){this.set(this.read()+_408);}});}if(!dojo._hasResource["agi.history.LastActionCookie"]){dojo._hasResource["agi.history.LastActionCookie"]=true;dojo.provide("agi.history.LastActionCookie");dojo.declare("agi.history.LastActionCookie",[agi.classes.Identified,agi.classes.Adopter],{KEY:"lastaction",constructor:function(){},read:function(_409){if(!_409){_409="";}var _40a=agi.cookie.MagicCookie.getCookieValue(this.KEY);if(_40a==null){_40a=_409;}return _40a;},set:function(_40b){agi.cookie.MagicCookie.setCookieValue(this.KEY,_40b,true);}});}if(!dojo._hasResource["agi.history.LastTriggerCookie"]){dojo._hasResource["agi.history.LastTriggerCookie"]=true;dojo.provide("agi.history.LastTriggerCookie");dojo.declare("agi.history.LastTriggerCookie",[agi.classes.Identified,agi.classes.Adopter],{KEY:"lasttrigger",constructor:function(){},read:function(_40c){if(!_40c){_40c="";}var _40d=agi.cookie.MagicCookie.getCookieValue(this.KEY);if(_40d==null){_40d=_40c;}return _40d;},set:function(_40e){agi.cookie.MagicCookie.setCookieValue(this.KEY,_40e,false);}});}if(!dojo._hasResource["agi.segmentation.SegmentCookie"]){dojo._hasResource["agi.segmentation.SegmentCookie"]=true;dojo.provide("agi.segmentation.SegmentCookie");dojo.declare("agi.segmentation.SegmentCookie",[agi.classes.Identified,agi.classes.Adopter],{NON_MEMBER_DEFAULT:101,KEY:"segments",FROZEN_TREATMENTS:[184,185,186,203,204,207,208,217,218,219,235,236,237,238,240,241,242,244,245,246,247,248,249],constructor:function(){},read:function(){var _40f=dojo.fromJson(agi.cookie.MagicCookie.getCookieValue(this.KEY));return _40f;},set:function(_410,_411){if(!_411){_411=false;}var _412=dojo.fromJson(agi.cookie.MagicCookie.getCookieValue(this.KEY));if(_412==null){_412={};}for(key in _410){if(key.indexOf("cs")==0&&key.indexOf("cs9")!=0){if(_410[key]==this.NON_MEMBER_DEFAULT&&_412[key]>this.NON_MEMBER_DEFAULT){_410[key]=_412[key];}}if(!_411&&(key=="cs2"&&this.FROZEN_TREATMENTS.indexOf(_412[key])!=-1)){_410[key]=_412[key];}}dojo.mixin(_412,_410);agi.cookie.MagicCookie.setCookieValue(this.KEY,dojo.toJson(_412),false);}});}if(!dojo._hasResource["agi.segmentation.OrderBailCookie"]){dojo._hasResource["agi.segmentation.OrderBailCookie"]=true;dojo.provide("agi.segmentation.OrderBailCookie");dojo.declare("agi.segmentation.OrderBailCookie",[agi.classes.Identified,agi.classes.Adopter],{KEY:"orderbail",constructor:function(){},read:function(_413){if(!_413){_413="";}var _414=agi.cookie.MagicCookie.getCookieValue(this.KEY);if(_414==null){_414=_413;}return _414;},set:function(_415){agi.cookie.MagicCookie.setCookieValue(this.KEY,_415,false);}});}if(!dojo._hasResource["agi.segmentation.SegmentTestGroupCookie"]){dojo._hasResource["agi.segmentation.SegmentTestGroupCookie"]=true;dojo.provide("agi.segmentation.SegmentTestGroupCookie");dojo.declare("agi.segmentation.SegmentTestGroupCookie",[agi.classes.Identified,agi.classes.Adopter],{KEY:"segmenttestgroup",constructor:function(){},read:function(_416){if(!_416){_416="";}var _417=agi.cookie.MagicCookie.getCookieValue(this.KEY);if(_417==null){_417=_416;}return _417;},set:function(_418){agi.cookie.MagicCookie.setCookieValue(this.KEY,_418,false);}});}if(!dojo._hasResource["agi.segmentation.constants"]){dojo._hasResource["agi.segmentation.constants"]=true;dojo.provide("agi.segmentation.constants");agi.segmentation.constants.MEMBER_DEFAULT=100;agi.segmentation.constants.NON_MEMBER_DEFAULT=101;agi.segmentation.constants.CSHomePage={MEM_DFT:100,NON_DFT:101,EC_3_9_DFT:102,EC_3_9_UPS:103,CP_3_9_DFT:104,CP_3_9_UPS:105,CP_1_2_DFT:106,CP_1_2_CNP:107,BD_1_2_RC1:109,BD_1_2_RC2:110,BD_1_2_RC3:111,BD_1_2_RC4:112,EC_3_9_DFT:113,EC_3_9_RC1:114,EC_3_9_RC2:115,EC_3_9_RC3:116,CP_3_9_DFT:118,CP_3_9_CNP:119,CP_3_9_CPUPS:120,CP_3_9_UPS:121,BD_3_9_DFT:122,BD_3_9_RC1:123,BD_3_9_RC2:124,BD_3_9_RC3:125,MEM_PRE_DFT:126,EC_PRE_REN:127,CP_PRE_REN:128,BD_PRE_REN:129,EC_10_12_DFT:130,EC_10_12_RC1:131,EC_10_12_RC2:132,EC_10_12_RC3:133,CP_10_12_DFT:134,CP_10_12_CNP:135,BD_10_12_DFT:137,BD_10_12_RC1:138,BD_10_12_RC2:139,BD_10_12_RC3:140,EC_1_2_DFT:141,EC_1_2_RC1:142,EC_1_2_RC2:143,EC_1_2_RC3:144,MEM_PROMO:145,NON_PROMO:146,EC_10_2_DFT:147,EC_10_2_RC1:148,EC_10_2_RC2:149,EC_10_2_RC3:150,EC_10_2_RC4:151,CP_10_2_DFT:152,CP_10_2_CNP:153,BD_10_2_DFT:154,BD_10_2_RC1:155,BD_10_2_RC2:156,BD_10_2_RC3:157,BD_10_2_RC4:158,EC_3_9_RC4:159,MEM_DFT_TCRL:164,MEM_DFT_TTST:165,EC_10_2_DFT_TST:166,EC_10_2_RC4_TST:167,CNPBD_ALL_DFT:168,CNPBD_ALL_DFT_TST:169,CNPBD_ALL_RC2:170,CNPBD_ALL_RC2_TST:171,EC_3_9_DFT_TST:172,EC_3_9_RC1_TST:173,EC_3_9_RC3_TST:174,CNPBD_ALL_RC1:175,CNPBD_ALL_RC1_TST:176,NON_FTV_DFT:177,NON_FTV_TST:178,NON_PS_EC_DFT:179,NON_PS_EC_TST:180,NON_OS_EC_DFT:181,NON_OS_EC_TST:182,NON_PS_FEC_DFT:183,NON_PS_FEC_TST:184,NON_OS_FEC_DFT:185,NON_OS_FEC_TST:186,NON_PS_BEC_DFT:187,NON_PS_BEC_TST:188,NON_OS_BEC_DFT:189,NON_OS_BEC_TST:190,NON_PS_FBEC_DFT:191,NON_PS_FBEC_TST:192,NON_OS_FBEC_DFT:193,NON_OS_FBEC_TST:194,NON_PS_CNP_DFT:195,NON_PS_CNP_TST:196,NON_OS_CNP_DFT:197,NON_OS_CNP_TST:198,NON_PS_BRAND_DFT:199,NON_PS_BRAND_TST:200,NON_OS_BRAND_DFT:201,NON_OS_BRAND_TST:202,NON_INT_FEC_DFT:203,NON_INT_FEC_TST:204,NON_INT_BEC_DFT:205,NON_INT_BEC_TST:206,NON_INT_FBEC_DFT:207,NON_INT_FBEC_TST:208,NON_INT_CNP_DFT:209,NON_INT_CNP_TST:210,NON_LA_OPB_DFT:211,NON_LA_OPB_TST:212,NON_LA_ECB_DFT:213,NON_LA_ECB_TST:214,NON_LA_CNPB_DFT:215,NON_LA_CNPB_TST:216,NON_LA_SND_DFT:217,NON_LA_SND_TST:218,NON_LA_SND_TST2:230,NON_LA_PRT_DFT:219,NON_LA_PRT_TST:220,MAC_IE8_USR:229};agi.segmentation.constants.CSViewPage={MEM_DFT:100,NON_DFT:101,NON_NEW_DFT:102,NON_NEW_TST:103,NON_LOW_DFT:104,NON_LOW_TST1:105,NON_LOW_TST2:106,NON_MED_DFT:107,NON_MED_TST1:108,NON_MED_TST2:109,NON_HGH_DFT:110,NON_HGH_TST1:111,BDAY_MEM_DFT:112,BDAY_NON_DFT:113,BDAY_NON_NEW_DFT:114,BDAY_NON_NEW_TST:115,BDAY_NON_LOW_DFT:116,BDAY_NON_LOW_TST1:117,BDAY_NON_LOW_TST2:118,BDAY_NON_MED_DFT:119,BDAY_NON_MED_TST1:120,BDAY_NON_MED_TST2:121,BDAY_NON_HGH_DFT:122,BDAY_NON_HGH_TST1:123};agi.segmentation.constants.CSDisplayPage={MEM_DFT:100,NON_DFT:101,NON_EFF_DEFN1_CMP:102,NON_EFF_DEFN1_TST:103,NON_NOEFF_DEFN1_CMP:104,NON_NOEFF_DEFN1_TST:105,NON_EFF_DEFN2_CMP:106,NON_EFF_DEFN2_TST:107,NON_NOEFF_DEFN2_CMP:108,NON_NOEFF_DEFN2_TST:109,MEM_EFF_DEFN2_CMP:110,MEM_EFF_DEFN2_TST:111,MEM_NON_EFF_DEFN2_CMP:112,MEM_NON_EFF_DEFN2_TST:113,NON_VIEW_CMP:114,NON_VIEW_TST:115,NON_FIND_CMP:116,NON_FIND_TST:117};}if(!dojo._hasResource["agi.segmentation.Listeners"]){dojo._hasResource["agi.segmentation.Listeners"]=true;dojo.provide("agi.segmentation.Listeners");dojo.declare("agi.segmentation.Listeners",[agi.classes.Identified,agi.classes.Adopter],{issue_cfp:false,constructor:function(){this.cardviewhistory=new agi.history.ViewHistoryCookie();this.lastactioncookie=new agi.history.LastActionCookie();this.lasttriggercookie=new agi.history.LastTriggerCookie();this.segmentcookie=new agi.segmentation.SegmentCookie();this.orderbailcookie=new agi.segmentation.OrderBailCookie();this.testgroupcookie=new agi.segmentation.SegmentTestGroupCookie();this.CSHP=agi.segmentation.constants.CSHomePage;this.NON_MEMBER_DEFAULT=agi.segmentation.constants.NON_MEMBER_DEFAULT;},fire:function(){if(typeof cust_seg_events=="undefined"){return;}dojo.forEach(cust_seg_events,dojo.hitch(this,this._execute));if(this.issue_cfp){this._issue_cookies();}},_issue_cookies:function(){dojo.io.script.get({url:ahost+"/share/session.pd",content:{cb:"void"}});},_execute:function(_419){if(typeof this[_419]=="function"){this[_419]();}},_is_test:function(){var test=this.testgroupcookie.read()+"";if(test!="0"&&test!="1"){test=Math.floor(Math.random()*2);this.testgroupcookie.set(test);}return parseInt(test);},_set_segment_cookie:function(_41a){this.issue_cfp=true;this.segmentcookie.set(_41a);},send_ecard:function(){this.lastactioncookie.set("send");this.lasttriggercookie.set("send");var site=this.determine_site();if(this._is_test()){this._set_segment_cookie({"cs2":this.CSHP.NON_LA_SND_TST});}else{this._set_segment_cookie({"cs2":this.CSHP.NON_LA_SND_DFT});}},view_ecard_free:function(){this.view_ecard("free");},view_ecard_paid:function(){this.view_ecard("paid");},view_ecard:function(type){if(type=="paid"){this.cardviewhistory.append("P");}else{this.cardviewhistory.append("F");}var _41b=/.*F.*F.*/i;var _41c=this.cardviewhistory.read();var site=this.determine_site();if(_41c.search(_41b)!=-1){this.lasttriggercookie.set("view2free");value=[235,236][this._is_test()];this._set_segment_cookie({"cs2":value});}},browse_ecard:function(){this.lastactioncookie.set("ecbrowse");this.lasttriggercookie.set("ecbrowse");},browse_printable:function(){this.lastactioncookie.set("cnpbrowse");this.lasttriggercookie.set("cnpbrowse");},order_bail:function(){var _41d=this.orderbailcookie.read();if(document.location.pathname.indexOf("join")==-1&&_41d.length>0){this.lastactioncookie.set("opbail");this.lasttriggercookie.set("opbail");this.orderbailcookie.set("");}},internal_search_birthday:function(){var site=this.determine_site();var _41e=[this.CSHP.NON_INT_FBEC_DFT,this.CSHP.NON_INT_FBEC_TST][this._is_test()];this._set_segment_cookie({"cs2":_41e});},internal_search_free:function(){var site=this.determine_site();var _41f=[this.CSHP.NON_INT_FEC_DFT,this.CSHP.NON_INT_FEC_TST][this._is_test()];this._set_segment_cookie({"cs2":_41f});},determine_site:function(){var bma="bluemountain.";var ag="americangreetings.";var _420="beta.";var url=window.location.toString().toLowerCase();if(url.indexOf(_420)>-1){return "agbeta";}if(url.indexOf(bma)>-1){return "bma";}if(url.indexOf(ag)>-1){return "ag";}return "ag";}});}if(!dojo._hasResource["agi.segmentation.SegmentProvider"]){dojo._hasResource["agi.segmentation.SegmentProvider"]=true;dojo.provide("agi.segmentation.SegmentProvider");agi.segmentation.SegmentProvider.init=function(){this.listeners=new agi.segmentation.Listeners();this.listeners.fire();};dojo.addOnLoad(agi.segmentation.SegmentProvider.init);}dojo.publish("/bma.layers.core/loaded/");

