Event.observe(document,"refresh:after",setupAllTabs);Event.observe(document,"refresh:before",disposeAllTabs);Event.observe(window,"unload",disposeAllTabs);function hasSupport(){if(typeof hasSupport.support!="undefined"){return hasSupport.support}var a=/msie 5\.[0-9]/i.test(navigator.userAgent);hasSupport.support=(typeof document.implementation!="undefined"&&document.implementation.hasFeature("html","1.0")||a);if(a){document._getAllElements=function(){return document.all}}else{document._getAllElements=function(){return document.getElementsByTagName("*")}}return hasSupport.support}var groups=new Array();var ieMac=navigator.appVersion.indexOf("MSIE")>=0&&navigator.appVersion.indexOf("Mac")>=0;function WebFXTabPane(e,b){if(!hasSupport()||e==null){return}JcmsLogger.debug("TabPane","New tab pane: ",e);this.element=e;this.element.tabPane=this;var g=this.element.className;this.group=g.length>8?g.substring(9,g.length):null;if(this.group){if(!groups[this.group]){groups[this.group]=new Array()}groups[this.group][groups[this.group].length]=this.element.id}this.pages=[];this.selectedIndex=null;this.useCookie=false;this.tabRow=document.createElement("div");this.tabRow.className="tab-row";if(ieMac){this.tabRow.style.height="1px"}e.insertBefore(this.tabRow,e.firstChild);var a=0;a=Number(WebFXTabPane.getCookie("webfxtab_"+this.element.id));if(isNaN(a)){a=0}this.selectedIndex=a;var f;var d=e.childNodes;for(var c=0;c<d.length;c++){if(d[c].nodeType==1&&d[c].className=="tab-page"){this.addTabPage(d[c])}}if(this.selectedIndex>=this.pages.length){this.setSelectedIndex(0)}}WebFXTabPane.prototype.classNameTag="dynamic-tab-pane-control";WebFXTabPane.prototype.setSelectedIndex=function(a){if(a>=this.pages.length){a=0}if(this.selectedIndex!=a){if(this.selectedIndex!=null&&this.pages[this.selectedIndex]!=null){this.pages[this.selectedIndex].hide()}this.selectedIndex=a;this.pages[this.selectedIndex].show();WebFXTabPane.fireChange(this.pages[this.selectedIndex].element);if(this.useCookie){WebFXTabPane.setCookie("webfxtab_"+this.element.id,a)}}};WebFXTabPane.prototype.getSelectedIndex=function(){return this.selectedIndex};WebFXTabPane.prototype.addTabPage=function(a){if(!hasSupport()){return}if(a.tabPage==this){return a.tabPage}var c=this.pages.length;var b=this.pages[c]=new WebFXTabPage(a,this,c);b.tabPane=this;this.tabRow.appendChild(b.tab);if(c==this.selectedIndex){b.tab.className="tab_selected"}else{b.hide()}return b};WebFXTabPane.prototype.dispose=function(){this.element.tabPane=null;this.element=null;this.tabRow=null;for(var a=0;a<this.pages.length;a++){this.pages[a].dispose();this.pages[a]=null}this.pages=null};WebFXTabPane.setCookie=function(c,f,b){var a="";if(b){var e=new Date();e.setTime(e.getTime()+b*24*60*60*1000);a="; expires="+e.toGMTString()}document.cookie=c+"="+f+a+"; path=/"};WebFXTabPane.getCookie=function(c){var b=new RegExp("(;|^)[^;]*("+c+")=([^;]*)(;|$)");var a=b.exec(document.cookie);return a!=null?a[3]:null};WebFXTabPane.removeCookie=function(a){setCookie(a,"",-1)};WebFXTabPane.fireChange=function(a){JcmsLogger.debug("TabPane",'fireChange("',a,'")');$(a).fire("tabpane:change",{tabPage:$(a).identify()});document.fire("tabpane:change",{tabPage:$(a).identify()})};function WebFXTabPage(g,d,b){if(!hasSupport()||g==null){return}JcmsLogger.debug("TabPane","New tab page: ",g," for tab pane ",d.element);Event.observe(g,"tabpane:change",function(a){Event.stop(a)}.bindAsEventListener(g));this.element=$(g);this.element.tabPage=this;this.index=b;this.group=d.group;this.tab=g.fastChild("H2","tab");this.tab.tabPage=this;var c=document.createElement("A");this.aElement=c;c.href="#";c.onclick=function(){return false};c.hideFocus=true;for(var h=this.tab.firstChild;h;){var f=h.nextSibling;if(h.tagName!="A"){c.appendChild(h)}h=f}this.tab.appendChild(c);var e=this;this.tab.onclick=function(){e.select(e.group)}}WebFXTabPage.prototype.show=function(){var d=this.tab;d.className="tab_selected";if(Prototype.Browser.IE){this.element.style.display="";return}if(this.element._tabWidth){this.element.style.display="";return}this.element._tabWidth=true;var f=$(d.parentNode);var e=0;f.fastEach("H2",false,function(h,g){e+=parseInt(h.getStyle("width"))+18});var b=600>e?600:e;var a=parseInt(this.element.getStyle("width"));var c=!a||b>a?b:a;this.element.style.minWidth=b+"px";this.element.style.display="";this.element.style.width=c+"px"};WebFXTabPage.prototype.hide=function(){var a=this.tab;a.className="tab";this.element.style.display="none"};WebFXTabPage.prototype.select=function(d){if(d){var c=groups[d];for(var a=0;a<c.length;a++){var b=document.getElementById(c[a]);if(b){if(this.index<b.tabPane.pages.length){b.tabPane.setSelectedIndex(this.index)}}}}else{this.tabPane.setSelectedIndex(this.index)}};WebFXTabPage.prototype.dispose=function(){this.aElement.onclick=null;this.aElement=null;this.element.tabPage=null;this.tab.onclick=null;this.tab.onmouseover=null;this.tab.onmouseout=null;this.tab=null;this.tabPane=null;this.element=null};WebFXTabPage.tabOver=function(a){var c=a.tab;var b=c.className+" hover";b=b.replace(/ +/g," ");c.className=b};WebFXTabPage.tabOut=function(a){var c=a.tab;var b=c.className;b=b.replace(/ hover/g,"");c.className=b};function disposeAllTabs(c){if(!hasSupport()){return}var b=$(document.body);if(c&&c.memo&&c.memo.wrapper){b=$(c.memo.wrapper);if(!b){return}}var a=$A([]);b.select("DIV.tab-pane").each(function(d){if(d.tabPane){a.push(d.tabPane)}d.tabPane=null});a.invoke("dispose")}function setupAllTabs(d){if(!hasSupport()){return}if(!d&&document.TabPaneSetupAllTabsDone){return}if(!d){document.TabPaneSetupAllTabsDone=true}var e=new Date().getTime();var b=$(document.body);if(d&&d.memo&&d.memo.wrapper){b=$(d.memo.wrapper);if(!b){return}}var a=setupTabFragment(b);WebFXTabPane.fireChange(a?a:document.body);var c=new Date().getTime();JcmsLogger.info("TabPane","Setup all tabs"," in "+(c-e)+" ms")}function setupTabFragment(b){var a;b.select("DIV.tab-pane").reverse().each(function(c){if(c.tabPane){return}var d=new WebFXTabPane(c);if(!a&&d.pages[0]){a=d.pages[0].element}});b.select("DIV.tab-page").reverse().each(function(c){if(c.tabPage){return}c.parentNode.tabPane.addTabPage(c)});b.select("H2.tab_selected").reverse().each(function(c){c.tabPage.show()})}function setSelectedTab(d,b){document.cookie="webfxtab_"+d+"="+b+"; path=/";var a=$(d);if(!a){return}var c=a.tabPane;if(!c){return}c.setSelectedIndex(b)}function toggleUL(f,h,b,c,a){ulElt=document.getElementById(h);ulElt.style.display=ulElt.style.display=="none"?"block":"none";b.src=ulElt.style.display=="block"?c:a;if((f&&f.ctrlKey)){var g=ulElt.getElementsByTagName("UL");var e=ulElt.getElementsByTagName("IMG");if(ulElt.style.display=="block"){for(var d=0;d<g.length;d++){g[d].style.display="block"}for(var d=0;d<e.length;d++){if(e[d].src.indexOf(a)!=-1){e[d].src=c}}}else{for(var d=0;d<g.length;d++){g[d].style.display="none"}for(var d=0;d<e.length;d++){if(e[d].src.indexOf(c)!=-1){e[d].src=a}}}}}var TreeGroup={toggle:function(b,a){b=$(b);a.toggle();if(a.style.display==""){b.addClassName("open")}else{b.removeClassName("open")}},init:function(){$$(".tree img").each(function(a){Event.observe(a,"click",function(){var b=a.parentNode;$A(b.childNodes).each(function(c){if(c.tagName!="UL"){return}$(c).toggle();if(c.style.display==""){a.src="images/jalios/icons/groupParentOpened.gif"}else{a.src="images/jalios/icons/groupParent.gif"}})})})}};"JCMS.form.Widget".namespace({init:function(){var b=new Date().getTime();setupSingleSubmitButton();Util.observeFocusClass("formTextfield",JCMS.form.Widget._handleBlurFocus);Util.observeFocusClass("formTextarea",JCMS.form.Widget._handleBlurFocus);var a=new Date().getTime();JcmsLogger.info("Widget","Init Widgets"," in "+(a-b)+" ms")},_initResizer:function(a){var b=$(a.memo.elmId);if(!b||b.tagName!="TEXTAREA"){return}JCMS.form.Widget.autoResize(b);if(b.hasClassName("resizable")){return}b.addClassName("resizable");Event.observe(b,"mousedown",JCMS.form.Widget.dragStart);Event.observe(b,"keypress",function(d){var c=d.which||d.keyCode;if(!c||c!=Event.KEY_RETURN){return}JCMS.form.Widget.autoResize(Event.element(d))})},_drag:false,_dragX:0,_dragY:0,_dragW:0,_dragH:0,dragStart:function(a){var e=Event.element(a);var j=Event.pointerX(a)-10;var h=Event.pointerY(a)-10;var b=e.cumulativeOffset();var g=e.getWidth();var c=e.getHeight();var f=b.left;var d=b.top;if((j>f+g)||(h>d+c)||(j<f+g-32)||(h<d+c-32)){return}e.style.cursor="se-resize";if(e.hasClassName("wikitoolbar")){e=e.previous("TEXTAREA");g=e.getWidth();c=e.getHeight()}JCMS.form.Widget._drag=e.identify();JCMS.form.Widget._dragX=j;JCMS.form.Widget._dragY=h;JCMS.form.Widget._dragW=g;JCMS.form.Widget._dragH=c;Event.observe(document,"mousemove",JCMS.form.Widget.dragMove);Event.observe(document,"mouseup",JCMS.form.Widget.dragEnd)},dragEnd:function(a){var c=$(JCMS.form.Widget._drag);if(!c){return}c.style.cursor="";var b=c.next("DIV.wikitoolbar");if(b){b.style.cursor=""}JCMS.form.Widget._drag=false;Event.stopObserving(document,"mousemove",JCMS.form.Widget.dragMove);Event.stopObserving(document,"mouseup",JCMS.form.Widget.dragEnd)},dragMove:function(d){var g=$(JCMS.form.Widget._drag);var a=Event.pointerX(d);var f=Event.pointerY(d);var b=JCMS.form.Widget._dragW+(a-JCMS.form.Widget._dragX);var c=JCMS.form.Widget._dragH+(f-JCMS.form.Widget._dragY);if(b>15){g.style.width=b+"px"}if(c>15){g.style.height=c+"px"}var e=g.next("DIV.wikitoolbar");if(b>15&&e){e.style.width=b+6+"px"}},autoResize:function(b){var a=b.value.split("\n");var c=1;for(i=0;i<a.length;i++){if(a[i].length>=b.cols){c+=Math.floor(a[i].length/b.cols)}}c+=a.length;if(c>b.rows){b.rows=Math.min(c,20)}},_initDragDrop:function(c){var e=$(c.memo.elmId);var b=$(c.memo.lastId);if(!e){return}var d=e.fastUp(["DIV","OL","UL"],null,true,10);if(b){var a=b.fastUp(["DIV","OL","UL"],null,true,10);if(a&&a.hasClassName("dragdrop")&&a.tagName!="DIV"){if(a==d){return}JcmsLogger.debug("Widget","_initDragDrop","Sotable.destroy",a.identify());Sortable.destroy(a);a.removeClassName("dragdrop")}}if(!d||d.hasClassName("dragdrop")||d.tagName=="DIV"||d.hasClassName("wdg-tabpane")){return}d.addClassName("dragdrop");d._draggable=d.childElements().invoke("identify");JcmsLogger.debug("Widget","_initDragDrop","Sotable.create",d.identify());Sortable.create(d.identify(),{tag:"LI",overlap:"vertical",constraint:"vertical",ghosting:false,onUpdate:JCMS.form.Widget._dndField,handles:d.select("IMG.grip"),tree:false,treeTag:d.tagName})},_initDragDropTab:function(d){var e=$(d.memo.elmId);var c=$(d.memo.lastId);if(!e){return}var g=JCMS.form.Widget.getWidget(e);if(!g){return}var a=g.fastChild("UL","wdg-tab-grp");if(c){var f=JCMS.form.Widget.getWidget(c);var b=f.fastChild("UL","wdg-tab-grp");if(b&&b.hasClassName("dragdrop")){if(b==a){return}JcmsLogger.debug("Widget","_initDragDropTab","Sotable.destroy",b.identify());Sortable.destroy(b);b.removeClassName("dragdrop")}}if(!a||a.hasClassName("dragdrop")){return}a.addClassName("dragdrop");a._draggable=a.childElements().invoke("identify");JcmsLogger.debug("Widget","_initDragDropTab","Sotable.create",a.identify());Sortable.create(a.identify(),{tag:"LI",overlap:"horizontal",constraint:"horizontal",ghosting:false,onUpdate:JCMS.form.Widget._dndField,tree:false,treeTag:"UL"})},_dndField:function(c){var b=c._draggable;var a=c.childElements().collect(function(d){return b.indexOf(d.identify())});c._draggable=c.childElements().invoke("identify");c._skip=true;JCMS.form.Widget.reorder(c.down("LI"),a);c._skip=false},_resetDragDrop:function(a){var c=$(a.memo.wrapper);if(!c){return}if(c.hasClassName("dragdrop")){b.removeClassName("dragdrop");return}var b=c.fastUp(["DIV","OL","UL"],null,true,10);if(b.hasClassName("dragdrop")){b.removeClassName("dragdrop")}},_lastFocusId:false,_handleBlurFocus:function(c,d,b,a){var d=$(d);if(a==="focus:in"){JCMS.form.Widget.fireFocus(c,d,b)}else{if(a==="focus:out"){JCMS.form.Widget.fireBlur(c,d,b)}}},fireBlur:function(b,a){var c=JCMS.form.Widget.getWidget(a);if(!c||c.hasClassName("disabled")){return}document.fire("jcms:blur",{elmId:a.identify()})},fireFocus:function(b,a){var c=JCMS.form.Widget._lastFocusId;if(!JCMS.form.Widget._focusClasses(a,$(c))){return}document.fire("jcms:focus",{elmId:a.identify(),lastId:c})},_focusClasses:function(c,e){if(c==e){return false}var b=JCMS.form.Widget.getWrapper(c);var a=JCMS.form.Widget.getWidget(c);if(a&&a.hasClassName("disabled")){return false}if(e){JCMS.form.Widget._lastFocusId=false;var f=JCMS.form.Widget.getWrapper(e);if(f){f.removeClassName("focus-field")}var d=JCMS.form.Widget.getWidget(e);if(d){d.removeClassName("focus-widget")}}if(!c){return false}JCMS.form.Widget._lastFocusId=c.identify();if(b&&!b.hasClassName("tab-page")){b.addClassName("focus-field")}if(a&&!a.hasClassName("tab-page")){a.addClassName("focus-widget")}return true},toggleLangForm:function(b,d){var a=$(CtxMenuManager.latestElement);var c=$(a).fastUp("FORM");return JCMS.form.Widget.toggleLangScope(b,c)},toggleLangScope:function(d,c){var c=$(c);if(!c){return false}var a=c?"#"+c.identify():"";JCMS.util.StyleSheet.putRule(".js "+a+" .wdglang","display: none;");if(c._oldLang){JCMS.util.StyleSheet.removeRule(".js "+a+" .wdglang-"+c._oldLang)}JCMS.util.StyleSheet.putRule(".js "+a+" .wdglang-"+d,"display: block;");c._oldLang=d;var b=$$("#ctxLangForm IMG."+d+"-flag").first();c.select("A.ctxLangForm IMG.iso639flag").each(function(e){var f=b.cloneNode(true);e.parentNode.replaceChild(f,e)});document.fire("tabwdg:change",{tabPage:$(c).identify()});return false},toggleUploadField:function(a){var a=$(a)||$(CtxMenuManager.latestElement);return JCMS.form.Widget._toggleUpload(a)},_toggleUpload:function(f,d){var e=JCMS.form.Widget.getWrapper(f);var a=e.down("INPUT.formUploadfield");if(!a||(a.disabled&&d)){return}var c=e.down("INPUT.formChooserLabelfield");var b=e.down("INPUT.formChooserfield");if(!a.disabled){a.disable();a.hide();c.show();c.enable();b.enable()}else{c.disable();b.disable();c.hide();b.hide();a.show();a.enable()}return false},UI_EDITOR_COLORCHOOSER:"F",UI_EDITOR_FILEPATH:"P",UI_EDITOR_IMAGEPATH:"I",UI_EDITOR_SIMPLEIMAGEPATH:"I",UI_EDITOR_MEDIAPATH:"M",UI_EDITOR_SIMPLEMEDIAPATH:"M",UI_EDITOR_DATECHOOSER:"V",UI_EDITOR_MEMBERCHOOSER:"EHJY",UI_EDITOR_GROUPCHOOSER:"EGY",UI_EDITOR_PUBLICATIONCHOOSER:"EXMSCcY",UI_EDITOR_PUBLICATIONSCHOOSER:"EXMSCcY",UI_EDITOR_CATEGORYCHOOSER:"EZY",UI_EDITOR_CATEGORIESCHOOSER:"EZY",UI_EDITOR_WORKSPACECHOOSER:"EOY",UI_EDITOR_QUERYCHOOSER:"QY",UI_EDITOR_SQLQUERY:"",UI_EDITOR_DBRECORDCHOOSER:"",CHOOSER_PATH:{media:"/work/mediaBrowser.jsp?selectMode=true&medias=media&",pub:"/work/pubChooser.jsp?",ws:"/work/workspace/workspaceChooser.jsp?",grp:"/admin/groupChooser.jsp?",mbr:"/admin/memberChooser.jsp?",query:"/work/queryChooser.jsp?",cat:"/work/categoryChooser.jsp?",file:"/work/fileChooser.jsp?",image:"/work/mediaBrowser.jsp?selectMode=true&medias=image&"},getWidget:function(a){if(!a){return}var a=$(a);return a.fastUp(["DIV","SPAN"],"widget",true,10)},getWrapper:function(a){if(!a){return}var a=$(a);return a.fastUp(["DIV","SPAN","LI"],null,true,10)},fillCtxMenuHook:function(k,c){try{var k=$(k);var j="";var a=JCMS.form.Widget.getWrapper(k);var g=JCMS.form.Widget.getWidget(k);var e=k.fastUp(["DIV"],"wdglang",true,10);if(!a){return}var d=e&&e.className.match(/wdglang-(\S+)/);if(d){d=d[1]}if(g&&g.className){$w(g.className).each(function(m){if(JCMS.form.Widget[m]){j+=JCMS.form.Widget[m]}})}if(a.tagName=="LI"){j=(a.parentNode.tagName=="OL")?("R"+j+"-ATUD-"):(j+"-AT-")}else{j="R"+j}if(g.hasClassName("ml")){j+="y"}var l=a.down("INPUT.formChooserfield");if(!l){return j+"','"+d+"','','"}var b="";if(l.value){b=l.value}var f=g.className.match(/super_([\w\.]+)/);f=(f&&f.length>1)?f[1]:"";return j+"','"+d+"','"+f+"','"+b}catch(h){alert(h||h.message)}},clear:function(a){var a=$(a)||$(CtxMenuManager.latestElement);var b=JCMS.form.Widget.getWrapper(a);b.descendants().each(function(c){if(c.checked){c.checked=false}else{if(c.selectedIndex){c.selectedIndex=0}else{if(c.clear){c.clear()}}}});return false},showChooserId:function(c){var c=$(c)||$(CtxMenuManager.latestElement);var d=JCMS.form.Widget.getWrapper(c);var a=d.down("INPUT");var b=a.next("INPUT");JCMS.form.Widget._toggleUpload(c,true);b.toggle();return false},updateDuration:function(f,c){var e=JCMS.form.Widget.getWrapper(f);var b=e.down("INPUT");var d=b.next("INPUT");var a=d.next("SELECT");d.value=d.getValue().replace(/[^0-9]/,"");b.value=d.getValue()*a.getValue()/c},_clearChooser:function(a){var c=$(a.memo.elmId);if(!c||c.value){return}var b=JCMS.form.Widget.getWidget(c);if(!b.hasClassName("DataChooser")){return}JCMS.form.Widget.clear(c)},_formatDate:function(c){var j=$(c.memo.elmId);var h=JCMS.form.Widget.getWrapper(j);if(!h.hasClassName("UI_EDITOR_DATECHOOSER")){return}var g=Date.parse(j.value);if(!g){return}var e=JCMS.form.Widget.getWidget(j);var f=e.hasClassName("showWeek");var a=!e.hasClassName("showTime");var b=I18N.glp(a?"datechooser.js.date-format":"datechooser.js.date-time-format");j.value=g.toString(b)},_initKeypress:function(a){var c=$(a.memo.elmId);if(!c||c.type!="text"||c._keyField||c.hasClassName("autocomplete")){return}var b=JCMS.form.Widget.getWrapper(c);if(!b||b.tagName!="LI"){return}c._keyField=true;Event.observe(c,"keypress",function(f){var e=f.which||f.keyCode;if(!e||e!=Event.KEY_RETURN){return}var d=Event.element(f);if(!d.value){return}if(JCMS.form.Widget.add(d)){Event.stop(f)}});Event.observe(c,"keydown",function(f){var e=f.which||f.keyCode;if(!e||e!=Event.KEY_BACKSPACE){return}var d=Event.element(f);if(d.value){return}if(JCMS.form.Widget.remove(d)){Event.stop(f)}})},_popupCallback:function(d){if(!d.memo){return}var c=$(d.memo.linkId);if(!JCMS.form.Widget.getWidget(c)){c=$(CtxMenuManager.latestElement);if(!JCMS.form.Widget.getWidget(c)){return}}var e=JCMS.form.Widget.getWrapper(c);var a=e.down("INPUT");var b=[a.identify()].concat($A(d.memo.args));JCMS.form.Widget._chooserCallback.apply(this,b);JCMS.form.Widget._toggleUpload(a,true)},_chooserCallback:function(b,g,f,e,c){var a=$(b);var d=a.next("INPUT");if(!g){return}if(d){d.value=g;a.value=f}else{a.value=c}},openColorChooser:function(d){var d=$(d)||$(CtxMenuManager.latestElement);var f=JCMS.form.Widget.getWrapper(d);var b=f.down("INPUT");var c=JcmsJsContext.getContextPath()+"/work/colorChooser.jsp?color="+b.value.slice(1);var a=b.identify();var e=function(h){var g=$(a);g.value=h;g.style.backgroundColor=h};return Popup.popupWindow(c,"ColorChooser",235,220,"no","no","yes",false,false,e)},openFileChooser:function(){JCMS.form.Widget._openChooser.apply(this,["file",700,500,"yes"].concat($A(arguments)));return false},openCatChooser:function(){JCMS.form.Widget._openChooser.apply(this,["cat",300,500,"yes"].concat($A(arguments)));return false},openQueryChooser:function(){JCMS.form.Widget._openChooser.apply(this,["query",900,500,"yes"].concat($A(arguments)));return false},openWSChooser:function(){JCMS.form.Widget._openChooser.apply(this,["ws",900,500,"yes"].concat($A(arguments)));return false},openMbrChooser:function(){JCMS.form.Widget._openChooser.apply(this,["mbr",900,500,"yes"].concat($A(arguments)));return false},openGrpChooser:function(){JCMS.form.Widget._openChooser.apply(this,["grp",900,500,"yes"].concat($A(arguments)));return false},openPubChooser:function(){JCMS.form.Widget._openChooser.apply(this,["pub",900,500,"yes"].concat($A(arguments)));return false},openMediaChooser:function(){JCMS.form.Widget._openChooser.apply(this,["media",930,570,"no"].concat($A(arguments)));return false},openImageChooser:function(){JCMS.form.Widget._openChooser.apply(this,["image",930,570,"yes"].concat($A(arguments)));return false},openImagePubChooser:function(){JCMS.form.Widget._openChooser.apply(this,["image",930,570,"yes"].concat($A(arguments)));return false},_openChooser:function(c,p,j,s,n){var n=$(n)||$(CtxMenuManager.latestElement);var b=JCMS.form.Widget.getWrapper(n);var g=JCMS.form.Widget.getWidget(n);var o=b.down("INPUT");var f=o.next("INPUT");var r=JcmsJsContext.getContextPath()+JCMS.form.Widget.CHOOSER_PATH[c];if("query"==c){r+="&qs="+Popup.encode(f.value)+"&"}if("file"==c){r+="&path="+Popup.encode(o.value)+"&"}if("cat"==c){r+="&cidList="+Popup.encode(f.value)+"&";if(g.hasClassName("UI_EDITOR_CATEGORIESCHOOSER")){r+="multivalue=true&"}}if("mbr"==c){if(g.className.indexOf("adminOnly")>=0){r+="admin=true&"}if(g.className.indexOf("workerOnly")>=0){r+="worker=true&"}if(g.className.indexOf("jstoreOnly")>=0){r+="jstore=true&jcmsdb=false&"}}var k=g.className.match(/super_([\w\.]+)/);if(k&&k.length>1){r+="super="+k[1]+"&"}var l=g.className.match(/gids_[\w]+/g);if(l&&l.length>0){r+=l.join("&").replace("gids_","gids=");r+="&"}var e=g.className.match(/cid_[\w]+/g);if(e&&e.length>0){r+=e.join("&").replace("cid_","cid=");r+="&"}var m=g.className.match(/rootCat_([\w\.]+)/);if(m&&m.length>1){r+="rootCat="+m[1]+"&"}var a=g.className.match(/pstatus_(-?\d+)/);if(a&&a.length>1){r+="pstatus="+a[1]+"&"}if(g.className.indexOf("wsNoFilter")>=0||g.className.indexOf("workspaceFilter_false")>=0){r+="workspaceFilter=false&"}var d=g.className.match(/ws_([\w\.]+)/);if(d&&d.length>1){r+="ws="+d[1]+"&"}var q=JCMS.form.Widget._chooserCallback.bind(this,o.identify());JCMS.form.Widget._toggleUpload(n,true);JcmsLogger.warn("Chooser: "+r);return Popup.popupWindow(r,"Chooser",p,j,"no",s,s,false,false,q)},openDocChooser:function(d,j){var d=$(d)||$(CtxMenuManager.latestElement);var c=JCMS.form.Widget.getWidget(d);if(!c){var h=JcmsJsContext.getContextPath()+"/work/docChooser.jsp?nbElt=1";var g=function(k,l){document.location=document.location};return Popup.popupWindow(h,"DocChooser",640,600,"no","yes","yes",false,false,g)}var a=JCMS.form.Widget.getWrapper(d);var e=a.down("INPUT.formChooserfield");var b=a.nextSiblings().size()+1;var h=JcmsJsContext.getContextPath()+"/work/docChooser.jsp?nbElt="+b+"&hideUnzip=true";if(j){h=JcmsJsContext.getContextPath()+"/work/docChooser.jsp?nbElt=1&hideUnzip=true&id="+e.value}var f=a.identify();var g=function(l,n){var m=$(f);var k=[m].concat(m.nextSiblings());k.each(function(q,o){if(o>=l.size()){return}var p=q.down("INPUT.formChooserLabelfield");var r=q.down("INPUT.formChooserfield");p.value=n[o];r.value=l[o];JCMS.form.Widget._toggleUpload(p,true)})};return Popup.popupWindow(h,"DocChooser",640,600,"no","yes","yes",false,false,g)},_closeDateChooser:function(b){var a=$("calendar-container");if(!a||!a.visible()){return false}if(b&&b.identify&&a.inputId!=b.identify()){return false}a.hide();return true},openDateChooser:function(f){var f=$(f)||$(CtxMenuManager.latestElement);var a=JCMS.form.Widget.getWrapper(f);var b=JCMS.form.Widget.getWidget(f);var g=a.down("INPUT");if(JCMS.form.Widget._closeDateChooser(g)){return}var m=$("calendar-container");var j=b.className.indexOf("showWeek")>=0;var k=b.className.indexOf("showTime")<0;var h=g.value;var n=I18N.glp(k?"datechooser.js.date-format":"datechooser.js.date-time-format");if(!m){m=document.createElement("DIV");m.id="calendar-container";document.body.appendChild(m);m.style.position="absolute";m=$(m)}if(!window.calendar){var l=function(r){var q=r.selection;var o=$(r.inputId);var d=$("calendar-container");var p=Calendar.intToDate(q.get(),r.getHours(),r.getMinutes());o.value=p.toString(n);d.hide()};try{window.calendar=Calendar.setup({cont:"calendar-container",weekNumbers:j,showTime:!k,onSelect:l})}catch(e){alert(e.message||e)}}var c=Date.parse(g.value);window.calendar.inputId=g.identify();if(c){g.value=c.toString(n);window.calendar.setHours(c.getHours());window.calendar.setMinutes(c.getMinutes());window.calendar.selection.reset(c)}m.inputId=g.identify();m.clonePosition(f,{setWidth:false,setHeight:false,offsetTop:24,offsetLeft:24});m.show();return false},toggle:function(){return JCMS.form.Widget._list.apply(this,["_toggle"].concat($A(arguments)))},add:function(){return JCMS.form.Widget._list.apply(this,["_add"].concat($A(arguments)))},remove:function(){return JCMS.form.Widget._list.apply(this,["_remove"].concat($A(arguments)))},up:function(){return JCMS.form.Widget._list.apply(this,["_up"].concat($A(arguments)))},down:function(){return JCMS.form.Widget._list.apply(this,["_down"].concat($A(arguments)))},reorder:function(){return JCMS.form.Widget._list.apply(this,["_reorder"].concat($A(arguments)))},_add:function(e,a,f){var c=$(e.childElements()[a]);if(!c){return}var b=$(c.cloneNode(true));Util.cleanDOMElements(b,true,"generated");b.removeAttribute("id");Element.removeClassName(b,"showPrev");var d=c.fastNext("LI");if(d){e.insertBefore(b,d)}else{e.appendChild(b)}JCMS.form.Widget.clear(b);JCMS.form.Widget._renumber(e,true,a+1);JCMS.form.Widget._retoggle(e,a+1,f);if(e.className.indexOf("wdg-tab-grp")<0){document.fire("refresh:widget",{wrapper:b.identify()})}if(f){JCMS.form.Widget._focus.defer(b)}},_remove:function(d,b,e){var a=$(d.childElements()[b]);if(a.siblings().length==0){return}var f=b-1;var c=a.fastPrevious("LI");if(!c){c=$(a.parentNode).firstDescendant();f=0}a.remove();JCMS.form.Widget._renumber(d,true,f);JCMS.form.Widget._retoggle(d,f,false);if(e){JCMS.form.Widget._focus.defer(c)}},_focus:function(b){if(!b){return}var b=$(b);var a=b.down(["INPUT","TEXTAREA","SELECT"]);if(a){InputUtil.focus(a)}},_blur:function(b){if(!b){return}var b=$(b);var a=b.down(["INPUT","TEXTAREA","SELECT"]);if(a){InputUtil.blur(a)}},_up:function(e,a,f){var d=e.childElements();var c=d[a];var b=a-1<0?d[d.length-1]:d[a-1];e.insertBefore(c,b);if(a-1<0){e.insertBefore(b,c)}JCMS.form.Widget._renumber(e,true)},_down:function(e,a,f){var d=e.childElements();var c=$(d[a]);var b=a+1>=d.length?d[0]:d[a+1];if(a+1>=d.length){e.insertBefore(c,b)}else{e.insertBefore(b,c)}JCMS.form.Widget._renumber(e,true)},_toggle:function(b,a,c){JCMS.form.Widget._renumber(b,false,a);JCMS.form.Widget._retoggle(b,a,c)},_reorder:function(e,b,f,a){if(e._skip){JCMS.form.Widget._renumber(e,true);return}var e=$(e);var d=e.childElements();var c=$A();a.each(function(g){c.push(d[g])});e.childElements().each(function(h,g){e.removeChild(h);if(c.indexOf(h)<0){c.push(h)}});c.each(function(h,g){if(!h){return}e.appendChild(h)});JCMS.form.Widget._renumber(e,true)},_renumber:function(f,c,d){if(!f.hasClassName("wdg-tab-grp")){return}var a=$(f);var e=0;var h=0;for(var j=a.firstChild;j;j=j.nextSibling){if(j.nodeType!=1){continue}var j=$(j);if(c){var g=j.fastChild("A");if(g&&g.innerHTML*1!=h+1){g.innerHTML=h+1}}if(j.className.indexOf("selected")>=0){e=h;j.removeClassName("selected")}h++}if(d!=undefined){e=d}var b=a.fastChild("LI",false,e);if(b){b.addClassName("selected")}return e},_retoggle:function(d,c,f){if(!d.hasClassName("wdg-tabpane")){return}var e=$(d);var b=0;for(var a=e.firstChild;a;a=a.nextSibling){if(a.nodeType!=1){continue}$(a).hide();b++}if(c!="undefined"){index=c}var g=e.fastChild("LI",false,index);if(!g){return}g.show();if(g.fastVisible()){document.fire("tabwdg:change",{tabPage:$(g).identify()})}},_list:function(g,f,c){var f=$(f)||$(CtxMenuManager.latestElement);var h=JCMS.form.Widget.getWidget(f);if(!h){return false}var b=f.fastUp("LI",null,true,10);if(!b){b=$(f.parentNode).down(".wdg-list > LI:last-child")}var d=$(b.parentNode);var a=d.childElements().indexOf(b);if(h.hasClassName("wdg-group")){JCMS.form.Widget._listGroup(g,h,a,c)}else{if(h.hasClassName("ml")){JCMS.form.Widget._listML(g,d,a,c)}else{var e=d.fastNext("OL","wdg-list");if(e){JCMS.form.Widget[g](e,a,true,c)}JCMS.form.Widget[g](d,a,true,c)}}return true},_listML:function(d,e,a,c){if(e.tagName=="UL"){var f=e.fastNext("DIV","wdglang",true,4);if(!f){return}JCMS.form.Widget[d]($(e),a,false,c);e=f}var f=e.fastUp("DIV","wdglang",true,4);if(!f){return}for(;f;f=f.nextSibling){if(f.nodeType!=1){continue}if(!f.className.indexOf("wdglang")<0){continue}var b=$(f.firstChild);if(!b){continue}JCMS.form.Widget[d](b,a,b.fastVisible(),c)}},_listGroup:function(f,g,a,d){var h=g.className.match(/wdggrp-(\S+)/);var b="DIV."+h[0];var e=g.fastUp("FORM",null,false,20);var c=e.retrieve(b);if(!c){c=$A([]);e.store(b,c);e.select(b).each(function(j){var k=j.select(["UL.wdg-list","OL.wdg-list"]);c.addAll(k)})}c.each(function(j){var k=j.fastVisible()&&JCMS.form.Widget.getWidget(j)==g;JCMS.form.Widget[f](j,a,k,d)})}});Event.observe(window,"load",function(){JCMS.form.Widget.init.defer()});Event.observe(document,"refresh:widget",JCMS.form.Widget._resetDragDrop);Event.observe(document,"jcms:focus",JCMS.form.Widget._initResizer);Event.observe(document,"jcms:focus",JCMS.form.Widget._initDragDrop);Event.observe(document,"jcms:focus",JCMS.form.Widget._initDragDropTab);Event.observe(document,"jcms:focus",JCMS.form.Widget._initKeypress);Event.observe(document,"jcms:focus",JCMS.form.Widget._closeDateChooser);Event.observe(document,"jcms:blur",JCMS.form.Widget._clearChooser);Event.observe(document,"jcms:blur",JCMS.form.Widget._formatDate);Event.observe(document,"popup:callback",JCMS.form.Widget._popupCallback);function initUnloadMessage(){var b=function(d){if(d.keyCode==116){return}window.onbeforeunload=function c(){return I18N.glp("warn.edit.contentlost")};a(false)};var a=function(c){if(c){Event.observe(document,"keypress",b)}else{Event.stopObserving(document,"keypress",b)}$A(window.frames).each(function(e,d){if(c){Event.observe(e.document,"keypress",b)}else{Event.stopObserving(e.document,"keypress",b)}})};a(true)}function testSQLQuery(f,c,b,e,g,h){var d=b.elements[getFormElementPos(b,e)+g];var a=b.elements[getFormElementPos(b,e+"DataSource")+g];var j=b.elements[getFormElementPos(b,e+"MaxRows")+g];var k=c+"/work/checkSQLQuery.jsp?";k+="dataSource="+escape(a.value);k+="&maxRows="+escape(j.value);k+="&sqlQuery="+escape(d.value);popupWindow(k,h,400,600,"no","yes","yes",false)}"JCMS.wysiwyg.TinyMceCB".namespace({editorsNbr:0,initInstanceCB:function(a){JCMS.wysiwyg.TinyMceCB.editorsNbr=JCMS.wysiwyg.TinyMceCB.editorsNbr-1;JCMS.wysiwyg.TinyMceCB._checkWysiwygEditorInitialization(a)},_checkWysiwygEditorInitialization:function(a){if(a){JcmsLogger.debug("TinyMCE_JcmsPluginCB","[",a.id,"] [_checkWysiwyg] - editorsNbr:",JCMS.wysiwyg.TinyMceCB.editorsNbr)}else{JcmsLogger.debug("TinyMCE_JcmsPluginCB","[_checkWysiwyg] - editorsNbr:",JCMS.wysiwyg.TinyMceCB.editorsNbr)}if(JCMS.wysiwyg.TinyMceCB.editorsNbr!=0){return}if(window.document.editForm&&window.document.editForm.pageLoaded){window.document.editForm.pageLoaded.value="true"}},_countWysisygEditorOnPage:function(){var b=new Date().getTime();JCMS.wysiwyg.TinyMceCB.editorsNbr+=$$("TEXTAREA.formRichText").size();JCMS.wysiwyg.TinyMceCB._checkWysiwygEditorInitialization();var a=new Date().getTime();JcmsLogger.info("Widget","Init WysisygEditor Count"," in "+(a-b)+" ms")}});Event.observe(window,"load",function(){JCMS.wysiwyg.TinyMceCB._countWysisygEditorOnPage()});function fillOpenerField(d,c,e,g,f,a){var b=getFormElementPos(c,e)+g;c.elements[b].value=f;c.elements[b-1].value=a;d.close()}function submitAddCount(e,d,f,b,c,a,h){var g=getFormElementCount(d,f,h)/a;b.value=g+c;simpleSubmitForm(e,d,"opRefresh","Wait WYSIWYG")}function getFormElementCount(e,a,f){var c=e.elements;var d=0;for(var b=0;b<c.length;b++){if(c[b].name!=a){continue}if(!f){d++;continue}if((c[b].id==f)||(c[b].id.indexOf(f)>-1)){d++}}return d}function getFormElementPos(d,a,e){var c=d.elements;for(var b=0;b<c.length;b++){if(c[b].name!=a){continue}if(!e){return b}if((c[b].id==e)||(c[b].id==e+"0")||(c[b].id&&c[b].id.startsWith(e))){return b}}return -1}function getFormElementLastPos(e,a,f,g){var c=e.elements;var d=-1;for(var b=0;b<c.length;b++){if(c[b].name!=a){if(d>0&&f){break}continue}if(!g){d=b;continue}if(c[b].id.indexOf(g)>-1){d=b;continue}if(d>0&&f){break}}return d}function toggleSingleSubmitButton(b,d,a){if(this.elements){d=this}var e=$(d.elements);for(var c=0;c<e.length;c++){var f=$(e[c]);if(!a){if(!f.hasClassName("formButton")){continue}f.addClassName("disabledButton");f.oldclick=f.onclick;f.onclick=function(g){return false}}else{if(!f.hasClassName("disabledButton")){continue}f.removeClassName("disabledButton");f.onclick=f.oldclick;f.oldclick=null}}if(!a){d.oldsubmit=d.onsubmit;d.onsubmit=function(g){return false};window.onbeforeunload=null}else{d.onsubmit=d.oldsubmit;d.oldsubmit=null}}function setupSingleSubmitButton(f){try{var b=document.forms;for(var d=0;d<b.length;d++){var e=$(b[d]);if(e.hasClassName("noSingleSubmitButton")){continue}if(f){toggleSingleSubmitButton(null,b[d],true);continue}if(e.ssb){continue}e.ssb=true;var a=e.onsubmit;if(typeof a=="function"){e.onsubmit=function(g){toggleSingleSubmitButton(g,this);return a(g,this)}}else{e.onsubmit=toggleSingleSubmitButton}}}catch(c){alert(c)}}function simpleSubmitForm(d,c,e,g,b,f){if(c.pageLoaded&&c.pageLoaded.value=="false"){alert(g);return}for(var a=0;a<c.elements.length;a++){if(c.elements[a].jcmsSubmitCallBack!=null){c.elements[a].jcmsSubmitCallBack(d,c,e,g,b)}}if(b){c.anchor.value=b}if(e&&c.action){c.action.name=e;if(f){c.action.value=f}}if(c.onsubmit){c.onsubmit()}c.submit()}function confirmSubmitForm(c,b,d,f,g,a,e){if(top.confirm(f)){simpleSubmitForm(c,b,d,g,a,e)}}function confirmSubmitFormLightBox(c,b,d,f,g,a,e){JCMS.window.Modal.confirm(f,function(h){if(h){simpleSubmitForm(c,b,d,g,a,e)}})}function getFormName(a,b){if(a.all){if(b.attributes){if(b.attributes.getNamedItem){return b.attributes.getNamedItem("NAME").value}else{if(b.attributes.name){return b.attributes.name}else{if(b.attributes.NAME){return b.attributes.NAME}else{return"editForm"}}}}else{return"editForm"}}else{return b.getAttribute("NAME")}}function restrictToNumerics(a){var b=new RegExp("[^0-9]");var d=a.value;var c=d.replace(b,"");a.value=c}function submitForm(c,b,a){simpleSubmitForm(window,window.document.editForm,c,"Error",b,a)}function confirmSubmit(d,c,b,a){confirmSubmitForm(window,window.document.editForm,c,d,b,a)}function submitAction(b,a){simpleSubmitForm(window,window.document.editForm,b,"Error",null,a)}"Ajax.Tree".namespace({enableDragNDrop:true,dragdropArray:$A(new Array()),_downloadChildrenHooks:$H(),registerDownloadChildrenHook:function(c,a){var b=Ajax.Tree._downloadChildrenHooks.get(c);if(!b){b=$A();Ajax.Tree._downloadChildrenHooks.set(c,b)}b.push(a)},invokeDownloadChildrenHook:function(c,a){var b=Ajax.Tree._downloadChildrenHooks.get(c);if(!b){return}b.each(function(d){d(a)})},downloadChildren:function(d,e,f,c,h,a){JcmsLogger.debug("TreeCat","downloadChildren():",e,d,c,h);var g=new JcmsJsonRequest(d);var j=function(){if(d){Ajax.Tree._getRpcTree(e).getChildren(g.asyncJsonCallBack.bind(g),$(d).getJcmsId())}else{Ajax.Tree._getRpcTree(e).getChildren(g.asyncJsonCallBack.bind(g),c,h)}};var b=function(l){if(!l){f.parentNode.removeChild(f);return}Ajax.Tree._disposeUL(f);Util.cleanDOMElements(f,true);f.innerHTML=l;if($(e).hasClassName("dragdrop")&&Ajax.Tree.enableDragNDrop){setTimeout(function(){Ajax.Tree._initDragDrop(f)},10)}if(a){a()}Ajax.Tree.invokeDownloadChildrenHook(e,f)};var k=function(){f.parentNode.removeChild(f);Ajax.Tree.toggleOpenClose(d)};g.rpc=j;g.callback=b;g.exception=k;g.asyncJsonCall()},rename:function(e,c,d){JcmsLogger.debug("TreeCat","rename():",e,c,d);var a=new JcmsJsonRequest();var b=function(){Ajax.Tree._getRpcTree(e).rename(function(f){Ajax.Tree._handleRPCResponse(a,f,e)},c,d)};a.rpc=b;a.callback=Ajax.Tree._callbackRefresh;a.asyncJsonCall()},addSubCat:function(e,c,d){JcmsLogger.debug("TreeCat","addSubCat():",e,c,d);var a=new JcmsJsonRequest();var b=function(){Ajax.Tree._getRpcTree(e).addSubCat(function(f){Ajax.Tree._handleRPCResponse(a,f,e)},c,d)};a.rpc=b;a.callback=function(g,f){Ajax.Tree._callbackRefresh(g,f,c)};a.asyncJsonCall()},addSiblingCat:function(e,c,d){JcmsLogger.debug("TreeCat","addSiblingCat():",e,c,d);var a=new JcmsJsonRequest();var b=function(){Ajax.Tree._getRpcTree(e).addSiblingCat(function(f){Ajax.Tree._handleRPCResponse(a,f,e)},c,d)};a.rpc=b;a.callback=function(g,f){Ajax.Tree._callbackRefresh(g,f)};a.asyncJsonCall()},remove:function(d,c){JcmsLogger.debug("TreeCat","remove():",d,c);var a=new JcmsJsonRequest();var b=function(){Ajax.Tree._getRpcTree(d).remove(function(e){Ajax.Tree._handleRPCResponse(a,e,d)},c)};a.rpc=b;a.callback=Ajax.Tree._callbackRefresh;a.asyncJsonCall()},setParent:function(d,c,e){JcmsLogger.debug("TreeCat","setParent():",d,c,e);var a=new JcmsJsonRequest();var b=function(){Ajax.Tree._getRpcTree(d).setParent(function(f){Ajax.Tree._handleRPCResponse(a,f,d)},c,e)};a.rpc=b;a.callback=function(g,f){Ajax.Tree._callbackRefresh(g,f,e)};a.asyncJsonCall()},refresh:function(g,d,e){JcmsLogger.debug("TreeCat","refresh():",g,d);Ajax.setWaitState(true);var c=$(g);if(d){d=Object.isArray(d)?$A(d):$A([d])}var b=new Array();var f=new Array();$A(c.getElementsByTagName("INPUT")).each(function(j,h){if(j.checked){f.push(j.value);return}if(d&&j.disabled&&d.indexOf(j.value)>=0){d=d.without(j.value)}});$A(c.select("LI.open")).each(function(l,h){var k=l.down();if(k){var j=$(k).getJcmsId();b.push(j);JcmsLogger.debug("TreeCat","Opened:",j)}});if(d){b=b.concat(d);if(e&&!c.hasClassName("follow")){f=f.concat(d)}}Ajax.Tree._disposeUL(c);Util.cleanDOMElements(c,true);c.innerHTML="<li><img src='s.gif' class='loading'/> Loading...</li>";var a=null;if(c.hasClassName("follow")&&d&&d.length==1){a=function(){Ajax.Tree._followRefreshCallback(g,d)}}Ajax.Tree.downloadChildren(null,g,c,f,b,a)},_followRefreshCallback:function(f,e){var c=$(f);var d=c.select("IMG.ID_"+e);if(!d||!d[0]){JcmsLogger.warn("TreeCat","Id not found",e);return}var b=d[0];var a=b.next("A");if(c.hasClassName("fire")){JcmsLogger.debug("TreeCat","fire jcms:click",a);a.fire("jcms:click")}else{if(a){document.location=a.href}}},_importChildren:function(b){var a=$(b.parentNode);if(a.hasClassName("imported")){return}Ajax.setWaitState(true,b);var c=document.createElement("UL");c.innerHTML="<li><img src='s.gif' class='loading'/> Loading...</li>";a.appendChild(c);a.addClassName("imported");var d=$(b).fastUp("UL","TreeCat").id;Ajax.Tree.downloadChildren(b,d,c)},toggleOpenClose:function(b){var a=$(b.parentNode);a.toggleClassName("close");a.toggleClassName("open");Ajax.Tree._importChildren(b)},getAjaxSuffix:function(b){if(!b){return}var b=$(b);if(b.id&&b.id.indexOf("proxy")>=0){return b.id.substring(6)}var a=b.fastUp("UL","TreeCat");if(!a){return}JcmsLogger.debug("TreeCat","getAjaxSuffix():",a.id);return a.id},getCategoryId:function(a){if(!a){return}if(a.tagName=="LI"){return Ajax.Tree.getCategoryId(a.down(0))}else{if(a.tagName=="IMG"){return $(a).getJcmsId()}else{return Ajax.Tree.getCategoryId(a.up("UL.TreeCat LI"))}}},_getRpcTree:function(a){if(!a){return JcmsJsContext.getJsonRPC().AjaxTree}else{return JcmsJsContext.getJsonRPC()["AjaxTree"+a]}},_callbackRefresh:function(d,a,c){JcmsLogger.debug("TreeCat","Callback Refresh",d,a,c);if(d){if(c){var b=new Array();b.push(c);Ajax.Tree.refresh(d,b)}else{Ajax.Tree.refresh(d)}}},_handleRPCResponse:function(a,c,b){if(c){alert(c);a.asyncJsonCallBack();return}a.asyncJsonCallBack(b)},_initTreeCat:function(b){if(!Ajax.Tree.enableDragNDrop){return}var c=new Date().getTime();if(b&&b.memo&&b.memo.wrapper){var d=$(b.memo.wrapper);if(!d){return}d.select("UL.TreeCat").each(function(f,e){if(f.hasClassName("dragdrop")){Ajax.Tree._initDragDrop(f)}});return}$$("UL.TreeCat").each(function(f,e){if(f.hasClassName("dragdrop")){Ajax.Tree._initDragDrop(f)}});var a=new Date().getTime();JcmsLogger.info("TreeCat","Init TreeCat"," in "+(a-c)+" ms")},dispose:function(){if(!Ajax.Tree.enableDragNDrop){return}$$("UL.TreeCat").each(function(b,a){Ajax.Tree._disposeUL(b)});Ajax.Tree.dragdropArray.clear()},_disposeLI:function(a){if(a.treedrag){a.treedrag.destroy();a.treedrag=null}Droppables.remove(a)},_disposeUL:function(a){var a=$(a);$A(a.getElementsByTagName("LI")).each(function(c,b){Ajax.Tree._disposeLI(c);Ajax.Tree.dragdropArray.splice(b,1)});$A(a.getElementsByTagName("A")).each(function(c,b){c.onclick=null})},_initDragDrop:function(a){var a=$(a);$A(a.getElementsByTagName("LI")).each(function(c,b){var c=$(c);if(!c.hasClassName("mng")){return}var d=c.down("IMG.visual");Event.observe(d,"mousedown",Ajax.Tree._lazyDrag);Droppables.remove(c);Droppables.add(c,{greedy:false,onHover:Ajax.Tree._onHover,onDrop:Ajax.Tree._onDrop});Ajax.Tree.dragdropArray.push(c)})},_lazyDrag:function(c){var b=Event.element(c);JcmsLogger.debug("TreeCat","_lazyDrag",b);var a=b.fastUp("LI");if(a.treedrag){a.treedrag.destroy()}a.treedrag=new Draggable(a,{revert:true,handle:"visual"});Event.stopObserving(b,"mousedown",Ajax.Tree._lazyDrag);a.treedrag.initDrag(c);Draggables.updateDrag(c)},_stopEvent:function(a){Event.stop(a)},_onChange:function(a){if(!a.element.dragObserver){JcmsLogger.debug("TreeCat","Start dragObserver");Event.observe(a.element,"click",Ajax.Tree._stopEvent);a.element.dragObserver=true}},_onHover:function(c,a,b){if(a.className.indexOf("droppable")>=0){return}if(c.oldDropElm&&c.oldDropElm!=a){c.oldDropElm.removeClassName("droppable")}a.addClassName("droppable");c.oldDropElm=a},_onDrop:function(d,a,c){if(d.oldDropElm){d.oldDropElm.removeClassName("droppable")}if(d.fastUp("LI")===a){return}var b=top.confirm(I18N.glp("msg.confirm.dragdrop"));if(b){d.hide();Ajax.Tree.setParent(Ajax.Tree.getAjaxSuffix(d),Ajax.Tree.getCategoryId(d),Ajax.Tree.getCategoryId(a))}}});Event.observe(window,"load",function(){Ajax.Tree._initTreeCat.defer()});if(navigator.appVersion.match(/\bMSIE\b/)){Event.observe(window,"unload",function(){Ajax.Tree.dispose()},false)}Event.observe(document,"refresh:after",Ajax.Tree._initTreeCat,false);Event.observe(document,"refresh:before",Ajax.Tree.dispose,false);JCMS=window.JCMS||{};JCMS.plugin=JCMS.plugin||{};JCMS.plugin.menuUtils=JCMS.plugin.menuUtils||{};JCMS.plugin.zoomUtils=JCMS.plugin.zoomUtils||{};JCMS.plugin.menuUtils={init:function(){$$("#menu_secondaire > li > a","ul.navN2 > li > span").each(function(a){Event.observe(a,"mouseover",function(){$$("#menu_secondaire > li > a","ul.navN2 > li > span").each(function(c){c.removeClassName("hover");$(c.parentNode).removeClassName("highlight")});a.addClassName("hover");$$("ul.navN2Bottom").each(function(c){c.hide()});var b=JCMS.plugin.menuUtils.extractSubMenuDivId(a);if($(b)!=null){$(a.parentNode).addClassName("highlight");$(b).show()}})});if($("menu")){Event.observe($("menu"),"mouseout",function(f){f.cancelBubble=true;Event.stop(f);if(!f){var f=window.event}var c=f.relatedTarget||f.fromElement;if(c==null||c==undefined){return null}if(!($(c).descendantOf($("menu")))){$$("#menu_secondaire > li > a","ul.navN2 > li > span").each(function(e){e.removeClassName("hover");$(e.parentNode).removeClassName("highlight")});$$("ul.navN2Bottom").each(function(e){e.hide()});var d=$$("#menu_secondaire > li > a.selected","ul.navN2 > li > span.selected");if(d.length==1){var b=d.first();var a=JCMS.plugin.menuUtils.extractSubMenuDivId(b);if($(a)!=null){$(b.parentNode).addClassName("highlight");$(a).show()}}}})}},extractSubMenuDivId:function(d){if(d==null||d==undefined){return null}var f="navN2-";var b="navN2Bottom-";var h=null;var c=d.className.split(" ");for(var e=0;e<c.length;e++){var g=c[e].lastIndexOf(f);if(g!=-1){h=c[e].substring(g+f.length,c[e].length)}}var a=null;if(h!=null){a=b+h}return a}};JCMS.plugin.zoomUtils={DEFAULT_LAYER_PREFIX:"default_",HOVER_LAYER_PREFIX:"hover_",observe:function(a){var b=JCMS.plugin.zoomUtils.extractIdItem(a);Event.observe(a,"mouseover",function(){JCMS.plugin.zoomUtils.showHover(b)});Event.observe(a,"mouseout",function(){JCMS.plugin.zoomUtils.showDefault(b)})},showDefault:function(a){if($(this.DEFAULT_LAYER_PREFIX+a)!=null&&$(this.HOVER_LAYER_PREFIX+a)!=null){$(this.DEFAULT_LAYER_PREFIX+a).show();$(this.HOVER_LAYER_PREFIX+a).hide()}},showHover:function(a){if($(this.DEFAULT_LAYER_PREFIX+a)!=null&&$(this.HOVER_LAYER_PREFIX+a)!=null){$(this.DEFAULT_LAYER_PREFIX+a).hide();$(this.HOVER_LAYER_PREFIX+a).show()}},extractIdItem:function(a){var c="_";var b=a.id.substring(a.id.lastIndexOf("_")+c.length,a.id.length);return b}};var mv_recipients=["Accessibilité","Accréditation","Achat","Achats","Activités","Actualités","Aimer la ville","Aménagements","Animations","Architecture","Arts","Associations","Associations de consommateurs","Athlète de haut niveau","Athlètes","Automatisation ligne 1","Autorisation de tournage","Avenir","Balises Bluetooth","Bilan Carbone","BlueEyes","Bus","Calendrier","Campagne Services","Candidats","Carte d'identité","Changements climatiques","Chiffres d'affaire","Chiffres trafic voyageurs","Chiffres-clés","Cinéma","Citoyenneté","Civisme","Collectivités","Communiqués","Conducteur d'autobus","Confort","Conseil d'administration","Culture","Design","Développement durable","développement international","Diversité","diversité et égalité","Dossiers de presse","Ecoconception","Ecologie Urbaine","Ecomobilité","Economies d'énergies","Egalité","Egalité des Chances","Empreinte carbone ","Energie","Enjeux","Entraide","Entreprise","Environnement","EPIC","Equipe de France Féminine ","Espace candidats","Etranger","Evénements","Evenements RATP ","Exploitation","exploiter","Extension","Extension des réseaux","Extension du réseau","Filiales","Flashcode","Fondation","Fondation RATP","Fournisseurs","Gares","Géolocalisation","Grand Paris","Grenelle Environnement","Groupe","Groupe RATP","Guimard","Handball","Handicap","Histoire","Ile-de-France","IMAGE","Indicateurs","Indicateurs sociétaux et environnementaux","Indicateurs RH","Info en temps réel","Information voyageurs","Informations","Infos","Innovation ","International","ixxi","Jobs","Journalistes","Journées du patrimoine","Liens","Litige","Littérature","Machinistes","Management","Marchés","Matériels","Médiateur","Médiation","Métiers","Métro","Métro automatique","ministère des sports","Mobilité","Modernisation","moderniser","Musiciens du métro","Musique","Nouvelles lignes","Nouveaux services à la mobilité","Nouvelles technologies","Nuit blanche","Organigramme","Osmose","Othoniel","Partenariats","Patrimoine","PBS","PDG","Plan d'entreprise","PMR","Poésie ","Politique RH","Présidence","Presse","Projets","Prolongement","Promométro","Propreté","province","Qualité de l'air","R&D","Rapport d'activité","Rapport financier","RATP dans le monde ","ratp dev","Recherche","recherche et développement","Réclamations","Recrutement","recueil social","régions","Rénovation des stations","RER","Réseau bus","Réseaux","Responsabilité","Responsabilité Sociale et Environnementale","responsable","Ressources humaines","Résultats financiers","Riverains","Rock en Seine","RSE","Rugby","SAET","Santé","Santé des voyageurs","Service de Presse","Services","Smartphone","Solidarité","Solidays","Sport","Stages","Station de demain","Station du futur","Stratégie","Structure du Groupe","Système de gestion Automatique de l'Exploitation des Trains","Système de guidage","Systra","tournages","Tramway","UFR","Un métro + beau","Un metro plus beau","Urbanisme","Vélo","Vision","Vitrines Culturelles","Xelis","Ze Forum","Aéroports Orly Roissy CDG","Roissybus","Orlybus","Orlyval","Personnes à Mobilité Réduite","PMR et UFR","Accessibilité Physique du réseau de transport","Achat titres de transport","Titres forfaits ticket","Etat du Trafic","Perturbation","Travaux","Contacts utiles RATP","Service client","Ecodéplacements CO2","Horaires","Prochains passages Bus Tram RER Métro","Premiers et Derniers Départs, Fréquence","Horaires Métro","Horaires RER","Horaires Bus","Horaires Tramways","Horaires Noctiliens","Informations Touristes","Recherche itinéraire","Fil info","ILot Vélos","Loisirs","Amendes PV contraventions","Plan interactif","Plan quartier","Offre transport quartier","Lignes bus touristiques","Plans lignes et réseaux","Plans RER","Plans Bus","Plans Métro","Plans Noctiliens","Plans Tramways","Seniorcité","Services pour mobile","Ma RATP dans la Poche","Tarifs et réductions","Forfait annuel de déplacement","Titre de transport pour un déplacement, billet, ticket","Titre de transport pour une journée","Forfait mensuel et hebdomadaire","FAQ en ligne","Aide en ligne","Eguichet","STIF Syndicat des transports d'Ile de France","Ligne 13","Facades de quai","Quai","Facades","RER A","RER B","EM services","Documents","Documents de référence","Sites","Tous les sites"];var autocompletion;var findSuggestions;var mv;if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b){var a=this.length>>>0;var c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c<a;c++){if(c in this&&this[c]===b){return c}}return -1}}window.onload=function(){autocompletion(document.getElementById("champ-texte"),10,findSuggestions)};var autocompletionSuggestionMouseDownHandler=function(){this.autocompletionField.value=this.innerHTML;document.getElementById("index_recherche").value=mv_recipients.indexOf(this.innerHTML)};var autocompletionSuggestionMouseOverHandler=function(){if((this.autocompletionField.selectedSuggestion!=-1)&&(this.index!=this.autocompletionField.selectedSuggestion)){this.autocompletionField.suggestionsDiv.childNodes[this.autocompletionField.selectedSuggestion].className=""}this.className="selected";this.autocompletionField.selectedSuggestion=this.index};var autocompletionSuggestionMouseOutHandler=function(){this.className=""};function showSuggestions(a){var d="";if(this.lastKeyCode!=8){this.selectedSuggestion=0}else{this.selectedSuggestion=-1}for(var e=0;e<a.length;e++){d+="<div"+((e==this.selectedSuggestion)?' class="selected"':"")+">"+a[e]+"</div>"}this.suggestionsDiv.innerHTML=d;for(var c=0;c<a.length;c++){this.suggestionsDiv.childNodes[c].autocompletionField=this;this.suggestionsDiv.childNodes[c].index=c;this.suggestionsDiv.childNodes[c].onmousedown=autocompletionSuggestionMouseDownHandler;this.suggestionsDiv.childNodes[c].onmouseover=autocompletionSuggestionMouseOverHandler;this.suggestionsDiv.childNodes[c].onmouseout=autocompletionSuggestionMouseOutHandler}this.suggestionsDiv.style.visibility="visible";if((this.selectedSuggestion!=-1)&&(a[0].toLowerCase().indexOf(this.value.toLowerCase())==0)){var g=this.beforeRangeSize();this.value=a[0];if(this.createTextRange){var b=this.createTextRange();b.moveStart("character",g);b.select()}else{if(this.setSelectionRange){this.setSelectionRange(g,this.value.length)}}document.getElementById("index_recherche").value=mv_recipients.indexOf(a[0])}}var autocompletionKeyDownHandler=function(a){if(!a&&window.event){a=window.event}if(a){this.lastKeyCode=a.keyCode}};var autocompletionKeyUpHandler=function(c){if(!c&&window.event){c=window.event}var d=c.keyCode;switch(d){case 38:if(this.value!=""){this.highlightNewValue(this.selectedSuggestion-1)}break;case 40:if(this.value!=""){this.highlightNewValue(this.selectedSuggestion+1)}break;case 8:this.currentInputFieldValue=this.value;var a=this.suggestionsDiv.childNodes;for(var b=0;b<a.length;b++){a[b].className=""}this.selectedSuggestion=-1;break;default:this.currentInputFieldValue=this.value.substr(0,this.beforeRangeSize());break}};var autocompletionBlurHandler=function(){this.suggestionsDiv.style.visibility="hidden"};function highlightNewValue(c){var a=this.suggestionsDiv.childNodes;var b=a.length;if(!a||(b<=0)||((b==1)&&(this.suggestionsDiv.innerHTML.indexOf("<")==-1))){return}if(c>=b){c=b-1}if((this.selectedSuggestion!=-1)&&(c!=this.selectedSuggestion)){a[this.selectedSuggestion].className=""}if(c<0){this.value=this.oldInputFieldValue;this.currentInputFieldValue=this.oldInputFieldValue;this.selectedSuggestion=-1;return}this.selectedSuggestion=c;a[c].className="selected";this.currentInputFieldValue=this.oldInputFieldValue;this.value=a[c].innerHTML;if(this.createTextRange){var d=this.createTextRange();d.moveStart("character",this.currentInputFieldValue.length);d.select()}else{if(this.setSelectionRange){this.setSelectionRange(this.currentInputFieldValue.length,this.value.length)}}document.getElementById("index_recherche").value=mv_recipients.indexOf(a[c].innerHTML)}function rangeSize(){var a=0;if(this.createTextRange){a=document.selection.createRange().duplicate().text.length}else{if(this.setSelectionRange){a=this.selectionEnd-this.selectionStart}}return a}function beforeRangeSize(){return this.value.length-this.rangeSize()}function setSuggestionsDivSize(){var b=0,a=0;var c=this;while(c){b+=c.offsetLeft;a+=c.offsetTop;c=c.offsetParent}this.suggestionsDiv.style.left=b+"px";this.suggestionsDiv.style.top=(a+this.offsetHeight-1)+"px";this.suggestionsDiv.style.width=this.offsetWidth-2+"px"}findSuggestions=function(){var a=[];var c=this.currentInputFieldValue.toLowerCase();if(c==""){return a}for(var b=0;b<mv_recipients.length;b++){c=c.replace(/[èéêë]/g,"e");c=c.replace(/[àâ]/g,"a");c=c.replace(/[ùû]/g,"u");c=c.replace(/[ô]/g,"o");c=c.replace(/[îï]/g,"i");mv=mv_recipients[b].toLowerCase();mv=mv.replace(/[èéêë]/g,"e");mv=mv.replace(/[àâ]/g,"a");mv=mv.replace(/[ùû]/g,"u");mv=mv.replace(/[ô]/g,"o");mv=mv.replace(/[îï]/g,"i");if(mv.indexOf(c)!=-1){a.push(mv_recipients[b]);if(a.length>=this.MAX_SUGGESTIONS){break}}}return a};var autocompletion=function(c,a,b){if(!document.autocompletion){document.autocompletion=[]}document.autocompletion.push(c);c.autocompletionId=document.autocompletion.length-1;c.MAX_SUGGESTIONS=a;c.findSuggestions=b;c.suggestionsDiv=document.getElementById("autocompletion");c.setSuggestionsDivSize=setSuggestionsDivSize;c.setSuggestionsDivSize();c.eventKeyCode=null;c.currentInputFieldValue=c.value;c.oldInputFieldValue=c.value;c.suggestionsCache=[];c.suggestionsCache[""]="";c.selectedSuggestion=-1;c.lastKeyCode=-1;c.onkeydown=autocompletionKeyDownHandler;c.onkeyup=autocompletionKeyUpHandler;c.onblur=autocompletionBlurHandler;c.showSuggestions=showSuggestions;c.highlightNewValue=highlightNewValue;c.rangeSize=rangeSize;c.beforeRangeSize=beforeRangeSize;c.autocompletionLoop=function(){if((this.currentInputFieldValue.length>=3)&&(this.currentInputFieldValue!=this.oldInputFieldValue)){var d=this.suggestionsCache[this.currentInputFieldValue];if(d){if(d.length>0){this.showSuggestions(d)}else{this.suggestionsDiv.style.visibility="hidden"}}else{var e=this.findSuggestions();this.suggestionsCache[this.currentInputFieldValue.toLowerCase()]=e;if(e.length>0){this.showSuggestions(e)}else{this.suggestionsDiv.style.visibility="hidden"}}}this.oldInputFieldValue=this.currentInputFieldValue;setTimeout("document.autocompletion["+this.autocompletionId+"].autocompletionLoop()",200)};setTimeout("document.autocompletion["+c.autocompletionId+"].autocompletionLoop()",200)};function valideIndex(){var a=mv_recipients[document.getElementById("index_recherche").value];var b=document.getElementById("champ-texte").value;if(a!=b){document.getElementById("index_recherche").value=""}}"JCMS.fulldisplay".namespace();JCMS.fulldisplay.Utils={init:function(){var a=$$(".fullDisplay P.title").first();if(a){Event.observe(a,"mouseover",JCMS.fulldisplay.Utils._toggleEditIcon.bindAsEventListener(a));Event.observe(a,"mouseout",JCMS.fulldisplay.Utils._toggleEditIcon.bindAsEventListener(a))}$$(".fullDisplay TR.field").each(function(c,b){Event.observe(c,"mouseover",JCMS.fulldisplay.Utils._toggleEditIcon.bindAsEventListener(c));Event.observe(c,"mouseout",JCMS.fulldisplay.Utils._toggleEditIcon.bindAsEventListener(c))})},_toggleEditIcon:function(){this.toggleClassName("focus")}};Carousel=Class.create(Abstract,{initialize:function(a,d,b,c){this.scrolling=false;this.scroller=$(a);this.slides=d;this.controls=b;this.options=Object.extend({duration:1,auto:false,frequency:3,visibleSlides:1,controlClassName:"carousel-control",jumperClassName:"carousel-jumper",disabledClassName:"carousel-disabled",selectedClassName:"carousel-selected",circular:false,wheel:true,effect:"scroll",transition:"sinoidal"},c||{});if(this.options.effect=="fade"){this.options.circular=true}this.slides.each(function(f,g){f._index=g});if(this.controls){this.controls.invoke("observe","click",this.click.bind(this))}if(this.options.wheel){this.scroller.observe("mousewheel",this.wheel.bindAsEventListener(this)).observe("DOMMouseScroll",this.wheel.bindAsEventListener(this))}if(this.options.auto){this.start()}if(this.options.initial){var e=this.slides.indexOf($(this.options.initial));if(e>(this.options.visibleSlides-1)&&this.options.visibleSlides>1){if(e>this.slides.length-(this.options.visibleSlides+1)){e=this.slides.length-this.options.visibleSlides}}this.moveTo(this.slides[e])}},click:function(event){this.stop();var element=event.findElement("a");if(!element.hasClassName(this.options.disabledClassName)){if(element.hasClassName(this.options.controlClassName)){eval("this."+element.rel+"()")}else{if(element.hasClassName(this.options.jumperClassName)){this.moveTo(element.rel);if(this.options.selectedClassName){this.controls.invoke("removeClassName",this.options.selectedClassName);element.addClassName(this.options.selectedClassName)}}}}this.deactivateControls();event.stop()},moveTo:function(b){if(this.options.beforeMove&&(typeof this.options.beforeMove=="function")){this.options.beforeMove()}this.previous=this.current?this.current:this.slides[0];this.current=$(b);var c=this.scroller.cumulativeOffset();var a=this.current.cumulativeOffset();if(this.scrolling){this.scrolling.cancel()}switch(this.options.effect){case"fade":this.scrolling=new Effect.Opacity(this.scroller,{from:1,to:0,duration:this.options.duration,afterFinish:(function(){this.scroller.scrollLeft=a[0]-c[0];this.scroller.scrollTop=a[1]-c[1];new Effect.Opacity(this.scroller,{from:0,to:1,duration:this.options.duration,afterFinish:(function(){if(this.controls){this.activateControls()}if(this.options.afterMove&&(typeof this.options.afterMove=="function")){this.options.afterMove()}}).bind(this)})}).bind(this)});break;case"scroll":default:var d;switch(this.options.transition){case"spring":d=Effect.Transitions.spring;break;case"sinoidal":default:d=Effect.Transitions.sinoidal;break}this.scrolling=new Effect.SmoothScroll(this.scroller,{duration:this.options.duration,x:(a[0]-c[0]),y:(a[1]-c[1]),transition:d,afterFinish:(function(){if(this.controls){this.activateControls()}if(this.options.afterMove&&(typeof this.options.afterMove=="function")){this.options.afterMove()}this.scrolling=false}).bind(this)});break}return false},prev:function(){if(this.current){var a=this.current._index;var b=(a==0)?(this.options.circular?this.slides.length-1:0):a-1}else{var b=(this.options.circular?this.slides.length-1:0)}if(b==(this.slides.length-1)&&this.options.circular&&this.options.effect!="fade"){this.scroller.scrollLeft=(this.slides.length-1)*this.slides.first().getWidth();this.scroller.scrollTop=(this.slides.length-1)*this.slides.first().getHeight();b=this.slides.length-2}this.moveTo(this.slides[b])},next:function(){if(this.current){var b=this.current._index;var a=(this.slides.length-1==b)?(this.options.circular?0:b):b+1}else{var a=1}if(a==0&&this.options.circular&&this.options.effect!="fade"){this.scroller.scrollLeft=0;this.scroller.scrollTop=0;a=1}if(a>this.slides.length-(this.options.visibleSlides+1)){a=this.slides.length-this.options.visibleSlides}if(this.slides[a]){this.moveTo(this.slides[a])}},first:function(){this.moveTo(this.slides[0])},last:function(){this.moveTo(this.slides[this.slides.length-1])},toggle:function(){if(this.previous){this.moveTo(this.slides[this.previous._index])}else{return false}},stop:function(){if(this.timer){clearTimeout(this.timer)}},nextAtEndFirst:function(){if(this.current){var a=this.current._index;var b=this.slides.length-this.options.visibleSlides;if(b<=a){this.first()}else{this.next()}}else{this.next()}},start:function(){this.periodicallyUpdate()},pause:function(){this.stop();this.activateControls()},resume:function(a){if(a){var b=a.relatedTarget||a.toElement;if(!b||(!this.slides.include(b)&&!this.slides.any(function(c){return b.descendantOf(c)}))){this.start()}}else{this.start()}},periodicallyUpdate:function(){if(this.timer!=null){clearTimeout(this.timer);this.next()}this.timer=setTimeout(this.periodicallyUpdate.bind(this),this.options.frequency*1000)},wheel:function(a){a.cancelBubble=true;a.stop();var b=0;if(!a){a=window.event}if(a.wheelDelta){b=a.wheelDelta/120}else{if(a.detail){b=-a.detail/3}}if(!this.scrolling){this.deactivateControls();if(b>0){this.prev()}else{this.next()}}return Math.round(b)},deactivateControls:function(){this.controls.invoke("addClassName",this.options.disabledClassName)},activateControls:function(){this.controls.invoke("removeClassName",this.options.disabledClassName)}});Effect.SmoothScroll=Class.create();Object.extend(Object.extend(Effect.SmoothScroll.prototype,Effect.Base.prototype),{initialize:function(b){this.element=$(b);var a=Object.extend({x:0,y:0,mode:"absolute"},arguments[1]||{});this.start(a)},setup:function(){if(this.options.continuous&&!this.element._ext){this.element.cleanWhitespace();this.element._ext=true;this.element.appendChild(this.element.firstChild)}this.originalLeft=this.element.scrollLeft;this.originalTop=this.element.scrollTop;if(this.options.mode=="absolute"){this.options.x-=this.originalLeft;this.options.y-=this.originalTop}},update:function(a){this.element.scrollLeft=this.options.x*a+this.originalLeft;this.element.scrollTop=this.options.y*a+this.originalTop}});
/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aP,M){function a1(){if(!ai.isReady){try{S.documentElement.doScroll("left")}catch(c){setTimeout(a1,1);return}ai.ready()}}function H(s,c){c.src?ai.ajax({url:c.src,async:false,dataType:"script"}):ai.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function aq(s,c,K,F,G,w){var A=s.length;if(typeof c==="object"){for(var J in c){aq(s,J,c[J],F,G,K)}return s}if(K!==M){F=!w&&F&&ai.isFunction(K);for(J=0;J<A;J++){G(s[J],c,F?K.call(s[J],J,G(s[J],c)):K,w)}return s}return A?G(s[0],c):M}function aG(){return(new Date).getTime()}function ap(){return false}function an(){return true}function aL(s,c,w){w[0].type=s;return ai.event.handle.apply(c,w)}function ah(O){var N,L=[],J=[],K=arguments,F,G,s,A,w,c;G=ai.data(this,"events");if(!(O.liveFired===this||!G||!G.live||O.button&&O.type==="click")){O.liveFired=this;var P=G.live.slice(0);for(A=0;A<P.length;A++){G=P[A];G.origType.replace(aA,"")===O.type?J.push(G.selector):P.splice(A--,1)}F=ai(O.target).closest(J,O.currentTarget);w=0;for(c=F.length;w<c;w++){for(A=0;A<P.length;A++){G=P[A];if(F[w].selector===G.selector){s=F[w].elem;J=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){J=ai(O.relatedTarget).closest(G.selector)[0]}if(!J||J!==s){L.push({elem:s,handleObj:G})}}}}w=0;for(c=L.length;w<c;w++){F=L[w];O.currentTarget=F.elem;O.data=F.handleObj.data;O.handleObj=F.handleObj;if(F.handleObj.origHandler.apply(F.elem,K)===false){N=false;break}}return N}}function B(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&")}function m(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function bk(s,c){var w=0;c.each(function(){if(this.nodeName===(s[w]&&s[w].nodeName)){var G=ai.data(s[w++]),J=ai.data(this,G);if(G=G&&G.events){delete J.handle;J.events={};for(var A in G){for(var F in G[A]){ai.event.add(this,A,G[A][F],G[A][F].data)}}}}})}function a4(s,c,G){var A,F,w;c=c&&c[0]?c[0].ownerDocument||c[0]:S;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===S&&!aQ.test(s[0])&&(ai.support.checkClone||!al.test(s[0]))){F=true;if(w=ai.fragments[s[0]]){if(w!==1){A=w}}}if(!A){A=c.createDocumentFragment();ai.clean(s,c,A,G)}if(F){ai.fragments[s[0]]=w?A:1}return{fragment:A,cacheable:F}}function aD(s,c){var w={};ai.each(E.concat.apply([],E.slice(0,c)),function(){w[this]=s});return w}function p(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ai=function(s,c){return new ai.fn.init(s,c)},q=aP.jQuery,d=aP.$,S=aP.document,au,a8=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aU=/^.[^:#\[\.,]*$/,ao=/\S/,I=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,r=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ay=navigator.userAgent,b=false,aw=[],aC,a2=Object.prototype.toString,aW=Object.prototype.hasOwnProperty,az=Array.prototype.push,av=Array.prototype.slice,a7=Array.prototype.indexOf;ai.fn=ai.prototype={init:function(s,c){var A,w;if(!s){return this}if(s.nodeType){this.context=this[0]=s;this.length=1;return this}if(s==="body"&&!c){this.context=S;this[0]=S.body;this.selector="body";this.length=1;return this}if(typeof s==="string"){if((A=a8.exec(s))&&(A[1]||!c)){if(A[1]){w=c?c.ownerDocument||c:S;if(s=r.exec(s)){if(ai.isPlainObject(c)){s=[S.createElement(s[1])];ai.fn.attr.call(s,c,true)}else{s=[w.createElement(s[1])]}}else{s=a4([A[1]],[w]);s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes}return ai.merge(this,s)}else{if(c=S.getElementById(A[2])){if(c.id!==A[2]){return au.find(s)}this.length=1;this[0]=c}this.context=S;this.selector=s;return this}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;this.context=S;s=S.getElementsByTagName(s);return ai.merge(this,s)}else{return !c||c.jquery?(c||au).find(s):ai(c).find(s)}}}else{if(ai.isFunction(s)){return au.ready(s)}}if(s.selector!==M){this.selector=s.selector;this.context=s.context}return ai.makeArray(s,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return av.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(s,c,A){var w=ai();ai.isArray(s)?az.apply(w,s):ai.merge(w,s);w.prevObject=this;w.context=this.context;if(c==="find"){w.selector=this.selector+(this.selector?" ":"")+A}else{if(c){w.selector=this.selector+"."+c+"("+A+")"}}return w},each:function(s,c){return ai.each(this,s,c)},ready:function(c){ai.bindReady();if(ai.isReady){c.call(S,ai)}else{aw&&aw.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(av.apply(this,arguments),"slice",av.call(arguments).join(","))},map:function(c){return this.pushStack(ai.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||ai(null)},push:az,sort:[].sort,splice:[].splice};ai.fn.init.prototype=ai.fn;ai.extend=ai.fn.extend=function(){var s=arguments[0]||{},c=1,K=arguments.length,F=false,G,w,A,J;if(typeof s==="boolean"){F=s;s=arguments[1]||{};c=2}if(typeof s!=="object"&&!ai.isFunction(s)){s={}}if(K===c){s=this;--c}for(;c<K;c++){if((G=arguments[c])!=null){for(w in G){A=s[w];J=G[w];if(s!==J){if(F&&J&&(ai.isPlainObject(J)||ai.isArray(J))){A=A&&(ai.isPlainObject(A)||ai.isArray(A))?A:ai.isArray(J)?[]:{};s[w]=ai.extend(F,A,J)}else{if(J!==M){s[w]=J}}}}}}return s};ai.extend({noConflict:function(c){aP.$=d;if(c){aP.jQuery=q}return ai},isReady:false,ready:function(){if(!ai.isReady){if(!S.body){return setTimeout(ai.ready,13)}ai.isReady=true;if(aw){for(var s,c=0;s=aw[c++];){s.call(S,ai)}aw=null}ai.fn.triggerHandler&&ai(S).triggerHandler("ready")}},bindReady:function(){if(!b){b=true;if(S.readyState==="complete"){return ai.ready()}if(S.addEventListener){S.addEventListener("DOMContentLoaded",aC,false);aP.addEventListener("load",ai.ready,false)}else{if(S.attachEvent){S.attachEvent("onreadystatechange",aC);aP.attachEvent("onload",ai.ready);var s=false;try{s=aP.frameElement==null}catch(c){}S.documentElement.doScroll&&s&&a1()}}}},isFunction:function(c){return a2.call(c)==="[object Function]"},isArray:function(c){return a2.call(c)==="[object Array]"},isPlainObject:function(s){if(!s||a2.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false}if(s.constructor&&!aW.call(s,"constructor")&&!aW.call(s.constructor.prototype,"isPrototypeOf")){return false}var c;for(c in s){}return c===M||aW.call(s,c)},isEmptyObject:function(s){for(var c in s){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=ai.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aP.JSON&&aP.JSON.parse?aP.JSON.parse(c):(new Function("return "+c))()}else{ai.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(s){if(s&&ao.test(s)){var c=S.getElementsByTagName("head")[0]||S.documentElement,w=S.createElement("script");w.type="text/javascript";if(ai.support.scriptEval){w.appendChild(S.createTextNode(s))}else{w.text=s}c.insertBefore(w,c.firstChild);c.removeChild(w)}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase()},each:function(s,c,J){var F,G=0,w=s.length,A=w===M||ai.isFunction(s);if(J){if(A){for(F in s){if(c.apply(s[F],J)===false){break}}}else{for(;G<w;){if(c.apply(s[G++],J)===false){break}}}}else{if(A){for(F in s){if(c.call(s[F],F,s[F])===false){break}}}else{for(J=s[0];G<w&&c.call(J,G,J)!==false;J=s[++G]){}}}return s},trim:function(c){return(c||"").replace(I,"")},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ai.isFunction(s)||typeof s!=="function"&&s.setInterval?az.call(c,s):ai.merge(c,s)}return c},inArray:function(s,c){if(c.indexOf){return c.indexOf(s)}for(var A=0,w=c.length;A<w;A++){if(c[A]===s){return A}}return -1},merge:function(s,c){var F=s.length,w=0;if(typeof c.length==="number"){for(var A=c.length;w<A;w++){s[F++]=c[w]}}else{for(;c[w]!==M;){s[F++]=c[w++]}}s.length=F;return s},grep:function(s,c,G){for(var A=[],F=0,w=s.length;F<w;F++){!G!==!c(s[F],F)&&A.push(s[F])}return A},map:function(s,c,J){for(var F=[],G,w=0,A=s.length;w<A;w++){G=c(s[w],w,J);if(G!=null){F[F.length]=G}}return F.concat.apply([],F)},guid:1,proxy:function(s,c,w){if(arguments.length===2){if(typeof c==="string"){w=s;s=w[c];c=M}else{if(c&&!ai.isFunction(c)){w=c;c=M}}}if(!c&&s){c=function(){return s.apply(w||this,arguments)}}if(s){c.guid=s.guid=s.guid||c.guid||ai.guid++}return c},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});ay=ai.uaMatch(ay);if(ay.browser){ai.browser[ay.browser]=true;ai.browser.version=ay.version}if(ai.browser.webkit){ai.browser.safari=true}if(a7){ai.inArray=function(s,c){return a7.call(c,s)}}au=ai(S);if(S.addEventListener){aC=function(){S.removeEventListener("DOMContentLoaded",aC,false);ai.ready()}}else{if(S.attachEvent){aC=function(){if(S.readyState==="complete"){S.detachEvent("onreadystatechange",aC);ai.ready()}}}}(function(){ai.support={};var L=S.documentElement,K=S.createElement("script"),J=S.createElement("div"),F="script"+aG();J.style.display="none";J.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var G=J.getElementsByTagName("*"),w=J.getElementsByTagName("a")[0];if(!(!G||!G.length||!w)){ai.support={leadingWhitespace:J.firstChild.nodeType===3,tbody:!J.getElementsByTagName("tbody").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:J.getElementsByTagName("input")[0].value==="on",optSelected:S.createElement("select").appendChild(S.createElement("option")).selected,parentNode:J.removeChild(J.appendChild(S.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(S.createTextNode("window."+F+"=1;"))}catch(A){}L.insertBefore(K,L.firstChild);if(aP[F]){ai.support.scriptEval=true;delete aP[F]}try{delete K.test}catch(c){ai.support.deleteExpando=false}L.removeChild(K);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function s(){ai.support.noCloneEvent=false;J.detachEvent("onclick",s)});J.cloneNode(true).fireEvent("onclick")}J=S.createElement("div");J.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";L=S.createDocumentFragment();L.appendChild(J.firstChild);ai.support.checkClone=L.cloneNode(true).cloneNode(true).lastChild.checked;ai(function(){var N=S.createElement("div");N.style.width=N.style.paddingLeft="1px";S.body.appendChild(N);ai.boxModel=ai.support.boxModel=N.offsetWidth===2;S.body.removeChild(N).style.display="none"});L=function(N){var P=S.createElement("div");N="on"+N;var O=N in P;if(!O){P.setAttribute(N,"return;");O=typeof P[N]==="function"}return O};ai.support.submitBubbles=L("submit");ai.support.changeBubbles=L("change");L=K=J=G=w=null}})();ai.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aI="jQuery"+aG(),e=0,aT={};ai.extend({cache:{},expando:aI,noData:{embed:true,object:true,applet:true},data:function(s,c,F){if(!(s.nodeName&&ai.noData[s.nodeName.toLowerCase()])){s=s==aP?aT:s;var w=s[aI],A=ai.cache;if(!w&&typeof c==="string"&&F===M){return null}w||(w=++e);if(typeof c==="object"){s[aI]=w;A[w]=ai.extend(true,{},c)}else{if(!A[w]){s[aI]=w;A[w]={}}}s=A[w];if(F!==M){s[c]=F}return typeof c==="string"?s[c]:s}},removeData:function(s,c){if(!(s.nodeName&&ai.noData[s.nodeName.toLowerCase()])){s=s==aP?aT:s;var F=s[aI],w=ai.cache,A=w[F];if(c){if(A){delete A[c];ai.isEmptyObject(A)&&ai.removeData(s)}}else{if(ai.support.deleteExpando){delete s[ai.expando]}else{s.removeAttribute&&s.removeAttribute(ai.expando)}delete w[F]}}}});ai.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return ai.data(this[0])}else{if(typeof s==="object"){return this.each(function(){ai.data(this,s)})}}var A=s.split(".");A[1]=A[1]?"."+A[1]:"";if(c===M){var w=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(w===M&&this.length){w=ai.data(this[0],s)}return w===M&&A[1]?this.data(A[0]):w}else{return this.trigger("setData"+A[1]+"!",[A[0],c]).each(function(){ai.data(this,s,c)})}},removeData:function(c){return this.each(function(){ai.removeData(this,c)})}});ai.extend({queue:function(s,c,A){if(s){c=(c||"fx")+"queue";var w=ai.data(s,c);if(!A){return w||[]}if(!w||ai.isArray(A)){w=ai.data(s,c,ai.makeArray(A))}else{w.push(A)}return w}},dequeue:function(s,c){c=c||"fx";var A=ai.queue(s,c),w=A.shift();if(w==="inprogress"){w=A.shift()}if(w){c==="fx"&&A.unshift("inprogress");w.call(s,function(){ai.dequeue(s,c)})}}});ai.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx"}if(c===M){return ai.queue(this[0],s)}return this.each(function(){var w=ai.queue(this,s,c);s==="fx"&&w[0]!=="inprogress"&&ai.dequeue(this,s)})},dequeue:function(c){return this.each(function(){ai.dequeue(this,c)})},delay:function(s,c){s=ai.fx?ai.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var w=this;setTimeout(function(){ai.dequeue(w,c)},s)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var bf=/[\n\t]/g,ac=/\s+/,a9=/\r/g,aN=/href|src|style/,aV=/(button|input)/i,ax=/(button|input|object|select|textarea)/i,U=/^(a|area)$/i,aZ=/radio|checkbox/;ai.fn.extend({attr:function(s,c){return aq(this,s,c,true,ai.attr)},removeAttr:function(c){return this.each(function(){ai.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(L){if(ai.isFunction(L)){return this.each(function(O){var N=ai(this);N.addClass(L.call(this,O,N.attr("class")))})}if(L&&typeof L==="string"){for(var K=(L||"").split(ac),J=0,F=this.length;J<F;J++){var G=this[J];if(G.nodeType===1){if(G.className){for(var w=" "+G.className+" ",A=G.className,c=0,s=K.length;c<s;c++){if(w.indexOf(" "+K[c]+" ")<0){A+=" "+K[c]}}G.className=ai.trim(A)}else{G.className=L}}}}return this},removeClass:function(s){if(ai.isFunction(s)){return this.each(function(L){var N=ai(this);N.removeClass(s.call(this,L,N.attr("class")))})}if(s&&typeof s==="string"||s===M){for(var c=(s||"").split(ac),K=0,F=this.length;K<F;K++){var G=this[K];if(G.nodeType===1&&G.className){if(s){for(var w=(" "+G.className+" ").replace(bf," "),A=0,J=c.length;A<J;A++){w=w.replace(" "+c[A]+" "," ")}G.className=ai.trim(w)}else{G.className=""}}}}return this},toggleClass:function(s,c){var A=typeof s,w=typeof c==="boolean";if(ai.isFunction(s)){return this.each(function(G){var F=ai(this);F.toggleClass(s.call(this,G,F.attr("class"),c),c)})}return this.each(function(){if(A==="string"){for(var K,G=0,J=ai(this),L=c,F=s.split(ac);K=F[G++];){L=w?L:!J.hasClass(K);J[L?"addClass":"removeClass"](K)}}else{if(A==="undefined"||A==="boolean"){this.className&&ai.data(this,"__className__",this.className);this.className=this.className||s===false?"":ai.data(this,"__className__")||""}}})},hasClass:function(s){s=" "+s+" ";for(var c=0,w=this.length;c<w;c++){if((" "+this[c].className+" ").replace(bf," ").indexOf(s)>-1){return true}}return false},val:function(s){if(s===M){var c=this[0];if(c){if(ai.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text}if(ai.nodeName(c,"select")){var K=c.selectedIndex,F=[],G=c.options;c=c.type==="select-one";if(K<0){return null}var w=c?K:0;for(K=c?K+1:G.length;w<K;w++){var A=G[w];if(A.selected){s=ai(A).val();if(c){return s}F.push(s)}}return F}if(aZ.test(c.type)&&!ai.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(a9,"")}return M}var J=ai.isFunction(s);return this.each(function(L){var P=ai(this),O=s;if(this.nodeType===1){if(J){O=s.call(this,L,P.val())}if(typeof O==="number"){O+=""}if(ai.isArray(O)&&aZ.test(this.type)){this.checked=ai.inArray(P.val(),O)>=0}else{if(ai.nodeName(this,"select")){var N=ai.makeArray(O);ai("option",this).each(function(){this.selected=ai.inArray(ai(this).val(),N)>=0});if(!N.length){this.selectedIndex=-1}}else{this.value=O}}}})}});ai.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,G,A){if(!s||s.nodeType===3||s.nodeType===8){return M}if(A&&c in ai.attrFn){return ai(s)[c](G)}A=s.nodeType!==1||!ai.isXMLDoc(s);var F=G!==M;c=A&&ai.props[c]||c;if(s.nodeType===1){var w=aN.test(c);if(c in s&&A&&!w){if(F){c==="type"&&aV.test(s.nodeName)&&s.parentNode&&ai.error("type property can't be changed");s[c]=G}if(ai.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:ax.test(s.nodeName)||U.test(s.nodeName)&&s.href?0:M}return s[c]}if(!ai.support.style&&A&&c==="style"){if(F){s.style.cssText=""+G}return s.style.cssText}F&&s.setAttribute(c,""+G);s=!ai.support.hrefNormalized&&A&&w?s.getAttribute(c,2):s.getAttribute(c);return s===null?M:s}return ai.style(s,c,G)}});var aA=/\.(.*)$/,t=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};ai.event={add:function(P,O,L,J){if(!(P.nodeType===3||P.nodeType===8)){if(P.setInterval&&P!==aP&&!P.frameElement){P=aP}var K,F;if(L.handler){K=L;L=K.handler}if(!L.guid){L.guid=ai.guid++}if(F=ai.data(P)){var G=F.events=F.events||{},s=F.handle;if(!s){F.handle=s=function(){return typeof ai!=="undefined"&&!ai.event.triggered?ai.event.handle.apply(s.elem,arguments):M}}s.elem=P;O=O.split(" ");for(var A,w=0,c;A=O[w++];){F=K?ai.extend({},K):{handler:L,data:J};if(A.indexOf(".")>-1){c=A.split(".");A=c.shift();F.namespace=c.slice(0).sort().join(".")}else{c=[];F.namespace=""}F.type=A;F.guid=L.guid;var Q=G[A],N=ai.event.special[A]||{};if(!Q){Q=G[A]=[];if(!N.setup||N.setup.call(P,J,c,s)===false){if(P.addEventListener){P.addEventListener(A,s,false)}else{P.attachEvent&&P.attachEvent("on"+A,s)}}}if(N.add){N.add.call(P,F);if(!F.handler.guid){F.handler.guid=L.guid}}Q.push(F);ai.event.global[A]=true}P=null}}},global:{},remove:function(R,Q,O,L){if(!(R.nodeType===3||R.nodeType===8)){var N,J=0,K,A,G,F,c,T,P=ai.data(R),s=P&&P.events;if(P&&s){if(Q&&Q.type){O=Q.handler;Q=Q.type}if(!Q||typeof Q==="string"&&Q.charAt(0)==="."){Q=Q||"";for(N in s){ai.event.remove(R,N+Q)}}else{for(Q=Q.split(" ");N=Q[J++];){F=N;K=N.indexOf(".")<0;A=[];if(!K){A=N.split(".");N=A.shift();G=new RegExp("(^|\\.)"+ai.map(A.slice(0).sort(),t).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(c=s[N]){if(O){F=ai.event.special[N]||{};for(w=L||0;w<c.length;w++){T=c[w];if(O.guid===T.guid){if(K||G.test(T.namespace)){L==null&&c.splice(w--,1);F.remove&&F.remove.call(R,T)}if(L!=null){break}}}if(c.length===0||L!=null&&c.length===1){if(!F.teardown||F.teardown.call(R,A)===false){aH(R,N,P.handle)}delete s[N]}}else{for(var w=0;w<c.length;w++){T=c[w];if(K||G.test(T.namespace)){ai.event.remove(R,F,T.handler,w);c.splice(w--,1)}}}}}if(ai.isEmptyObject(s)){if(Q=P.handle){Q.elem=null}delete P.events;delete P.handle;ai.isEmptyObject(P)&&ai.removeData(R)}}}}},trigger:function(N,L,K,G){var J=N.type||N;if(!G){N=typeof N==="object"?N[aI]?N:ai.extend(ai.Event(J),N):ai.Event(J);if(J.indexOf("!")>=0){N.type=J=J.slice(0,-1);N.exclusive=true}if(!K){N.stopPropagation();ai.event.global[J]&&ai.each(ai.cache,function(){this.events&&this.events[J]&&ai.event.trigger(N,L,this.handle.elem)})}if(!K||K.nodeType===3||K.nodeType===8){return M}N.result=M;N.target=K;L=ai.makeArray(L);L.unshift(N)}N.currentTarget=K;(G=ai.data(K,"handle"))&&G.apply(K,L);G=K.parentNode||K.ownerDocument;try{if(!(K&&K.nodeName&&ai.noData[K.nodeName.toLowerCase()])){if(K["on"+J]&&K["on"+J].apply(K,L)===false){N.result=false}}}catch(A){}if(!N.isPropagationStopped()&&G){ai.event.trigger(N,L,G,true)}else{if(!N.isDefaultPrevented()){G=N.target;var F,c=ai.nodeName(G,"a")&&J==="click",w=ai.event.special[J]||{};if((!w._default||w._default.call(K,N)===false)&&!c&&!(G&&G.nodeName&&ai.noData[G.nodeName.toLowerCase()])){try{if(G[J]){if(F=G["on"+J]){G["on"+J]=null}ai.event.triggered=true;G[J]()}}catch(s){}if(F){G["on"+J]=F}ai.event.triggered=false}}}},handle:function(s){var c,J,F,G;s=arguments[0]=ai.event.fix(s||aP.event);s.currentTarget=this;c=s.type.indexOf(".")<0&&!s.exclusive;if(!c){J=s.type.split(".");s.type=J.shift();F=new RegExp("(^|\\.)"+J.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}G=ai.data(this,"events");J=G[s.type];if(G&&J){J=J.slice(0);G=0;for(var w=J.length;G<w;G++){var A=J[G];if(c||F.test(A.namespace)){s.handler=A.handler;s.data=A.data;s.handleObj=A;A=A.handler.apply(this,arguments);if(A!==M){s.result=A;if(A===false){s.preventDefault();s.stopPropagation()}}if(s.isImmediatePropagationStopped()){break}}}}return s.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(s){if(s[aI]){return s}var c=s;s=ai.Event(c);for(var A=this.props.length,w;A;){w=this.props[--A];s[w]=c[w]}if(!s.target){s.target=s.srcElement||S}if(s.target.nodeType===3){s.target=s.target.parentNode}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement}if(s.pageX==null&&s.clientX!=null){c=S.documentElement;A=S.body;s.pageX=s.clientX+(c&&c.scrollLeft||A&&A.scrollLeft||0)-(c&&c.clientLeft||A&&A.clientLeft||0);s.pageY=s.clientY+(c&&c.scrollTop||A&&A.scrollTop||0)-(c&&c.clientTop||A&&A.clientTop||0)}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey}if(!s.which&&s.button!==M){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0}return s},guid:100000000,proxy:ai.proxy,special:{ready:{setup:ai.bindReady,teardown:ai.noop},live:{add:function(c){ai.event.add(this,c.origType,ai.extend({},c,{handler:ah}))},remove:function(s){var c=true,w=s.origType.replace(aA,"");ai.each(ai.data(this,"events").live||[],function(){if(w===this.origType.replace(aA,"")){return c=false}});c&&ai.event.remove(this,s.origType,ah)}},beforeunload:{setup:function(s,c,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};var aH=S.removeEventListener?function(s,c,w){s.removeEventListener(c,w,false)}:function(s,c,w){s.detachEvent("on"+c,w)};ai.Event=function(c){if(!this.preventDefault){return new ai.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=aG();this[aI]=true};ai.Event.prototype={preventDefault:function(){this.isDefaultPrevented=an;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=an;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=an;this.stopPropagation()},isDefaultPrevented:ap,isPropagationStopped:ap,isImmediatePropagationStopped:ap};var af=function(s){var c=s.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){s.type=s.data;ai.event.handle.apply(this,arguments)}}catch(w){}},y=function(c){c.type=c.data;ai.event.handle.apply(this,arguments)};ai.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ai.event.special[s]={setup:function(w){ai.event.add(this,c,w&&w.selector?y:af,s)},teardown:function(w){ai.event.remove(this,c,w&&w.selector?y:af)}}});if(!ai.support.submitBubbles){ai.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ai.event.add(this,"click.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="submit"||w==="image")&&ai(c).closest("form").length){return aL("submit",this,arguments)}});ai.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,w=c.type;if((w==="text"||w==="password")&&ai(c).closest("form").length&&s.keyCode===13){return aL("submit",this,arguments)}})}else{return false}},teardown:function(){ai.event.remove(this,".specialSubmit")}}}if(!ai.support.changeBubbles){var u=/textarea|input|select/i,g,k=function(s){var c=s.type,w=s.value;if(c==="radio"||c==="checkbox"){w=s.checked}else{if(c==="select-multiple"){w=s.selectedIndex>-1?ai.map(s.options,function(A){return A.selected}).join("-"):""}else{if(s.nodeName.toLowerCase()==="select"){w=s.selectedIndex}}}return w},be=function(s,c){var F=s.target,w,A;if(!(!u.test(F.nodeName)||F.readOnly)){w=ai.data(F,"_change_data");A=k(F);if(s.type!=="focusout"||F.type!=="radio"){ai.data(F,"_change_data",A)}if(!(w===M||A===w)){if(w!=null||A){s.type="change";return ai.event.trigger(s,c,F)}}}};ai.event.special.change={filters:{focusout:be,click:function(s){var c=s.target,w=c.type;if(w==="radio"||w==="checkbox"||c.nodeName.toLowerCase()==="select"){return be.call(this,s)}},keydown:function(s){var c=s.target,w=c.type;if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return be.call(this,s)}},beforeactivate:function(c){c=c.target;ai.data(c,"_change_data",k(c))}},setup:function(){if(this.type==="file"){return false}for(var c in g){ai.event.add(this,c+".specialChange",g[c])}return u.test(this.nodeName)},teardown:function(){ai.event.remove(this,".specialChange");return u.test(this.nodeName)}};g=ai.event.special.change.filters}S.addEventListener&&ai.each({focus:"focusin",blur:"focusout"},function(s,c){function w(A){A=ai.event.fix(A);A.type=c;return ai.event.handle.call(this,A)}ai.event.special[c]={setup:function(){this.addEventListener(s,w,true)},teardown:function(){this.removeEventListener(s,w,true)}}});ai.each(["bind","one"],function(s,c){ai.fn[c]=function(K,F,G){if(typeof K==="object"){for(var w in K){this[c](w,F,K[w],G)}return this}if(ai.isFunction(F)){G=F;F=M}var A=c==="one"?ai.proxy(G,function(L){ai(this).unbind(L,A);return G.apply(this,arguments)}):G;if(K==="unload"&&c!=="one"){this.one(K,F,G)}else{w=0;for(var J=this.length;w<J;w++){ai.event.add(this[w],K,A,F)}}return this}});ai.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var A in s){this.unbind(A,s[A])}}else{A=0;for(var w=this.length;A<w;A++){ai.event.remove(this[A],s,c)}}return this},delegate:function(s,c,A,w){return this.live(c,A,w,s)},undelegate:function(s,c,w){return arguments.length===0?this.unbind("live"):this.die(c,null,w,s)},trigger:function(s,c){return this.each(function(){ai.event.trigger(s,c,this)})},triggerHandler:function(s,c){if(this[0]){s=ai.Event(s);s.preventDefault();s.stopPropagation();ai.event.trigger(s,c,this[0]);return s.result}},toggle:function(s){for(var c=arguments,w=1;w<c.length;){ai.proxy(s,c[w++])}return this.click(ai.proxy(s,function(A){var F=(ai.data(this,"lastToggle"+s.guid)||0)%w;ai.data(this,"lastToggle"+s.guid,F+1);A.preventDefault();return c[F].apply(this,arguments)||false}))},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s)}});var bi={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ai.each(["live","die"],function(s,c){ai.fn[c]=function(O,L,N,J){var K,A=0,G,F,w=J||this.selector,P=J?this:ai(this.context);if(ai.isFunction(L)){N=L;L=M}for(O=(O||"").split(" ");(K=O[A++])!=null;){J=aA.exec(K);G="";if(J){G=J[0];K=K.replace(aA,"")}if(K==="hover"){O.push("mouseenter"+G,"mouseleave"+G)}else{F=K;if(K==="focus"||K==="blur"){O.push(bi[K]+G);K+=G}else{K=(bi[K]||K)+G}c==="live"?P.each(function(){ai.event.add(this,B(K,w),{data:L,selector:w,handler:N,origType:K,origHandler:N,preType:F})}):P.unbind(B(K,w),N)}}return this}});ai.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(s,c){ai.fn[c]=function(w){return w?this.bind(c,w):this.trigger(c)};if(ai.attrFn){ai.attrFn[c]=true}});aP.attachEvent&&!aP.addEventListener&&aP.attachEvent("onunload",function(){for(var s in ai.cache){if(ai.cache[s].handle){try{ai.event.remove(ai.cache[s].handle.elem)}catch(c){}}}});(function(){function W(ab){for(var aa="",Z,Y=0;ab[Y];Y++){Z=ab[Y];if(Z.nodeType===3||Z.nodeType===4){aa+=Z.nodeValue}else{if(Z.nodeType!==8){aa+=W(Z.childNodes)}}}return aa}function V(bb,ba,ab,aa,Y,Z){Y=0;for(var bn=aa.length;Y<bn;Y++){var bo=aa[Y];if(bo){bo=bo[bb];for(var bm=false;bo;){if(bo.sizcache===ab){bm=aa[bo.sizset];break}if(bo.nodeType===1&&!Z){bo.sizcache=ab;bo.sizset=Y}if(bo.nodeName.toLowerCase()===ba){bm=bo;break}bo=bo[bb]}aa[Y]=bm}}}function T(bb,ba,ab,aa,Y,Z){Y=0;for(var bn=aa.length;Y<bn;Y++){var bo=aa[Y];if(bo){bo=bo[bb];for(var bm=false;bo;){if(bo.sizcache===ab){bm=aa[bo.sizset];break}if(bo.nodeType===1){if(!Z){bo.sizcache=ab;bo.sizset=Y}if(typeof ba!=="string"){if(bo===ba){bm=true;break}}else{if(N.filter(ba,[bo]).length>0){bm=bo;break}}}bo=bo[bb]}aa[Y]=bm}}}var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,R=0,O=Object.prototype.toString,P=false,K=true;[0,0].sort(function(){K=false;return 0});var N=function(bn,bm,ba,ab){ba=ba||[];var Z=bm=bm||S;if(bm.nodeType!==1&&bm.nodeType!==9){return[]}if(!bn||typeof bn!=="string"){return ba}for(var aa=[],bs,bt,bp,bb,br=true,bo=s(bm),bq=bn;(Q.exec(""),bs=Q.exec(bq))!==null;){bq=bs[3];aa.push(bs[1]);if(bs[2]){bb=bs[3];break}}if(aa.length>1&&G.exec(bn)){if(aa.length===2&&L.relative[aa[0]]){bt=X(aa[0]+aa[1],bm)}else{for(bt=L.relative[aa[0]]?[bm]:N(aa.shift(),bm);aa.length;){bn=aa.shift();if(L.relative[bn]){bn+=aa.shift()}bt=X(bn,bt)}}}else{if(!ab&&aa.length>1&&bm.nodeType===9&&!bo&&L.match.ID.test(aa[0])&&!L.match.ID.test(aa[aa.length-1])){bs=N.find(aa.shift(),bm,bo);bm=bs.expr?N.filter(bs.expr,bs.set)[0]:bs.set[0]}if(bm){bs=ab?{expr:aa.pop(),set:c(ab)}:N.find(aa.pop(),aa.length===1&&(aa[0]==="~"||aa[0]==="+")&&bm.parentNode?bm.parentNode:bm,bo);bt=bs.expr?N.filter(bs.expr,bs.set):bs.set;if(aa.length>0){bp=c(bt)}else{br=false}for(;aa.length;){var Y=aa.pop();bs=Y;if(L.relative[Y]){bs=aa.pop()}else{Y=""}if(bs==null){bs=bm}L.relative[Y](bp,bs,bo)}}else{bp=[]}}bp||(bp=bt);bp||N.error(Y||bn);if(O.call(bp)==="[object Array]"){if(br){if(bm&&bm.nodeType===1){for(bn=0;bp[bn]!=null;bn++){if(bp[bn]&&(bp[bn]===true||bp[bn].nodeType===1&&A(bm,bp[bn]))){ba.push(bt[bn])}}}else{for(bn=0;bp[bn]!=null;bn++){bp[bn]&&bp[bn].nodeType===1&&ba.push(bt[bn])}}}else{ba.push.apply(ba,bp)}}else{c(bp,ba)}if(bb){N(bb,Z,ba,ab);N.uniqueSort(ba)}return ba};N.uniqueSort=function(Z){if(J){P=K;Z.sort(J);if(P){for(var Y=1;Y<Z.length;Y++){Z[Y]===Z[Y-1]&&Z.splice(Y--,1)}}}return Z};N.matches=function(Z,Y){return N(Z,null,null,Y)};N.find=function(bb,ba,ab){var aa,Y;if(!bb){return[]}for(var Z=0,bn=L.order.length;Z<bn;Z++){var bo=L.order[Z];if(Y=L.leftMatch[bo].exec(bb)){var bm=Y[1];Y.splice(1,1);if(bm.substr(bm.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=L.find[bo](Y,ba,ab);if(aa!=null){bb=bb.replace(L.match[bo],"");break}}}}aa||(aa=ba.getElementsByTagName("*"));return{set:aa,expr:bb}};N.filter=function(bo,bn,bb,ab){for(var Z=bo,aa=[],bu=bn,bv,br,bm=bn&&bn[0]&&s(bn[0]);bo&&bn.length;){for(var bt in L.filter){if((bv=L.leftMatch[bt].exec(bo))!=null&&bv[2]){var bp=L.filter[bt],bs,Y;Y=bv[1];br=false;bv.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bu===aa){aa=[]}if(L.preFilter[bt]){if(bv=L.preFilter[bt](bv,bu,bb,aa,ab,bm)){if(bv===true){continue}}else{br=bs=true}}if(bv){for(var ba=0;(Y=bu[ba])!=null;ba++){if(Y){bs=bp(Y,bv,ba,bu);var bq=ab^!!bs;if(bb&&bs!=null){if(bq){br=true}else{bu[ba]=false}}else{if(bq){aa.push(Y);br=true}}}}}if(bs!==M){bb||(bu=aa);bo=bo.replace(L.match[bt],"");if(!br){return[]}break}}}}if(bo===Z){if(br==null){N.error(bo)}else{break}}Z=bo}return bu};N.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var L=N.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(ab,aa){var Z=typeof aa==="string",Y=Z&&!/\W/.test(aa);Z=Z&&!Y;if(Y){aa=aa.toLowerCase()}Y=0;for(var ba=ab.length,bb;Y<ba;Y++){if(bb=ab[Y]){for(;(bb=bb.previousSibling)&&bb.nodeType!==1;){}ab[Y]=Z||bb&&bb.nodeName.toLowerCase()===aa?bb||false:bb===aa}}Z&&N.filter(aa,ab,true)},">":function(ab,aa){var Z=typeof aa==="string";if(Z&&!/\W/.test(aa)){aa=aa.toLowerCase();for(var Y=0,ba=ab.length;Y<ba;Y++){var bb=ab[Y];if(bb){Z=bb.parentNode;ab[Y]=Z.nodeName.toLowerCase()===aa?Z:false}}}else{Y=0;for(ba=ab.length;Y<ba;Y++){if(bb=ab[Y]){ab[Y]=Z?bb.parentNode:bb.parentNode===aa}}Z&&N.filter(aa,ab,true)}},"":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("parentNode",aa,Y,ab,bb,Z)},"~":function(ab,aa,Z){var Y=R++,ba=T;if(typeof aa==="string"&&!/\W/.test(aa)){var bb=aa=aa.toLowerCase();ba=V}ba("previousSibling",aa,Y,ab,bb,Z)}},find:{ID:function(aa,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y){return(aa=Z.getElementById(aa[1]))?[aa]:[]}},NAME:function(ab,aa){if(typeof aa.getElementsByName!=="undefined"){var Z=[];aa=aa.getElementsByName(ab[1]);for(var Y=0,ba=aa.length;Y<ba;Y++){aa[Y].getAttribute("name")===ab[1]&&Z.push(aa[Y])}return Z.length===0?null:Z}},TAG:function(Z,Y){return Y.getElementsByTagName(Z[1])}},preFilter:{CLASS:function(ba,ab,Z,Y,bb,bm){ba=" "+ba[1].replace(/\\/g,"")+" ";if(bm){return ba}bm=0;for(var aa;(aa=ab[bm])!=null;bm++){if(aa){if(bb^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){Z||Y.push(aa)}else{if(Z){ab[bm]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Z){if(Z[1]==="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Z[2]==="even"&&"2n"||Z[2]==="odd"&&"2n+1"||!/\D/.test(Z[2])&&"0n+"+Z[2]||Z[2]);Z[2]=Y[1]+(Y[2]||1)-0;Z[3]=Y[3]-0}Z[0]=R++;return Z},ATTR:function(ab,aa,Z,Y,ba,bb){aa=ab[1].replace(/\\/g,"");if(!bb&&L.attrMap[aa]){ab[1]=L.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,aa,Z,Y,ba){if(ab[1]==="not"){if((Q.exec(ab[3])||"").length>1||/^\w/.test(ab[3])){ab[3]=N(ab[3],null,null,aa)}else{ab=N.filter(ab[3],aa,Z,true^ba);Z||Y.push.apply(Y,ab);return false}}else{if(L.match.POS.test(ab[0])||L.match.CHILD.test(ab[0])){return true}}return ab},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!N(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(ab,aa,Z,Y){return aa===Y.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0},nth:function(aa,Z,Y){return Y[3]-0===Z},eq:function(aa,Z,Y){return Y[3]-0===Z}},filter:{PSEUDO:function(ab,aa,Z,Y){var ba=aa[1],bb=L.filters[ba];if(bb){return bb(ab,Z,aa,Y)}else{if(ba==="contains"){return(ab.textContent||ab.innerText||W([ab])||"").indexOf(aa[3])>=0}else{if(ba==="not"){aa=aa[3];Z=0;for(Y=aa.length;Z<Y;Z++){if(aa[Z]===ab){return false}}return true}else{N.error("Syntax error, unrecognized expression: "+ba)}}}},CHILD:function(ba,ab){var Z=ab[1],Y=ba;switch(Z){case"only":case"first":for(;Y=Y.previousSibling;){if(Y.nodeType===1){return false}}if(Z==="first"){return true}Y=ba;case"last":for(;Y=Y.nextSibling;){if(Y.nodeType===1){return false}}return true;case"nth":Z=ab[2];var bb=ab[3];if(Z===1&&bb===0){return true}ab=ab[0];var bm=ba.parentNode;if(bm&&(bm.sizcache!==ab||!ba.nodeIndex)){var aa=0;for(Y=bm.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++aa}}bm.sizcache=ab}ba=ba.nodeIndex-bb;return Z===0?ba===0:ba%Z===0&&ba/Z>=0}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y},TAG:function(Z,Y){return Y==="*"&&Z.nodeType===1||Z.nodeName.toLowerCase()===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ab,aa){var Z=aa[1];ab=L.attrHandle[Z]?L.attrHandle[Z](ab):ab[Z]!=null?ab[Z]:ab.getAttribute(Z);Z=ab+"";var Y=aa[2];aa=aa[4];return ab==null?Y==="!=":Y==="="?Z===aa:Y==="*="?Z.indexOf(aa)>=0:Y==="~="?(" "+Z+" ").indexOf(aa)>=0:!aa?Z&&ab!==false:Y==="!="?Z!==aa:Y==="^="?Z.indexOf(aa)===0:Y==="$="?Z.substr(Z.length-aa.length)===aa:Y==="|="?Z===aa||Z.substr(0,aa.length+1)===aa+"-":false},POS:function(ab,aa,Z,Y){var ba=L.setFilters[aa[2]];if(ba){return ba(ab,Z,aa,Y)}}}},G=L.match.POS;for(var w in L.match){L.match[w]=new RegExp(L.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);L.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[w].source.replace(/\\(\d+)/g,function(Z,Y){return"\\"+(Y-0+1)}))}var c=function(Z,Y){Z=Array.prototype.slice.call(Z,0);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(S.documentElement.childNodes,0)}catch(F){c=function(ab,aa){aa=aa||[];if(O.call(ab)==="[object Array]"){Array.prototype.push.apply(aa,ab)}else{if(typeof ab.length==="number"){for(var Z=0,Y=ab.length;Z<Y;Z++){aa.push(ab[Z])}}else{for(Z=0;ab[Z];Z++){aa.push(ab[Z])}}}return aa}}var J;if(S.documentElement.compareDocumentPosition){J=function(Z,Y){if(!Z.compareDocumentPosition||!Y.compareDocumentPosition){if(Z==Y){P=true}return Z.compareDocumentPosition?-1:1}Z=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;if(Z===0){P=true}return Z}}else{if("sourceIndex" in S.documentElement){J=function(Z,Y){if(!Z.sourceIndex||!Y.sourceIndex){if(Z==Y){P=true}return Z.sourceIndex?-1:1}Z=Z.sourceIndex-Y.sourceIndex;if(Z===0){P=true}return Z}}else{if(S.createRange){J=function(ab,aa){if(!ab.ownerDocument||!aa.ownerDocument){if(ab==aa){P=true}return ab.ownerDocument?-1:1}var Z=ab.ownerDocument.createRange(),Y=aa.ownerDocument.createRange();Z.setStart(ab,0);Z.setEnd(ab,0);Y.setStart(aa,0);Y.setEnd(aa,0);ab=Z.compareBoundaryPoints(Range.START_TO_END,Y);if(ab===0){P=true}return ab}}}}(function(){var aa=S.createElement("div"),Z="script"+(new Date).getTime();aa.innerHTML="<a name='"+Z+"'/>";var Y=S.documentElement;Y.insertBefore(aa,Y.firstChild);if(S.getElementById(Z)){L.find.ID=function(ab,ba,bb){if(typeof ba.getElementById!=="undefined"&&!bb){return(ba=ba.getElementById(ab[1]))?ba.id===ab[1]||typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id").nodeValue===ab[1]?[ba]:M:[]}};L.filter.ID=function(ab,ba){var bb=typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id");return ab.nodeType===1&&bb&&bb.nodeValue===ba}}Y.removeChild(aa);Y=aa=null})();(function(){var Y=S.createElement("div");Y.appendChild(S.createComment(""));if(Y.getElementsByTagName("*").length>0){L.find.TAG=function(ab,aa){aa=aa.getElementsByTagName(ab[1]);if(ab[1]==="*"){ab=[];for(var Z=0;aa[Z];Z++){aa[Z].nodeType===1&&ab.push(aa[Z])}aa=ab}return aa}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){L.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();S.querySelectorAll&&function(){var aa=N,Z=S.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){N=function(ab,bm,bn,ba){bm=bm||S;if(!ba&&bm.nodeType===9&&!s(bm)){try{return c(bm.querySelectorAll(ab),bn)}catch(bb){}}return aa(ab,bm,bn,ba)};for(var Y in aa){N[Y]=aa[Y]}Z=null}}();(function(){var Y=S.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){L.order.splice(1,0,"CLASS");L.find.CLASS=function(ab,aa,Z){if(typeof aa.getElementsByClassName!=="undefined"&&!Z){return aa.getElementsByClassName(ab[1])}};Y=null}}})();var A=S.compareDocumentPosition?function(Z,Y){return !!(Z.compareDocumentPosition(Y)&16)}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)},s=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},X=function(ab,aa){var Z=[],Y="",ba;for(aa=aa.nodeType?[aa]:aa;ba=L.match.PSEUDO.exec(ab);){Y+=ba[0];ab=ab.replace(L.match.PSEUDO,"")}ab=L.relative[ab]?ab+"*":ab;ba=0;for(var bb=aa.length;ba<bb;ba++){N(ab,aa[ba],Z)}return N.filter(Y,Z)};ai.find=N;ai.expr=N.selectors;ai.expr[":"]=ai.expr.filters;ai.unique=N.uniqueSort;ai.text=W;ai.isXMLDoc=s;ai.contains=A})();var f=/Until$/,bc=/^(?:parents|prevUntil|prevAll)/,aX=/,/;av=Array.prototype.slice;var aM=function(s,c,A){if(ai.isFunction(c)){return ai.grep(s,function(G,F){return !!c.call(G,F,G)===A})}else{if(c.nodeType){return ai.grep(s,function(F){return F===c===A})}else{if(typeof c==="string"){var w=ai.grep(s,function(F){return F.nodeType===1});if(aU.test(c)){return ai.filter(c,w,!A)}else{c=ai.filter(c,w)}}}}return ai.grep(s,function(F){return ai.inArray(F,c)>=0===A})};ai.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),J=0,F=0,G=this.length;F<G;F++){J=c.length;ai.find(s,this[F],c);if(F>0){for(var w=J;w<c.length;w++){for(var A=0;A<J;A++){if(c[A]===c[w]){c.splice(w--,1);break}}}}}return c},has:function(s){var c=ai(s);return this.filter(function(){for(var A=0,w=c.length;A<w;A++){if(ai.contains(this,c[A])){return true}}})},not:function(c){return this.pushStack(aM(this,c,false),"not",c)},filter:function(c){return this.pushStack(aM(this,c,true),"filter",c)},is:function(c){return !!c&&ai.filter(c,this).length>0},closest:function(L,K){if(ai.isArray(L)){var J=[],F=this[0],G,w={},A;if(F&&L.length){G=0;for(var c=L.length;G<c;G++){A=L[G];w[A]||(w[A]=ai.expr.match.POS.test(A)?ai(A,K||this.context):A)}for(;F&&F.ownerDocument&&F!==K;){for(A in w){G=w[A];if(G.jquery?G.index(F)>-1:ai(F).is(G)){J.push({selector:A,elem:F});delete w[A]}}F=F.parentNode}}return J}var s=ai.expr.match.POS.test(L)?ai(L,K||this.context):null;return this.map(function(O,N){for(;N&&N.ownerDocument&&N!==K;){if(s?s.index(N)>-1:ai(N).is(L)){return N}N=N.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return ai.inArray(this[0],c?ai(c):this.parent().children())}return ai.inArray(c.jquery?c[0]:c,this)},add:function(s,c){s=typeof s==="string"?ai(s,c||this.context):ai.makeArray(s);c=ai.merge(this.get(),s);return this.pushStack(m(s[0])||m(c[0])?c:ai.unique(c))},andSelf:function(){return this.add(this.prevObject)}});ai.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return ai.dir(c,"parentNode")},parentsUntil:function(s,c,w){return ai.dir(s,"parentNode",w)},next:function(c){return ai.nth(c,2,"nextSibling")},prev:function(c){return ai.nth(c,2,"previousSibling")},nextAll:function(c){return ai.dir(c,"nextSibling")},prevAll:function(c){return ai.dir(c,"previousSibling")},nextUntil:function(s,c,w){return ai.dir(s,"nextSibling",w)},prevUntil:function(s,c,w){return ai.dir(s,"previousSibling",w)},siblings:function(c){return ai.sibling(c.parentNode.firstChild,c)},children:function(c){return ai.sibling(c.firstChild)},contents:function(c){return ai.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ai.makeArray(c.childNodes)}},function(s,c){ai.fn[s]=function(F,w){var A=ai.map(this,c,F);f.test(s)||(w=F);if(w&&typeof w==="string"){A=ai.filter(w,A)}A=this.length>1?ai.unique(A):A;if((this.length>1||aX.test(w))&&bc.test(s)){A=A.reverse()}return this.pushStack(A,s,av.call(arguments).join(","))}});ai.extend({filter:function(s,c,w){if(w){s=":not("+s+")"}return ai.find.matches(s,c)},dir:function(s,c,A){var w=[];for(s=s[c];s&&s.nodeType!==9&&(A===M||s.nodeType!==1||!ai(s).is(A));){s.nodeType===1&&w.push(s);s=s[c]}return w},nth:function(s,c,A){c=c||1;for(var w=0;s;s=s[A]){if(s.nodeType===1&&++w===c){break}}return s},sibling:function(s,c){for(var w=[];s;s=s.nextSibling){s.nodeType===1&&s!==c&&w.push(s)}return w}});var aj=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,C=/(<([\w:]+)[^>]*?)\/>/g,aE=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,n=/<([\w:]+)/,ad=/<tbody/i,v=/<|&#?\w+;/,aQ=/<script|<object|<embed|<option|<style/i,al=/checked\s*(?:[^=]|=\s*.checked.)/i,bl=function(s,c,w){return aE.test(w)?s:c+"></"+w+">"},aK={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};aK.optgroup=aK.option;aK.tbody=aK.tfoot=aK.colgroup=aK.caption=aK.thead;aK.th=aK.td;if(!ai.support.htmlSerialize){aK._default=[1,"div<div>","</div>"]}ai.fn.extend({text:function(c){if(ai.isFunction(c)){return this.each(function(s){var w=ai(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==M){return this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(c))}return ai.text(this)},wrapAll:function(s){if(ai.isFunction(s)){return this.each(function(w){ai(this).wrapAll(s.call(this,w))})}if(this[0]){var c=ai(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(ai.isFunction(c)){return this.each(function(s){ai(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=ai(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){ai(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){ai.nodeName(this,"body")||ai(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=ai(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ai(arguments[0]).toArray());return c}}},remove:function(s,c){for(var A=0,w;(w=this[A])!=null;A++){if(!s||ai.filter(s,[w]).length){if(!c&&w.nodeType===1){ai.cleanData(w.getElementsByTagName("*"));ai.cleanData([w])}w.parentNode&&w.parentNode.removeChild(w)}}return this},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ai.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(s){var c=this.map(function(){if(!ai.support.noCloneEvent&&!ai.isXMLDoc(this)){var A=this.outerHTML,w=this.ownerDocument;if(!A){A=w.createElement("div");A.appendChild(this.cloneNode(true));A=A.innerHTML}return ai.clean([A.replace(aj,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(at,"")],w)[0]}else{return this.cloneNode(true)}});if(s===true){bk(this,c);bk(this.find("*"),c.find("*"))}return c},html:function(s){if(s===M){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aj,""):null}else{if(typeof s==="string"&&!aQ.test(s)&&(ai.support.leadingWhitespace||!at.test(s))&&!aK[(n.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(C,bl);try{for(var c=0,A=this.length;c<A;c++){if(this[c].nodeType===1){ai.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=s}}}catch(w){this.empty().append(s)}}else{ai.isFunction(s)?this.each(function(J){var F=ai(this),G=F.html();F.empty().append(function(){return s.call(this,J,G)})}):this.empty().append(s)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ai.isFunction(c)){return this.each(function(s){var A=ai(this),w=A.html();A.replaceWith(c.call(this,s,w))})}if(typeof c!=="string"){c=ai(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;ai(this).remove();s?ai(s).before(c):ai(w).append(c)})}else{return this.pushStack(ai(ai.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(O,N,L){function J(P){return ai.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var K,F,G=O[0],s=[],A;if(!ai.support.checkClone&&arguments.length===3&&typeof G==="string"&&al.test(G)){return this.each(function(){ai(this).domManip(O,N,L,true)})}if(ai.isFunction(G)){return this.each(function(P){var Q=ai(this);O[0]=G.call(this,P,N?Q.html():M);Q.domManip(O,N,L)})}if(this[0]){K=G&&G.parentNode;K=ai.support.parentNode&&K&&K.nodeType===11&&K.childNodes.length===this.length?{fragment:K}:a4(O,this,s);A=K.fragment;if(F=A.childNodes.length===1?(A=A.firstChild):A.firstChild){N=N&&ai.nodeName(F,"tr");for(var w=0,c=this.length;w<c;w++){L.call(N?J(this[w],F):this[w],w>0||K.cacheable||this.length>1?A.cloneNode(true):A)}}s.length&&ai.each(s,H)}return this}});ai.fragments={};ai.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ai.fn[s]=function(J){var F=[];J=ai(J);var G=this.length===1&&this[0].parentNode;if(G&&G.nodeType===11&&G.childNodes.length===1&&J.length===1){J[c](this[0]);return this}else{G=0;for(var w=J.length;G<w;G++){var A=(G>0?this.clone(true):this).get();ai.fn[c].apply(ai(J[G]),A);F=F.concat(A)}return this.pushStack(F,s,J.selector)}}});ai.extend({clean:function(O,N,L,J){N=N||S;if(typeof N.createElement==="undefined"){N=N.ownerDocument||N[0]&&N[0].ownerDocument||S}for(var K=[],F=0,G;(G=O[F])!=null;F++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!v.test(G)){G=N.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(C,bl);var s=(n.exec(G)||["",""])[1].toLowerCase(),A=aK[s]||aK._default,w=A[0],c=N.createElement("div");for(c.innerHTML=A[1]+G+A[2];w--;){c=c.lastChild}if(!ai.support.tbody){w=ad.test(G);s=s==="table"&&!w?c.firstChild&&c.firstChild.childNodes:A[1]==="<table>"&&!w?c.childNodes:[];for(A=s.length-1;A>=0;--A){ai.nodeName(s[A],"tbody")&&!s[A].childNodes.length&&s[A].parentNode.removeChild(s[A])}}!ai.support.leadingWhitespace&&at.test(G)&&c.insertBefore(N.createTextNode(at.exec(G)[0]),c.firstChild);G=c.childNodes}}if(G.nodeType){K.push(G)}else{K=ai.merge(K,G)}}}if(L){for(F=0;K[F];F++){if(J&&ai.nodeName(K[F],"script")&&(!K[F].type||K[F].type.toLowerCase()==="text/javascript")){J.push(K[F].parentNode?K[F].parentNode.removeChild(K[F]):K[F])}else{K[F].nodeType===1&&K.splice.apply(K,[F+1,0].concat(ai.makeArray(K[F].getElementsByTagName("script"))));L.appendChild(K[F])}}}return K},cleanData:function(L){for(var K,J,F=ai.cache,G=ai.event.special,w=ai.support.deleteExpando,A=0,c;(c=L[A])!=null;A++){if(J=c[ai.expando]){K=F[J];if(K.events){for(var s in K.events){G[s]?ai.event.remove(c,s):aH(c,s,K.handle)}}if(w){delete c[ai.expando]}else{c.removeAttribute&&c.removeAttribute(ai.expando)}delete F[J]}}}});var h=/z-?index|font-?weight|opacity|zoom|line-?height/i,a5=/alpha\([^)]*\)/,aR=/opacity=([^)]*)/,aF=/float/i,ae=/-([a-z])/ig,bg=/([A-Z])/g,a0=/^-?\d+(?:px)?$/i,aJ=/^-?\d/,ag={position:"absolute",visibility:"hidden",display:"block"},z=["Left","Right"],l=["Top","Bottom"],bj=S.defaultView&&S.defaultView.getComputedStyle,am=ai.support.cssFloat?"cssFloat":"styleFloat",x=function(s,c){return c.toUpperCase()};ai.fn.css=function(s,c){return aq(this,s,c,true,function(F,w,A){if(A===M){return ai.curCSS(F,w)}if(typeof A==="number"&&!h.test(w)){A+="px"}ai.style(F,w,A)})};ai.extend({style:function(s,c,F){if(!s||s.nodeType===3||s.nodeType===8){return M}if((c==="width"||c==="height")&&parseFloat(F)<0){F=M}var w=s.style||s,A=F!==M;if(!ai.support.opacity&&c==="opacity"){if(A){w.zoom=1;c=parseInt(F,10)+""==="NaN"?"":"alpha(opacity="+F*100+")";s=w.filter||ai.curCSS(s,"filter")||"";w.filter=a5.test(s)?s.replace(a5,c):c}return w.filter&&w.filter.indexOf("opacity=")>=0?parseFloat(aR.exec(w.filter)[1])/100+"":""}if(aF.test(c)){c=am}c=c.replace(ae,x);if(A){w[c]=F}return w[c]},css:function(s,c,J,F){if(c==="width"||c==="height"){var G,w=c==="width"?z:l;function A(){G=c==="width"?s.offsetWidth:s.offsetHeight;F!=="border"&&ai.each(w,function(){F||(G-=parseFloat(ai.curCSS(s,"padding"+this,true))||0);if(F==="margin"){G+=parseFloat(ai.curCSS(s,"margin"+this,true))||0}else{G-=parseFloat(ai.curCSS(s,"border"+this+"Width",true))||0}})}s.offsetWidth!==0?A():ai.swap(s,ag,A);return Math.max(0,Math.round(G))}return ai.curCSS(s,c,J)},curCSS:function(s,c,G){var A,F=s.style;if(!ai.support.opacity&&c==="opacity"&&s.currentStyle){A=aR.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return A===""?"1":A}if(aF.test(c)){c=am}if(!G&&F&&F[c]){A=F[c]}else{if(bj){if(aF.test(c)){c="float"}c=c.replace(bg,"-$1").toLowerCase();F=s.ownerDocument.defaultView;if(!F){return null}if(s=F.getComputedStyle(s,null)){A=s.getPropertyValue(c)}if(c==="opacity"&&A===""){A="1"}}else{if(s.currentStyle){G=c.replace(ae,x);A=s.currentStyle[c]||s.currentStyle[G];if(!a0.test(A)&&aJ.test(A)){c=F.left;var w=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;F.left=G==="fontSize"?"1em":A||0;A=F.pixelLeft+"px";F.left=c;s.runtimeStyle.left=w}}}}return A},swap:function(s,c,F){var w={};for(var A in c){w[A]=s.style[A];s.style[A]=c[A]}F.call(s);for(A in c){s.style[A]=w[A]}}});if(ai.expr&&ai.expr.filters){ai.expr.filters.hidden=function(s){var c=s.offsetWidth,A=s.offsetHeight,w=s.nodeName.toLowerCase()==="tr";return c===0&&A===0&&!w?true:c>0&&A>0&&!w?false:ai.curCSS(s,"display")==="none"};ai.expr.filters.visible=function(c){return !ai.expr.filters.hidden(c)}}var a3=aG(),aO=/<script(.|\s)*?\/script>/gi,ak=/select|textarea/i,D=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aB=/=\?(&|$)/,j=/\?/,o=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a6=/%20/g,aS=ai.fn.load;ai.fn.extend({load:function(s,c,G){if(typeof s!=="string"){return aS.call(this,s)}else{if(!this.length){return this}}var A=s.indexOf(" ");if(A>=0){var F=s.slice(A,s.length);s=s.slice(0,A)}A="GET";if(c){if(ai.isFunction(c)){G=c;c=null}else{if(typeof c==="object"){c=ai.param(c,ai.ajaxSettings.traditional);A="POST"}}}var w=this;ai.ajax({url:s,type:A,dataType:"html",data:c,complete:function(J,K){if(K==="success"||K==="notmodified"){w.html(F?ai("<div />").append(J.responseText.replace(aO,"")).find(F):J.responseText)}G&&w.each(G,[J.responseText,K,J])}});return this},serialize:function(){return ai.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?ai.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ak.test(this.nodeName)||D.test(this.type))}).map(function(s,c){s=ai(this).val();return s==null?null:ai.isArray(s)?ai.map(s,function(w){return{name:c.name,value:w}}):{name:c.name,value:s}}).get()}});ai.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ai.fn[c]=function(w){return this.bind(c,w)}});ai.extend({get:function(s,c,A,w){if(ai.isFunction(c)){w=w||A;A=c;c=null}return ai.ajax({type:"GET",url:s,data:c,success:A,dataType:w})},getScript:function(s,c){return ai.get(s,null,c,"script")},getJSON:function(s,c,w){return ai.get(s,c,w,"json")},post:function(s,c,A,w){if(ai.isFunction(c)){w=w||A;A=c;c={}}return ai.ajax({type:"POST",url:s,data:c,success:A,dataType:w})},ajaxSetup:function(c){ai.extend(ai.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aP.XMLHttpRequest&&(aP.location.protocol!=="file:"||!aP.ActiveXObject)?function(){return new aP.XMLHttpRequest}:function(){try{return new aP.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(aa){function Z(){X.success&&X.success.call(P,K,R,s);X.global&&W("ajaxSuccess",[s,X])}function Y(){X.complete&&X.complete.call(P,s,R);X.global&&W("ajaxComplete",[s,X]);X.global&&!--ai.active&&ai.event.trigger("ajaxStop")}function W(ba,bb){(X.context?ai(X.context):ai.event).trigger(ba,bb)}var X=ai.extend(true,{},ai.ajaxSettings,aa),Q,R,K,P=aa&&aa.context||X,L=X.type.toUpperCase();if(X.data&&X.processData&&typeof X.data!=="string"){X.data=ai.param(X.data,X.traditional)}if(X.dataType==="jsonp"){if(L==="GET"){aB.test(X.url)||(X.url+=(j.test(X.url)?"&":"?")+(X.jsonp||"callback")+"=?")}else{if(!X.data||!aB.test(X.data)){X.data=(X.data?X.data+"&":"")+(X.jsonp||"callback")+"=?"}}X.dataType="json"}if(X.dataType==="json"&&(X.data&&aB.test(X.data)||aB.test(X.url))){Q=X.jsonpCallback||"jsonp"+a3++;if(X.data){X.data=(X.data+"").replace(aB,"="+Q+"$1")}X.url=X.url.replace(aB,"="+Q+"$1");X.dataType="script";aP[Q]=aP[Q]||function(ba){K=ba;Z();Y();aP[Q]=M;try{delete aP[Q]}catch(bb){}c&&c.removeChild(F)}}if(X.dataType==="script"&&X.cache===null){X.cache=false}if(X.cache===false&&L==="GET"){var G=aG(),w=X.url.replace(o,"$1_="+G+"$2");X.url=w+(w===X.url?(j.test(X.url)?"&":"?")+"_="+G:"")}if(X.data&&L==="GET"){X.url+=(j.test(X.url)?"&":"?")+X.data}X.global&&!ai.active++&&ai.event.trigger("ajaxStart");G=(G=a.exec(X.url))&&(G[1]&&G[1]!==location.protocol||G[2]!==location.host);if(X.dataType==="script"&&L==="GET"&&G){var c=S.getElementsByTagName("head")[0]||S.documentElement,F=S.createElement("script");F.src=X.url;if(X.scriptCharset){F.charset=X.scriptCharset}if(!Q){var J=false;F.onload=F.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;Z();Y();F.onload=F.onreadystatechange=null;c&&F.parentNode&&c.removeChild(F)}}}c.insertBefore(F,c.firstChild);return M}var A=false,s=X.xhr();if(s){X.username?s.open(L,X.url,X.async,X.username,X.password):s.open(L,X.url,X.async);try{if(X.data||aa&&aa.contentType){s.setRequestHeader("Content-Type",X.contentType)}if(X.ifModified){ai.lastModified[X.url]&&s.setRequestHeader("If-Modified-Since",ai.lastModified[X.url]);ai.etag[X.url]&&s.setRequestHeader("If-None-Match",ai.etag[X.url])}G||s.setRequestHeader("X-Requested-With","XMLHttpRequest");s.setRequestHeader("Accept",X.dataType&&X.accepts[X.dataType]?X.accepts[X.dataType]+", */*":X.accepts._default)}catch(ab){}if(X.beforeSend&&X.beforeSend.call(P,s,X)===false){X.global&&!--ai.active&&ai.event.trigger("ajaxStop");s.abort();return false}X.global&&W("ajaxSend",[s,X]);var V=s.onreadystatechange=function(bb){if(!s||s.readyState===0||bb==="abort"){A||Y();A=true;if(s){s.onreadystatechange=ai.noop}}else{if(!A&&s&&(s.readyState===4||bb==="timeout")){A=true;s.onreadystatechange=ai.noop;R=bb==="timeout"?"timeout":!ai.httpSuccess(s)?"error":X.ifModified&&ai.httpNotModified(s,X.url)?"notmodified":"success";var bm;if(R==="success"){try{K=ai.httpData(s,X.dataType,X)}catch(ba){R="parsererror";bm=ba}}if(R==="success"||R==="notmodified"){Q||Z()}else{ai.handleError(X,s,R,bm)}Y();bb==="timeout"&&s.abort();if(X.async){s=null}}}};try{var T=s.abort;s.abort=function(){s&&T.call(s);V("abort")}}catch(O){}X.async&&X.timeout>0&&setTimeout(function(){s&&!A&&V("timeout")},X.timeout);try{s.send(L==="POST"||L==="PUT"||L==="DELETE"?X.data:null)}catch(N){ai.handleError(X,s,null,N);Y()}X.async||V();return s}},handleError:function(s,c,A,w){if(s.error){s.error.call(s.context||s,c,A,w)}if(s.global){(s.context?ai(s.context):ai.event).trigger("ajaxError",[c,s,w])}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0}catch(c){}return false},httpNotModified:function(s,c){var A=s.getResponseHeader("Last-Modified"),w=s.getResponseHeader("Etag");if(A){ai.lastModified[c]=A}if(w){ai.etag[c]=w}return s.status===304||s.status===0},httpData:function(s,c,F){var w=s.getResponseHeader("content-type")||"",A=c==="xml"||!c&&w.indexOf("xml")>=0;s=A?s.responseXML:s.responseText;A&&s.documentElement.nodeName==="parsererror"&&ai.error("parsererror");if(F&&F.dataFilter){s=F.dataFilter(s,c)}if(typeof s==="string"){if(c==="json"||!c&&w.indexOf("json")>=0){s=ai.parseJSON(s)}else{if(c==="script"||!c&&w.indexOf("javascript")>=0){ai.globalEval(s)}}}return s},param:function(s,c){function G(J,K){if(ai.isArray(K)){ai.each(K,function(L,N){c||/\[\]$/.test(J)?A(J,N):G(J+"["+(typeof N==="object"||ai.isArray(N)?L:"")+"]",N)})}else{!c&&K!=null&&typeof K==="object"?ai.each(K,function(L,N){G(J+"["+L+"]",N)}):A(J,K)}}function A(J,K){K=ai.isFunction(K)?K():K;F[F.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var F=[];if(c===M){c=ai.ajaxSettings.traditional}if(ai.isArray(s)||s.jquery){ai.each(s,function(){A(this.name,this.value)})}else{for(var w in s){G(w,s[w])}}return F.join("&").replace(a6,"+")}});var bh={},bd=/toggle|show|hide/,aY=/^([+-]=)?([\d+-.]+)(.*)$/,ar,E=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ai.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aD("show",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var F=ai.data(this[s],"olddisplay");this[s].style.display=F||"";if(ai.css(this[s],"display")==="none"){F=this[s].nodeName;var w;if(bh[F]){w=bh[F]}else{var A=ai("<"+F+" />").appendTo("body");w=A.css("display");if(w==="none"){w="block"}A.remove();bh[F]=w}ai.data(this[s],"olddisplay",w)}}s=0;for(c=this.length;s<c;s++){this[s].style.display=ai.data(this[s],"olddisplay")||""}return this}},hide:function(s,c){if(s||s===0){return this.animate(aD("hide",3),s,c)}else{s=0;for(c=this.length;s<c;s++){var w=ai.data(this[s],"olddisplay");!w&&w!=="none"&&ai.data(this[s],"olddisplay",ai.css(this[s],"display"))}s=0;for(c=this.length;s<c;s++){this[s].style.display="none"}return this}},_toggle:ai.fn.toggle,toggle:function(s,c){var w=typeof s==="boolean";if(ai.isFunction(s)&&ai.isFunction(c)){this._toggle.apply(this,arguments)}else{s==null||w?this.each(function(){var A=w?s:ai(this).is(":hidden");ai(this)[A?"show":"hide"]()}):this.animate(aD("toggle",3),s,c)}return this},fadeTo:function(s,c,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,w)},animate:function(s,c,F,w){var A=ai.speed(c,F,w);if(ai.isEmptyObject(s)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=ai.extend({},A),K,L=this.nodeType===1&&ai(this).is(":hidden"),G=this;for(K in s){var N=K.replace(ae,x);if(K!==N){s[N]=s[K];delete s[K];K=N}if(s[K]==="hide"&&L||s[K]==="show"&&!L){return J.complete.call(this)}if((K==="height"||K==="width")&&this.style){J.display=ai.css(this,"display");J.overflow=this.style.overflow}if(ai.isArray(s[K])){(J.specialEasing=J.specialEasing||{})[K]=s[K][1];s[K]=s[K][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=ai.extend({},s);ai.each(s,function(P,O){var T=new ai.fx(G,J,P);if(bd.test(O)){T[O==="toggle"?L?"show":"hide":O](s)}else{var R=aY.exec(O),V=T.cur(true)||0;if(R){O=parseFloat(R[2]);var Q=R[3]||"px";if(Q!=="px"){G.style[P]=(O||1)+Q;V=(O||1)/T.cur(true)*V;G.style[P]=V+Q}if(R[1]){O=(R[1]==="-="?-1:1)*O+V}T.custom(V,O,Q)}else{T.custom(V,O,"")}}});return true})},stop:function(s,c){var w=ai.timers;s&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){c&&w[A](true);w.splice(A,1)}}});c||this.dequeue();return this}});ai.each({slideDown:aD("show",1),slideUp:aD("hide",1),slideToggle:aD("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ai.fn[s]=function(A,w){return this.animate(c,A,w)}});ai.extend({speed:function(s,c,A){var w=s&&typeof s==="object"?s:{complete:A||!A&&c||ai.isFunction(s)&&s,duration:s,easing:A&&c||c&&!ai.isFunction(c)&&c};w.duration=ai.fx.off?0:typeof w.duration==="number"?w.duration:ai.fx.speeds[w.duration]||ai.fx.speeds._default;w.old=w.complete;w.complete=function(){w.queue!==false&&ai(this).dequeue();ai.isFunction(w.old)&&w.old.call(this)};return w},easing:{linear:function(s,c,A,w){return A+w*s},swing:function(s,c,A,w){return(-Math.cos(s*Math.PI)/2+0.5)*w+A}},timers:[],fx:function(s,c,w){this.options=c;this.elem=s;this.prop=w;if(!c.orig){c.orig={}}}});ai.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ai.fx.step[this.prop]||ai.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(ai.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ai.curCSS(this.elem,this.prop))||0},custom:function(s,c,F){function w(G){return A.step(G)}this.startTime=aG();this.start=s;this.end=c;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;w.elem=this.elem;if(w()&&ai.timers.push(w)&&!ar){ar=setInterval(ai.fx.tick,13)}},show:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ai(this.elem).show()},hide:function(){this.options.orig[this.prop]=ai.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(s){var c=aG(),F=true;if(s||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var w in this.options.curAnim){if(this.options.curAnim[w]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;s=ai.data(this.elem,"olddisplay");this.elem.style.display=s?s:this.options.display;if(ai.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&ai(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){ai.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=c-this.startTime;this.state=A/this.options.duration;s=this.options.easing||(ai.easing.swing?"swing":"linear");this.pos=ai.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};ai.extend(ai.fx,{tick:function(){for(var s=ai.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1)}s.length||ai.fx.stop()},stop:function(){clearInterval(ar);ar=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ai.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(ai.expr&&ai.expr.filters){ai.expr.filters.animated=function(c){return ai.grep(ai.timers,function(s){return c===s.elem}).length}}ai.fn.offset="getBoundingClientRect" in S.documentElement?function(s){var c=this[0];if(s){return this.each(function(F){ai.offset.setOffset(this,s,F)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return ai.offset.bodyOffset(c)}var A=c.getBoundingClientRect(),w=c.ownerDocument;c=w.body;w=w.documentElement;return{top:A.top+(self.pageYOffset||ai.support.boxModel&&w.scrollTop||c.scrollTop)-(w.clientTop||c.clientTop||0),left:A.left+(self.pageXOffset||ai.support.boxModel&&w.scrollLeft||c.scrollLeft)-(w.clientLeft||c.clientLeft||0)}}:function(N){var L=this[0];if(N){return this.each(function(O){ai.offset.setOffset(this,N,O)})}if(!L||!L.ownerDocument){return null}if(L===L.ownerDocument.body){return ai.offset.bodyOffset(L)}ai.offset.initialize();var K=L.offsetParent,G=L,J=L.ownerDocument,A,F=J.documentElement,c=J.body;G=(J=J.defaultView)?J.getComputedStyle(L,null):L.currentStyle;for(var w=L.offsetTop,s=L.offsetLeft;(L=L.parentNode)&&L!==c&&L!==F;){if(ai.offset.supportsFixedPosition&&G.position==="fixed"){break}A=J?J.getComputedStyle(L,null):L.currentStyle;w-=L.scrollTop;s-=L.scrollLeft;if(L===K){w+=L.offsetTop;s+=L.offsetLeft;if(ai.offset.doesNotAddBorder&&!(ai.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(L.nodeName))){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=K;K=L.offsetParent}if(ai.offset.subtractsBorderForOverflowNotVisible&&A.overflow!=="visible"){w+=parseFloat(A.borderTopWidth)||0;s+=parseFloat(A.borderLeftWidth)||0}G=A}if(G.position==="relative"||G.position==="static"){w+=c.offsetTop;s+=c.offsetLeft}if(ai.offset.supportsFixedPosition&&G.position==="fixed"){w+=Math.max(F.scrollTop,c.scrollTop);s+=Math.max(F.scrollLeft,c.scrollLeft)}return{top:w,left:s}};ai.offset={initialize:function(){var s=S.body,c=S.createElement("div"),G,A,F,w=parseFloat(ai.curCSS(s,"marginTop",true))||0;ai.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";s.insertBefore(c,s.firstChild);G=c.firstChild;A=G.firstChild;F=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=A.offsetTop!==5;this.doesAddBorderForTableAndCells=F.offsetTop===5;A.style.position="fixed";A.style.top="20px";this.supportsFixedPosition=A.offsetTop===20||A.offsetTop===15;A.style.position=A.style.top="";G.style.overflow="hidden";G.style.position="relative";this.subtractsBorderForOverflowNotVisible=A.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==w;s.removeChild(c);ai.offset.initialize=ai.noop},bodyOffset:function(s){var c=s.offsetTop,w=s.offsetLeft;ai.offset.initialize();if(ai.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ai.curCSS(s,"marginTop",true))||0;w+=parseFloat(ai.curCSS(s,"marginLeft",true))||0}return{top:c,left:w}},setOffset:function(s,c,J){if(/static/.test(ai.curCSS(s,"position"))){s.style.position="relative"}var F=ai(s),G=F.offset(),w=parseInt(ai.curCSS(s,"top",true),10)||0,A=parseInt(ai.curCSS(s,"left",true),10)||0;if(ai.isFunction(c)){c=c.call(s,J,G)}J={top:c.top-G.top+w,left:c.left-G.left+A};"using" in c?c.using.call(s,J):F.css(J)}};ai.fn.extend({position:function(){if(!this[0]){return null}var s=this[0],c=this.offsetParent(),A=this.offset(),w=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();A.top-=parseFloat(ai.curCSS(s,"marginTop",true))||0;A.left-=parseFloat(ai.curCSS(s,"marginLeft",true))||0;w.top+=parseFloat(ai.curCSS(c[0],"borderTopWidth",true))||0;w.left+=parseFloat(ai.curCSS(c[0],"borderLeftWidth",true))||0;return{top:A.top-w.top,left:A.left-w.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||S.body;c&&!/^body|html$/i.test(c.nodeName)&&ai.css(c,"position")==="static";){c=c.offsetParent}return c})}});ai.each(["Left","Top"],function(s,c){var w="scroll"+c;ai.fn[w]=function(F){var G=this[0],A;if(!G){return null}if(F!==M){return this.each(function(){if(A=p(this)){A.scrollTo(!s?F:ai(A).scrollLeft(),s?F:ai(A).scrollTop())}else{this[w]=F}})}else{return(A=p(G))?"pageXOffset" in A?A[s?"pageYOffset":"pageXOffset"]:ai.support.boxModel&&A.document.documentElement[w]||A.document.body[w]:G[w]}}});ai.each(["Height","Width"],function(s,c){var w=c.toLowerCase();ai.fn["inner"+c]=function(){return this[0]?ai.css(this[0],w,false,"padding"):null};ai.fn["outer"+c]=function(A){return this[0]?ai.css(this[0],w,false,A?"margin":"border"):null};ai.fn[w]=function(A){var F=this[0];if(!F){return A==null?null:this}if(ai.isFunction(A)){return this.each(function(G){var J=ai(this);J[w](A.call(this,G,J[w]()))})}return"scrollTo" in F&&F.document?F.document.compatMode==="CSS1Compat"&&F.document.documentElement["client"+c]||F.document.body["client"+c]:F.nodeType===9?Math.max(F.documentElement["client"+c],F.body["scroll"+c],F.documentElement["scroll"+c],F.body["offset"+c],F.documentElement["offset"+c]):A===M?ai.css(F,w):this.css(w,typeof A==="string"?A:A+"px")}});aP.jQuery=aP.$=ai})(window);var $j=jQuery.noConflict();
