/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

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(){var _1=dojo.global;var _2=dojo.doc;if(_2.selection){return !_2.selection.createRange().text;}else{var _3=_1.getSelection();if(dojo.isString(_3)){return !_3;}else{return _3.isCollapsed||!_3.toString();}}},getBookmark:function(){var _4,_5=dojo.doc.selection;if(_5){var _6=_5.createRange();if(_5.type.toUpperCase()=="CONTROL"){if(_6.length){_4=[];var i=0,_8=_6.length;while(i<_8){_4.push(_6.item(i++));}}else{_4=null;}}else{_4=_6.getBookmark();}}else{if(window.getSelection){_5=dojo.global.getSelection();if(_5){_6=_5.getRangeAt(0);_4=_6.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _4;},moveToBookmark:function(_9){var _a=dojo.doc;if(_a.selection){var _b;if(dojo.isArray(_9)){_b=_a.body.createControlRange();dojo.forEach(_9,"range.addElement(item)");}else{_b=_a.selection.createRange();_b.moveToBookmark(_9);}_b.select();}else{var _c=dojo.global.getSelection&&dojo.global.getSelection();if(_c&&_c.removeAllRanges){_c.removeAllRanges();_c.addRange(_9);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_d,_e){return {node:_d&&dojo.isDescendant(dijit._curFocus,_d.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_e||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_e||dojo.global,dijit.getBookmark):null,openedForWindow:_e};},focus:function(_f){if(!_f){return;}var _10="node" in _f?_f.node:_f,_11=_f.bookmark,_12=_f.openedForWindow;if(_10){var _13=(_10.tagName.toLowerCase()=="iframe")?_10.contentWindow:_10;if(_13&&_13.focus){try{_13.focus();}catch(e){}}dijit._onFocusNode(_10);}if(_11&&dojo.withGlobal(_12||dojo.global,dijit.isCollapsed)){if(_12){_12.focus();}try{dojo.withGlobal(_12||dojo.global,dijit.moveToBookmark,null,[_11]);}catch(e){}}},_activeStack:[],registerWin:function(_14){if(!_14){_14=window;}dojo.connect(_14.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _16=_14.document.body||_14.document.getElementsByTagName("body")[0];if(_16){if(dojo.isIE){_16.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_16.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_16.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_16.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_16=null;},_onBlurNode:function(_1b){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(_1c){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _1d=[];try{while(_1c){if(_1c.dijitPopupParent){_1c=dijit.byId(_1c.dijitPopupParent).domNode;}else{if(_1c.tagName&&_1c.tagName.toLowerCase()=="body"){if(_1c===dojo.body()){break;}_1c=dijit.getDocumentWindow(_1c.ownerDocument).frameElement;}else{var id=_1c.getAttribute&&_1c.getAttribute("widgetId");if(id){_1d.unshift(id);}_1c=_1c.parentNode;}}}}catch(e){}dijit._setStack(_1d);},_onFocusNode:function(_1f){if(_1f&&_1f.tagName&&_1f.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_1f);if(_1f==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_1f;dojo.publish("focusNode",[_1f]);},_setStack:function(_20){var _21=dijit._activeStack;dijit._activeStack=_20;for(var _22=0;_22<Math.min(_21.length,_20.length);_22++){if(_21[_22]!=_20[_22]){break;}}for(var i=_21.length-1;i>=_22;i--){var _24=dijit.byId(_21[i]);if(_24){_24._focused=false;_24._hasBeenBlurred=true;if(_24._onBlur){_24._onBlur();}if(_24._setStateClass){_24._setStateClass();}dojo.publish("widgetBlur",[_24]);}}for(i=_22;i<_20.length;i++){_24=dijit.byId(_20[i]);if(_24){_24._focused=true;if(_24._onFocus){_24._onFocus();}if(_24._setStateClass){_24._setStateClass();}dojo.publish("widgetFocus",[_24]);}}}});dojo.addOnLoad(dijit.registerWin);}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={};},add:function(_25){if(this._hash[_25.id]){throw new Error("Tried to register widget with id=="+_25.id+" but that id is already registered");}this._hash[_25.id]=_25;},remove:function(id){delete this._hash[id];},forEach:function(_27){for(var id in this._hash){_27(this._hash[id]);}},filter:function(_29){var res=new dijit.WidgetSet();this.forEach(function(_2b){if(_29(_2b)){res.add(_2b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_2e){return _2e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_2f){var id;do{id=_2f+"_"+(_2f in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_2f]:dijit._widgetTypeCtr[_2f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_31){_31.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_33){return dijit.registry.byId(_33.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_34){while(_34){if(_34.getAttribute&&_34.getAttribute("widgetId")){return dijit.registry.byId(_34.getAttribute("widgetId"));}_34=_34.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_35){var _36=dojo.style(_35);return (_36.visibility!="hidden")&&(_36.visibility!="collapsed")&&(_36.display!="none");};dijit.isTabNavigable=function(_37){if(dojo.hasAttr(_37,"disabled")){return false;}var _38=dojo.hasAttr(_37,"tabindex");var _39=dojo.attr(_37,"tabindex");if(_38&&_39>=0){return true;}var _3a=_37.nodeName.toLowerCase();if(((_3a=="a"&&dojo.hasAttr(_37,"href"))||dijit._tabElements[_3a])&&(!_38||_39>=0)){return true;}return false;};dijit._getTabNavigable=function(_3b){var _3c,_3d,_3e,_3f,_40,_41;var _42=function(_43){dojo.query("> *",_43).forEach(function(_44){var _45=dijit._isElementShown(_44);if(_45&&dijit.isTabNavigable(_44)){var _46=dojo.attr(_44,"tabindex");if(!dojo.hasAttr(_44,"tabindex")||_46==0){if(!_3c){_3c=_44;}_3d=_44;}else{if(_46>0){if(!_3e||_46<_3f){_3f=_46;_3e=_44;}if(!_40||_46>=_41){_41=_46;_40=_44;}}}}if(_45){_42(_44);}});};if(dijit._isElementShown(_3b)){_42(_3b);}return {first:_3c,last:_3d,lowest:_3e,highest:_40};};dijit.getFirstInTabbingOrder=function(_47){var _48=dijit._getTabNavigable(dojo.byId(_47));return _48.lowest?_48.lowest:_48.first;};dijit.getLastInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.last?_4a.last:_4a.highest;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _4b=dojo.global;var _4c=dojo.doc;var w=0,h=0;var de=_4c.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _52,_53,_54,_55;var dbw=_4c.body.clientWidth;if(dbw>dew){_52=dew;_54=dbw;}else{_54=dew;_52=dbw;}var dbh=_4c.body.clientHeight;if(dbh>deh){_53=deh;_55=dbh;}else{_55=deh;_53=dbh;}w=(_54>_4b.innerWidth)?_52:_54;h=(_55>_4b.innerHeight)?_53:_55;}else{if(!dojo.isOpera&&_4b.innerWidth){w=_4b.innerWidth;h=_4b.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _58=dojo._docScroll();return {w:w,h:h,l:_58.x,t:_58.y};};dijit.placeOnScreen=function(_59,pos,_5b,_5c){var _5d=dojo.map(_5b,function(_5e){return {corner:_5e,pos:pos};});return dijit._place(_59,_5d);};dijit._place=function(_5f,_60,_61){var _62=dijit.getViewport();if(!_5f.parentNode||String(_5f.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_5f);}var _63=null;dojo.some(_60,function(_64){var _65=_64.corner;var pos=_64.pos;if(_61){_61(_5f,_64.aroundCorner,_65);}var _67=_5f.style;var _68=_67.display;var _69=_67.visibility;_67.visibility="hidden";_67.display="";var mb=dojo.marginBox(_5f);_67.display=_68;_67.visibility=_69;var _6b=(_65.charAt(1)=="L"?pos.x:Math.max(_62.l,pos.x-mb.w)),_6c=(_65.charAt(0)=="T"?pos.y:Math.max(_62.t,pos.y-mb.h)),_6d=(_65.charAt(1)=="L"?Math.min(_62.l+_62.w,_6b+mb.w):pos.x),_6e=(_65.charAt(0)=="T"?Math.min(_62.t+_62.h,_6c+mb.h):pos.y),_6f=_6d-_6b,_70=_6e-_6c,_71=(mb.w-_6f)+(mb.h-_70);if(_63==null||_71<_63.overflow){_63={corner:_65,aroundCorner:_64.aroundCorner,x:_6b,y:_6c,w:_6f,h:_70,overflow:_71};}return !_71;});_5f.style.left=_63.x+"px";_5f.style.top=_63.y+"px";if(_63.overflow&&_61){_61(_5f,_63.aroundCorner,_63.corner);}return _63;};dijit.placeOnScreenAroundElement=function(_72,_73,_74,_75){_73=dojo.byId(_73);var _76=_73.style.display;_73.style.display="";var _77=_73.offsetWidth;var _78=_73.offsetHeight;var _79=dojo.coords(_73,true);_73.style.display=_76;var _7a=[];for(var _7b in _74){_7a.push({aroundCorner:_7b,corner:_74[_7b],pos:{x:_79.x+(_7b.charAt(1)=="L"?0:_77),y:_79.y+(_7b.charAt(0)=="T"?0:_78)}});}return dijit._place(_72,_7a,_75);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _81=[],_82=1000,_83=1;this.prepare=function(_84){dojo.body().appendChild(_84);var s=_84.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_86){var _87=_86.popup,_88=_86.orient||{"BL":"TL","TL":"BL"},_89=_86.around,id=(_86.around&&_86.around.id)?(_86.around.id+"_dropdown"):("popup_"+_83++);var _8b=dojo.doc.createElement("div");dijit.setWaiRole(_8b,"presentation");_8b.id=id;_8b.className="dijitPopup";_8b.style.zIndex=_82+_81.length;_8b.style.visibility="hidden";if(_86.parent){_8b.dijitPopupParent=_86.parent.id;}dojo.body().appendChild(_8b);var s=_87.domNode.style;s.display="";s.visibility="";s.position="";_8b.appendChild(_87.domNode);var _8d=new dijit.BackgroundIframe(_8b);var _8e=_89?dijit.placeOnScreenAroundElement(_8b,_89,_88,_87.orient?dojo.hitch(_87,"orient"):null):dijit.placeOnScreen(_8b,_86,_88=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_8b.style.visibility="visible";var _8f=[];var _90=function(){for(var pi=_81.length-1;pi>0&&_81[pi].parent===_81[pi-1].widget;pi--){}return _81[pi];};_8f.push(dojo.connect(_8b,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_86.onCancel){dojo.stopEvent(evt);_86.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _93=_90();if(_93&&_93.onCancel){_93.onCancel();}}}}));if(_87.onCancel){_8f.push(dojo.connect(_87,"onCancel",null,_86.onCancel));}_8f.push(dojo.connect(_87,_87.onExecute?"onExecute":"onChange",null,function(){var _94=_90();if(_94&&_94.onExecute){_94.onExecute();}}));_81.push({wrapper:_8b,iframe:_8d,widget:_87,parent:_86.parent,onExecute:_86.onExecute,onCancel:_86.onCancel,onClose:_86.onClose,handlers:_8f});if(_87.onOpen){_87.onOpen(_8e);}return _8e;};this.close=function(_95){while(dojo.some(_81,function(_96){return _96.widget==_95;})){var top=_81.pop(),_98=top.wrapper,_99=top.iframe,_9a=top.widget,_9b=top.onClose;if(_9a.onClose){_9a.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_9a||!_9a.domNode){return;}this.prepare(_9a.domNode);_99.destroy();dojo._destroyElement(_98);if(_9b){_9b();}}};}();dijit._frames=new function(){var _9c=[];this.pop=function(){var _9d;if(_9c.length){_9d=_9c.pop();_9d.style.display="";}else{if(dojo.isIE){var _9e="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_9d=dojo.doc.createElement(_9e);}else{_9d=dojo.doc.createElement("iframe");_9d.src="javascript:\"\"";_9d.className="dijitBackgroundIframe";}_9d.tabIndex=-1;dojo.body().appendChild(_9d);}return _9d;};this.push=function(_9f){_9f.style.display="";if(dojo.isIE){_9f.style.removeExpression("width");_9f.style.removeExpression("height");}_9c.push(_9f);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_a1){if(!_a1.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _a2=dijit._frames.pop();_a1.appendChild(_a2);if(dojo.isIE){_a2.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_a1.id+"').offsetWidth");_a2.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_a1.id+"').offsetHeight");}this.iframe=_a2;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){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(_a3){var _a4=_a3.parentNode;var _a5=_a4.scrollTop+dojo.marginBox(_a4).h;var _a6=_a3.offsetTop+dojo.marginBox(_a3).h;if(_a5<_a6){_a4.scrollTop+=(_a6-_a5);}else{if(_a4.scrollTop>_a3.offsetTop){_a4.scrollTop-=(_a4.scrollTop-_a3.offsetTop);}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _a9=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _ac={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_a9,dj_opera8:maj(_a9)==8,dj_opera9:maj(_a9)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};for(var p in _ac){if(_ac[p]){var _ae=dojo.doc.documentElement;if(_ae.className){_ae.className+=" "+p;}else{_ae.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}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=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_b0,_b1,_b2,obj,_b4,_b5){if(obj!=this._obj){this.stop();this._initialDelay=_b5||500;this._subsequentDelay=_b4||0.9;this._obj=obj;this._evt=evt;this._node=_b1;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_b0,_b2);this._fireEventAndReload();}},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(_b6,_b7,_b8,_b9,_ba,_bb){return [dojo.connect(_b6,"onkeypress",this,function(evt){if(evt.keyCode==_b7.keyCode&&(!_b7.charCode||_b7.charCode==evt.charCode)&&(_b7.ctrlKey===undefined||_b7.ctrlKey==evt.ctrlKey)&&(_b7.altKey===undefined||_b7.altKey==evt.ctrlKey)&&(_b7.shiftKey===undefined||_b7.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_b7,_b8,_b6,_b9,_b7,_ba,_bb);}else{if(dijit.typematic._obj==_b7){dijit.typematic.stop();}}}),dojo.connect(_b6,"onkeyup",this,function(evt){if(dijit.typematic._obj==_b7){dijit.typematic.stop();}})];},addMouseListener:function(_be,_bf,_c0,_c1,_c2){var dc=dojo.connect;return [dc(_be,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_bf,_be,_c0,_be,_c1,_c2);}),dc(_be,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_be,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_be,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_be,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_bf,_be,_c0,_be,_c1,_c2);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_c9,_ca,_cb,_cc,_cd,_ce,_cf){return this.addKeyListener(_ca,_cb,_cc,_cd,_ce,_cf).concat(this.addMouseListener(_c9,_cc,_cd,_ce,_cf));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dojo","resources/blank.gif")+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _d2=cs.backgroundImage;var _d3=(cs.borderTopColor==cs.borderRightColor)||(_d2!=null&&(_d2=="none"||_d2=="url(invalid-url:)"));dojo[_d3?"addClass":"removeClass"](dojo.body(),"dijit_a11y");dojo.body().removeChild(div);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(_d4){return _d4.hasAttribute?_d4.hasAttribute("role"):!!_d4.getAttribute("role");},getWaiRole:function(_d5){var _d6=_d5.getAttribute("role");if(_d6){var _d7=_d6.indexOf(":");return _d7==-1?_d6:_d6.substring(_d7+1);}else{return "";}},setWaiRole:function(_d8,_d9){_d8.setAttribute("role",(dojo.isFF&&dojo.isFF<3)?"wairole:"+_d9:_d9);},removeWaiRole:function(_da){_da.removeAttribute("role");},hasWaiState:function(_db,_dc){if(dojo.isFF&&dojo.isFF<3){return _db.hasAttributeNS("http://www.w3.org/2005/07/aaa",_dc);}else{return _db.hasAttribute?_db.hasAttribute("aria-"+_dc):!!_db.getAttribute("aria-"+_dc);}},getWaiState:function(_dd,_de){if(dojo.isFF&&dojo.isFF<3){return _dd.getAttributeNS("http://www.w3.org/2005/07/aaa",_de);}else{var _df=_dd.getAttribute("aria-"+_de);return _df?_df:"";}},setWaiState:function(_e0,_e1,_e2){if(dojo.isFF&&dojo.isFF<3){_e0.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_e1,_e2);}else{_e0.setAttribute("aria-"+_e1,_e2);}},removeWaiState:function(_e3,_e4){if(dojo.isFF&&dojo.isFF<3){_e3.removeAttributeNS("http://www.w3.org/2005/07/aaa",_e4);}else{_e3.removeAttribute("aria-"+_e4);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");if(dojo.isSafari){dojo.connect(window,"load",function(){window.resizeBy(1,0);setTimeout(function(){window.resizeBy(-1,0);},10);});}}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_e5,_e6){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 _e7=dojo.date.stamp._isoRegExp.exec(_e5);var _e8=null;if(_e7){_e7.shift();if(_e7[1]){_e7[1]--;}if(_e7[6]){_e7[6]*=1000;}if(_e6){_e6=new Date(_e6);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_e9){return _e6["get"+_e9]();}).forEach(function(_ea,_eb){if(_e7[_eb]===undefined){_e7[_eb]=_ea;}});}_e8=new Date(_e7[0]||1970,_e7[1]||0,_e7[2]||1,_e7[3]||0,_e7[4]||0,_e7[5]||0,_e7[6]||0);var _ec=0;var _ed=_e7[7]&&_e7[7].charAt(0);if(_ed!="Z"){_ec=((_e7[8]||0)*60)+(Number(_e7[9])||0);if(_ed!="-"){_ec*=-1;}}if(_ed){_ec-=_e8.getTimezoneOffset();}if(_ec){_e8.setTime(_e8.getTime()+_ec*60000);}}return _e8;};dojo.date.stamp.toISOString=function(_ee,_ef){var _=function(n){return (n<10)?"0"+n:n;};_ef=_ef||{};var _f2=[];var _f3=_ef.zulu?"getUTC":"get";var _f4="";if(_ef.selector!="time"){var _f5=_ee[_f3+"FullYear"]();_f4=["0000".substr((_f5+"").length)+_f5,_(_ee[_f3+"Month"]()+1),_(_ee[_f3+"Date"]())].join("-");}_f2.push(_f4);if(_ef.selector!="date"){var _f6=[_(_ee[_f3+"Hours"]()),_(_ee[_f3+"Minutes"]()),_(_ee[_f3+"Seconds"]())].join(":");var _f7=_ee[_f3+"Milliseconds"]();if(_ef.milliseconds){_f6+="."+(_f7<100?"0":"")+_(_f7);}if(_ef.zulu){_f6+="Z";}else{if(_ef.selector!="time"){var _f8=_ee.getTimezoneOffset();var _f9=Math.abs(_f8);_f6+=(_f8>0?"-":"+")+_(Math.floor(_f9/60))+":"+_(_f9%60);}}_f2.push(_f6);}return _f2.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _fb=d._scopeName+"Type";var qry="["+_fb+"]";function val2type(_fd){if(d.isString(_fd)){return "string";}if(typeof _fd=="number"){return "number";}if(typeof _fd=="boolean"){return "boolean";}if(d.isFunction(_fd)){return "function";}if(d.isArray(_fd)){return "array";}if(_fd instanceof Date){return "date";}if(_fd instanceof d._Url){return "url";}return "object";};function str2obj(_fe,_ff){switch(_ff){case "string":return _fe;case "number":return _fe.length?Number(_fe):NaN;case "boolean":return typeof _fe=="boolean"?_fe:!(_fe.toLowerCase()=="false");case "function":if(d.isFunction(_fe)){_fe=_fe.toString();_fe=d.trim(_fe.substring(_fe.indexOf("{")+1,_fe.length-1));}try{if(_fe.search(/[^\w\.]+/i)!=-1){_fe=d.parser._nameAnonFunc(new Function(_fe),this);}return d.getObject(_fe,false);}catch(e){return new Function();}case "array":return _fe.split(/\s*,\s*/);case "date":switch(_fe){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_fe);}case "url":return d.baseUrl+_fe;default:return d.fromJson(_fe);}};var _100={};function getClassInfo(_101){if(!_100[_101]){var cls=d.getObject(_101);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_101+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _103=cls.prototype;var _104={};for(var name in _103){if(name.charAt(0)=="_"){continue;}var _106=_103[name];_104[name]=val2type(_106);}_100[_101]={cls:cls,params:_104};}return _100[_101];};this._functionFromScript=function(_107){var _108="";var _109="";var _10a=_107.getAttribute("args");if(_10a){d.forEach(_10a.split(/\s*,\s*/),function(part,idx){_108+="var "+part+" = arguments["+idx+"]; ";});}var _10d=_107.getAttribute("with");if(_10d&&_10d.length){d.forEach(_10d.split(/\s*,\s*/),function(part){_108+="with("+part+"){";_109+="}";});}return new Function(_108+_107.innerHTML+_109);};this.instantiate=function(_10f){var _110=[];d.forEach(_10f,function(node){if(!node){return;}var type=node.getAttribute(_fb);if((!type)||(!type.length)){return;}var _113=getClassInfo(type);var _114=_113.cls;var ps=_114._noScript||_114.prototype._noScript;var _116={};var _117=node.attributes;for(var name in _113.params){var item=_117.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _11a=item.value;switch(name){case "class":_11a=node.className;break;case "style":_11a=node.style&&node.style.cssText;}var _11b=_113.params[name];_116[name]=str2obj(_11a,_11b);}if(!ps){var _11c=[],_11d=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_11e){var _11f=_11e.getAttribute("event"),type=_11e.getAttribute("type"),nf=d.parser._functionFromScript(_11e);if(_11f){if(type=="dojo/connect"){_11c.push({event:_11f,func:nf});}else{_116[_11f]=nf;}}else{_11d.push(nf);}});}var _121=_114["markupFactory"];if(!_121&&_114["prototype"]){_121=_114.prototype["markupFactory"];}var _122=_121?_121(_116,node,_114):new _114(_116,node);_110.push(_122);var _123=node.getAttribute("jsId");if(_123){d.setObject(_123,_122);}if(!ps){d.forEach(_11c,function(_124){d.connect(_122,_124.event,null,_124.func);});d.forEach(_11d,function(func){func.call(_122);});}});d.forEach(_110,function(_126){if(_126&&_126.startup&&!_126._started&&(!_126.getParent||!_126.getParent())){_126.startup();}});return _110;};this.parse=function(_127){var list=d.query(qry,_127);var _129=this.instantiate(list);return _129;};}();(function(){var _12a=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_12a);}else{dojo._loaders.unshift(_12a);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_12b,_12c){var jpn="$joinpoint";var nso=(_12c||dojo.parser._anon);if(dojo.isIE){var cn=_12b["__dojoNameCache"];if(cn&&nso[cn]===_12b){return _12b["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_12b;return ret;};}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_131,_132){this.create(_131,_132);},create:function(_133,_134){this.srcNodeRef=dojo.byId(_134);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_133){this.params=_133;dojo.mixin(this,_133);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _136=this[attr];if(typeof _136!="object"&&((_136!==""&&_136!==false)||(_133&&_133[attr]))){this.setAttribute(attr,_136);}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_137){this.destroyDescendants();this.destroy();},destroy:function(_138){this.uninitialize();dojo.forEach(this._connects,function(_139){dojo.forEach(_139,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){w.destroy();});this.destroyRendering(_138);dijit.registry.remove(this.id);},destroyRendering:function(_13b){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_13c){_13c.destroy();});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_13f){var _140=this[this.attributeMap[attr]||"domNode"];this[attr]=_13f;switch(attr){case "class":dojo.addClass(_140,_13f);break;case "style":if(_140.style.cssText){_140.style.cssText+="; "+_13f;}else{_140.style.cssText=_13f;}break;default:if(/^on[A-Z]/.test(attr)){attr=attr.toLowerCase();}if(typeof _13f=="function"){_13f=dojo.hitch(this,_13f);}dojo.attr(_140,attr,_13f);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_143,_144){var _145=[];if(_143=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){_145.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_144))?this[_144](e):_144.call(this,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_145.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_144)?this[_144](e):_144.call(this,e);}}));}_143="onclick";}_145.push(dojo.connect(obj,_143,this,_144));this._connects.push(_145);return _145;},disconnect:function(_148){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_148){dojo.forEach(_148,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(!("_ltr" in this)){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_14f,map,_151,_152){return _14f.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_153,key,_155){var _156=dojo.getObject(key,false,map);if(_155){_156=dojo.getObject(_155,false,_152)(_156);}if(_151){_156=_151(_156,key);}return _156.toString();});};dojo.string.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["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){var _15a=this.declaredClass,_15b=this;return dojo.string.substitute(tmpl,this,function(_15c,key){if(key.charAt(0)=="!"){_15c=_15b[key.substr(1)];}if(typeof _15c=="undefined"){throw new Error(_15a+" template:"+key);}if(!_15c){return "";}return key.charAt(0)=="!"?_15c:_15c.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _15e=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_15e)){node=dijit._Templated._createNodesFromText(this._stringRepl(_15e))[0];}else{node=_15e.cloneNode(true);}this._attachTemplateNodes(node);var _160=this.srcNodeRef;if(_160&&_160.parentNode){_160.parentNode.replaceChild(node,_160);}this.domNode=node;if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_160);},_fillContent:function(_164){var dest=this.containerNode;if(_164&&dest){while(_164.hasChildNodes()){dest.appendChild(_164.firstChild);}}},_attachTemplateNodes:function(_166,_167){_167=_167||function(n,p){return n.getAttribute(p);};var _16a=dojo.isArray(_166)?_166:(_166.all||_166.getElementsByTagName("*"));var x=dojo.isArray(_166)?0:-1;for(;x<_16a.length;x++){var _16c=(x==-1)?_166:_16a[x];if(this.widgetsInTemplate&&_167(_16c,"dojoType")){continue;}var _16d=_167(_16c,"dojoAttachPoint");if(_16d){var _16e,_16f=_16d.split(/\s*,\s*/);while((_16e=_16f.shift())){if(dojo.isArray(this[_16e])){this[_16e].push(_16c);}else{this[_16e]=_16c;}}}var _170=_167(_16c,"dojoAttachEvent");if(_170){var _171,_172=_170.split(/\s*,\s*/);var trim=dojo.trim;while((_171=_172.shift())){if(_171){var _174=null;if(_171.indexOf(":")!=-1){var _175=_171.split(":");_171=trim(_175[0]);_174=trim(_175[1]);}else{_171=trim(_171);}if(!_174){_174=_171;}this.connect(_16c,_171,_174);}}}var role=_167(_16c,"waiRole");if(role){dijit.setWaiRole(_16c,role);}var _177=_167(_16c,"waiState");if(_177){dojo.forEach(_177.split(/\s*,\s*/),function(_178){if(_178.indexOf("-")!=-1){var pair=_178.split("-");dijit.setWaiState(_16c,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_17a,_17b,_17c){var _17d=dijit._Templated._templateCache;var key=_17b||_17a;var _17f=_17d[key];if(_17f){return _17f;}if(!_17b){_17b=dijit._Templated._sanitizeTemplateString(dojo._getText(_17a));}_17b=dojo.string.trim(_17b);if(_17c||_17b.match(/\$\{([^\}]+)\}/g)){return (_17d[key]=_17b);}else{return (_17d[key]=dijit._Templated._createNodesFromText(_17b)[0]);}};dijit._Templated._sanitizeTemplateString=function(_180){if(_180){_180=_180.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _181=_180.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_181){_180=_181[1];}}else{_180="";}return _180;};if(dojo.isIE){dojo.addOnUnload(function(){var _182=dijit._Templated._templateCache;for(var key in _182){var _184=_182[key];if(!isNaN(_184.nodeType)){dojo._destroyElement(_184);}delete _182[key];}});}(function(){var _185={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _188="none";var _189=text.replace(/^\s+/,"");for(var type in _185){var map=_185[type];if(map.re.test(_189)){_188=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_188];var _18d=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _18e=[];while(_18d.firstChild){_18e.push(_18d.removeChild(_18d.firstChild));}tn.innerHTML="";return _18e;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _1a6=n.scrollLeft,_1a7=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_1a6!=n.scrollLeft||_1a7!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_1ad=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_1ad];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});},onMouseUp:function(e){if(this.mouseButton==e.button){this.destroy();}},onFirstMove:function(){var s=this.node.style,l,t;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);l=m.l;t=m.t;break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;this.host.onFirstMove(this);dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_1b7){this.node=dojo.byId(node);if(!_1b7){_1b7={};}this.handle=_1b7.handle?dojo.byId(_1b7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1b7.delay>0?_1b7.delay:0;this.skip=_1b7.skip;this.mover=_1b7.mover?_1b7.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_1b8,node){return new dojo.dnd.Moveable(node,_1b8);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onMoveStart:function(_1be){dojo.publish("/dnd/move/start",[_1be]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_1bf){dojo.publish("/dnd/move/stop",[_1bf]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_1c0){},onMove:function(_1c1,_1c2){this.onMoving(_1c1,_1c2);var s=_1c1.node.style;s.left=_1c2.l+"px";s.top=_1c2.t+"px";this.onMoved(_1c1,_1c2);},onMoving:function(_1c4,_1c5){},onMoved:function(_1c6,_1c7){}});}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _1c8=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_1ca){if(!_1ca){_1ca={};}if(_1ca.timeout&&typeof _1ca.timeout=="number"&&_1ca.timeout>=0){this.timeout=_1ca.timeout;}},markupFactory:function(_1cb,node){return new dojo.dnd.TimedMoveable(node,_1cb);},onMoveStop:function(_1cd){if(_1cd._timer){clearTimeout(_1cd._timer);_1c8.call(this,_1cd,_1cd._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_1ce,_1cf){_1ce._leftTop=_1cf;if(!_1ce._timer){var _t=this;_1ce._timer=setTimeout(function(){_1ce._timer=null;_1c8.call(_t,_1ce,_1ce._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _1d1={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _1d4=function(_1d5){this._index=-1;this._animations=_1d5||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_1d4,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_1d7,_1d8){if(!this._current){this._current=this._animations[this._index=0];}if(!_1d8&&this._current.status()=="playing"){return this;}var _1d9=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_1da=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_1dc=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_1d9);dojo.disconnect(_1da);dojo.disconnect(_1dc);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_1e0,_1e1){this.pause();var _1e2=this.duration*_1e0;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_1e2){this._current=a;return true;}_1e2-=a.duration;return false;});if(this._current){this._current.gotoPercent(_1e2/_current.duration,_1e1);}return this;},stop:function(_1e4){if(this._current){if(_1e4){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_1d4,_1d1);dojo.fx.chain=function(_1e7){return new _1d4(_1e7);};var _1e8=function(_1e9){this._animations=_1e9||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_1e9,function(a){var _1eb=a.duration;if(a.delay){_1eb+=a.delay;}if(this.duration<_1eb){this.duration=_1eb;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_1e8,{_doAction:function(_1ed,args){dojo.forEach(this._animations,function(a){a[_1ed].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_1f0,args){var t=this._pseudoAnimation;t[_1f0].apply(t,args);},play:function(_1f3,_1f4){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_1f5,_1f6){var ms=this.duration*_1f5;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_1f6);});this._call("gotoProcent",arguments);return this;},stop:function(_1f9){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_1e8,_1d1);dojo.fx.combine=function(_1fa){return new _1e8(_1fa);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_1fd){return this.showAnim.play(_1fd||0);},hide:function(_1fe){return this.hideAnim.play(_1fe||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _203=dojo.style(node,"height");return Math.max(_203,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _214=dijit.byId(id);return _214.isContainer?_214:null;}}return null;},_getSibling:function(_215){var node=this.domNode;do{node=node[_215+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_218,_219){if(_219===undefined){_219="last";}var _21a=this.containerNode||this.domNode;if(_219&&typeof _219=="number"){var _21b=dojo.query("> [widgetid]",_21a);if(_21b&&_21b.length>=_219){_21a=_21b[_219-1];_219="after";}}dojo.place(_218.domNode,_21a,_219);if(this._started&&!_218._started){_218.startup();}},removeChild:function(_21c){var node=_21c.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_221,dir){var node=_221.domNode;var _224=(dir>0?"nextSibling":"previousSibling");do{node=node[_224];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_225,_226){var _227=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_225,function(code){_227[code]=prev;});dojo.forEach(_226,function(code){_227[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_22c,_22d){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_22c);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _22e=this._getNextFocusableChild(this.focusedChild,1);if(_22e.getFocalNodes){this.focusChild(_22e,_22e.getFocalNodes()[0]);}else{this.focusChild(_22e);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _22f=this._getNextFocusableChild(this.focusedChild,-1);if(_22f.getFocalNodes){var _230=_22f.getFocalNodes();this.focusChild(_22f,_230[_230.length-1]);}else{this.focusChild(_22f);}},focusChild:function(_231,node){if(_231){if(this.focusedChild&&_231!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_231;if(node&&_231.focusFocalNode){_231.focusFocalNode(node);}else{_231.focus();}}},_startupChild:function(_233){if(_233.getFocalNodes){dojo.forEach(_233.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_233.focusNode||_233.domNode;if(_233.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _23b=dijit.getEnclosingWidget(evt.target);if(_23b&&_23b.isFocusable()){this.focusedChild=_23b;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_23d){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_23e,dir){if(_23e){_23e=this._getSiblingOfChild(_23e,dir);}var _240=this.getChildren();for(var i=0;i<_240.length;i++){if(!_23e){_23e=_240[(dir>0)?0:(_240.length-1)];}if(_23e.isFocusable()){return _23e;}_23e=this._getSiblingOfChild(_23e,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_242){_242.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _24b=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_24e,dim){_24e.resize?_24e.resize(dim):dojo.marginBox(_24e.domNode,dim);dojo.mixin(_24e,dojo.marginBox(_24e.domNode));dojo.mixin(_24e,dim);};dijit.layout.layoutChildren=function(_250,dim,_252){dim=dojo.mixin({},dim);dojo.addClass(_250,"dijitLayoutContainer");_252=dojo.filter(_252,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_252,function(item){return item.layoutAlign=="client";}));dojo.forEach(_252,function(_255){var elm=_255.domNode,pos=_255.layoutAlign;var _258=elm.style;_258.left=dim.l+"px";_258.top=dim.t+"px";_258.bottom=_258.right="auto";dojo.addClass(elm,"dijitAlign"+_24b(pos));if(pos=="top"||pos=="bottom"){size(_255,{w:dim.w});dim.h-=_255.h;if(pos=="top"){dim.t+=_255.h;}else{_258.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_255,{h:dim.h});dim.w-=_255.w;if(pos=="left"){dim.l+=_255.w;}else{_258.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_255,dim);}}}});};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_259,_25a,_25b){_25b=dojo.i18n.normalizeLocale(_25b);var _25c=_25b.split("-");var _25d=[_259,"nls",_25a].join(".");var _25e=dojo._loadedModules[_25d];if(_25e){var _25f;for(var i=_25c.length;i>0;i--){var loc=_25c.slice(0,i).join("_");if(_25e[loc]){_25f=_25e[loc];break;}}if(!_25f){_25f=_25e.ROOT;}if(_25f){var _262=function(){};_262.prototype=_25f;return new _262();}}throw new Error("Bundle not found: "+_25a+" in "+_259+" , locale="+_25b);};dojo.i18n.normalizeLocale=function(_263){var _264=_263?_263.toLowerCase():dojo.locale;if(_264=="root"){_264="ROOT";}return _264;};dojo.i18n._requireLocalization=function(_265,_266,_267,_268){var _269=dojo.i18n.normalizeLocale(_267);var _26a=[_265,"nls",_266].join(".");var _26b="";if(_268){var _26c=_268.split(",");for(var i=0;i<_26c.length;i++){if(_269.indexOf(_26c[i])==0){if(_26c[i].length>_26b.length){_26b=_26c[i];}}}if(!_26b){_26b="ROOT";}}var _26e=_268?_26b:_269;var _26f=dojo._loadedModules[_26a];var _270=null;if(_26f){if(dojo.config.localizationComplete&&_26f._built){return;}var _271=_26e.replace(/-/g,"_");var _272=_26a+"."+_271;_270=dojo._loadedModules[_272];}if(!_270){_26f=dojo["provide"](_26a);var syms=dojo._getModuleSymbols(_265);var _274=syms.concat("nls").join("/");var _275;dojo.i18n._searchLocalePath(_26e,_268,function(loc){var _277=loc.replace(/-/g,"_");var _278=_26a+"."+_277;var _279=false;if(!dojo._loadedModules[_278]){dojo["provide"](_278);var _27a=[_274];if(loc!="ROOT"){_27a.push(loc);}_27a.push(_266);var _27b=_27a.join("/")+".js";_279=dojo._loadPath(_27b,null,function(hash){var _27d=function(){};_27d.prototype=_275;_26f[_277]=new _27d();for(var j in hash){_26f[_277][j]=hash[j];}});}else{_279=true;}if(_279&&_26f[_277]){_275=_26f[_277];}else{_26f[_277]=_275;}if(_268){return true;}});}if(_268&&_269!=_26b){_26f[_269.replace(/-/g,"_")]=_26f[_26b.replace(/-/g,"_")];}};(function(){var _27f=dojo.config.extraLocale;if(_27f){if(!_27f instanceof Array){_27f=[_27f];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_283,_284){req(m,b,_283,_284);if(_283){return;}for(var i=0;i<_27f.length;i++){req(m,b,_27f[i],_284);}};}})();dojo.i18n._searchLocalePath=function(_286,down,_288){_286=dojo.i18n.normalizeLocale(_286);var _289=_286.split("-");var _28a=[];for(var i=_289.length;i>0;i--){_28a.push(_289.slice(0,i).join("-"));}_28a.push(false);if(down){_28a.reverse();}for(var j=_28a.length-1;j>=0;j--){var loc=_28a[j]||"ROOT";var stop=_288(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_28f,_290){function preload(_291){_291=dojo.i18n.normalizeLocale(_291);dojo.i18n._searchLocalePath(_291,true,function(loc){for(var i=0;i<_290.length;i++){if(_290[i]==loc){dojo["require"](_28f+"_"+loc);return true;}}return false;});};preload();var _294=dojo.config.extraLocale||[];for(var i=0;i<_294.length;i++){preload(_294[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",doLayout:"auto",postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}var _296=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_296);this.errorMessage=dojo.string.substitute(this.errorMessage,_296);var _297=dijit.getWaiRole(this.domNode);if(!_297){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _298=dojo.query(">",this.containerNode||this.domNode),_299=_298.filter("[widgetId]");if(_298.length==1&&_299.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_299[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();this._singleChild.resize(this._contentBox||dojo.contentBox(this.containerNode||this.domNode));}}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_29f){this.cancel();this.isLoaded=false;this._loadCheck(_29f);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_2a1){var _2a2=this._isShown();if(this.href&&(_2a1||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_2a2&&!this._xhrDfd)||(!this.isLoaded&&_2a2&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _2a4={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_2a4,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_2a4);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _2ab=this.onContentError(e);try{node.innerHTML=_2ab;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_2ae){var _2af=this["on"+type+"Error"].call(this,err);if(_2ae){console.error(_2ae,err);}else{if(_2af){this._setContent.call(this,_2af);}}},_createSubWidgets:function(){var _2b0=this.containerNode||this.domNode;try{dojo.parser.parse(_2b0,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_2b3){},onDownloadError:function(_2b4){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_2b5){if(_2b5.reset){_2b5.reset();}});},validate:function(){var _2b6=false;return dojo.every(dojo.map(this.getDescendants(),function(_2b7){_2b7._hasBeenBlurred=true;var _2b8=!_2b7.validate||_2b7.validate();if(!_2b8&&!_2b6){dijit.scrollIntoView(_2b7.containerNode||_2b7.domNode);_2b7.focus();_2b6=true;}return _2b8;}),"return item;");},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_2bb){if(!_2bb.name){return;}var _2bc=map[_2bb.name]||(map[_2bb.name]=[]);_2bc.push(_2bb);});for(var name in map){var _2be=map[name],_2bf=dojo.getObject(name,false,obj);if(!dojo.isArray(_2bf)){_2bf=[_2bf];}if(typeof _2be[0].checked=="boolean"){dojo.forEach(_2be,function(w,i){w.setValue(dojo.indexOf(_2bf,w.value)!=-1);});}else{if(_2be[0]._multiValue){_2be[0].setValue(_2bf);}else{dojo.forEach(_2be,function(w,i){w.setValue(_2bf[i]);});}}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_2c5){var name=_2c5.name;if(!name){return;}var _2c7=(_2c5.getValue&&!_2c5._getValueDeprecated)?_2c5.getValue():_2c5.value;if(typeof _2c5.checked=="boolean"){if(/Radio/.test(_2c5.declaredClass)){if(_2c7!==false){dojo.setObject(name,_2c7,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_2c7!==false){ary.push(_2c7);}}}else{dojo.setObject(name,_2c7,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_2c9){return !_2c9.isValid||_2c9.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_2ca){},onExecute:function(){},setAttribute:function(attr,_2cc){this.inherited(arguments);switch(attr){case "encType":if(dojo.isIE){this.domNode.encoding=_2cc;}}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.setAttribute("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _2d4=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_2d4.t+"px";os.left=_2d4.l+"px";is.width=_2d4.w+"px";is.height=_2d4.h+"px";var _2d7=dijit.getViewport();if(_2d4.w!=_2d7.w){is.width=_2d7.w+"px";}if(_2d4.h!=_2d7.h){is.height=_2d7.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_2d8){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.getValues());},_getFocusItems:function(_2d9){var _2da=dijit.getFirstInTabbingOrder(_2d9);this._firstFocusItem=_2da?_2da:_2d9;_2da=dijit.getLastInTabbingOrder(_2d9);this._lastFocusItem=_2da?_2da:this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_2d9,"tabindex","0");this._firstFocusItem=_2d9;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\">${title}</span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",open:false,duration:400,refocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){dojo.body().appendChild(this.domNode);this.inherited(arguments);var _2db=dojo.i18n.getLocalization("dijit","common");if(this.closeButtonNode){this.closeButtonNode.setAttribute("title",_2db.buttonCancel);}if(this.closeText){this.closeText.setAttribute("title",_2db.buttonCancel);}var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_setup:function(){if(this.titleBar){this._moveable=new dojo.dnd.TimedMoveable(this.domNode,{handle:this.titleBar,timeout:0});}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _2df=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _2e1=this.domNode.style;_2e1.left=Math.floor((_2df.l+(_2df.w-mb.w)/2))+"px";_2e1.top=Math.floor((_2df.t+(_2df.h-mb.h)/2))+"px";},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(evt.keyCode==dojo.keys.TAB){this._getFocusItems(this.domNode);}var _2e4=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(!_2e4){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){if(!_2e4){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,"opacity",0);this.domNode.style.visibility="";this.open=true;this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);this._getFocusItems(this.domNode);setTimeout(dojo.hitch(this,function(){dijit.focus(this._firstFocusItem);}),50);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){var fo=this._savedFocus;setTimeout(dojo.hitch(dijit,"focus",fo),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div class=\"dijitTooltipDialog\" waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presenation\"></div>\r\n</div>\r\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_2e7,_2e8){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_2e8.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_2e8.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this._getFocusItems(this.containerNode);this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();dijit.focus(this._firstFocusItem);},_onKey:function(evt){var node=evt.target;if(evt.keyCode==dojo.keys.TAB){this._getFocusItems(this.containerNode);}var _2ec=(this._firstFocusItem==this._lastFocusItem);if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(!_2ec){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){if(!_2ec){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.keyCode==dojo.keys.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dojox.data.dom"]){dojo._hasResource["dojox.data.dom"]=true;dojo.provide("dojox.data.dom");dojo.experimental("dojox.data.dom");dojox.data.dom.createDocument=function(str,_2ee){var _2ef=dojo.doc;if(!_2ee){_2ee="text/xml";}if(str&&(typeof dojo.global["DOMParser"])!=="undefined"){var _2f0=new DOMParser();return _2f0.parseFromString(str,_2ee);}else{if((typeof dojo.global["ActiveXObject"])!=="undefined"){var _2f1=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_2f1.length;i++){try{var doc=new ActiveXObject(_2f1[i]+".XMLDOM");if(str){if(doc){doc.async=false;doc.loadXML(str);return doc;}else{console.log("loadXML didn't work?");}}else{if(doc){return doc;}}}catch(e){}}}else{if((_2ef.implementation)&&(_2ef.implementation.createDocument)){if(str){if(_2ef.createElement){var tmp=_2ef.createElement("xml");tmp.innerHTML=str;var _2f5=_2ef.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_2f5.importNode(tmp.childNodes.item(i),true);}return _2f5;}}else{return _2ef.implementation.createDocument("","",null);}}}}return null;};dojox.data.dom.textContent=function(node,text){if(arguments.length>1){var _2f8=node.ownerDocument||dojo.doc;dojox.data.dom.replaceChildren(node,_2f8.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _2f9="";if(node==null){return _2f9;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_2f9+=dojox.data.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_2f9+=node.childNodes[i].nodeValue;break;default:break;}}return _2f9;}};dojox.data.dom.replaceChildren=function(node,_2fc){var _2fd=[];if(dojo.isIE){for(var i=0;i<node.childNodes.length;i++){_2fd.push(node.childNodes[i]);}}dojox.data.dom.removeChildren(node);for(var i=0;i<_2fd.length;i++){dojo._destroyElement(_2fd[i]);}if(!dojo.isArray(_2fc)){node.appendChild(_2fc);}else{for(var i=0;i<_2fc.length;i++){node.appendChild(_2fc[i]);}}};dojox.data.dom.removeChildren=function(node){var _300=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _300;};dojox.data.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};}if(!dojo._hasResource["dojox.fx.easing"]){dojo._hasResource["dojox.fx.easing"]=true;dojo.provide("dojox.fx.easing");dojox.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0){return 0;}if(n==1){return 1;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0){return 0;}if(n==1){return 1;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojox.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojox.fx.easing.bounceIn(n*2)/2;}return (dojox.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_32e){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_32e&&_32e.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_332){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_332);};dojo.regexp.group=function(_335,_336){return "("+(_336?"?:":"")+_335+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_338,_339){var c=document.cookie;if(arguments.length==1){var _33b=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _33b?decodeURIComponent(_33b[1]):undefined;}else{_339=_339||{};var exp=_339.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_339.expires=d;}if(exp&&exp.toUTCString){_339.expires=exp.toUTCString();}_338=encodeURIComponent(_338);var _33e=name+"="+_338;for(propName in _339){_33e+="; "+propName;var _33f=_339[propName];if(_33f!==true){_33e+="="+_33f;}}document.cookie=_33e;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_340,_341){_341=dojo.mixin({},_341||{});var _342=dojo.i18n.normalizeLocale(_341.locale);var _343=dojo.i18n.getLocalization("dojo.cldr","number",_342);_341.customs=_343;var _344=_341.pattern||_343[(_341.type||"decimal")+"Format"];if(isNaN(_340)){return null;}return dojo.number._applyPattern(_340,_344,_341);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_345,_346,_347){_347=_347||{};var _348=_347.customs.group;var _349=_347.customs.decimal;var _34a=_346.split(";");var _34b=_34a[0];_346=_34a[(_345<0)?1:0]||("-"+_34b);if(_346.indexOf("%")!=-1){_345*=100;}else{if(_346.indexOf("‰")!=-1){_345*=1000;}else{if(_346.indexOf("¤")!=-1){_348=_347.customs.currencyGroup||_348;_349=_347.customs.currencyDecimal||_349;_346=_346.replace(/\u00a4{1,3}/,function(_34c){var prop=["symbol","currency","displayName"][_34c.length-1];return _347[prop]||_347.currency||"";});}else{if(_346.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _34e=dojo.number._numberPatternRE;var _34f=_34b.match(_34e);if(!_34f){throw new Error("unable to find a number expression in pattern: "+_346);}return _346.replace(_34e,dojo.number._formatAbsolute(_345,_34f[0],{decimal:_349,group:_348,places:_347.places}));};dojo.number.round=function(_350,_351,_352){var _353=String(_350).split(".");var _354=(_353[1]&&_353[1].length)||0;if(_354>_351){var _355=Math.pow(10,_351);if(_352>0){_355*=10/_352;_351++;}_350=Math.round(_350*_355)/_355;_353=String(_350).split(".");_354=(_353[1]&&_353[1].length)||0;if(_354>_351){_353[1]=_353[1].substr(0,_351);_350=Number(_353.join("."));}}return _350;};dojo.number._formatAbsolute=function(_356,_357,_358){_358=_358||{};if(_358.places===true){_358.places=0;}if(_358.places===Infinity){_358.places=6;}var _359=_357.split(".");var _35a=(_358.places>=0)?_358.places:(_359[1]&&_359[1].length)||0;if(!(_358.round<0)){_356=dojo.number.round(_356,_35a,_358.round);}var _35b=String(Math.abs(_356)).split(".");var _35c=_35b[1]||"";if(_358.places){_35b[1]=dojo.string.pad(_35c.substr(0,_358.places),_358.places,"0",true);}else{if(_359[1]&&_358.places!==0){var pad=_359[1].lastIndexOf("0")+1;if(pad>_35c.length){_35b[1]=dojo.string.pad(_35c,pad,"0",true);}var _35e=_359[1].length;if(_35e<_35c.length){_35b[1]=_35c.substr(0,_35e);}}else{if(_35b[1]){_35b.pop();}}}var _35f=_359[0].replace(",","");pad=_35f.indexOf("0");if(pad!=-1){pad=_35f.length-pad;if(pad>_35b[0].length){_35b[0]=dojo.string.pad(_35b[0],pad);}if(_35f.indexOf("#")==-1){_35b[0]=_35b[0].substr(_35b[0].length-pad);}}var _360=_359[0].lastIndexOf(",");var _361,_362;if(_360!=-1){_361=_359[0].length-_360-1;var _363=_359[0].substr(0,_360);_360=_363.lastIndexOf(",");if(_360!=-1){_362=_363.length-_360-1;}}var _364=[];for(var _365=_35b[0];_365;){var off=_365.length-_361;_364.push((off>0)?_365.substr(off):_365);_365=(off>0)?_365.slice(0,off):"";if(_362){_361=_362;delete _362;}}_35b[0]=_364.reverse().join(_358.group||",");return _35b.join(_358.decimal||".");};dojo.number.regexp=function(_367){return dojo.number._parseInfo(_367).regexp;};dojo.number._parseInfo=function(_368){_368=_368||{};var _369=dojo.i18n.normalizeLocale(_368.locale);var _36a=dojo.i18n.getLocalization("dojo.cldr","number",_369);var _36b=_368.pattern||_36a[(_368.type||"decimal")+"Format"];var _36c=_36a.group;var _36d=_36a.decimal;var _36e=1;if(_36b.indexOf("%")!=-1){_36e/=100;}else{if(_36b.indexOf("‰")!=-1){_36e/=1000;}else{var _36f=_36b.indexOf("¤")!=-1;if(_36f){_36c=_36a.currencyGroup||_36c;_36d=_36a.currencyDecimal||_36d;}}}var _370=_36b.split(";");if(_370.length==1){_370.push("-"+_370[0]);}var re=dojo.regexp.buildGroupRE(_370,function(_372){_372="(?:"+dojo.regexp.escapeString(_372,".")+")";return _372.replace(dojo.number._numberPatternRE,function(_373){var _374={signed:false,separator:_368.strict?_36c:[_36c,""],fractional:_368.fractional,decimal:_36d,exponent:false};var _375=_373.split(".");var _376=_368.places;if(_375.length==1||_376===0){_374.fractional=false;}else{if(_376===undefined){_376=_375[1].lastIndexOf("0")+1;}if(_376&&_368.fractional==undefined){_374.fractional=true;}if(!_368.places&&(_376<_375[1].length)){_376+=","+_375[1].length;}_374.places=_376;}var _377=_375[0].split(",");if(_377.length>1){_374.groupSize=_377.pop().length;if(_377.length>1){_374.groupSize2=_377.pop().length;}}return "("+dojo.number._realNumberRegexp(_374)+")";});},true);if(_36f){re=re.replace(/(\s*)(\u00a4{1,3})(\s*)/g,function(_378,_379,_37a,_37b){var prop=["symbol","currency","displayName"][_37a.length-1];var _37d=dojo.regexp.escapeString(_368[prop]||_368.currency||"");_379=_379?"\\s":"";_37b=_37b?"\\s":"";if(!_368.strict){if(_379){_379+="*";}if(_37b){_37b+="*";}return "(?:"+_379+_37d+_37b+")?";}return _379+_37d+_37b;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_36c,decimal:_36d,factor:_36e};};dojo.number.parse=function(_37e,_37f){var info=dojo.number._parseInfo(_37f);var _381=(new RegExp("^"+info.regexp+"$")).exec(_37e);if(!_381){return NaN;}var _382=_381[1];if(!_381[1]){if(!_381[2]){return NaN;}_382=_381[2];info.factor*=-1;}_382=_382.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_382)*info.factor;};dojo.number._realNumberRegexp=function(_383){_383=_383||{};if(!("places" in _383)){_383.places=Infinity;}if(typeof _383.decimal!="string"){_383.decimal=".";}if(!("fractional" in _383)||/^0/.test(_383.places)){_383.fractional=[true,false];}if(!("exponent" in _383)){_383.exponent=[true,false];}if(!("eSigned" in _383)){_383.eSigned=[true,false];}var _384=dojo.number._integerRegexp(_383);var _385=dojo.regexp.buildGroupRE(_383.fractional,function(q){var re="";if(q&&(_383.places!==0)){re="\\"+_383.decimal;if(_383.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_383.places+"}";}}return re;},true);var _388=dojo.regexp.buildGroupRE(_383.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_383.eSigned})+")";}return "";});var _38a=_384+_385;if(_385){_38a="(?:(?:"+_38a+")|(?:"+_385+"))";}return _38a+_388;};dojo.number._integerRegexp=function(_38b){_38b=_38b||{};if(!("signed" in _38b)){_38b.signed=[true,false];}if(!("separator" in _38b)){_38b.separator="";}else{if(!("groupSize" in _38b)){_38b.groupSize=3;}}var _38c=dojo.regexp.buildGroupRE(_38b.signed,function(q){return q?"[-+]":"";},true);var _38e=dojo.regexp.buildGroupRE(_38b.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_38b.groupSize,grp2=_38b.groupSize2;if(grp2){var _392="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_392+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_392;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _38c+_38e;};}if(!dojo._hasResource["dojox.validate.regexp"]){dojo._hasResource["dojox.validate.regexp"]=true;dojo.provide("dojox.validate.regexp");dojox.regexp={ca:{},us:{}};dojox.regexp.tld=function(_393){_393=(typeof _393=="object")?_393:{};if(typeof _393.allowCC!="boolean"){_393.allowCC=true;}if(typeof _393.allowInfra!="boolean"){_393.allowInfra=true;}if(typeof _393.allowGeneric!="boolean"){_393.allowGeneric=true;}var _394="arpa";var _395="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";var ccRE="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|"+"gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|"+"la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|"+"my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|"+"re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|"+"tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";var a=[];if(_393.allowInfra){a.push(_394);}if(_393.allowGeneric){a.push(_395);}if(_393.allowCC){a.push(ccRE);}var _398="";if(a.length>0){_398="("+a.join("|")+")";}return _398;};dojox.regexp.ipAddress=function(_399){_399=(typeof _399=="object")?_399:{};if(typeof _399.allowDottedDecimal!="boolean"){_399.allowDottedDecimal=true;}if(typeof _399.allowDottedHex!="boolean"){_399.allowDottedHex=true;}if(typeof _399.allowDottedOctal!="boolean"){_399.allowDottedOctal=true;}if(typeof _399.allowDecimal!="boolean"){_399.allowDecimal=true;}if(typeof _399.allowHex!="boolean"){_399.allowHex=true;}if(typeof _399.allowIPv6!="boolean"){_399.allowIPv6=true;}if(typeof _399.allowHybrid!="boolean"){_399.allowHybrid=true;}var _39a="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var _39b="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";var _39c="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";var _39d="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";var _39e="0[xX]0*[\\da-fA-F]{1,8}";var _39f="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";var _3a0="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var a=[];if(_399.allowDottedDecimal){a.push(_39a);}if(_399.allowDottedHex){a.push(_39b);}if(_399.allowDottedOctal){a.push(_39c);}if(_399.allowDecimal){a.push(_39d);}if(_399.allowHex){a.push(_39e);}if(_399.allowIPv6){a.push(_39f);}if(_399.allowHybrid){a.push(_3a0);}var _3a2="";if(a.length>0){_3a2="("+a.join("|")+")";}return _3a2;};dojox.regexp.host=function(_3a3){_3a3=(typeof _3a3=="object")?_3a3:{};if(typeof _3a3.allowIP!="boolean"){_3a3.allowIP=true;}if(typeof _3a3.allowLocal!="boolean"){_3a3.allowLocal=false;}if(typeof _3a3.allowPort!="boolean"){_3a3.allowPort=true;}if(typeof _3a3.allowNamed!="boolean"){_3a3.allowNamed=false;}var _3a4="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojox.regexp.tld(_3a3);var _3a5=_3a3.allowPort?"(\\:\\d+)?":"";var _3a6=_3a4;if(_3a3.allowIP){_3a6+="|"+dojox.regexp.ipAddress(_3a3);}if(_3a3.allowLocal){_3a6+="|localhost";}if(_3a3.allowNamed){_3a6+="|^[^-][a-zA-Z0-9_-]*";}return "("+_3a6+")"+_3a5;};dojox.regexp.url=function(_3a7){_3a7=(typeof _3a7=="object")?_3a7:{};if(!("scheme" in _3a7)){_3a7.scheme=[true,false];}var _3a8=dojo.regexp.buildGroupRE(_3a7.scheme,function(q){if(q){return "(https?|ftps?)\\://";}return "";});var _3aa="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";return _3a8+dojox.regexp.host(_3a7)+_3aa;};dojox.regexp.emailAddress=function(_3ab){_3ab=(typeof _3ab=="object")?_3ab:{};if(typeof _3ab.allowCruft!="boolean"){_3ab.allowCruft=false;}_3ab.allowPort=false;var _3ac="([\\da-zA-Z]+[-._+&'])*[\\da-zA-Z]+";var _3ad=_3ac+"@"+dojox.regexp.host(_3ab);if(_3ab.allowCruft){_3ad="<?(mailto\\:)?"+_3ad+">?";}return _3ad;};dojox.regexp.emailAddressList=function(_3ae){_3ae=(typeof _3ae=="object")?_3ae:{};if(typeof _3ae.listSeparator!="string"){_3ae.listSeparator="\\s;,";}var _3af=dojox.regexp.emailAddress(_3ae);var _3b0="("+_3af+"\\s*["+_3ae.listSeparator+"]\\s*)*"+_3af+"\\s*["+_3ae.listSeparator+"]?\\s*";return _3b0;};dojox.regexp.us.state=function(_3b1){_3b1=(typeof _3b1=="object")?_3b1:{};if(typeof _3b1.allowTerritories!="boolean"){_3b1.allowTerritories=true;}if(typeof _3b1.allowMilitary!="boolean"){_3b1.allowMilitary=true;}var _3b2="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";var _3b3="AS|FM|GU|MH|MP|PW|PR|VI";var _3b4="AA|AE|AP";if(_3b1.allowTerritories){_3b2+="|"+_3b3;}if(_3b1.allowMilitary){_3b2+="|"+_3b4;}return "("+_3b2+")";};dojox.regexp.ca.postalCode=function(){var _3b5="[A-Z][0-9][A-Z] [0-9][A-Z][0-9]";return "("+_3b5+")";};dojox.regexp.ca.province=function(){var _3b6="AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT";return "("+statesRE+")";};dojox.regexp.numberFormat=function(_3b7){_3b7=(typeof _3b7=="object")?_3b7:{};if(typeof _3b7.format=="undefined"){_3b7.format="###-###-####";}var _3b8=function(_3b9){_3b9=dojo.regexp.escapeString(_3b9,"?");_3b9=_3b9.replace(/\?/g,"\\d?");_3b9=_3b9.replace(/#/g,"\\d");return _3b9;};return dojo.regexp.buildGroupRE(_3b7.format,_3b8);};}if(!dojo._hasResource["dojox.validate._base"]){dojo._hasResource["dojox.validate._base"]=true;dojo.provide("dojox.validate._base");dojox.validate.isText=function(_3ba,_3bb){_3bb=(typeof _3bb=="object")?_3bb:{};if(/^\s*$/.test(_3ba)){return false;}if(typeof _3bb.length=="number"&&_3bb.length!=_3ba.length){return false;}if(typeof _3bb.minlength=="number"&&_3bb.minlength>_3ba.length){return false;}if(typeof _3bb.maxlength=="number"&&_3bb.maxlength<_3ba.length){return false;}return true;};dojox.validate._isInRangeCache={};dojox.validate.isInRange=function(_3bc,_3bd){_3bc=dojo.number.parse(_3bc,_3bd);if(isNaN(_3bc)){return false;}_3bd=(typeof _3bd=="object")?_3bd:{};var max=(typeof _3bd.max=="number")?_3bd.max:Infinity;var min=(typeof _3bd.min=="number")?_3bd.min:-Infinity;var dec=(typeof _3bd.decimal=="string")?_3bd.decimal:".";var _3c1=dojox.validate._isInRangeCache;var _3c2=_3bc+"max"+max+"min"+min+"dec"+dec;if(typeof _3c1[_3c2]!="undefined"){return _3c1[_3c2];}if(_3bc<min||_3bc>max){_3c1[_3c2]=false;return false;}_3c1[_3c2]=true;return true;};dojox.validate.isNumberFormat=function(_3c3,_3c4){var re=new RegExp("^"+dojox.regexp.numberFormat(_3c4)+"$","i");return re.test(_3c3);};dojox.validate.isValidLuhn=function(_3c6){var sum,_3c8,_3c9;if(typeof _3c6!="string"){_3c6=String(_3c6);}_3c6=_3c6.replace(/[- ]/g,"");_3c8=_3c6.length%2;sum=0;for(var i=0;i<_3c6.length;i++){_3c9=parseInt(_3c6.charAt(i));if(i%2==_3c8){_3c9*=2;}if(_3c9>9){_3c9-=9;}sum+=_3c9;}return !(sum%10);};}if(!dojo._hasResource["dojox.validate.web"]){dojo._hasResource["dojox.validate.web"]=true;dojo.provide("dojox.validate.web");dojox.validate.isIpAddress=function(_3cb,_3cc){var re=new RegExp("^"+dojox.regexp.ipAddress(_3cc)+"$","i");return re.test(_3cb);};dojox.validate.isUrl=function(_3ce,_3cf){var re=new RegExp("^"+dojox.regexp.url(_3cf)+"$","i");return re.test(_3ce);};dojox.validate.isEmailAddress=function(_3d1,_3d2){var re=new RegExp("^"+dojox.regexp.emailAddress(_3d2)+"$","i");return re.test(_3d1);};dojox.validate.isEmailAddressList=function(_3d4,_3d5){var re=new RegExp("^"+dojox.regexp.emailAddressList(_3d5)+"$","i");return re.test(_3d4);};dojox.validate.getEmailAddressList=function(_3d7,_3d8){if(!_3d8){_3d8={};}if(!_3d8.listSeparator){_3d8.listSeparator="\\s;,";}if(dojox.validate.isEmailAddressList(_3d7,_3d8)){return _3d7.split(new RegExp("\\s*["+_3d8.listSeparator+"]\\s*"));}return [];};}if(!dojo._hasResource["photogallery.data.Image"]){dojo._hasResource["photogallery.data.Image"]=true;dojo.provide("photogallery.data.Image");dojo.declare("photogallery.data.Image",null,{constructor:function(_3d9,url,_3db,_3dc,_3dd,_3de,alt,_3e0,_3e1,_3e2){this.size({w:null,h:null});this.metadata({});this._imageThumb=new Image();this._image=new Image();this._imageLarge=new Image();this.thumb(_3d9);this.url(url);this.large(_3db);this.size({w:_3dc,h:_3dd});this.title(_3de);this.alt(alt);this.metadata(_3e0);this.thumbWidth(_3e1);this.thumbHeigth(_3e2);},_urlThumb:"",_url:"",_urlLarge:"",_title:"",_alt:"",_largeCompleted:false,_normalCompleted:false,_thumbWidth:0,_thumbHeigth:0,large:function(url){if(url){if(dojo.string.trim(url)!=""){return this._setUrlLarge(url);}else{return "Invalid Url";}}else{return this._urlLarge;}},thumb:function(url){if(url){if(dojo.string.trim(url)!=""){return this._setUrlThumb(url);}else{return "Invalid Url";}}else{return this._urlThumb;}},url:function(url){if(url){if(dojo.string.trim(url)!=""){return this._setUrl(url);}else{return "Invalid Url";}}else{return this._url;}},_setUrl:function(url){this._url=url;this._image.onload=dojo.hitch(this,this._imageNormalLoaded);},_setUrlLarge:function(url){this._urlLarge=url;this._imageLarge.onload=dojo.hitch(this,this._imageLargeLoaded);},_setUrlThumb:function(url){this._urlThumb=url;},preload:function(type){switch(type){case photogallery.data.Image.Types.Thumb:this._imageThumb.src=this.thumb();break;case photogallery.data.Image.Types.Normal:this._image.src=this.url();break;case photogallery.data.Image.Types.Large:this._imageLarge.src=this.large();break;default:this._image.src=this.url();break;}},isLargeLoaded:function(){return this._largeCompleted;},isNormalLoaded:function(){return this._normalCompleted;},_imageNormalLoaded:function(){this._normalCompleted=true;this.onNormalLoaded(this);},_imageLargeLoaded:function(){this._largeCompleted=true;this.onLargeLoaded(this);},onLargeLoaded:function(_3ea){},onNormalLoaded:function(_3eb){},title:function(_3ec){return !_3ec?this._title:this._title=_3ec;},alt:function(alt){return !alt?this._alt:this._alt=alt;},size:function(size){return !size?this._size:this._size=size;},metadata:function(_3ef){return !_3ef?this._metadata:this._metadata=_3ef;},thumbWidth:function(_3f0){return !_3f0?this._thumbWidth:this._thumbWidth=_3f0;},thumbHeigth:function(_3f1){return !_3f1?this._thumbHeigth:this._thumbHeigth=_3f1;}});photogallery.data.Image.Types={Thumb:"thumb",Normal:"normal",Large:"large"};}if(!dojo._hasResource["photogallery.data.Stream"]){dojo._hasResource["photogallery.data.Stream"]=true;dojo.provide("photogallery.data.Stream");dojo.declare("photogallery.data.Stream",null,{constructor:function(_3f2,_3f3,_3f4,_3f5,_3f6,id){this.images([]);this.images(_3f2);this.title(_3f3);this.description(_3f4);this.slidespeed(_3f5);this.continuous(_3f6);this.id(id);this._preloadingNormal={from:null,to:null,pending:null,events:[]};this._preloadingLarge={from:null,to:null,pending:null,events:[]};},_description:"",_title:"",_slidespeed:6000,_continuous:false,_id:0,_selectedImageIndex:null,_preloadBatchSize:3,_onNormalBatchLoadedEvent:"",_onLargeBatchLoadedEvent:"",slidespeed:function(_3f8){return !_3f8?this._slidespeed:this._slidespeed=_3f8;},title:function(_3f9){return !_3f9?this._title:this._title=_3f9;},description:function(_3fa){return !_3fa?this._description:this._description=_3fa;},images:function(_3fb){return !_3fb?this._images:this._setImages(_3fb);},continuous:function(_3fc){return !_3fc?this._continuous:this._continuous=_3fc;},id:function(id){return !id?this._id:this._id=id;},_setImages:function(_3fe){for(var i=0;i<_3fe;i++){if(!(_3fe[i] instanceof photogallery.data.Image)){throw new Error("Each image must be a photogallery.data.Image");}}this._images=_3fe;},preload:function(type,_401){var from;var to;if(this._selectedImageIndex!==null&&_401){this._preload(this._selectedImageIndex,parseInt(this._selectedImageIndex)+1,type);if(type===photogallery.data.Image.Types.Normal){this._preloadingNormal.from=null;this._preloadingNormal.to=null;}if(type===photogallery.data.Image.Types.Large){this._preloadingLarge.from=null;this._preloadingLarge.to=null;}return;}if(type===photogallery.data.Image.Types.Normal){from=(this._preloadingNormal.from===null)?0:this._preloadingNormal.to;}if(type===photogallery.data.Image.Types.Large){from=(this._preloadingLarge.from===null)?0:this._preloadingLarge.to;}to=Math.min(from+this._preloadBatchSize,this.images().length);this._preload(from,to,type);},_preload:function(from,to,type){if(type===photogallery.data.Image.Types.Normal){this._preloadingNormal.from=from;this._preloadingNormal.to=to;this._preloadingNormal.pending=to-from;if(this._onNormalBatchLoadedEvent===""){this._onNormalBatchLoadedEvent=dojo.connect(this,"_onNormalBatchLoaded",this,"preload");}}if(type===photogallery.data.Image.Types.Large){this._preloadingLarge.from=from;this._preloadingLarge.to=to;this._preloadingLarge.pending=to-from;if(this._onLargeBatchLoadedEvent===""){this._onLargeBatchLoadedEvent=dojo.connect(this,"_onLargeBatchLoaded",this,"preload");}}for(var i=from;i<to;i++){if(type===photogallery.data.Image.Types.Normal){if(this._images[i].isNormalLoaded()){this._onImageNormalLoaded();}else{this._preloadingNormal.events.push(dojo.connect(this._images[i],"onNormalLoaded",this,"_onImageNormalLoaded"));this._images[i].preload(type);}}if(type===photogallery.data.Image.Types.Large){if(this._images[i].isLargeLoaded()){this._onImageLargeLoaded();}else{this._preloadingLarge.events.push(dojo.connect(this._images[i],"onLargeLoaded",this,"_onImageLargeLoaded"));this._images[i].preload(type);}}}},_onImageNormalLoaded:function(){this._onImageLoaded(photogallery.data.Image.Types.Normal);},_onImageLargeLoaded:function(){this._onImageLoaded(photogallery.data.Image.Types.Large);},_onImageLoaded:function(type){if(type===photogallery.data.Image.Types.Normal){this._preloadingNormal.pending--;if(this._preloadingNormal.pending===0){this._onNormalBatchLoaded(type);}}if(type===photogallery.data.Image.Types.Large){this._preloadingLarge.pending--;if(this._preloadingLarge.pending===0){this._onLargeBatchLoaded(type);}}},_onNormalBatchLoaded:function(type){},_onLargeBatchLoaded:function(type){},cancelPreload:function(type){if(type===photogallery.data.Image.Types.Normal){for(var i=0;i<this._preloadingNormal.events.length;i++){dojo.disconnect(this._preloadingNormal.events[i]);}this._preloadingNormal.pending=0;dojo.disconnect(this._onNormalBatchLoadedEvent);this._onNormalBatchLoadedEvent="";}if(type===photogallery.data.Image.Types.Large){for(var i=0;i<this._preloadingLarge.events.length;i++){dojo.disconnect(this._preloadingLarge.events[i]);}this._preloadingLarge.pending=0;dojo.disconnect(this._onLargeBatchLoadedEvent);this._onLargeBatchLoadedEvent="";}},reset:function(type){if(type===photogallery.data.Image.Types.Normal){for(var i=0;i<this._preloadingNormal.events.length;i++){dojo.disconnect(this._preloadingNormal.events[i]);}this._preloadingNormal.pending=0;this._preloadingNormal.from=null;this._preloadingNormal.to=null;}if(type===photogallery.data.Image.Types.Large){for(var i=0;i<this._preloadingLarge.events.length;i++){dojo.disconnect(this._preloadingLarge.events[i]);}this._preloadingLarge.pending=0;this._preloadingLarge.from=null;this._preloadingLarge.to=null;}},selectedImageIndex:function(){if(typeof arguments!=="undefined"&&arguments.length>0){throw new Error("You must call selectImage for changing the current selected image.");}else{return this._selectedImageIndex;}},selectImage:function(_40f){if(parseInt(_40f)!==this.selectedImageIndex()){var _410=this.selectedImageIndex();this._selectedImageIndex=parseInt(_40f);this.onImageSelectedChange(_410);}},onImageSelectedChange:function(_411){}});}if(!dojo._hasResource["photogallery.data"]){dojo._hasResource["photogallery.data"]=true;dojo.provide("photogallery.data");}if(!dojo._hasResource["photogallery.util.Pager"]){dojo._hasResource["photogallery.util.Pager"]=true;dojo.provide("photogallery.util.Pager");dojo.declare("photogallery.util.Pager",null,{constructor:function(_412,_413,_414,_415){if(isNaN(_414)){throw new Error("currentpage must be a numeric value");}if(isNaN(_413)){throw new Error("total must be a numeric value");}this._pageSize=_412;this._total=_413;this._currentPage=isNaN(_414)?0:_414;this._circular=(typeof _415==="undefined")?false:_415;},onPageChanged:function(){},_getNumberOfPages:function(){return Math.ceil(this._total/this._pageSize);},isLastPage:function(){return this._getNumberOfPages()-1===this._currentPage;},isFirstPage:function(){return this._currentPage===0;},goFirst:function(){if(!this.isFirstPage()){this._currentPage=0;this.onPageChanged();}},goLast:function(){if(!this.isLastPage()){this._currentPage=this._getNumberOfPages()-1;this.onPageChanged();}},goPrevius:function(){if(!this.isFirstPage()){this._currentPage--;this.onPageChanged();}else{if(this._circular){this.goLast();this.onPageChanged();}}},goNext:function(){if(!this.isLastPage()){this._currentPage++;this.onPageChanged();}else{if(this._circular){this.goFirst();this.onPageChanged();}}},getCurrentPage:function(){var from;var to;if(this._currentPage==0){from=0;to=Math.min(this._pageSize-1,this._total);}else{from=this._currentPage*this._pageSize;to=Math.min(from+this._pageSize-1,this._total);}return {from:from,to:to};},getAbsoluteIndex:function(_418){return (this._currentPage*this._pageSize)+_418;},getRelativeIndex:function(_419){return (_419%this._pageSize);}});}if(!dojo._hasResource["photogallery.widget.Photostream"]){dojo._hasResource["photogallery.widget.Photostream"]=true;dojo.provide("photogallery.widget.Photostream");dojo.declare("photogallery.widget.Photostream",[dijit._Widget,dijit._Templated],{constructor:function(){this._imageNodes=[];},templateString:"<div class=\"photostream\" >\r\n\t<div class=\"title\" dojoAttachPoint=\"titleNode\" ></div>\r\n\t<div class=\"separator\" ></div>\r\n\t<div class=\"description\" dojoAttachPoint=\"descriptionNode\" ></div>\r\n\t<table class=\"thumbs\" >\r\n\t\t<tr>\r\n\t\t\t<td>\r\n\t\t\t\t<div class=\"container\" dojoAttachPoint=\"container\" style=\"rect(0px,556px, 90px, 0px)\" >\t\t\r\n\t\t\t\t\t<div class=\"thumb_window\" dojoAttachPoint=\"thumb_window\" >\r\n\t\t\t\t\t\t<nobr dojoAttachPoint=\"images_container\" >\t\t\t\t\r\n\t\t\t\t\t\t</nobr>\t\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</td>\r\n\t\t\t<td>\r\n\t\t\t\t<nobr >\r\n\t\t\t\t\t<a href=\"#\" class=\"previous\" dojoAttachEvent=\"onclick:_moveBackward,onmousedown:_startBackward,onmouseup:_stopBackward\" title=${previous_title} >${previous_button}</a>\r\n\t\t\t\t\t<a href=\"#\" class=\"next\" dojoAttachEvent=\"onclick:_moveForward,onmousedown:_startForward,onmouseup:_stopForward\" title=${next_title}>${next_button}</a>\r\n\t\t\t\t</nobr>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\t<div dojoAttachPoint=\"image_template\" style=\"display:none;\">\r\n\t\t<a><img class=\"photostreamimage\" /></a>\r\n\t</div>\t\r\n</div>\r\n",previous_button:"&lt;",next_button:"&gt;",previous_title:"Previous",next_title:"Next",_step:8,_speed:20,_scrollStep:88,_scrolling:false,_spaceBetweenImages:8,_selectedImageBorderWidth:8,streamWidth:550,_selectImageConnectEvent:"",onImageSelected:function(img,_41b){},populate:function(_41c){this.reset();if(!(_41c instanceof photogallery.data.Stream)){throw new Error("You must use a photogallery.data.Stream object for populating Photostream widget");}this._photostream=_41c;this._selectImageConnectEvent=dojo.connect(_41c,"onImageSelectedChange",this,"_setSelectedImageStyle");this.titleNode.innerHTML=_41c.title().toUpperCase();this.descriptionNode.innerHTML=_41c.description();this._initializeScrollValues();this._scrollToImage(0);this._displayImages();},reset:function(){this._photostream=null;this._imageNodes=[];dojo.disconnect(this._selectImageConnectEvent);dojox.data.dom.removeChildren(this.images_container);},_displayImages:function(){var _41d=this._photostream.images();for(var i=0;i<_41d.length;i++){var _41f=this._createImageNode();this._imageNodes.push(_41f);this._displayImage(_41d[i],i,_41f);}},_createImageNode:function(_420){var _421=this.image_template.cloneNode(true);return dojo.query("a",_421)[0];},_displayImage:function(_422,_423,node,_425){dojo.place(node,this.images_container,"last");img=dojo.query("img",node)[0];img.style.display="";img.src=_422.thumb();img.title=_422.title();img.alt=_422.alt();img.setAttribute("absoluteindex",_423);dojo.connect(img,"onclick",this,"_selectImageFromNode");if(parseInt(this._photostream.selectedImageIndex())===parseInt(_423)){this._setSelectedImageStyle(_423);}},_initializeScrollValues:function(){var _426=0;for(var a=0;a<this._photostream.images().length;a++){_426+=parseInt(this._photostream.images()[a].thumbWidth())+this._spaceBetweenImages;}this._scrollWidth=_426;this._horizontalPosition=dojo.coords(this.thumb_window).l;},_scrollToImage:function(_428){var _429=this._horizontalPosition;var _42a=0;for(var i=0;i<=_428;i++){_42a+=(parseInt(this._photostream.images()[i].thumbWidth())+parseInt(this._spaceBetweenImages));}if((_42a+this._horizontalPosition<this.streamWidth)&&(_42a+this._horizontalPosition-this._photostream.images()[_428].thumbWidth()>0)){return;}if(_42a<this.streamWidth){this._horizontalPosition=0;this._animateScroll(_429,this._horizontalPosition);return;}if(_42a-this._photostream.images()[_428].thumbWidth()>(this._scrollWidth-this.streamWidth)){this._horizontalPosition=-(this._scrollWidth-this.streamWidth+parseInt(this._selectedImageBorderWidth));this._animateScroll(_429,this._horizontalPosition);return;}this._horizontalPosition=-parseInt(_42a)+parseInt(this._photostream.images()[_428].thumbWidth())+parseInt(this._selectedImageBorderWidth);this._horizontalPosition+=(this.streamWidth/2-parseInt(this._photostream.images()[_428].thumbWidth())/2);this._animateScroll(_429,this._horizontalPosition);},_animateScroll:function(_42c,End){dojo.animateProperty({node:this.thumb_window,easing:dojox.fx.easing.sineOut,properties:{left:{start:_42c,end:End,unit:"px"}},duration:1000,onEnd:function(){}}).play();},_moveForward:function(evt){if(evt){dojo.stopEvent(evt);}if(this._scrolling===false){if(parseInt(this._horizontalPosition)>-(parseInt(this._scrollWidth)-parseInt(this.streamWidth))){var _42f=Math.min(parseInt(this._scrollStep),parseInt(this._scrollWidth)-parseInt(this.streamWidth)-parseInt(this._horizontalPosition));this._moveIt(parseInt(-_42f));}}},_moveBackward:function(evt){if(evt){dojo.stopEvent(evt);}if(this._scrolling===false){if(parseInt(this._horizontalPosition)<0){var _431=Math.min(parseInt(this._scrollStep),Math.abs(this._horizontalPosition));this._moveIt(parseInt(_431));}}},_startForward:function(evt){if(evt){dojo.stopEvent(evt);}this._scrolling=false;this._startForwardTimer=setTimeout(dojo.hitch(this,this._startForwardDelayed),300);},_startForwardDelayed:function(){this._scrolling=true;if(this._horizontalPosition>-(this._scrollWidth-this.streamWidth)){this._moveIt(-this._step);this._forwardingTimeout=setTimeout(dojo.hitch(this,this._startForwardDelayed),this._speed);}},_stopForward:function(){clearTimeout(this._startForwardTimer);clearTimeout(this._forwardingTimeout);},_startBackward:function(){this._scrolling=false;this._startBackwardTimer=setTimeout(dojo.hitch(this,this._startBackwardDelayed),300);},_startBackwardDelayed:function(){this._scrolling=true;if(this._horizontalPosition<0){this._moveIt(this._step);this._backwardingTimeout=setTimeout(dojo.hitch(this,this._startBackwardDelayed),this._speed);}},_stopBackward:function(){clearTimeout(this._startBackwardTimer);clearTimeout(this._backwardingTimeout);},_moveIt:function(_433){this._horizontalPosition+=_433;this.thumb_window.style.left=this._horizontalPosition+"px";},_selectImageFromNode:function(evt){var _435=parseInt(evt.target.getAttribute("absoluteindex"));this.selectImage(_435);},selectImage:function(_436){if(_436!==this._photostream.selectedImageIndex()){this._photostream.selectImage(_436);}this.onImageSelected(this._photostream.images()[_436],this._photostream);},_setSelectedImageStyle:function(_437){if(_437===null||typeof _437==="undefined"){this._scrollWidth+=this._selectedImageBorderWidth;}this._clearSelectedImage(_437);this._scrollToImage(this._photostream.selectedImageIndex());dojo.addClass(this._imageNodes[this._photostream.selectedImageIndex()],"selectedImage");},_clearSelectedImage:function(_438){if(_438!==null&&typeof _438!=="undefined"){dojo.removeClass(this._imageNodes[_438],"selectedImage");}},hide:function(){this.domNode.style.display="none";},show:function(){this.domNode.style.display="";},getSelectedImage:function(){return this._photostream.selectedImageIndex()===null?null:this._photostream.images()[this._photostream.selectedImageIndex()];},getSelectedImageIndex:function(){return this._photostream.selectedImageIndex()===null?0:this._photostream.selectedImageIndex();},selectFirstImage:function(){this.selectImage(0);},selectNextImage:function(){var _439=this._photostream.selectedImageIndex()===null?0:this._photostream.selectedImageIndex();if(_439==this._photostream.images().length-1){_439=-1;}this.selectImage(_439+1);},selectPreviousImage:function(){if(this._photostream.selectedImageIndex()>0){this.selectImage(this._photostream.selectedImageIndex()-1);}}});}if(!dojo._hasResource["photogallery.widget.Photostreamcollection"]){dojo._hasResource["photogallery.widget.Photostreamcollection"]=true;dojo.provide("photogallery.widget.Photostreamcollection");dojo.declare("photogallery.widget.Photostreamcollection",[dijit._Widget,dijit._Templated],{constructor:function(){this._streams=[];this._pager=null;},widgetsInTemplate:true,streamWidth:550,token_imageSelected:"",postCreate:function(){this._streamWidgets=[];this._streamWidgetsSet=dijit.registry.byClass("photogallery.widget.Photostream");this._streamWidgetsSet.forEach(dojo.hitch(this,function(_43a){this._streamWidgets.push(_43a);}));},templateString:"<div class=\"photostreamcollection\" >\r\n    <div dojoAttachPoint=\"buttonContainer\">\r\n\t    <div class=\"button previous\" dojoAttachPoint=\"previousButton\" dojoAttachEvent=\"onclick:_displayPrevious\" title=${previous_title} ></div>\r\n\t    <div class=\"button next\" dojoAttachPoint=\"nextButton\" dojoAttachEvent=\"onclick:_displayNext\" title=${next_title} ></div>\r\n\t    \r\n\t</div>\r\n    <div class=\"photostreamcollectioncontainer\" dojoAttachPoint=\"photostreamcollection\" >\r\n\t    <div dojoType=\"photogallery.widget.Photostream\" streamWidth=\"${streamWidth}\" ></div>\r\n\t    <div dojoType=\"photogallery.widget.Photostream\" streamWidth=\"${streamWidth}\" ></div>\r\n\t    <div dojoType=\"photogallery.widget.Photostream\" streamWidth=\"${streamWidth}\" ></div>\r\n\t</div>\t\r\n</div>\r\n",previous_title:"Previous",next_title:"Next",_pagerEvent:null,_streamSelectedEvents:[],collectionSize:3,_selectedStreamIndex:null,onStreamSelected:function(img,_43c){if(this.token_imageSelected!=""){dojo.disconnect(token_imageSelected);this.token_imageSelected="";}},show:function(){this.domNode.style.display="";},getStreamWidgetByStreamId:function(_43d){var _43e;for(var a=0;a<this._streamWidgets.length;a++){if(this._streamWidgets[a]._photostream.id()==_43d){_43e=this._streamWidgets[a];break;}}return _43e;},populate:function(_440){for(var i=0;i<_440.length;i++){if(!(_440[i] instanceof photogallery.data.Stream)){throw new Error("Each item of the array must be a photogallery.data.Stream object");}}var _442;this._streams=_440;this._pager=new photogallery.util.Pager(this.collectionSize,this._streams.length,0,false);if(this._pagerEvent){dojo.disconnect(this._pagerEvent);}this._pagerEvent=dojo.connect(this._pager,"onPageChanged",this,"_displayStreams");this._displayStreams();},_displayStreams:function(){var _443=this._pager.getCurrentPage();var _444;this._setButtonDisable(this.previousButton,this._pager.isFirstPage());this._setButtonDisable(this.nextButton,this._pager.isLastPage());for(var i=0;i<this.collectionSize;i++){_444=_443.from+i;if(_444<this._streams.length){this._displayStream(this._streams[_444],this._streamWidgets[i],_444);}else{this._cleanStream(this._streamWidgets[i]);}}},_displayStream:function(_446,_447,_448){_447.populate(_446);_447.show();token_imageSelected=dojo.connect(_447,"onImageSelected",this,"onStreamSelected");dojo.connect(_447.titleNode,"onclick",this,function(){this.onStreamSelected(null,_446);});dojo.connect(_447.descriptionNode,"onclick",this,function(){this.onStreamSelected(null,_446);});_447.domNode.setAttribute("absoluteindex",_448);},_cleanStream:function(_449){_449.reset();_449.hide();},_displayPrevious:function(_44a,node){this._pager.goPrevius();},_displayNext:function(_44c,node){this._pager.goNext();},_setButtonDisable:function(node,_44f,_450){if(_44f){dojo.addClass(node,"disabledbutton");}else{dojo.removeClass(node,"disabledbutton");}},_clearSelectedImage:function(){if(this._selectedStreamIndex!==null){this._streams[abs_index].setSelected(false);var _451=this._pager.getRelativeIndex(this._selectedStreamIndex);this._streamWidgets[_451].setSelected(false);this._selectedStreamIndex=null;}}});}if(!dojo._hasResource["photogallery.widget.Progressbar"]){dojo._hasResource["photogallery.widget.Progressbar"]=true;dojo.provide("photogallery.widget.Progressbar");dojo.declare("photogallery.widget.Progressbar",[dijit._Widget,dijit._Templated],{constructor:function(){this._imageEvents=[];},templateString:"<div class=\"progressbar\" >\r\n\t<div dojoAttachPoint=\"att_progress\"></div>\t\t\t\t\t\r\n</div>\r\n",_imagesLoaded:0,_completed:false,_message:"Loaded",initialize:function(_452){this._stream=_452;this.att_progress.innerHTML=this._message+" 0 / "+this._stream.images().length;for(var a=0;a<this._stream.images().length;a++){if(this._stream.images()[a].isLargeLoaded()){this._update();}else{this._imageEvents.push(dojo.connect(this._stream.images()[a],"onLargeLoaded",this,"_update"));}}},_update:function(){this._imagesLoaded++;if(this._imagesLoaded<this._stream.images().length){this.att_progress.innerHTML=this._message+" "+this._imagesLoaded+" / "+this._stream.images().length;}if(this._imagesLoaded==this._stream.images().length){this._completed=true;this.onCompleted();}},reset:function(){for(var k=0;k<this._imageEvents.length;k++){dojo.disconnect(this._imageEvents[k]);}this.att_progress.innerHtml="";this._imagesLoaded=0;this._completed=false;},onCompleted:function(){}});}if(!dojo._hasResource["photogallery.widget.Photostreamviewer"]){dojo._hasResource["photogallery.widget.Photostreamviewer"]=true;dojo.provide("photogallery.widget.Photostreamviewer");dojo.declare("photogallery.widget.Photostreamviewer",[dijit._Widget,dijit._Templated],{constructor:function(){this._streamWidget=null;this._pager=null;this._waitingImageEventLarge=null;this._waitingImageEventNormal=null;this._stream=null;this.progressbar=null;this._bindingsEvents=[];},loadingMessage:"Loading images, wait please.",circular:true,widgetsInTemplate:true,_slideShowTimer:"",_slideShowConnect:"",_token:"",_mode:"",templateString:"<div class=\"photostreamviewer\" >\r\n    <div dojoType=\"dijit.Dialog\" dojoAttachPoint=\"progress_bar_dialog\"\r\n        title=\"${loadingMessage}\">\r\n        <div dojoAttachPoint=\"ProgressBarNode\"></div>\r\n    </div>\r\n\t<div class=\"photostreamcontainer\" >\r\n\t\t<div dojoType=\"photogallery.widget.Photostream\" dojoAttachPoint=\"_streamWidget\" streamWidth=\"${streamWidth}\" ></div>\r\n\t</div>\r\n\t<div class=\"viewer\">\r\n\t\t<table cellpadding=\"0\" cellspacing=\"0\">\r\n            <tr>\r\n                <td></td>\r\n\t\t\t\t<td class=\"buttonsPane\" dojoAttachPoint=\"att_ButtonsNormal\" colspan=\"2\">\r\n\t\t\t\t\t<div class=\"buttonsContainer\">\r\n\t\t\t\t\t\t<a class=\"buttons play\"  dojoAttachEvent=\"onclick:_loadSlideShow\" title=\"View the gallery as slideshow\" href=\"#\"></a>\r\n\t\t\t\t\t\t<!--<div class=\"buttons pause\" dojoAttachEvent=\"onclick:_pauseSlideshow\" title=\"Pause the slideshow\" ></div>-->\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t</td>\r\n           \t\t<td class=\"attributesPane\" dojoAttachPoint=\"att_AttributesNormal\">\r\n\t\t\t\t\t<div class=\"attributesContainer\">\r\n\t\t\t\t\t\t<div class=\"attribute\" dojoAttachPoint=\"att_name_standard\"></div>\r\n\t\t\t\t\t\t<div class=\"attribute\" dojoAttachPoint=\"att_desc_standard\"></div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</td>\r\n            </tr>\r\n\t\t\t<tr>\t\t\t\r\n\t\t\t\t<td >\r\n\t\t\t\t\t<div class=\"imageContainer\" dojoAttachPoint=\"imageContainer\" >\r\n\t\t\t\t\t\t<div dojoAttachpoint=\"load_indicator\" class=\"load_indicator\" style=\"display:none;\" >Loading...</div>\r\n\t\t\t\t\t\t<img dojoAttachpoint=\"currentImage\"\ttabindex=\"-1\" />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td colspan=\"3\"></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr >\r\n\t\t\t    <td class=\"attributesPane\" align=\"center\" > \r\n\t\t\t\t    <div class=\"attributesContainer\">\r\n\t\t\t            <div class=\"attribute\" dojoAttachPoint=\"att_currentPhoto\"></div>\r\n\t\t\t        </div>\r\n    \t\t    </td>\r\n    \t\t    <td class=\"buttonsPane\" valign=\"top\" dojoAttachPoint=\"att_ButtonsLarge\" style=\"display:none\">\r\n\t\t\t\t\t<div class=\"buttonsContainer\">\r\n\t\t\t\t\t\t<a class=\"buttons play\"  dojoAttachPoint=\"btn_play_fullscreenMode\" dojoAttachEvent=\"onclick:_loadSlideShow\" title=\"View the gallery as slideshow\" href=\"#\"></a>\r\n\t\t\t\t\t\t<a class=\"buttons pause\" dojoAttachPoint=\"btn_pause_fullscreenMode\" dojoAttachEvent=\"onclick:_pauseSlideshow\" title=\"Pause the slideshow\" href=\"#\"></a>\r\n\t\t\t\t\t\t<a class=\"buttons stop\" dojoAttachEvent=\"onclick:_finishSlideshow\" title=\"Stop the slideshow\" href=\"#\"></a>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td class=\"attributesPane\" style=\"display:none\" rowspan=\"2\" dojoAttachPoint=\"att_AttributesLarge\">\r\n\t\t\t\t\t<div class=\"attributesContainer\">\r\n\t\t\t\t\t\t<div class=\"attribute\" dojoAttachPoint=\"att_name_fullscreen\"></div>\r\n\t\t\t\t\t\t<div class=\"attribute\" dojoAttachPoint=\"att_desc_fullscreen\"></div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\t\t\r\n\t\t\t<tr align=\"center\">\r\n\t\t\t    <td class=\"buttonsPane\">\r\n\t\t\t\t\t<div class=\"buttonsPagingContainer\">\r\n    \t\t\t        <div class=\"previous\" dojoAttachPoint=\"previousButton\" dojoAttachEvent=\"onclick:_showPrevious\" title=${previous_title} >&lt;</div>\r\n    \t\t\t        <div class=\"next\" dojoAttachPoint=\"nextButton\" dojoAttachEvent=\"onclick:_showNext\" title=${next_title} >&gt;</div>\t\t\r\n\t\t\t\t    </div>\t\t\t\t     \r\n\t\t\t\t</td>\r\n\t\t\t\t<td colspan=\"3\"></td>\r\n\t\t\t</tr>\t\r\n\t\t</table>\t\t\r\n\t</div>\r\n</div>\r\n",lastSlideShowImage:0,previous_title:"Previous",next_title:"Next",streamWidth:"550",_playingSlideShow:false,_onImageSelectedEvent:"",_text_from:"",onPauseSlideShow:function(){this._playingSlideShow=false;},onStopSlideShow:function(){this._playingSlideShow=false;},onStartSlideShow:function(){this._playingSlideShow=true;},onImageShowed:function(){},_setStandardMode:function(){this._stream.cancelPreload(photogallery.data.Image.Types.Large);this._stream.preload(photogallery.data.Image.Types.Normal,true);this._mode="standard";this.getStreamWidget().show();this.att_AttributesLarge.style.display="none";this.att_ButtonsLarge.style.display="none";if(this._stream.continuous()){this.progressbar.reset();}this.ProgressBarNode.style.display="none";this.att_AttributesNormal.style.display="";this.att_ButtonsNormal.style.display="";dojo.removeClass(this.imageContainer,"imageContainerFullScreen");dojo.addClass(this.imageContainer,"imageContainer");},_setFullScreenMode:function(){this._stream.cancelPreload(photogallery.data.Image.Types.Normal);this._stream.preload(photogallery.data.Image.Types.Large,true);this.getStreamWidget().hide();this.ProgressBarNode.style.display="";this.att_AttributesLarge.style.display="";this.att_ButtonsLarge.style.display="";this.att_AttributesNormal.style.display="none";this.att_ButtonsNormal.style.display="none";this._mode="fullscreen";dojo.removeClass(this.imageContainer,"imageContainer");dojo.addClass(this.imageContainer,"imageContainerFullScreen");},postCreate:function(){this.bindDomNode(this.currentImage);},populate:function(_455){if(!(_455 instanceof photogallery.data.Stream)){throw new Error("Each item of the array must be a photogallery.data.Stream object");}this.reset();this._mode="standard";this._stream=_455;this._onImageSelectedEvent=dojo.connect(this._streamWidget,"onImageSelected",this,"_showImage");this._streamWidget.populate(this._stream);this._initialize();},getStreamWidget:function(){return this._streamWidget;},_initialize:function(){if(this._streamWidget.getSelectedImage()===null){this._streamWidget.selectFirstImage();}this._stream.preload(photogallery.data.Image.Types.Normal,true);this._showImage(this._streamWidget.getSelectedImage());},_checkButtonsState:function(){if(this._streamWidget.getSelectedImageIndex()===this._stream.images().length-1){this._setButtonDisable(this.nextButton,true);}else{this._setButtonDisable(this.nextButton,false);}if(this._streamWidget.getSelectedImageIndex()===0){this._setButtonDisable(this.previousButton,true);}else{this._setButtonDisable(this.previousButton,false);}},_setButtonDisable:function(node,_457){if(_457){dojo.addClass(node,"disabledPagingButton");}else{dojo.removeClass(node,"disabledPagingButton");}},_showImage:function(_458){this._checkButtonsState();if(dojo.isIE==6){this._showIE6image(_458);return;}if(this._isImageReady(_458)){if(this._waitingImageEventNormal!==null){dojo.disconnect(this._waitingImageEventNormal);}if(this._waitingImageEventLarge!==null){dojo.disconnect(this._waitingImageEventLarge);}var _459=[];this.load_indicator.style.display="none";var _45a=dojo.fadeOut({node:this.currentImage,duration:(this._stream.continuous()&&this._mode=="fullscreen")?10:500});if(this.currentImage.style.display!=="none"){_459.push(_45a);}var _45b=dojo.fadeIn({node:this.currentImage,duration:(this._stream.continuous()&&this._mode=="fullscreen")?10:500,onBegin:dojo.hitch(this,function(){this.currentImage.src=this._mode=="fullscreen"?_458.large():_458.url();this.currentImage.style.display="";if(this._mode=="fullscreen"){this.att_name_fullscreen.innerHTML=_458.title()===""?"&nbsp;":_458.title();this.att_desc_fullscreen.innerHTML=_458.alt()===""?"&nbsp;":_458.alt();}else{this.att_name_standard.innerHTML=_458.title()===""?"&nbsp;":_458.title();this.att_desc_standard.innerHTML=_458.alt()===""?"&nbsp;":_458.alt();}this.att_currentPhoto.innerHTML=(parseInt(this._streamWidget.getSelectedImageIndex())+1)+" "+(this._text_from==""?"de":this._text_from)+" "+this._stream.images().length+"&nbsp;";}),onEnd:dojo.hitch(this,function(){this.onImageShowed(_458);})});_459.push(_45b);dojo.fx.chain(_459).play();}},_showIE6image:function(_45c){this.load_indicator.style.display="none";this.currentImage.onload=dojo.hitch(this,function(){this.onImageShowed(_45c);});this.currentImage.src=this._mode=="fullscreen"?_45c.large():_45c.url();if(this._mode=="fullscreen"){this.att_name_fullscreen.innerHTML=_45c.title()===""?"&nbsp;":_45c.title();this.att_desc_fullscreen.innerHTML=_45c.alt()===""?"&nbsp;":_45c.alt();}else{this.att_name_standard.innerHTML=_45c.title()===""?"&nbsp;":_45c.title();this.att_desc_standard.innerHTML=_45c.alt()===""?"&nbsp;":_45c.alt();}this.att_currentPhoto.innerHTML=(this._streamWidget.getSelectedImageIndex()+1)+" "+(this._text_from==""?"de":this._text_from)+" "+this._stream.images().length+"&nbsp;";},_isImageReady:function(_45d){if((_45d.isNormalLoaded()&&this._mode=="standard")||(_45d.isLargeLoaded()&&this._mode=="fullscreen")){return true;}else{this.currentImage.style.display="none";this.load_indicator.style.display="";if(this._mode=="standard"){if(this._waitingImageEventNormal!==null){dojo.disconnect(this._waitingImageEventNormal);}this._waitingImageEventNormal=dojo.connect(_45d,"onNormalLoaded",this,"_showImage");this._stream.preload(photogallery.data.Image.Types.Normal,true);}if(this._mode=="fullscreen"){if(this._waitingImageEventLarge!==null){dojo.disconnect(this._waitingImageEventLarge);}this._waitingImageEventLarge=dojo.connect(_45d,"onLargeLoaded",this,"_showImage");this._stream.preload(photogallery.data.Image.Types.Large,true);}return false;}},_showPrevious:function(){this._streamWidget.selectPreviousImage();},_showNext:function(){this._streamWidget.selectNextImage();},_startSlideshow:function(){this._slideShowConnect=dojo.connect(this,"onImageShowed",this,function(){this._slideShowTimer=setTimeout(dojo.hitch(this,this._displayNextImage),this._stream.slidespeed());});this._showImage(this._streamWidget.getSelectedImage());},_loadSlideShow:function(evt){if(evt){dojo.stopEvent(evt);}dojo.addClass(this.btn_play_fullscreenMode,"enabled");dojo.removeClass(this.btn_pause_fullscreenMode,"enabled");if(!this._playingSlideShow){this.onStartSlideShow();this._setFullScreenMode();this.lastSlideShowImage=this._streamWidget.getSelectedImageIndex()==0?this._stream.images().length-1:this._streamWidget.getSelectedImageIndex()-1;if(this._stream.continuous()){if(this.progressbar===null){this.progressbar=new photogallery.widget.Progressbar({},this.ProgressBarNode);dojo.connect(this.progressbar,"onCompleted",this.progress_bar_dialog,"hide");dojo.connect(this.progress_bar_dialog,"onCancel",this,"_finishSlideshow");}else{this.progressbar.reset();}this._token=dojo.connect(this.progressbar,"onCompleted",this,"_startSlideshow");this.progress_bar_dialog.show();this.progressbar.initialize(this._stream);}else{this._startSlideshow();}}},_displayNextImage:function(){var _45f;if(this.circular){_45f=this.lastSlideShowImage===this._streamWidget.getSelectedImageIndex();}else{_45f=this._streamWidget.getSelectedImageIndex()!=this._stream.images().length-1;}if(_45f){this._finishSlideshow();}else{this._streamWidget.selectNextImage();}},_finishSlideshow:function(evt){if(evt){dojo.stopEvent(evt);}dojo.disconnect(this._token);this._resetToken();dijit.byId("menu_widget").show();clearTimeout(this._slideShowTimer);dojo.disconnect(this._slideShowConnect);this._setStandardMode();this.currentImage.src=this._streamWidget.getSelectedImage().url();this.onStopSlideShow();},_pauseSlideshow:function(evt){if(evt){dojo.stopEvent(evt);}dojo.removeClass(this.btn_play_fullscreenMode,"enabled");dojo.addClass(this.btn_pause_fullscreenMode,"enabled");dojo.disconnect(this._token);this._resetToken();clearTimeout(this._slideShowTimer);dojo.disconnect(this._slideShowConnect);this.onPauseSlideShow();},_resetToken:function(){dojo.disconnect(this._token);this._token="";},bindDomNode:function(node){node=dojo.byId(node);var cn=(node==dojo.body()?dojo.doc:node);this._bindingsEvents.push([dojo.connect(cn,"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){dojo.stopEvent(e);},reset:function(){dojo.disconnect(this._token);this._resetToken();this.lastSlideShowImage=0;this.currentImage.style.display="";this.currentImage.src="";this.att_currentPhoto.innerHtml="";this.att_name_standard.innerHtml=" ";this.att_desc_standard.innerHtml=" ";clearTimeout(this._slideShowTimer);dojo.disconnect(this._slideShowConnect);dojo.disconnect(this._onImageSelectedEvent);}});}if(!dojo._hasResource["photogallery.widget"]){dojo._hasResource["photogallery.widget"]=true;dojo.provide("photogallery.widget");}if(!dojo._hasResource["util.widget.Contactpanel"]){dojo._hasResource["util.widget.Contactpanel"]=true;dojo.provide("util.widget.Contactpanel");dojo.declare("util.widget.Contactpanel",[dijit._Widget,dijit._Templated],{templateString:"<div class=contactPanel >\r\n\t<div class=\"statusPanel\" dojoAttachPoint=statusPanel style=\"display:none;opacity:0\" >Loading</div>\r\n\t<div dojoAttachPoint=formPanel class=\"email\" >\t\t\t\r\n\t\t\t<div class=\"field_name\" >\r\n\t\t\t\t\t<label class=\"name\">name:</label>\r\n\t\t\t\t\t<input type=\"text\" dojoAttachPoint=name class=\"input\" />\r\n\t\t\t</div>\t\t\t\r\n\t\t\t<div class=\"field_from\" >\r\n\t\t\t\t\t<label class=\"from\">e-mail:</label>\r\n\t\t\t\t\t<input type=\"text\" dojoAttachPoint=from class=\"input\" />\r\n\t\t\t</div>\r\n\t\t\t<div class=\"field_phone\" >\r\n\t\t\t\t\t<label class=\"phone\">phone/fax:</label>\r\n\t\t\t\t\t<input type=\"text\" dojoAttachPoint=phone class=\"input\" />\r\n\t\t\t</div>\t\t\t\t\r\n\t\t\t<div class=\"field_comment\" >\r\n\t\t\t\t\t<label class=\"comment\">comment:</label>\r\n\t\t\t\t\t<textarea dojoAttachPoint=\"comment\" class=\"area\" rows=11 ></textarea>\r\n\t\t\t\t<br />\r\n\t\t\t</div>\t\r\n\t\t\t<div class=\"field_receiveInformation\" >\r\n\t\t\t\t<nobr>\r\n\t\t\t\t<br />\r\n\t\t\t\t    <input class=\"receiveInformation\" type=checkbox dojoAttachPoint=\"receiveInformation\" /> \r\n\t\t\t\t    <label class=\"receiveInformation\">I want to recieve information from Cromis in my e-mail</label>\r\n\t\t\t\t</nobr>\r\n\t\t\t</div>\t\t\t\t\r\n\t\t\t<div class=\"buttonsContainer\" >\r\n\t\t\t\t<div class=\"button send\" dojoAttachPoint=enviar dojoAttachEvent=\"onclick: send\" alt=\"Send message to Cromis\" title=\"Send message to Cromis\" ><a href=\"#\">send</a></div>\r\n\t\t\t\t<div class=\"button cancel\" dojoAttachPoint=cancelar  dojoAttachEvent=\"onclick: cancel\" alt=\"Cancel\" title=\"Cancel\" ><a href=\"#\">cancel</a></div>\r\n\t\t\t</div>\t\r\n\t    </div> \t    \t\r\n</div>\r\n",constructor:function(_468,node){this._url=node.getAttribute("url");this._phonenumber=_468.phonenumber?_468.phonenumber:"";},mode:"contact",timeoutMessage:"Timeout.Please, check your internet connection and try it again.",successMessage:"Your message has been sent. Thank you very much.",cancelMessage:"You have canceled the message.Feel free to contact us by phone.",_hideStatusPaneTimeout:"",nameMandatoryMessage:"Please, enter your name.",emailMandatoryMessage:"Please, enter your email address.",emailInvalidMessage:"The email address is not valid. Please, check your email address and try again.",commentMandatoryMessage:"Please, enter a message.",checkMandatoryMessage:"You have to check option for receiving news.",populate:function(){this._reset();this._showPanel();},_showPanel:function(){if(this.mode==="suscription"){dojo.query(".field_phone",this.domNode)[0].style.display="none";dojo.query(".field_comment",this.domNode)[0].style.display="none";}this.statusPanel.style.opacity="0";this.statusPanel.style.display="none";this.formPanel.style.display="";var _46a=dojo.fadeIn({node:this.formPanel,duration:1000,onEnd:dojo.hitch(this,function(){this.name.focus();})}).play();},onHideStatusPanel:function(){},send:function(evt){if(evt){dojo.stopEvent(evt);}var _46c;if(this.mode=="suscription"){_46c={email:this.from.value,name:this.name.value,receiveInformation:this.receiveInformation.checked};}if(this.mode=="contact"){_46c={email:this.from.value,name:this.name.value,phone:this.phone.value,body:this.comment.value,receiveInformation:this.receiveInformation.checked};}if(this._validateFields()){var _46d={url:this._url,handleAs:"json",content:_46c,load:dojo.hitch(this,this._messageSent),error:dojo.hitch(this,this._messageError),timeout:dojo.hitch(this,this._messageTimeout),timeoutSeconds:1000};try{dojo.xhrPost(_46d);}catch(e){this._messageError(e.message);}}},_messageSent:function(_46e,_46f){this._reportStatus(this.successMessage);},_messageError:function(_470){var _471="Error: "+_470.message+".Please, try again later.";if(this._phonenumber!==""){_471+="You can call us: "+this._phonenumber;}this._reportStatus(_471);},_messageTimeout:function(){this._reportStatus(this.timeoutMessage);},_reportStatus:function(_472){this._reset();var _473=dojo.fadeOut({node:this.formPanel,duration:1000,onEnd:dojo.hitch(this,function(){this.formPanel.style.display="none";})});this.statusPanel.innerHTML=_472;var _474=dojo.fadeIn({node:this.statusPanel,duration:1000,onBegin:dojo.hitch(this,function(){this.statusPanel.style.display="";}),onEnd:dojo.hitch(this,function(){this.statusPanel.focus();this.onStatusReported();})});dojo.fx.chain([_473,_474]).play();},onStatusReported:function(){this._hideStatusPaneTimeout=setTimeout(dojo.hitch(this,this._hideStatusPane),10000);},_hideStatusPane:function(){dojo.fadeOut({node:this.statusPanel,onEnd:dojo.hitch(this,function(){this.domNode.style.display="";this.onHideStatusPanel();})}).play();},_validateFields:function(){var ok=true;if(dojo.trim(this.name.value)===""){alert(this.nameMandatoryMessage);this.name.focus();ok=false;}if(ok&&dojo.trim(this.from.value)===""){alert(this.emailMandatoryMessage);this.from.focus();ok=false;}if(ok&&!dojox.validate.isEmailAddress(this.from.value)){alert(this.emailInvalidMessage);this.from.focus();ok=false;}if(this.mode=="suscription"){if(ok&&!this.receiveInformation.checked){alert(this.checkMandatoryMessage);this.receiveInformation.focus();ok=false;}}if(this.mode=="contact"){if(ok&&dojo.trim(this.comment.value)===""){alert(this.commentMandatoryMessage);this.comment.focus();ok=false;}}return ok;},cancel:function(evt){if(evt){dojo.stopEvent(evt);}this._reset();this._reportStatus(this.cancelMessage);},_reset:function(){this.from.value="";this.phone.value="";this.name.value="";this.comment.value="";this.receiveInformation.checked=true;this.statusPanel.innerHTML="";clearTimeout(this._hideStatusPaneTimeout);}});}if(!dojo._hasResource["cromis.widget.MultilanguageWidget"]){dojo._hasResource["cromis.widget.MultilanguageWidget"]=true;dojo.provide("cromis.widget.MultilanguageWidget");dojo.declare("cromis.widget.MultilanguageWidget",dijit._Widget,{constructor:function(){dojo.subscribe("language-change",this,"_changeLanguage");},_changeLanguage:function(_477){throw new Error("Each subwidget should implement this class.");}});}if(!dojo._hasResource["cromis.widget.Mlphotostreamcollection"]){dojo._hasResource["cromis.widget.Mlphotostreamcollection"]=true;dojo.provide("cromis.widget.Mlphotostreamcollection");dojo.declare("cromis.widget.Mlphotostreamcollection",[cromis.widget.MultilanguageWidget,photogallery.widget.Photostreamcollection],{constructor:function(){this.translations=["anterior","siguiente","previous","next"];},_changeLanguage:function(_478){var i;switch(_478){case "esp":i=0;break;case "eng":i=2;break;default:i=0;break;}this.previous_title=this.translations[i];dojo.query(".previous",this.domNode)[0].alt=this.translations[i];dojo.query(".previous",this.domNode)[0].title=this.translations[i];this.next_title=this.translations[i+1];dojo.query(".next",this.domNode)[0].alt=this.translations[i+1];dojo.query(".next",this.domNode)[0].title=this.translations[i+1];this._streamWidgetsSet=dijit.registry.byClass("photogallery.widget.Photostream");this._streamWidgetsSet.forEach(dojo.hitch(this,function(_47a){dojo.query(".previous",_47a.domNode)[0].alt=this.translations[i];dojo.query(".previous",_47a.domNode)[0].title=this.translations[i];dojo.query(".next",_47a.domNode)[0].alt=this.translations[i+1];dojo.query(".next",_47a.domNode)[0].title=this.translations[i+1];}));}});}if(!dojo._hasResource["cromis.widget.Menu"]){dojo._hasResource["cromis.widget.Menu"]=true;dojo.provide("cromis.widget.Menu");dojo.declare("cromis.widget.Menu",[dijit._Widget,dijit._Templated],{templateString:"<div class=menu>\r\n    <div class=\"languagecontrols\" >\r\n        <div class=\"itemLanguage\" dojoAttachEvent=\"onclick: spanish\" dojoAttachPoint=\"spanishNode\" ><A href=\"#\">espa&ntilde;ol</A></div>\r\n\t    <div class=\"itemLanguage\" dojoAttachEvent=\"onclick: english\" dojoAttachPoint=\"englishNode\" ><A href=\"#\">english</A></div>\r\n    </div> \t\r\n\t<div class=item dojoAttachPoint=\"itemgallery\" dojoAttachEvent=\"onclick: galleryItemSelected\" >GALLERY</div>\r\n\t<div class=item dojoAttachPoint=\"itemcontact\" dojoAttachEvent=\"onclick: contactItemSelected\" >CONTACT</div>\r\n\t<div class=\"separator\" ></div>\r\n</div>\r\n",_lastSelection:null,_currentLanguage:"",onItemSelected:function(_47b){},show:function(){this.domNode.style.display="";},hide:function(){this.domNode.style.display="none";},clearSelection:function(){this._unmarkItemSelected();},_unmarkItemSelected:function(){if(this._lastSelection!==null){dojo.removeClass(this._lastSelection,"contactSelected");dojo.removeClass(this._lastSelection,"gallerySelected");}},galleryItemSelected:function(_47c){this._markItemSelected(this.itemgallery,"gallery");this.onItemSelected("gallery",_47c);},contactItemSelected:function(_47d){this._markItemSelected(this.itemcontact,"contact");this.onItemSelected("contact",_47d);},_markItemSelected:function(node,_47f){var _480;if(_47f==="gallery"){_480="contactSelected";newClass="gallerySelected";}else{newClass="contactSelected";_480="gallerySelected";}if(this._lastSelection!==null){dojo.removeClass(this._lastSelection,_480);}dojo.addClass(node,newClass);this._lastSelection=node;},spanish:function(evt){if(evt!=undefined){dojo.stopEvent(evt);}this._languageSelected("esp");},english:function(evt){if(evt!=undefined){dojo.stopEvent(evt);}this._languageSelected("eng");},_languageSelected:function(_483){if(this._currentLanguage!==_483){var _484;var _485;if(_483==="esp"){_484=this.englishNode;_485=this.spanishNode;}if(_483==="eng"){_484=this.spanishNode;_485=this.englishNode;}_484.className="itemLanguage";_485.className="itemLanguageSeleted";this._currentLanguage=_483;this._languageChange();}},_languageChange:function(){dojo.publish("language-change",[this._currentLanguage]);}});}if(!dojo._hasResource["cromis.widget.Mlmenu"]){dojo._hasResource["cromis.widget.Mlmenu"]=true;dojo.provide("cromis.widget.Mlmenu");dojo.declare("cromis.widget.Mlmenu",[cromis.widget.MultilanguageWidget,cromis.widget.Menu],{constructor:function(){this.translations=["GALER&Iacute;A","CONTACTO","GALLERY","CONTACT"];},_changeLanguage:function(_486){var i;switch(_486){case "esp":i=0;break;case "eng":i=2;break;default:i=0;break;}this.itemgallery.innerHTML=this.translations[i];this.itemcontact.innerHTML=this.translations[i+1];}});}if(!dojo._hasResource["cromis.widget.Mlcontactpanel"]){dojo._hasResource["cromis.widget.Mlcontactpanel"]=true;dojo.provide("cromis.widget.Mlcontactpanel");dojo.declare("cromis.widget.Mlcontactpanel",[cromis.widget.MultilanguageWidget,util.widget.Contactpanel],{constructor:function(){this.translations={esp:["nombre","email","tel&eacute;fono/fax","mensaje","Quiero recibir informaci&oacute;n de Cromis en mi email.","enviar","cancelar","Enviar mensaje a Cromis","Se ha exedido el tiempo m&aacute;ximo de respuesta.Por favor, verifique su conexi&oacute;n a internet y pruebe nuevamente.","Su mensaje ha sido enviado con &eacute;xito. Muchas gracias.","Ha cancelado el mensaje. Vuelva a contactarnos cuando lo desee.","Ha sido suscripto satisfactoriamente.Pronto recibira novedades de Cromis.","Ha cancelado su suscripci&oacute;n.","Por favor, ingrese su nombre.","Por favor, ingrese su email.","El email ingresado no es valido. Por favor, revise su email e intentelo nuevamente.","Por favor, ingrese el mensaje que desea enviar.","Cromis enviara mensajes por email a los usuarios registrados, debe chequear la opcion para recibir novedades."],eng:["name","email","phone/fax","message","I want to recieve information from Cromis in my e-mail","send","cancel","Send message to Cromis","Timeout.Please, check your internet connection and try it again.","Your message has been sent. Thank you very much.","You have canceled the message.Feel free to contact us by phone.","You have suscribed successfully to Cromis.","You have canceled your suscription.","Please, enter your name.","Please, enter your email address.","The email address is not valid. Please, check your email address and try again.","Please, enter a message.","You have to check option for receiving news."]};},_changeLanguage:function(_488){var i=0;var _48a=[];switch(_488){case "esp":_48a=this.translations.esp;break;case "eng":_48a=this.translations.eng;break;default:_48a=this.translations.esp;break;}dojo.query(".name",this.domNode)[0].innerHTML=_48a[i];dojo.query(".from",this.domNode)[0].innerHTML=_48a[i+1];dojo.query(".phone",this.domNode)[0].innerHTML=_48a[i+2];dojo.query(".comment",this.domNode)[0].innerHTML=_48a[i+3];dojo.query(".receiveInformation",this.domNode)[1].innerHTML=_48a[i+4];dojo.query(".send a",this.domNode)[0].innerHTML=_48a[i+5];dojo.query(".send",this.domNode)[0].alt=_48a[i+7];dojo.query(".send",this.domNode)[0].title=_48a[i+7];dojo.query(".cancel a",this.domNode)[0].innerHTML=_48a[i+6];dojo.query(".cancel",this.domNode)[0].alt=_48a[i+6];dojo.query(".cancel",this.domNode)[0].title=_48a[i+6];this.timeoutMessage=_48a[i+8];if(this.mode==="contact"){this.successMessage=_48a[i+9];this.cancelMessage=_48a[i+10];}if(this.mode==="suscription"){this.successMessage=_48a[i+11];this.cancelMessage=_48a[i+12];}this.nameMandatoryMessage=_48a[i+13];this.emailMandatoryMessage=_48a[i+14];this.emailInvalidMessage=_48a[i+15];this.commentMandatoryMessage=_48a[i+16];this.checkMandatoryMessage=_48a[i+17];}});}if(!dojo._hasResource["cromis.widget.Mlphotostream"]){dojo._hasResource["cromis.widget.Mlphotostream"]=true;dojo.provide("cromis.widget.Mlphotostream");dojo.declare("cromis.widget.Mlphotostream",[cromis.widget.MultilanguageWidget,photogallery.widget.Photostream],{constructor:function(){this.translations=["anterior","siguiente","previous","next"];},_changeLanguage:function(_48b){var i;switch(_48b){case "esp":i=0;break;case "eng":i=2;break;default:i=0;break;}dojo.query(".previous",this.domNode)[0].alt=this.translations[i];dojo.query(".previous",this.domNode)[0].title=this.translations[i];dojo.query(".next",this.domNode)[0].alt=this.translations[i+1];dojo.query(".next",this.domNode)[0].title=this.translations[i+1];}});}if(!dojo._hasResource["cromis.widget.Mlphotostreamviewer"]){dojo._hasResource["cromis.widget.Mlphotostreamviewer"]=true;dojo.provide("cromis.widget.Mlphotostreamviewer");dojo.declare("cromis.widget.Mlphotostreamviewer",[cromis.widget.MultilanguageWidget,photogallery.widget.Photostreamviewer],{constructor:function(){this.translations=["Cargando..","Iniciar presentaci�n de diapositivas","Pausar la presentacion","Detener la presentacion","anterior","siguiente","Cargando imagenes, espere por favor.","de","Loading..","Start view as slideshow","Pause the slideshow","Stop the slideshow","previous","next","Loading images, please wait.","from"];},_changeLanguage:function(_48d){var i;switch(_48d){case "esp":i=0;break;case "eng":i=8;break;default:i=0;break;}this.load_indicator.innerHTML=this.translations[i];dojo.query(".play",this.domNode)[0].title=this.translations[i+1];dojo.query(".play",this.domNode)[0].alt=this.translations[i+1];this.btn_play_fullscreenMode.title=this.translations[i+1];this.btn_play_fullscreenMode.alt=this.translations[i+1];this.btn_pause_fullscreenMode.title=this.translations[i+2];this.btn_pause_fullscreenMode.alt=this.translations[i+2];dojo.query(".stop",this.domNode)[0].title=this.translations[i+3];dojo.query(".stop",this.domNode)[0].alt=this.translations[i+3];this.previous_title=this.translations[i+4];dojo.query(".previous",this.domNode)[0].alt=this.translations[i+4];dojo.query(".previous",this.domNode)[0].title=this.translations[i+4];dojo.query(".previous",this.domNode)[1].alt=this.translations[i+4];dojo.query(".previous",this.domNode)[1].title=this.translations[i+4];this.next_title=this.translations[i+5];dojo.query(".next",this.domNode)[0].alt=this.translations[i+5];dojo.query(".next",this.domNode)[0].title=this.translations[i+5];dojo.query(".next",this.domNode)[1].alt=this.translations[i+5];dojo.query(".next",this.domNode)[1].title=this.translations[i+5];this.loadingMessage=this.translations[i+6];this._text_from=this.translations[i+7];}});}if(!dojo._hasResource["cromis.widget.Mlprogressbar"]){dojo._hasResource["cromis.widget.Mlprogressbar"]=true;dojo.provide("cromis.widget.Mlprogressbar");dojo.declare("cromis.widget.Mlprogressbar",[cromis.widget.MultilanguageWidget,photogallery.widget.Progressbar],{constructor:function(){this.translations=["Cargados","Loaded"];},_changeLanguage:function(_48f){var i;switch(_48f){case "esp":i=0;break;case "eng":i=1;break;default:i=0;break;}this._message=this.translations[i];}});}if(!dojo._hasResource["cromis.widget"]){dojo._hasResource["cromis.widget"]=true;dojo.provide("cromis.widget");}if(!dojo._hasResource["dojo.back"]){dojo._hasResource["dojo.back"]=true;dojo.provide("dojo.back");(function(){var back=dojo.back;function getHash(){var h=window.location.hash;if(h.charAt(0)=="#"){h=h.substring(1);}return dojo.isMozilla?h:decodeURIComponent(h);};function setHash(h){if(!h){h="";}window.location.hash=encodeURIComponent(h);_494=history.length;};if(dojo.exists("tests.back-hash")){back.getHash=getHash;back.setHash=setHash;}var _495=(typeof (window)!=="undefined")?window.location.href:"";var _496=(typeof (window)!=="undefined")?getHash():"";var _497=null;var _498=null;var _499=null;var _49a=null;var _49b=[];var _49c=[];var _49d=false;var _49e=false;var _494;function handleBackButton(){var _49f=_49c.pop();if(!_49f){return;}var last=_49c[_49c.length-1];if(!last&&_49c.length==0){last=_497;}if(last){if(last.kwArgs["back"]){last.kwArgs["back"]();}else{if(last.kwArgs["backButton"]){last.kwArgs["backButton"]();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("back");}}}}_49b.push(_49f);};back.goBack=handleBackButton;function handleForwardButton(){var last=_49b.pop();if(!last){return;}if(last.kwArgs["forward"]){last.kwArgs.forward();}else{if(last.kwArgs["forwardButton"]){last.kwArgs.forwardButton();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("forward");}}}_49c.push(last);};back.goForward=handleForwardButton;function createState(url,args,hash){return {"url":url,"kwArgs":args,"urlHash":hash};};function getUrlQuery(url){var _4a6=url.split("?");if(_4a6.length<2){return null;}else{return _4a6[1];}};function loadIframeHistory(){var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();_49d=true;if(_49a){dojo.isSafari?_49a.location=url:window.frames[_49a.name].location=url;}else{}return url;};function checkLocation(){if(!_49e){var hsl=_49c.length;var hash=getHash();if((hash===_496||window.location.href==_495)&&(hsl==1)){handleBackButton();return;}if(_49b.length>0){if(_49b[_49b.length-1].urlHash===hash){handleForwardButton();return;}}if((hsl>=2)&&(_49c[hsl-2])){if(_49c[hsl-2].urlHash===hash){handleBackButton();return;}}if(dojo.isSafari&&dojo.isSafari<3){var _4aa=history.length;if(_4aa>_494){handleForwardButton();}else{if(_4aa<_494){handleBackButton();}}_494=_4aa;}}};back.init=function(){if(dojo.byId("dj_history")){return;}var src=dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html");document.write("<iframe style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"dj_history\" id=\"dj_history\" src=\""+src+"\"></iframe>");};back.setInitialState=function(args){_497=createState(_495,args,_496);};back.addToHistory=function(args){_49b=[];var hash=null;var url=null;if(!_49a){if(dojo.config["useXDomain"]&&!dojo.config["dojoIframeHistoryUrl"]){console.debug("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");}_49a=window.frames["dj_history"];}if(!_499){_499=document.createElement("a");dojo.body().appendChild(_499);_499.style.display="none";}if(args["changeUrl"]){hash=""+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());if(_49c.length==0&&_497.urlHash==hash){_497=createState(url,args,hash);return;}else{if(_49c.length>0&&_49c[_49c.length-1].urlHash==hash){_49c[_49c.length-1]=createState(url,args,hash);return;}}_49e=true;setTimeout(function(){setHash(hash);_49e=false;},1);_499.href=hash;if(dojo.isIE){url=loadIframeHistory();var _4b0=args["back"]||args["backButton"]||args["handle"];var tcb=function(_4b2){if(getHash()!=""){setTimeout(function(){setHash(hash);},1);}_4b0.apply(this,[_4b2]);};if(args["back"]){args.back=tcb;}else{if(args["backButton"]){args.backButton=tcb;}else{if(args["handle"]){args.handle=tcb;}}}var _4b3=args["forward"]||args["forwardButton"]||args["handle"];var tfw=function(_4b5){if(getHash()!=""){setHash(hash);}if(_4b3){_4b3.apply(this,[_4b5]);}};if(args["forward"]){args.forward=tfw;}else{if(args["forwardButton"]){args.forwardButton=tfw;}else{if(args["handle"]){args.handle=tfw;}}}}else{if(!dojo.isIE){if(!_498){_498=setInterval(checkLocation,200);}}}}else{url=loadIframeHistory();}_49c.push(createState(url,args,hash));};back._iframeLoaded=function(evt,_4b7){var _4b8=getUrlQuery(_4b7.href);if(_4b8==null){if(_49c.length==1){handleBackButton();}return;}if(_49d){_49d=false;return;}if(_49c.length>=2&&_4b8==getUrlQuery(_49c[_49c.length-2].url)){handleBackButton();}else{if(_49b.length>0&&_4b8==getUrlQuery(_49b[_49b.length-1].url)){handleForwardButton();}}};})();}if(!dojo._hasResource["cromis.navigation"]){dojo._hasResource["cromis.navigation"]=true;dojo.provide("cromis.navigation");dojo.declare("cromis.navigation",null,{constructor:function(_4b9,_4ba){this.changeUrl=this._processUrl(_4b9,_4ba);},_processUrl:function(_4bb,_4bc){var url=_4bb;if(_4bb==="viewer"){if(_4bc){if(_4bc.id()&&_4bc.id()!==null){url+="_"+_4bc.id().toString();}if(_4bc.selectedImageIndex()&&_4bc.selectedImageIndex()!==null){url+="_"+_4bc.selectedImageIndex().toString();}else{url+="_0";}}}if(_4bb==="prehome"){url=false;}return url;},back:function(){cromis.globals.navigateFromUrl(this.changeUrl,true);},forward:function(){cromis.globals.navigateFromUrl(this.changeUrl,true);}});}dojo.addOnLoad(initilize);var currentPage="";var galleries_initialized=false;var viewer=null;var subscribeWidget=null;var currentPhotostream;function initilize(){var _4be=new cromis.navigation("prehome");dojo.back.setInitialState(_4be);showPage("prehome");};function showGallery(){if(currentPage==="gallery"){dijit.byId("collection_page").populate(streams_array);}else{showPage("gallery");}};function showViewer(img,_4c0,_4c1,_4c2){if(currentPhotostream!==_4c0){currentPhotostream=_4c0;initializeViewer();}if(!isNaN(_4c1)&&_4c1>=0){dijit.byId("viewer_page").getStreamWidget().selectImage(_4c1);}showPage("viewer",_4c2);};function showPage(_4c3,_4c4){if(currentPage===_4c3){return;}if(currentPage!==""){hidePage(currentPage);}currentPage=_4c3;var node=getPageNode(_4c3);dojo.fadeIn({node:node,duration:800,delay:1000,onBegin:function(){node.style.display="";},onEnd:function(){goNav(_4c4);}}).play();switch(_4c3){case "prehome":initializePrehome();break;case "gallery":initializeGalleries();break;case "viewer":initializeViewer();break;case "contact":initializeContactPanel();break;case "suscription":initializeContactPanel("suscription");break;}};function hidePage(_4c6){var node=getPageNode(_4c6);dojo.fadeOut({node:node,duration:600,delay:0,onEnd:dojo.hitch(this,function(){node.style.display="none";})}).play();};function initializePrehome(){dojo.animateProperty({node:"line",easing:dojox.fx.easing.sineOut,properties:{width:{start:0,end:538,unit:"px"}},duration:3000,onBegin:function(){},onEnd:function(){dojo.parser.parse(document.getElementById("site"));dojo.parser.parse(document.getElementById("foot_widget"));dojo.connect(dijit.byId("menu_widget"),"onItemSelected",showPage);dojo.connect(dijit.byId("contact_page"),"onHideStatusPane",showGallery);initializeLanguage();dojo.fadeIn({node:"site",duration:800,delay:0,onBegin:function(){document.getElementById("logo").style.display="";dijit.byId("menu_widget").show();},onEnd:function(){cromis.globals.navigateFromUrl();document.getElementById("foot_widget").style.display="";}}).play();}}).play();};function initializeGalleries(){if(galleries_initialized===false){stream_collection_widget=dijit.byId("collection_page");stream_collection_widget.populate(streams_array);dojo.connect(stream_collection_widget,"onStreamSelected",showViewer);galleries_initialized=true;}};function initializeViewer(){initializeGalleries();if(viewer===null){viewer=dijit.byId("viewer_page");dojo.connect(viewer,"onStartSlideShow",hideMenu);dojo.connect(viewer,"onStopSlideShow",showMenu);dojo.connect(viewer,"onImageShowed",goNav);}dijit.byId("menu_widget").clearSelection();viewer.populate(currentPhotostream);};function showMenu(){dijit.byId("menu_widget").show();};function hideMenu(){dijit.byId("menu_widget").hide();};function initializeContactPanel(mode){dijit.byId("contact_page").populate(mode);};function getPageNode(_4c9){var _4ca;switch(_4c9){case "prehome":_4ca="prehome";break;case "gallery":_4ca="collection_page";break;case "viewer":_4ca="viewer_page";break;case "contact":_4ca="contact_page";break;case "suscription":_4ca="contact_page";break;}return dojo.byId(_4ca);};cromis.globals={},cromis.globals.navigateFromUrl=function(_4cb,_4cc){try{var hash=window.location.hash.substring(window.location.hash.indexOf("#")+1);cromis.globals[hash]=_4cc;if(hash==="gallery"){dijit.byId("menu_widget").galleryItemSelected(true);return;}if(hash==="contact"){dijit.byId("menu_widget").contactItemSelected(true);return;}if(hash.indexOf("viewer")!==-1){selectPhotofromHash(hash);return;}dijit.byId("menu_widget").galleryItemSelected(true);}catch(e){}};function selectPhotofromHash(hash){var _4cf=hash.split("_");var _4d0=_4cf.length>=1?parseInt(_4cf[1]):0;var _4d1=_4cf.length>=2?parseInt(_4cf[2]):0;var _4d2=null;var img=null;if(parseInt(_4d0)===0){dijit.byId("menu_widget").galleryItemSelected();return;}for(var i=0;i<streams_array.length;i++){if(parseInt(streams_array[i].id())===parseInt(_4d0)){_4d2=streams_array[i];break;}}if(_4d2===null){dijit.byId("menu_widget").galleryItemSelected(true);return;}if(_4d2.images()[_4d1]){img=_4d2.images()[_4d1];}showViewer(img,_4d2,_4d1,true);};function goNav(_4d5){_4d5=(typeof _4d5==="boolean"&&_4d5);if(cromis.globals[getUrl()]||_4d5){cromis.globals[getUrl()]=false;}else{var _4d6=new cromis.navigation(currentPage,currentPhotostream);dojo.back.addToHistory(_4d6);}};function getUrl(){var url=currentPage;if(currentPage==="viewer"){if(currentPhotostream){if(currentPhotostream.id()&&currentPhotostream.id()!==null){url+="_"+currentPhotostream.id().toString();}if(currentPhotostream.selectedImageIndex()&&currentPhotostream.selectedImageIndex()!==null){url+="_"+currentPhotostream.selectedImageIndex().toString();}else{url+="_0";}}}if(currentPage==="prehome"){url="pre";}return url;};dojo.subscribe("language-change",this,"_changeLanguage");function initializeLanguage(){var lang=languageCookie();switch(lang){case "spanish":dijit.byId("menu_widget").spanish();break;case "english":dijit.byId("menu_widget").english();break;default:dijit.byId("menu_widget").spanish();break;}};function languageCookie(_4d9){return !_4d9?dojo.cookie("Language"):dojo.cookie("Language",_4d9,{expires:365});};function _changeLanguage(_4da){if(_4da==="esp"){languageCookie("spanish");dijit.byId("suscription_dialog").title="Suscribase a Cromis";dojo.query("a",document.getElementById("suscription"))[0].innerHTML="Suscripci&oacute;n";dojo.query("a",document.getElementById("copyright"))[0].innerHTML="Derechos de autor";if(streams_array!==streams_array_esp){streams_array=streams_array_esp;reload();}}if(_4da==="eng"){languageCookie("english");dijit.byId("suscription_dialog").title="Suscription to Cromis";dojo.query("a",document.getElementById("suscription"))[0].innerHTML="Subscribe";dojo.query("a",document.getElementById("copyright"))[0].innerHTML="Copyright";if(streams_array!==streams_array_eng){streams_array=streams_array_eng;reload();}}};function reload(){if(currentPage=="gallery"){dijit.byId("collection_page").populate(streams_array);}cromis.globals.navigateFromUrl();};function Subscribe(evt){dijit.byId("suscription_pane").populate();dijit.byId("suscription_dialog").show();dojo.connect(dijit.byId("suscription_pane"),"onHideStatusPanel",dijit.byId("suscription_dialog"),"hide");};function closeSubscribe(){dijit.popup.close(subscribeWidget);};dojo.i18n._preloadLocalizations("dojo.nls.cromis",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","da","pl","de","sv","pt","zh-tw","pt-pt","nl-nl","ko-kr","ar","en-us","zh","ja-jp"]);
