You are on page 1of 59

/* * jimdoGen002 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(window,undefined){var jimdoGen002=function(selector,context){return ne w jimdoGen002.fn.init(selector,context);},_jimdoGen002=window.jimdoGen002,_$=win dow.$,document=window.document,rootjimdoGen002,quickExpr=/^[^<]*(<[\w\W]+>)[^>]* $|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s |\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAge nt,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.p rototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prot otype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;jimdoGen0 02.fn=jimdoGen002.prototype={init:function(selector,context){var match,elem,ret, doc;if(!selector){return this;} if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;} if(selector==="body"&&!context){this.context=document;this[0]=document.body;this .selector="body";this.length=1;return this;} if(typeof selector==="string"){match=quickExpr.exec(selector);if(match&&(match[1 ]||!context)){if(match[1]){doc=(context?context.ownerDocument||context:document) ;ret=rsingleTag.exec(selector);if(ret){if(jimdoGen002.isPlainObject(context)){se lector=[document.createElement(ret[1])];jimdoGen002.fn.attr.call(selector,contex t,true);}else{selector=[doc.createElement(ret[1])];}}else{ret=buildFragment([mat ch[1]],[doc]);selector=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment) .childNodes;} return jimdoGen002.merge(this,selector);}else{elem=document.getElementById(match [2]);if(elem){if(elem.id!==match[2]){return rootjimdoGen002.find(selector);} this.length=1;this[0]=elem;} this.context=document;this.selector=selector;return this;}}else if(!context&&/^\ w+$/.test(selector)){this.selector=selector;this.context=document;selector=docum ent.getElementsByTagName(selector);return jimdoGen002.merge(this,selector);}else if(!context||context.jquery){return(context||rootjimdoGen002).find(selector);}e lse{return jimdoGen002(context).find(selector);}}else if(jimdoGen002.isFunction( selector)){return rootjimdoGen002.ready(selector);} if(selector.selector!==undefined){this.selector=selector.selector;this.context=s elector.context;} return jimdoGen002.makeArray(selector,this);},selector:"",jquery:"1.4.2",length: 0,size:function(){return this.length;},toArray:function(){return slice.call(this ,0);},get:function(num){return num==null?this.toArray():(num<0?this.slice(num)[0 ]:this[num]);},pushStack:function(elems,name,selector){var ret=jimdoGen002();if( jimdoGen002.isArray(elems)){push.apply(ret,elems);}else{jimdoGen002.merge(ret,el ems);} ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this .selector+(this.selector?" ":"")+selector;}else if(name){ret.selector=this.selec tor+"."+name+"("+selector+")";} return ret;},each:function(callback,args){return jimdoGen002.each(this,callback, args);},ready:function(fn){jimdoGen002.bindReady();if(jimdoGen002.isReady){fn.ca ll(document,jimdoGen002);}else if(readyList){readyList.push(fn);} return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},fi rst:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:fu

nction(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(ar guments).join(","));},map:function(callback){return this.pushStack(jimdoGen002.m ap(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){ return this.prevObject||jimdoGen002(null);},push:push,sort:[].sort,splice:[].spl ice};jimdoGen002.fn.init.prototype=jimdoGen002.fn;jimdoGen002.extend=jimdoGen002 .fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,de ep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target= arguments[1]||{};i=2;} if(typeof target!=="object"&&!jimdoGen002.isFunction(target)){target={};} if(length===i){target=this;--i;} for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=tar get[name];copy=options[name];if(target===copy){continue;} if(deep&&copy&&(jimdoGen002.isPlainObject(copy)||jimdoGen002.isArray(copy))){var clone=src&&(jimdoGen002.isPlainObject(src)||jimdoGen002.isArray(src))?src:jimdo Gen002.isArray(copy)?[]:{};target[name]=jimdoGen002.extend(deep,clone,copy);}els e if(copy!==undefined){target[name]=copy;}}}} return target;};jimdoGen002.extend({noConflict:function(deep){window.$=_$;if(dee p){window.jimdoGen002=_jimdoGen002;} return jimdoGen002;},isReady:false,ready:function(){if(!jimdoGen002.isReady){if( !document.body){return setTimeout(jimdoGen002.ready,13);} jimdoGen002.isReady=true;if(readyList){var fn,i=0;while((fn=readyList[i++])){fn. call(document,jimdoGen002);} readyList=null;} if(jimdoGen002.fn.triggerHandler){jimdoGen002(document).triggerHandler("ready"); }}},bindReady:function(){if(readyBound){return;} readyBound=true;if(document.readyState==="complete"){return jimdoGen002.ready(); } if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMCo ntentLoaded,false);window.addEventListener("load",jimdoGen002.ready,false);}else if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLo aded);window.attachEvent("onload",jimdoGen002.ready);var toplevel=false;try{topl evel=window.frameElement==null;}catch(e){} if(document.documentElement.doScroll&&toplevel){doScrollCheck();}}},isFunction:f unction(obj){return toString.call(obj)==="[object Function]";},isArray:function( obj){return toString.call(obj)==="[object Array]";},isPlainObject:function(obj){ if(!obj||toString.call(obj)!=="[object Object]"||obj.nodeType||obj.setInterval){ return false;} if(obj.constructor&&!hasOwnProperty.call(obj,"constructor")&&!hasOwnProperty.cal l(obj.constructor.prototype,"isPrototypeOf")){return false;} var key;for(key in obj){} return key===undefined||hasOwnProperty.call(obj,key);},isEmptyObject:function(ob j){for(var name in obj){return false;} return true;},error:function(msg){throw msg;},parseJSON:function(data){if(typeof data!=="string"||!data){return null;} data=jimdoGen002.trim(data);if(/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfn rt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d* )?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return window.J SON&&window.JSON.parse?window.JSON.parse(data):(new Function("return "+data))(); }else{jimdoGen002.error("Invalid JSON: "+data);}},noop:function(){},globalEval:f unction(data){if(data&&rnotwhite.test(data)){var head=document.getElementsByTagN ame("head")[0]||document.documentElement,script=document.createElement("script") ;script.type="text/javascript";if(jimdoGen002.support.scriptEval){script.appendC hild(document.createTextNode(data));}else{script.text=data;} head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:f unction(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()===name.toUp perCase();},each:function(object,callback,args){var name,i=0,length=object.lengt h,isObj=length===undefined||jimdoGen002.isFunction(object);if(args){if(isObj){fo r(name in object){if(callback.apply(object[name],args)===false){break;}}}else{fo r(;i<length;){if(callback.apply(object[i++],args)===false){break;}}}}else{if(isO bj){for(name in object){if(callback.call(object[name],name,object[name])===false

){break;}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!= =false;value=object[++i]){}}} return object;},trim:function(text){return(text||"").replace(rtrim,"");},makeArr ay:function(array,results){var ret=results||[];if(array!=null){if(array.length== null||typeof array==="string"||jimdoGen002.isFunction(array)||(typeof array!=="f unction"&&array.setInterval)){push.call(ret,array);}else{jimdoGen002.merge(ret,a rray);}} return ret;},inArray:function(elem,array){if(array.indexOf){return array.indexOf (elem);} for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i;}} return-1;},merge:function(first,second){var i=first.length,j=0;if(typeof second. length==="number"){for(var l=second.length;j<l;j++){first[i++]=second[j];}}else{ while(second[j]!==undefined){first[i++]=second[j++];}} first.length=i;return first;},grep:function(elems,callback,inv){var ret=[];for(v ar i=0,length=elems.length;i<length;i++){if(!inv!==!callback(elems[i],i)){ret.pu sh(elems[i]);}} return ret;},map:function(elems,callback,arg){var ret=[],value;for(var i=0,lengt h=elems.length;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret[ ret.length]=value;}} return ret.concat.apply([],ret);},guid:1,proxy:function(fn,proxy,thisObject){if( arguments.length===2){if(typeof proxy==="string"){thisObject=fn;fn=thisObject[pr oxy];proxy=undefined;}else if(proxy&&!jimdoGen002.isFunction(proxy)){thisObject= proxy;proxy=undefined;}} if(!proxy&&fn){proxy=function(){return fn.apply(thisObject||this,arguments);};} if(fn){proxy.guid=fn.guid=fn.guid||proxy.guid||jimdoGen002.guid++;} return proxy;},uaMatch:function(ua){ua=ua.toLowerCase();var match=/(webkit)[ \/] ([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w. ]+)/.exec(ua)||!/compatible/.test(ua)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)| |[];return{browser:match[1]||"",version:match[2]||"0"};},browser:{}});browserMat ch=jimdoGen002.uaMatch(userAgent);if(browserMatch.browser){jimdoGen002.browser[b rowserMatch.browser]=true;jimdoGen002.browser.version=browserMatch.version;} if(jimdoGen002.browser.webkit){jimdoGen002.browser.safari=true;} if(indexOf){jimdoGen002.inArray=function(elem,array){return indexOf.call(array,e lem);};} rootjimdoGen002=jimdoGen002(document);if(document.addEventListener){DOMContentLo aded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded ,false);jimdoGen002.ready();};}else if(document.attachEvent){DOMContentLoaded=fu nction(){if(document.readyState==="complete"){document.detachEvent("onreadystate change",DOMContentLoaded);jimdoGen002.ready();}};} function doScrollCheck(){if(jimdoGen002.isReady){return;} try{document.documentElement.doScroll("left");}catch(error){setTimeout(doScrollC heck,1);return;} jimdoGen002.ready();} function evalScript(i,elem){if(elem.src){jimdoGen002.ajax({url:elem.src,async:fa lse,dataType:"script"});}else{jimdoGen002.globalEval(elem.text||elem.textContent ||elem.innerHTML||"");} if(elem.parentNode){elem.parentNode.removeChild(elem);}} function access(elems,key,value,exec,fn,pass){var length=elems.length;if(typeof key==="object"){for(var k in key){access(elems,k,key[k],exec,fn,value);} return elems;} if(value!==undefined){exec=!pass&&exec&&jimdoGen002.isFunction(value);for(var i= 0;i<length;i++){fn(elems[i],key,exec?value.call(elems[i],i,fn(elems[i],key)):val ue,pass);} return elems;} return length?fn(elems[0],key):undefined;} function now(){return(new Date).getTime();} (function(){jimdoGen002.support={};var root=document.documentElement,script=docu ment.createElement("script"),div=document.createElement("div"),id="script"+now() ;div.style.display="none";div.innerHTML=" <link/><table></table><a href='/a' s tyle='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var all=

div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.l ength||!a){return;} jimdoGen002.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.ge tElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("lin k").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribu te("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssF loat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:docum ent.createElement("select").appendChild(document.createElement("option")).select ed,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).pa rentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEven t:true,boxModel:null};script.type="text/javascript";try{script.appendChild(docum ent.createTextNode("window."+id+"=1;"));}catch(e){} root.insertBefore(script,root.firstChild);if(window[id]){jimdoGen002.support.scr iptEval=true;delete window[id];} try{delete script.test;}catch(e){jimdoGen002.support.deleteExpando=false;} root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onc lick",function click(){jimdoGen002.support.noCloneEvent=false;div.detachEvent("o nclick",click);});div.cloneNode(true).fireEvent("onclick");} div=document.createElement("div");div.innerHTML="<input type='radio' name='radio test' checked='checked'/>";var fragment=document.createDocumentFragment();fragme nt.appendChild(div.firstChild);jimdoGen002.support.checkClone=fragment.cloneNode (true).cloneNode(true).lastChild.checked;jimdoGen002(function(){var div=document .createElement("div");div.style.width=div.style.paddingLeft="1px";document.body. appendChild(div);jimdoGen002.boxModel=jimdoGen002.support.boxModel=div.offsetWid th===2;document.body.removeChild(div).style.display='none';div=null;});var event Supported=function(eventName){var el=document.createElement("div");eventName="on "+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(e ventName,"return;");isSupported=typeof el[eventName]==="function";} el=null;return isSupported;};jimdoGen002.support.submitBubbles=eventSupported("s ubmit");jimdoGen002.support.changeBubbles=eventSupported("change");root=script=d iv=all=a=null;})();jimdoGen002.props={"for":"htmlFor","class":"className",readon ly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan", colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"} ;var expando="jimdoGen002"+now(),uuid=0,windowData={};jimdoGen002.extend({cache: {},expando:expando,noData:{"embed":true,"object":true,"applet":true},data:functi on(elem,name,data){if(elem.nodeName&&jimdoGen002.noData[elem.nodeName.toLowerCas e()]){return;} elem=elem==window?windowData:elem;var id=elem[expando],cache=jimdoGen002.cache,t hisCache;if(!id&&typeof name==="string"&&data===undefined){return null;} if(!id){id=++uuid;} if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=jimdoGen002.exte nd(true,{},name);}else if(!cache[id]){elem[expando]=id;cache[id]={};} thisCache=cache[id];if(data!==undefined){thisCache[name]=data;} return typeof name==="string"?thisCache[name]:thisCache;},removeData:function(el em,name){if(elem.nodeName&&jimdoGen002.noData[elem.nodeName.toLowerCase()]){retu rn;} elem=elem==window?windowData:elem;var id=elem[expando],cache=jimdoGen002.cache,t hisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(jimdoGen002. isEmptyObject(thisCache)){jimdoGen002.removeData(elem);}}}else{if(jimdoGen002.su pport.deleteExpando){delete elem[jimdoGen002.expando];}else if(elem.removeAttrib ute){elem.removeAttribute(jimdoGen002.expando);} delete cache[id];}}});jimdoGen002.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return jimdoGen002.data(this[0]);}else if(typeof key==="object"){return this.each(function(){jimdoGen002.data(this,key);});} var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined) {var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undef ined&&this.length){data=jimdoGen002.data(this[0],key);} return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.tri gger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jimdoGen002.data(t his,key,value);});}},removeData:function(key){return this.each(function(){jimdoG

en002.removeData(this,key);});}});jimdoGen002.extend({queue:function(elem,type,d ata){if(!elem){return;} type=(type||"fx")+"queue";var q=jimdoGen002.data(elem,type);if(!data){return q|| [];} if(!q||jimdoGen002.isArray(data)){q=jimdoGen002.data(elem,type,jimdoGen002.makeA rray(data));}else{q.push(data);} return q;},dequeue:function(elem,type){type=type||"fx";var queue=jimdoGen002.que ue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift();} if(fn){if(type==="fx"){queue.unshift("inprogress");} fn.call(elem,function(){jimdoGen002.dequeue(elem,type);});}}});jimdoGen002.fn.ex tend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";} if(data===undefined){return jimdoGen002.queue(this[0],type);} return this.each(function(i,elem){var queue=jimdoGen002.queue(this,type,data);if (type==="fx"&&queue[0]!=="inprogress"){jimdoGen002.dequeue(this,type);}});},dequ eue:function(type){return this.each(function(){jimdoGen002.dequeue(this,type);}) ;},delay:function(time,type){time=jimdoGen002.fx?jimdoGen002.fx.speeds[time]||ti me:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeo ut(function(){jimdoGen002.dequeue(elem,type);},time);});},clearQueue:function(ty pe){return this.queue(type||"fx",[]);}});var rclass=/[\n\t]/g,rspace=/\s+/,rretu rn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(butto n|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|ch eckbox/;jimdoGen002.fn.extend({attr:function(name,value){return access(this,name ,value,true,jimdoGen002.attr);},removeAttr:function(name,fn){return this.each(fu nction(){jimdoGen002.attr(this,name,"");if(this.nodeType===1){this.removeAttribu te(name);}});},addClass:function(value){if(jimdoGen002.isFunction(value)){return this.each(function(i){var self=jimdoGen002(this);self.addClass(value.call(this, i,self.attr("class")));});} if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for( var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nodeType===1){if(!elem.c lassName){elem.className=value;}else{var className=" "+elem.className+" ",setCla ss=elem.className;for(var c=0,cl=classNames.length;c<cl;c++){if(className.indexO f(" "+classNames[c]+" ")<0){setClass+=" "+classNames[c];}} elem.className=jimdoGen002.trim(setClass);}}}} return this;},removeClass:function(value){if(jimdoGen002.isFunction(value)){retu rn this.each(function(i){var self=jimdoGen002(this);self.removeClass(value.call( this,i,self.attr("class")));});} if((value&&typeof value==="string")||value===undefined){var classNames=(value||" ").split(rspace);for(var i=0,l=this.length;i<l;i++){var elem=this[i];if(elem.nod eType===1&&elem.className){if(value){var className=(" "+elem.className+" ").repl ace(rclass," ");for(var c=0,cl=classNames.length;c<cl;c++){className=className.r eplace(" "+classNames[c]+" "," ");} elem.className=jimdoGen002.trim(className);}else{elem.className="";}}}} return this;},toggleClass:function(value,stateVal){var type=typeof value,isBool= typeof stateVal==="boolean";if(jimdoGen002.isFunction(value)){return this.each(f unction(i){var self=jimdoGen002(this);self.toggleClass(value.call(this,i,self.at tr("class"),stateVal),stateVal);});} return this.each(function(){if(type==="string"){var className,i=0,self=jimdoGen0 02(this),state=stateVal,classNames=value.split(rspace);while((className=classNam es[i++])){state=isBool?state:!self.hasClass(className);self[state?"addClass":"re moveClass"](className);}}else if(type==="undefined"||type==="boolean"){if(this.c lassName){jimdoGen002.data(this,"__className__",this.className);} this.className=this.className||value===false?"":jimdoGen002.data(this,"__classNa me__")||"";}});},hasClass:function(selector){var className=" "+selector+" ";for( var i=0,l=this.length;i<l;i++){if((" "+this[i].className+" ").replace(rclass," " ).indexOf(className)>-1){return true;}} return false;},val:function(value){if(value===undefined){var elem=this[0];if(ele m){if(jimdoGen002.nodeName(elem,"option")){return(elem.attributes.value||{}).spe cified?elem.value:elem.text;} if(jimdoGen002.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],o ptions=elem.options,one=elem.type==="select-one";if(index<0){return null;}

for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=optio ns[i];if(option.selected){value=jimdoGen002(option).val();if(one){return value;} values.push(value);}} return values;} if(rradiocheck.test(elem.type)&&!jimdoGen002.support.checkOn){return elem.getAtt ribute("value")===null?"on":elem.value;} return(elem.value||"").replace(rreturn,"");} return undefined;} var isFunction=jimdoGen002.isFunction(value);return this.each(function(i){var se lf=jimdoGen002(this),val=value;if(this.nodeType!==1){return;} if(isFunction){val=value.call(this,i,self.val());} if(typeof val==="number"){val+="";} if(jimdoGen002.isArray(val)&&rradiocheck.test(this.type)){this.checked=jimdoGen0 02.inArray(self.val(),val)>=0;}else if(jimdoGen002.nodeName(this,"select")){var values=jimdoGen002.makeArray(val);jimdoGen002("option",this).each(function(){thi s.selected=jimdoGen002.inArray(jimdoGen002(this).val(),values)>=0;});if(!values. length){this.selectedIndex=-1;}}else{this.value=val;}});}});jimdoGen002.extend({ attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,o ffset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||ele m.nodeType===8){return undefined;} if(pass&&name in jimdoGen002.attrFn){return jimdoGen002(elem)[name](value);} var notxml=elem.nodeType!==1||!jimdoGen002.isXMLDoc(elem),set=value!==undefined; name=notxml&&jimdoGen002.props[name]||name;if(elem.nodeType===1){var special=rsp ecialurl.test(name);if(name==="selected"&&!jimdoGen002.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){par ent.parentNode.selectedIndex;}}} if(name in elem&&notxml&&!special){if(set){if(name==="type"&&rtype.test(elem.nod eName)&&elem.parentNode){jimdoGen002.error("type property can't be changed");} elem[name]=value;} if(jimdoGen002.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.g etAttributeNode(name).nodeValue;} if(name==="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:rfocusable.test(elem .nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined;} return elem[name];} if(!jimdoGen002.support.style&&notxml&&name==="style"){if(set){elem.style.cssTex t=""+value;} return elem.style.cssText;} if(set){elem.setAttribute(name,""+value);} var attr=!jimdoGen002.support.hrefNormalized&&notxml&&special?elem.getAttribute( name,2):elem.getAttribute(name);return attr===null?undefined:attr;} return jimdoGen002.style(elem,name,value);}});var rnamespaces=/\.(.*)$/,fcleanup =function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch;});}; jimdoGen002.event={add:function(elem,types,handler,data){if(elem.nodeType===3||e lem.nodeType===8){return;} if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window;} var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handle ObjIn.handler;} if(!handler.guid){handler.guid=jimdoGen002.guid++;} var elemData=jimdoGen002.data(elem);if(!elemData){return;} var events=elemData.events=elemData.events||{},eventHandle=elemData.handle,event Handle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof jim doGen002!=="undefined"&&!jimdoGen002.event.triggered?jimdoGen002.event.handle.ap ply(eventHandle.elem,arguments):undefined;};} eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type =types[i++])){handleObj=handleObjIn?jimdoGen002.extend({},handleObjIn):{handler: handler,data:data};if(type.indexOf(".")>-1){namespaces=type.split(".");type=name spaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".");}else{na mespaces=[];handleObj.namespace="";} handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],specia

l=jimdoGen002.event.special[type]||{};if(!handlers){handlers=events[type]=[];if( !special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if (elem.addEventListener){elem.addEventListener(type,eventHandle,false);}else if(e lem.attachEvent){elem.attachEvent("on"+type,eventHandle);}}} if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){han dleObj.handler.guid=handler.guid;}} handlers.push(handleObj);jimdoGen002.event.global[type]=true;} elem=null;},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType== =3||elem.nodeType===8){return;} var ret,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origTyp e,elemData=jimdoGen002.data(elem),events=elemData&&elemData.events;if(!elemData| |!events){return;} if(types&&types.type){handler=types.handler;types=types.type;} if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(t ype in events){jimdoGen002.event.remove(elem,type+types);} return;} types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all =type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=name spaces.shift();namespace=new RegExp("(^|\\.)"+ jimdoGen002.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\. |$)")} eventType=events[type];if(!eventType){continue;} if(!handler){for(var j=0;j<eventType.length;j++){handleObj=eventType[j];if(all|| namespace.test(handleObj.namespace)){jimdoGen002.event.remove(elem,origType,hand leObj.handler,j);eventType.splice(j--,1);}} continue;} special=jimdoGen002.event.special[type]||{};for(var j=pos||0;j<eventType.length; j++){handleObj=eventType[j];if(handler.guid===handleObj.guid){if(all||namespace. test(handleObj.namespace)){if(pos==null){eventType.splice(j--,1);} if(special.remove){special.remove.call(elem,handleObj);}} if(pos!=null){break;}}} if(eventType.length===0||pos!=null&&eventType.length===1){if(!special.teardown|| special.teardown.call(elem,namespaces)===false){removeEvent(elem,type,elemData.h andle);} ret=null;delete events[type];}} if(jimdoGen002.isEmptyObject(events)){var handle=elemData.handle;if(handle){hand le.elem=null;} delete elemData.events;delete elemData.handle;if(jimdoGen002.isEmptyObject(elemD ata)){jimdoGen002.removeData(elem);}}},trigger:function(event,data,elem){var typ e=event.type||event,bubbling=arguments[3];if(!bubbling){event=typeof event==="ob ject"?event[expando]?event:jimdoGen002.extend(jimdoGen002.Event(type),event):jim doGen002.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);e vent.exclusive=true;} if(!elem){event.stopPropagation();if(jimdoGen002.event.global[type]){jimdoGen002 .each(jimdoGen002.cache,function(){if(this.events&&this.events[type]){jimdoGen00 2.event.trigger(event,data,this.handle.elem);}});}} if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;} event.result=undefined;event.target=elem;data=jimdoGen002.makeArray(data);data.u nshift(event);} event.currentTarget=elem;var handle=jimdoGen002.data(elem,"handle");if(handle){h andle.apply(elem,data);} var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&jim doGen002.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+typ e].apply(elem,data)===false){event.result=false;}}}catch(e){} if(!event.isPropagationStopped()&&parent){jimdoGen002.event.trigger(event,data,p arent,true);}else if(!event.isDefaultPrevented()){var target=event.target,old,is Click=jimdoGen002.nodeName(target,"a")&&type==="click",special=jimdoGen002.event .special[type]||{};if((!special._default||special._default.call(elem,event)===fa lse)&&!isClick&&!(target&&target.nodeName&&jimdoGen002.noData[target.nodeName.to LowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+ty

pe]=null;} jimdoGen002.event.triggered=true;target[type]();}}catch(e){} if(old){target["on"+type]=old;} jimdoGen002.event.triggered=false;}}},handle:function(event){var all,handlers,na mespaces,namespace,events;event=arguments[0]=jimdoGen002.event.fix(event||window .event);event.currentTarget=this;all=event.type.indexOf(".")<0&&!event.exclusive ;if(!all){namespaces=event.type.split(".");event.type=namespaces.shift();namespa ce=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$ )");} var events=jimdoGen002.data(this,"events"),handlers=events[event.type];if(events &&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j<l;j++){va r handleObj=handlers[j];if(all||namespace.test(handleObj.namespace)){event.handl er=handleObj.handler;event.data=handleObj.data;event.handleObj=handleObj;var ret =handleObj.handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if (ret===false){event.preventDefault();event.stopPropagation();}} if(event.isImmediatePropagationStopped()){break;}}}} return event.result;},props:"altKey attrChange attrName bubbles button cancelabl e charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElem ent handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarge t pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcEl ement target toElement view wheelDelta which".split(" "),fix:function(event){if( event[expando]){return event;} var originalEvent=event;event=jimdoGen002.Event(originalEvent);for(var i=this.pr ops.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];} if(!event.target){event.target=event.srcElement||document;} if(event.target.nodeType===3){event.target=event.target.parentNode;} if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElemen t===event.target?event.toElement:event.fromElement;} if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body =document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scroll Left||0)-(doc&&doc.clientLeft||body&&body.clientLeft||0);event.pageY=event.clien tY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body .clientTop||0);} if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyC ode)){event.which=event.charCode||event.keyCode;} if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey;} if(!event.which&&event.button!==undefined){event.which=(event.button&1?1:(event. button&2?3:(event.button&4?2:0)));} return event;},guid:1E8,proxy:jimdoGen002.proxy,special:{ready:{setup:jimdoGen00 2.bindReady,teardown:jimdoGen002.noop},live:{add:function(handleObj){jimdoGen002 .event.add(this,handleObj.origType,jimdoGen002.extend({},handleObj,{handler:live Handler}));},remove:function(handleObj){var remove=true,type=handleObj.origType. replace(rnamespaces,"");jimdoGen002.each(jimdoGen002.data(this,"events").live||[ ],function(){if(type===this.origType.replace(rnamespaces,"")){remove=false;retur n false;}});if(remove){jimdoGen002.event.remove(this,handleObj.origType,liveHand ler);}}},beforeunload:{setup:function(data,namespaces,eventHandle){if(this.setIn terval){this.onbeforeunload=eventHandle;} return false;},teardown:function(namespaces,eventHandle){if(this.onbeforeunload= ==eventHandle){this.onbeforeunload=null;}}}}};var removeEvent=document.removeEve ntListener?function(elem,type,handle){elem.removeEventListener(type,handle,false );}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};jimdoGen002. Event=function(src){if(!this.preventDefault){return new jimdoGen002.Event(src);} if(src&&src.type){this.originalEvent=src;this.type=src.type;}else{this.type=src; } this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;} function returnTrue(){return true;} jimdoGen002.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r eturnTrue;var e=this.originalEvent;if(!e){return;} if(e.preventDefault){e.preventDefault();} e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=retur

nTrue;var e=this.originalEvent;if(!e){return;} if(e.stopPropagation){e.stopPropagation();} e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropag ationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse, isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;try{while(parent&&p arent!==this){parent=parent.parentNode;} if(parent!==this){event.type=event.data;jimdoGen002.event.handle.apply(this,argu ments);}}catch(e){}},delegate=function(event){event.type=event.data;jimdoGen002. event.handle.apply(this,arguments);};jimdoGen002.each({mouseenter:"mouseover",mo useleave:"mouseout"},function(orig,fix){jimdoGen002.event.special[orig]={setup:f unction(data){jimdoGen002.event.add(this,fix,data&&data.selector?delegate:within Element,orig);},teardown:function(data){jimdoGen002.event.remove(this,fix,data&& data.selector?delegate:withinElement);}};});if(!jimdoGen002.support.submitBubble s){jimdoGen002.event.special.submit={setup:function(data,namespaces){if(this.nod eName.toLowerCase()!=="form"){jimdoGen002.event.add(this,"click.specialSubmit",f unction(e){var elem=e.target,type=elem.type;if((type==="submit"||type==="image") &&jimdoGen002(elem).closest("form").length){return trigger("submit",this,argumen ts);}});jimdoGen002.event.add(this,"keypress.specialSubmit",function(e){var elem =e.target,type=elem.type;if((type==="text"||type==="password")&&jimdoGen002(elem ).closest("form").length&&e.keyCode===13){return trigger("submit",this,arguments );}});}else{return false;}},teardown:function(namespaces){jimdoGen002.event.remo ve(this,".specialSubmit");}};} if(!jimdoGen002.support.changeBubbles){var formElems=/textarea|input|select/i,ch angeFilters,getVal=function(elem){var type=elem.type,val=elem.value;if(type==="r adio"||type==="checkbox"){val=elem.checked;}else if(type==="select-multiple"){va l=elem.selectedIndex>-1?jimdoGen002.map(elem.options,function(elem){return elem. selected;}).join("-"):"";}else if(elem.nodeName.toLowerCase()==="select"){val=el em.selectedIndex;} return val;},testChange=function testChange(e){var elem=e.target,data,val;if(!fo rmElems.test(elem.nodeName)||elem.readOnly){return;} data=jimdoGen002.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusou t"||elem.type!=="radio"){jimdoGen002.data(elem,"_change_data",val);} if(data===undefined||val===data){return;} if(data!=null||val){e.type="change";return jimdoGen002.event.trigger(e,arguments [1],elem);}};jimdoGen002.event.special.change={filters:{focusout:testChange,clic k:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkb ox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e);}},k eydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nod eName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type===" radio"))||type==="select-multiple"){return testChange.call(this,e);}},beforeacti vate:function(e){var elem=e.target;jimdoGen002.data(elem,"_change_data",getVal(e lem));}},setup:function(data,namespaces){if(this.type==="file"){return false;} for(var type in changeFilters){jimdoGen002.event.add(this,type+".specialChange", changeFilters[type]);} return formElems.test(this.nodeName);},teardown:function(namespaces){jimdoGen002 .event.remove(this,".specialChange");return formElems.test(this.nodeName);}};cha ngeFilters=jimdoGen002.event.special.change.filters;} function trigger(type,elem,args){args[0].type=type;return jimdoGen002.event.hand le.apply(elem,args);} if(document.addEventListener){jimdoGen002.each({focus:"focusin",blur:"focusout"} ,function(orig,fix){jimdoGen002.event.special[fix]={setup:function(){this.addEve ntListener(orig,handler,true);},teardown:function(){this.removeEventListener(ori g,handler,true);}};function handler(e){e=jimdoGen002.event.fix(e);e.type=fix;ret urn jimdoGen002.event.handle.call(this,e);}});} jimdoGen002.each(["bind","one"],function(i,name){jimdoGen002.fn[name]=function(t ype,data,fn){if(typeof type==="object"){for(var key in type){this[name](key,data ,type[key],fn);} return this;} if(jimdoGen002.isFunction(data)){fn=data;data=undefined;}

var handler=name==="one"?jimdoGen002.proxy(fn,function(event){jimdoGen002(this). unbind(event,handler);return fn.apply(this,arguments);}):fn;if(type==="unload"&& name!=="one"){this.one(type,data,fn);}else{for(var i=0,l=this.length;i<l;i++){ji mdoGen002.event.add(this[i],type,handler,data);}} return this;};});jimdoGen002.fn.extend({unbind:function(type,fn){if(typeof type= =="object"&&!type.preventDefault){for(var key in type){this.unbind(key,type[key] );}}else{for(var i=0,l=this.length;i<l;i++){jimdoGen002.event.remove(this[i],typ e,fn);}} return this;},delegate:function(selector,types,data,fn){return this.live(types,d ata,fn,selector);},undelegate:function(selector,types,fn){if(arguments.length=== 0){return this.unbind("live");}else{return this.die(types,null,fn,selector);}},t rigger:function(type,data){return this.each(function(){jimdoGen002.event.trigger (type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=j imdoGen002.Event(type);event.preventDefault();event.stopPropagation();jimdoGen00 2.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){v ar args=arguments,i=1;while(i<args.length){jimdoGen002.proxy(fn,args[i++]);} return this.click(jimdoGen002.proxy(fn,function(event){var lastToggle=(jimdoGen0 02.data(this,"lastToggle"+fn.guid)||0)%i;jimdoGen002.data(this,"lastToggle"+fn.g uid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,argu ments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver). mouseleave(fnOut||fnOver);}});var liveMap={focus:"focusin",blur:"focusout",mouse enter:"mouseover",mouseleave:"mouseout"};jimdoGen002.each(["live","die"],functio n(i,name){jimdoGen002.fn[name]=function(types,data,fn,origSelector){var type,i=0 ,match,namespaces,preType,selector=origSelector||this.selector,context=origSelec tor?this:jimdoGen002(this.context);if(jimdoGen002.isFunction(data)){fn=data;data =undefined;} types=(types||"").split(" ");while((type=types[i++])!=null){match=rnamespaces.ex ec(type);namespaces="";if(match){namespaces=match[0];type=type.replace(rnamespac es,"");} if(type==="hover"){types.push("mouseenter"+namespaces,"mouseleave"+namespaces);c ontinue;} preType=type;if(type==="focus"||type==="blur"){types.push(liveMap[type]+namespac es);type=type+namespaces;}else{type=(liveMap[type]||type)+namespaces;} if(name==="live"){context.each(function(){jimdoGen002.event.add(this,liveConvert (type,selector),{data:data,selector:selector,handler:fn,origType:type,origHandle r:fn,preType:preType});});}else{context.unbind(liveConvert(type,selector),fn);}} return this;}});function liveHandler(event){var stop,elems=[],selectors=[],args= arguments,related,match,handleObj,elem,j,i,l,data,events=jimdoGen002.data(this," events");if(event.liveFired===this||!events||!events.live||event.button&&event.t ype==="click"){return;} event.liveFired=this;var live=events.live.slice(0);for(j=0;j<live.length;j++){ha ndleObj=live[j];if(handleObj.origType.replace(rnamespaces,"")===event.type){sele ctors.push(handleObj.selector);}else{live.splice(j--,1);}} match=jimdoGen002(event.target).closest(selectors,event.currentTarget);for(i=0,l =match.length;i<l;i++){for(j=0;j<live.length;j++){handleObj=live[j];if(match[i]. selector===handleObj.selector){elem=match[i].elem;related=null;if(handleObj.preT ype==="mouseenter"||handleObj.preType==="mouseleave"){related=jimdoGen002(event. relatedTarget).closest(handleObj.selector)[0];} if(!related||related!==elem){elems.push({elem:elem,handleObj:handleObj});}}}} for(i=0,l=elems.length;i<l;i++){match=elems[i];event.currentTarget=match.elem;ev ent.data=match.handleObj.data;event.handleObj=match.handleObj;if(match.handleObj .origHandler.apply(match.elem,args)===false){stop=false;break;}} return stop;} function liveConvert(type,selector){return"live."+(type&&type!=="*"?type+".":"") +selector.replace(/\./g,"`").replace(/ /g,"&");} jimdoGen002.each(("blur focus focusin focusout load resize scroll unload click d blclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error").split(" "),function(i,nam e){jimdoGen002.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(n ame);};if(jimdoGen002.attrFn){jimdoGen002.attrFn[name]=true;}});if(window.attach

Event&&!window.addEventListener){window.attachEvent("onunload",function(){for(va r id in jimdoGen002.cache){if(jimdoGen002.cache[id].handle){try{jimdoGen002.even t.remove(jimdoGen002.cache[id].handle.elem);}catch(e){}}}});} /* * Sizzle CSS Selector Engine - v1.0 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^' "]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done =0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[ 0,0].sort(function(){baseHasDuplicate=false;return 0;});var Sizzle=function(sele ctor,context,results,seed){results=results||[];var origContext=context=context|| document;if(context.nodeType!==1&&context.nodeType!==9){return[];} if(!selector||typeof selector!=="string"){return results;} var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=sel ector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.pu sh(m[1]);if(m[2]){extra=m[3];break;}} if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[pa rts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts [0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts. shift();if(Expr.relative[selector]){selector+=parts.shift();} set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType= ==9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts. length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.ex pr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];} if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(part s.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?c ontext.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.se t):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;} while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";} else{pop=parts.pop();} if(pop==null){pop=context;} Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}} if(!checkSet){checkSet=set;} if(!checkSet){Sizzle.error(cur||selector);} if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(res ults,checkSet);}else if(context&&context.nodeType===1){for(var i=0;checkSet[i]!= null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contain s(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=n ull;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}else {makeArray(checkSet,results);} if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);} return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate= baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results. length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}} return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null, set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[] ;} for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match= Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.su bstr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.f ind[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type], "");break;}}}} if(!set){set=context.getElementsByTagName("*");} return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old =expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0] );while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.leftMatch[ type].exec(expr))!=null&&match[2]){var filter=Expr.filter[type],found,item,left=

match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\"){ continue;} if(curLoop===result){result=[];} if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result ,not,isXMLFilter);if(!match){anyFound=found=true;}else if(match===true){continue ;}} if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,ma tch,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=t rue;}else{curLoop[i]=false;}}else if(pass){result.push(item);anyFound=true;}}}} if(found!==undefined){if(!inplace){curLoop=result;} expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];} break;}}} if(expr===old){if(anyFound==null){Sizzle.error(expr);}else{break;}} old=expr;} return curLoop;};Sizzle.error=function(msg){throw"Syntax error, unrecognized exp ression: "+msg;};var Expr=Sizzle.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:/:(nt h|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrM ap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");}},relative:{"+":function(checkSet,part){var isPartStr =typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPart Str&&!isTag;if(isTag){part=part.toLowerCase();} for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=e lem.previousSibling)&&elem.nodeType!==1){} checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||fals e:elem===part;}} if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,p art){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=p art.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if (elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===pa rt?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet [i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}} if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,is XML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test( part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck;} checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(chec kSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"& &!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck;} checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:fu nction(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isX ML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(matc h,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results =context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(re sults[i].getAttribute("name")===match[1]){ret.push(results[i]);}} return ret.length===0?null:ret;}},TAG:function(match,context){return context.get ElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,r esult,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match ;} for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&( " "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){ result.push(elem);}}else if(inplace){curLoop[i]=false;}}} return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:functi on(match,curLoop){return match[1].toLowerCase();},CHILD:function(match){if(match [1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||m atch[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2 ]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}

match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,is XML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1] =Expr.attrMap[name];} if(match[2]==="~="){match[4]=" "+match[4]+" ";} return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]===" not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=S izzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,i nplace,true^not);if(!inplace){result.push.apply(result,ret);} return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(matc h[0])){return true;} return match;},POS:function(match){match.unshift(true);return match;}},filters:{ enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disa bled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;retu rn elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty: function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzl e(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName) ;},text:function(elem){return"text"===elem.type;},radio:function(elem){return"ra dio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:f unction(elem){return"file"===elem.type;},password:function(elem){return"password "===elem.type;},submit:function(elem){return"submit"===elem.type;},image:functio n(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.ty pe;},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase ()==="button";},input:function(elem){return/input|select|textarea|button/i.test( elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:functio n(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i %2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem ,i,match){return match[3]-0===i;},eq:function(elem,i,match){return match[3]-0=== i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.f ilters[name];if(filter){return filter(elem,i,match,array);}else if(name==="conta ins"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(matc h[3])>=0;}else if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i+ +){if(not[i]===elem){return false;}} return true;}else{Sizzle.error("Syntax error, unrecognized expression: "+name);} },CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case'only' :case'first':while((node=node.previousSibling)){if(node.nodeType===1){return fal se;}} if(type==="first"){return true;} node=elem;case'last':while((node=node.nextSibling)){if(node.nodeType===1){return false;}} return true;case'nth':var first=match[2],last=match[3];if(first===1&&last===0){r eturn true;} var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneN ame||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nex tSibling){if(node.nodeType===1){node.nodeIndex=++count;}} parent.sizcache=doneName;} var diff=elem.nodeIndex-last;if(first===0){return diff===0;}else{return(diff%fir st===0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&ele m.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem .nodeType===1)||elem.nodeName.toLowerCase()===match;},CLASS:function(elem,match) {return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1; },ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr. attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value =result+"",type=match[2],check=match[4];return result==null?type==="!=":type===" ="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ") .indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type== ="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.lengt h)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-" :false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilte

rs[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.matc h.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].s ource+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:. |\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,function(all,num){ return"\\"+(num-0+1);}));} var makeArray=function(array,results){array=Array.prototype.slice.call(array,0); if(results){results.push.apply(results,array);return results;} return array;};try{Array.prototype.slice.call(document.documentElement.childNode s,0)[0].nodeType;}catch(e){makeArray=function(array,results){var ret=results||[] ;if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,arra y);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}} return ret;};} var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=fun ction(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){h asDuplicate=true;} return a.compareDocumentPosition?-1:1;} var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=tru e;} return ret;};}else if("sourceIndex"in document.documentElement){sortOrder=functi on(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true;} return a.sourceIndex?-1:1;} var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;} return ret;};}else if(document.createRange){sortOrder=function(a,b){if(!a.ownerD ocument||!b.ownerDocument){if(a==b){hasDuplicate=true;} return a.ownerDocument?-1:1;} var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aR ange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);va r ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDup licate=true;} return ret;};} function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i]; if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue;}else if(elem.nodeT ype!==8){ret+=getText(elem.childNodes);}} return ret;} (function(){var form=document.createElement("div"),id="script"+(new Date).getTim e();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.i nsertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=f unction(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!is XML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.g etAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m] :undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAtt ributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&& node&&node.nodeValue===match;};} root.removeChild(form);root=form=null;})();(function(){var div=document.createEl ement("div");div.appendChild(document.createComment(""));if(div.getElementsByTag Name("*").length>0){Expr.find.TAG=function(match,context){var results=context.ge tElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i ];i++){if(results[i].nodeType===1){tmp.push(results[i]);}} results=tmp;} return results;};} div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAtt ribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle .href=function(elem){return elem.getAttribute("href",2);};} div=null;})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div =document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.query SelectorAll&&div.querySelectorAll(".TEST").length===0){return;} Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&co ntext.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorA ll(query),extra);}catch(e){}}

return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[p rop]=oldSizzle[prop];} div=null;})();} (function(){var div=document.createElement("div");div.innerHTML="<div class='tes t e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElem entsByClassName("e").length===0){return;} div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){retur n;} Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if( typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getE lementsByClassName(match[1]);}};div=null;})();function dirNodeCheck(dir,cur,done Name,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=c heckSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache= ==doneName){match=checkSet[elem.sizset];break;} if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;} if(elem.nodeName.toLowerCase()===cur){match=elem;break;} elem=elem[dir];} checkSet[i]=match;}}} function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=check Set.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false ;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;} if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;} if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else if(Sizzle.filte r(cur,[elem]).length>0){match=elem;break;}} elem=elem[dir];} checkSet[i]=match;}}} var contains=document.compareDocumentPosition?function(a,b){return!!(a.compareDo cumentPosition(b)&16);}:function(a,b){return a!==b&&(a.contains?a.contains(b):tr ue);};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||ele m:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":fa lse;};var posProcess=function(selector,context){var tmpSet=[],later="",match,roo t=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selecto r))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");} selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length ;i<l;i++){Sizzle(selector,root[i],tmpSet);} return Sizzle.filter(later,tmpSet);};jimdoGen002.find=Sizzle;jimdoGen002.expr=Si zzle.selectors;jimdoGen002.expr[":"]=jimdoGen002.expr.filters;jimdoGen002.unique =Sizzle.uniqueSort;jimdoGen002.text=getText;jimdoGen002.isXMLDoc=isXML;jimdoGen0 02.contains=contains;return;window.Sizzle=Sizzle;})();var runtil=/Until$/,rparen tsprev=/^(?:parents|prevUntil|prevAll)/,rmultiselector=/,/,slice=Array.prototype .slice;var winnow=function(elements,qualifier,keep){if(jimdoGen002.isFunction(qu alifier)){return jimdoGen002.grep(elements,function(elem,i){return!!qualifier.ca ll(elem,i,elem)===keep;});}else if(qualifier.nodeType){return jimdoGen002.grep(e lements,function(elem,i){return(elem===qualifier)===keep;});}else if(typeof qual ifier==="string"){var filtered=jimdoGen002.grep(elements,function(elem){return e lem.nodeType===1;});if(isSimple.test(qualifier)){return jimdoGen002.filter(quali fier,filtered,!keep);}else{qualifier=jimdoGen002.filter(qualifier,filtered);}} return jimdoGen002.grep(elements,function(elem,i){return(jimdoGen002.inArray(ele m,qualifier)>=0)===keep;});};jimdoGen002.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;for(var i=0,l=this.length;i<l;i+ +){length=ret.length;jimdoGen002.find(selector,this[i],ret);if(i>0){for(var n=le ngth;n<ret.length;n++){for(var r=0;r<length;r++){if(ret[r]===ret[n]){ret.splice( n--,1);break;}}}}} return ret;},has:function(target){var targets=jimdoGen002(target);return this.fi lter(function(){for(var i=0,l=targets.length;i<l;i++){if(jimdoGen002.contains(th is,targets[i])){return true;}}});},not:function(selector){return this.pushStack( winnow(this,selector,false),"not",selector);},filter:function(selector){return t his.pushStack(winnow(this,selector,true),"filter",selector);},is:function(select or){return!!selector&&jimdoGen002.filter(selector,this).length>0;},closest:funct ion(selectors,context){if(jimdoGen002.isArray(selectors)){var ret=[],cur=this[0]

,match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.len gth;i<l;i++){selector=selectors[i];if(!matches[selector]){matches[selector]=jimd oGen002.expr.match.POS.test(selector)?jimdoGen002(selector,context||this.context ):selector;}} while(cur&&cur.ownerDocument&&cur!==context){for(selector in matches){match=matc hes[selector];if(match.jquery?match.index(cur)>-1:jimdoGen002(cur).is(match)){re t.push({selector:selector,elem:cur});delete matches[selector];}} cur=cur.parentNode;}} return ret;} var pos=jimdoGen002.expr.match.POS.test(selectors)?jimdoGen002(selectors,context ||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerDocumen t&&cur!==context){if(pos?pos.index(cur)>-1:jimdoGen002(cur).is(selectors)){retur n cur;} cur=cur.parentNode;} return null;});},index:function(elem){if(!elem||typeof elem==="string"){return j imdoGen002.inArray(this[0],elem?jimdoGen002(elem):this.parent().children());} return jimdoGen002.inArray(elem.jquery?elem[0]:elem,this);},add:function(selecto r,context){var set=typeof selector==="string"?jimdoGen002(selector,context||this .context):jimdoGen002.makeArray(selector),all=jimdoGen002.merge(this.get(),set); return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:jimdoGe n002.unique(all));},andSelf:function(){return this.add(this.prevObject);}});func tion isDisconnected(node){return!node||!node.parentNode||node.parentNode.nodeTyp e===11;} jimdoGen002.each({parent:function(elem){var parent=elem.parentNode;return parent &&parent.nodeType!==11?parent:null;},parents:function(elem){return jimdoGen002.d ir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jimdoGen002.d ir(elem,"parentNode",until);},next:function(elem){return jimdoGen002.nth(elem,2, "nextSibling");},prev:function(elem){return jimdoGen002.nth(elem,2,"previousSibl ing");},nextAll:function(elem){return jimdoGen002.dir(elem,"nextSibling");},prev All:function(elem){return jimdoGen002.dir(elem,"previousSibling");},nextUntil:fu nction(elem,i,until){return jimdoGen002.dir(elem,"nextSibling",until);},prevUnti l:function(elem,i,until){return jimdoGen002.dir(elem,"previousSibling",until);}, siblings:function(elem){return jimdoGen002.sibling(elem.parentNode.firstChild,el em);},children:function(elem){return jimdoGen002.sibling(elem.firstChild);},cont ents:function(elem){return jimdoGen002.nodeName(elem,"iframe")?elem.contentDocum ent||elem.contentWindow.document:jimdoGen002.makeArray(elem.childNodes);}},funct ion(name,fn){jimdoGen002.fn[name]=function(until,selector){var ret=jimdoGen002.m ap(this,fn,until);if(!runtil.test(name)){selector=until;} if(selector&&typeof selector==="string"){ret=jimdoGen002.filter(selector,ret);} ret=this.length>1?jimdoGen002.unique(ret):ret;if((this.length>1||rmultiselector. test(selector))&&rparentsprev.test(name)){ret=ret.reverse();} return this.pushStack(ret,name,slice.call(arguments).join(","));};});jimdoGen002 .extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";} return jimdoGen002.find.matches(expr,elems);},dir:function(elem,dir,until){var m atched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nod eType!==1||!jimdoGen002(cur).is(until))){if(cur.nodeType===1){matched.push(cur); } cur=cur[dir];} return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;fo r(;cur;cur=cur[dir]){if(cur.nodeType===1&&++num===result){break;}} return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.node Type===1&&n!==elem){r.push(n);}} return r;}});var rinlinejimdoGen002=/ jimdoGen002\d+="(?:\d+|null)"/g,rleadingWh itespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col| embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/<tbody/i,rht ml=/<|&#?\w+;/,rnocache=/<script|<object|<embed|<option|<style/i,rchecked=/check ed\s*(?:[^=]|=\s*.checked.)/i,fcloseTag=function(all,front,tag){return rselfClos ing.test(tag)?all:front+"></"+tag+">";},wrapMap={option:[1,"<select multiple='mu ltiple'>","</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,"",""]};wrapMap.optgroup=wrapM ap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.t head;wrapMap.th=wrapMap.td;if(!jimdoGen002.support.htmlSerialize){wrapMap._defau lt=[1,"div<div>","</div>"];} jimdoGen002.fn.extend({text:function(text){if(jimdoGen002.isFunction(text)){retu rn this.each(function(i){var self=jimdoGen002(this);self.text(text.call(this,i,s elf.text()));});} if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0] &&this[0].ownerDocument||document).createTextNode(text));} return jimdoGen002.text(this);},wrapAll:function(html){if(jimdoGen002.isFunction (html)){return this.each(function(i){jimdoGen002(this).wrapAll(html.call(this,i) );});} if(this[0]){var wrap=jimdoGen002(html,this[0].ownerDocument).eq(0).clone(true);i f(this[0].parentNode){wrap.insertBefore(this[0]);} wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeTyp e===1){elem=elem.firstChild;} return elem;}).append(this);} return this;},wrapInner:function(html){if(jimdoGen002.isFunction(html)){return t his.each(function(i){jimdoGen002(this).wrapInner(html.call(this,i));});} return this.each(function(){var self=jimdoGen002(this),contents=self.contents(); if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:fu nction(html){return this.each(function(){jimdoGen002(this).wrapAll(html);});},un wrap:function(){return this.parent().each(function(){if(!jimdoGen002.nodeName(th is,"body")){jimdoGen002(this).replaceWith(this.childNodes);}}).end();},append:fu nction(){return this.domManip(arguments,true,function(elem){if(this.nodeType===1 ){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments ,true,function(elem){if(this.nodeType===1){this.insertBefore(elem,this.firstChil d);}});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip( arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});}else if(arguments.length){var set=jimdoGen002(arguments[0]);set.push.apply(set,this.t oArray());return this.pushStack(set,"before",arguments);}},after:function(){if(t his[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){ this.parentNode.insertBefore(elem,this.nextSibling);});}else if(arguments.length ){var set=this.pushStack(this,"after",arguments);set.push.apply(set,jimdoGen002( arguments[0]).toArray());return set;}},remove:function(selector,keepData){for(va r i=0,elem;(elem=this[i])!=null;i++){if(!selector||jimdoGen002.filter(selector,[ elem]).length){if(!keepData&&elem.nodeType===1){jimdoGen002.cleanData(elem.getEl ementsByTagName("*"));jimdoGen002.cleanData([elem]);} if(elem.parentNode){elem.parentNode.removeChild(elem);}}} return this;},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(ele m.nodeType===1){jimdoGen002.cleanData(elem.getElementsByTagName("*"));} while(elem.firstChild){elem.removeChild(elem.firstChild);}} return this;},clone:function(events){var ret=this.map(function(){if(!jimdoGen002 .support.noCloneEvent&&!jimdoGen002.isXMLDoc(this)){var html=this.outerHTML,owne rDocument=this.ownerDocument;if(!html){var div=ownerDocument.createElement("div" );div.appendChild(this.cloneNode(true));html=div.innerHTML;} return jimdoGen002.clean([html.replace(rinlinejimdoGen002,"").replace(/=([^="'>\ s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0];}else{retu rn this.cloneNode(true);}});if(events===true){cloneCopyEvent(this,ret);cloneCopy Event(this.find("*"),ret.find("*"));} return ret;},html:function(value){if(value===undefined){return this[0]&&this[0]. nodeType===1?this[0].innerHTML.replace(rinlinejimdoGen002,""):null;}else if(type of value==="string"&&!rnocache.test(value)&&(jimdoGen002.support.leadingWhitespa ce||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1 ].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=thi s.length;i<l;i++){if(this[i].nodeType===1){jimdoGen002.cleanData(this[i].getElem entsByTagName("*"));this[i].innerHTML=value;}}}catch(e){this.empty().append(valu e);}}else if(jimdoGen002.isFunction(value)){this.each(function(i){var self=jimdo Gen002(this),old=self.html();self.empty().append(function(){return value.call(th

is,i,old);});});}else{this.empty().append(value);} return this;},replaceWith:function(value){if(this[0]&&this[0].parentNode){if(jim doGen002.isFunction(value)){return this.each(function(i){var self=jimdoGen002(th is),old=self.html();self.replaceWith(value.call(this,i,old));});} if(typeof value!=="string"){value=jimdoGen002(value).detach();} return this.each(function(){var next=this.nextSibling,parent=this.parentNode;jim doGen002(this).remove();if(next){jimdoGen002(next).before(value);}else{jimdoGen0 02(parent).append(value);}});}else{return this.pushStack(jimdoGen002(jimdoGen002 .isFunction(value)?value():value),"replaceWith",value);}},detach:function(select or){return this.remove(selector,true);},domManip:function(args,table,callback){v ar results,first,value=args[0],scripts=[],fragment,parent;if(!jimdoGen002.suppor t.checkClone&&arguments.length===3&&typeof value==="string"&&rchecked.test(value )){return this.each(function(){jimdoGen002(this).domManip(args,table,callback,tr ue);});} if(jimdoGen002.isFunction(value)){return this.each(function(i){var self=jimdoGen 002(this);args[0]=value.call(this,i,table?self.html():undefined);self.domManip(a rgs,table,callback);});} if(this[0]){parent=value&&value.parentNode;if(jimdoGen002.support.parentNode&&pa rent&&parent.nodeType===11&&parent.childNodes.length===this.length){results={fra gment:parent};}else{results=buildFragment(args,this,scripts);} fragment=results.fragment;if(fragment.childNodes.length===1){first=fragment=frag ment.firstChild;}else{first=fragment.firstChild;} if(first){table=table&&jimdoGen002.nodeName(first,"tr");for(var i=0,l=this.lengt h;i<l;i++){callback.call(table?root(this[i],first):this[i],i>0||results.cacheabl e||this.length>1?fragment.cloneNode(true):fragment);}} if(scripts.length){jimdoGen002.each(scripts,evalScript);}} return this;function root(elem,cur){return jimdoGen002.nodeName(elem,"table")?(e lem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.create Element("tbody"))):elem;}}});function cloneCopyEvent(orig,ret){var i=0;ret.each( function(){if(this.nodeName!==(orig[i]&&orig[i].nodeName)){return;} var oldData=jimdoGen002.data(orig[i++]),curData=jimdoGen002.data(this,oldData),e vents=oldData&&oldData.events;if(events){delete curData.handle;curData.events={} ;for(var type in events){for(var handler in events[type]){jimdoGen002.event.add( this,type,events[type][handler],events[type][handler].data);}}}});} function buildFragment(args,nodes,scripts){var fragment,cacheable,cacheresults,d oc=(nodes&&nodes[0]?nodes[0].ownerDocument||nodes[0]:document);if(args.length=== 1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&!rnocache.test (args[0])&&(jimdoGen002.support.checkClone||!rchecked.test(args[0]))){cacheable= true;cacheresults=jimdoGen002.fragments[args[0]];if(cacheresults){if(cacheresult s!==1){fragment=cacheresults;}}} if(!fragment){fragment=doc.createDocumentFragment();jimdoGen002.clean(args,doc,f ragment,scripts);} if(cacheable){jimdoGen002.fragments[args[0]]=cacheresults?fragment:1;} return{fragment:fragment,cacheable:cacheable};} jimdoGen002.fragments={};jimdoGen002.each({appendTo:"append",prependTo:"prepend" ,insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(na me,original){jimdoGen002.fn[name]=function(selector){var ret=[],insert=jimdoGen0 02(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeTy pe===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[ 0]);return this;}else{for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.c lone(true):this).get();jimdoGen002.fn[original].apply(jimdoGen002(insert[i]),ele ms);ret=ret.concat(elems);} return this.pushStack(ret,name,insert.selector);}};});jimdoGen002.extend({clean: function(elems,context,fragment,scripts){context=context||document;if(typeof con text.createElement==="undefined"){context=context.ownerDocument||context[0]&&con text[0].ownerDocument||document;} var ret=[];for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number" ){elem+="";} if(!elem){continue;} if(typeof elem==="string"&&!rhtml.test(elem)){elem=context.createTextNode(elem);

}else if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var tag= (rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._defa ult,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wr ap[2];while(depth--){div=div.lastChild;} if(!jimdoGen002.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table" &&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]==="<table>"&&!hasBo dy?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jimdoGen002.nodeName( tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild( tbody[j]);}}} if(!jimdoGen002.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.in sertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChi ld);} elem=div.childNodes;} if(elem.nodeType){ret.push(elem);}else{ret=jimdoGen002.merge(ret,elem);}} if(fragment){for(var i=0;ret[i];i++){if(scripts&&jimdoGen002.nodeName(ret[i],"sc ript")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.p ush(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret [i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jimdoGen002.makeArray(ret[ i].getElementsByTagName("script"))));} fragment.appendChild(ret[i]);}}} return ret;},cleanData:function(elems){var data,id,cache=jimdoGen002.cache,speci al=jimdoGen002.event.special,deleteExpando=jimdoGen002.support.deleteExpando;for (var i=0,elem;(elem=elems[i])!=null;i++){id=elem[jimdoGen002.expando];if(id){dat a=cache[id];if(data.events){for(var type in data.events){if(special[type]){jimdo Gen002.event.remove(elem,type);}else{removeEvent(elem,type,data.handle);}}} if(deleteExpando){delete elem[jimdoGen002.expando];}else if(elem.removeAttribute ){elem.removeAttribute(jimdoGen002.expando);} delete cache[id];}}}});var rexclude=/z-?index|font-?weight|opacity|zoom|line-?he ight/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashA lpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssSho w={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Ri ght"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document .defaultView.getComputedStyle,styleFloat=jimdoGen002.support.cssFloat?"cssFloat" :"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase();};jimd oGen002.fn.css=function(name,value){return access(this,name,value,true,function( elem,name,value){if(value===undefined){return jimdoGen002.curCSS(elem,name);} if(typeof value==="number"&&!rexclude.test(name)){value+="px";} jimdoGen002.style(elem,name,value);});};jimdoGen002.extend({style:function(elem, name,value){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;} if((name==="width"||name==="height")&&parseFloat(value)<0){value=undefined;} var style=elem.style||elem,set=value!==undefined;if(!jimdoGen002.support.opacity &&name==="opacity"){if(set){style.zoom=1;var opacity=parseInt(value,10)+""==="Na N"?"":"alpha(opacity="+value*100+")";var filter=style.filter||jimdoGen002.curCSS (elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opaci ty):opacity;} return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.ex ec(style.filter)[1])/100)+"":"";} if(rfloat.test(name)){name=styleFloat;} name=name.replace(rdashAlpha,fcamelCase);if(set){style[name]=value;} return style[name];},css:function(elem,name,force,extra){if(name==="width"||name ==="height"){var val,props=cssShow,which=name==="width"?cssWidth:cssHeight;funct ion getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="bo rder"){return;} jimdoGen002.each(which,function(){if(!extra){val-=parseFloat(jimdoGen002.curCSS( elem,"padding"+this,true))||0;} if(extra==="margin"){val+=parseFloat(jimdoGen002.curCSS(elem,"margin"+this,true) )||0;}else{val-=parseFloat(jimdoGen002.curCSS(elem,"border"+this+"Width",true))| |0;}});} if(elem.offsetWidth!==0){getWH();}else{jimdoGen002.swap(elem,props,getWH);} return Math.max(0,Math.round(val));}

return jimdoGen002.curCSS(elem,name,force);},curCSS:function(elem,name,force){va r ret,style=elem.style,filter;if(!jimdoGen002.support.opacity&&name==="opacity"& &elem.currentStyle){ret=ropacity.test(elem.currentStyle.filter||"")?(parseFloat( RegExp.$1)/100)+"":"";return ret===""?"1":ret;} if(rfloat.test(name)){name=styleFloat;} if(!force&&style&&style[name]){ret=style[name];}else if(getComputedStyle){if(rfl oat.test(name)){name="float";} name=name.replace(rupper,"-$1").toLowerCase();var defaultView=elem.ownerDocument .defaultView;if(!defaultView){return null;} var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle){ret= computedStyle.getPropertyValue(name);} if(name==="opacity"&&ret===""){ret="1";}}else if(elem.currentStyle){var camelCas e=name.replace(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentS tyle[camelCase];if(!rnumpx.test(ret)&&rnum.test(ret)){var left=style.left,rsLeft =elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left =camelCase==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";style.left=left; elem.runtimeStyle.left=rsLeft;}} return ret;},swap:function(elem,options,callback){var old={};for(var name in opt ions){old[name]=elem.style[name];elem.style[name]=options[name];} callback.call(elem);for(var name in options){elem.style[name]=old[name];}}});if( jimdoGen002.expr&&jimdoGen002.expr.filters){jimdoGen002.expr.filters.hidden=func tion(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeNam e.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height> 0&&!skip?false:jimdoGen002.curCSS(elem,"display")==="none";};jimdoGen002.expr.fi lters.visible=function(elem){return!jimdoGen002.expr.filters.hidden(elem);};} var jsc=now(),rscript=/<script(.|\s)*?\/script>/gi,rselectTextarea=/select|texta rea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|searc h|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,ru rl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=jimdoGen002.fn.load;jimdoGen002.fn. extend({load:function(url,params,callback){if(typeof url!=="string"){return _loa d.call(this,url);}else if(!this.length){return this;} var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=u rl.slice(0,off);} var type="GET";if(params){if(jimdoGen002.isFunction(params)){callback=params;par ams=null;}else if(typeof params==="object"){params=jimdoGen002.param(params,jimd oGen002.ajaxSettings.traditional);type="POST";}} var self=this;jimdoGen002.ajax({url:url,type:type,dataType:"html",data:params,co mplete:function(res,status){if(status==="success"||status==="notmodified"){self. html(selector?jimdoGen002("<div />").append(res.responseText.replace(rscript,"") ).find(selector):res.responseText);} if(callback){self.each(callback,[res.responseText,status,res]);}}});return this; },serialize:function(){return jimdoGen002.param(this.serializeArray());},seriali zeArray:function(){return this.map(function(){return this.elements?jimdoGen002.m akeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabl ed&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type)); }).map(function(i,elem){var val=jimdoGen002(this).val();return val==null?null:ji mdoGen002.isArray(val)?jimdoGen002.map(val,function(val,i){return{name:elem.name ,value:val};}):{name:elem.name,value:val};}).get();}});jimdoGen002.each("ajaxSta rt ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o ){jimdoGen002.fn[o]=function(f){return this.bind(o,f);};});jimdoGen002.extend({g et:function(url,data,callback,type){if(jimdoGen002.isFunction(data)){type=type|| callback;callback=data;data=null;} return jimdoGen002.ajax({type:"GET",url:url,data:data,success:callback,dataType: type});},getScript:function(url,callback){return jimdoGen002.get(url,null,callba ck,"script");},getJSON:function(url,data,callback){return jimdoGen002.get(url,da ta,callback,"json");},post:function(url,data,callback,type){if(jimdoGen002.isFun ction(data)){type=type||callback;callback=data;data={};} return jimdoGen002.ajax({type:"POST",url:url,data:data,success:callback,dataType :type});},ajaxSetup:function(settings){jimdoGen002.extend(jimdoGen002.ajaxSettin gs,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentTyp

e:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XML HttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?functio n(){return new window.XMLHttpRequest();}:function(){try{return new window.Active XObject("Microsoft.XMLHTTP");}catch(e){}},accepts:{xml:"application/xml, text/xm l",html:"text/html",script:"text/javascript, application/javascript",json:"appli cation/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{} ,etag:{},ajax:function(origSettings){var s=jimdoGen002.extend(true,{},jimdoGen00 2.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings& &origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typ eof s.data!=="string"){s.data=jimdoGen002.param(s.data,s.traditional);} if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.t est(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else if(!s.data||!jsre.test(s.d ata)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";} s.dataType="json";} if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.j sonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jso np+"$1");} s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=windo w[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;tr y{delete window[jsonp];}catch(e){} if(head){head.removeChild(script);}};} if(s.dataType==="script"&&s.cache===null){s.cache=false;} if(s.cache===false&&type==="GET"){var ts=now();var ret=s.url.replace(rts,"$1_="+ ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");} if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;} if(s.global&&!jimdoGen002.active++){jimdoGen002.event.trigger("ajaxStart");} var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol ||parts[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;var scri pt=document.createElement("script");script.src=s.url;if(s.scriptCharset){script. charset=s.scriptCharset;} if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if( !done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complet e")){done=true;success();complete();script.onload=script.onreadystatechange=null ;if(head&&script.parentNode){head.removeChild(script);}}};} head.insertBefore(script,head.firstChild);return undefined;} var requestDone=false;var xhr=s.xhr();if(!xhr){return;} if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open (type,s.url,s.async);} try{if(s.data||origSettings&&origSettings.contentType){xhr.setRequestHeader("Con tent-Type",s.contentType);} if(s.ifModified){if(jimdoGen002.lastModified[s.url]){xhr.setRequestHeader("If-Mo dified-Since",jimdoGen002.lastModified[s.url]);} if(jimdoGen002.etag[s.url]){xhr.setRequestHeader("If-None-Match",jimdoGen002.eta g[s.url]);}} if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");} xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.data Type]+", */*":s.accepts._default);}catch(e){} if(s.beforeSend&&s.beforeSend.call(callbackContext,xhr,s)===false){if(s.global&& !--jimdoGen002.active){jimdoGen002.event.trigger("ajaxStop");} xhr.abort();return false;} if(s.global){trigger("ajaxSend",[xhr,s]);} var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.r eadyState===0||isTimeout==="abort"){if(!requestDone){complete();} requestDone=true;if(xhr){xhr.onreadystatechange=jimdoGen002.noop;}}else if(!requ estDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr. onreadystatechange=jimdoGen002.noop;status=isTimeout==="timeout"?"timeout":!jimd oGen002.httpSuccess(xhr)?"error":s.ifModified&&jimdoGen002.httpNotModified(xhr,s .url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jimdoGe n002.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}}

if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{jimdo Gen002.handleError(s,xhr,status,errMsg);} complete();if(isTimeout==="timeout"){xhr.abort();} if(s.async){xhr=null;}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr) {oldAbort.call(xhr);} onreadystatechange("abort");};}catch(e){} if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystat echange("timeout");}},s.timeout);} try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null);}catch(e) {jimdoGen002.handleError(s,xhr,null,e);complete();} if(!s.async){onreadystatechange();} function success(){if(s.success){s.success.call(callbackContext,data,status,xhr) ;} if(s.global){trigger("ajaxSuccess",[xhr,s]);}} function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status);} if(s.global){trigger("ajaxComplete",[xhr,s]);} if(s.global&&!--jimdoGen002.active){jimdoGen002.event.trigger("ajaxStop");}} function trigger(type,args){(s.context?jimdoGen002(s.context):jimdoGen002.event) .trigger(type,args);} return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.con text||s,xhr,status,e);} if(s.global){(s.context?jimdoGen002(s.context):jimdoGen002.event).trigger("ajaxE rror",[xhr,s,e]);}},active:0,httpSuccess:function(xhr){try{return!xhr.status&&lo cation.protocol==="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status===304|| xhr.status===1223||xhr.status===0;}catch(e){} return false;},httpNotModified:function(xhr,url){var lastModified=xhr.getRespons eHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jim doGen002.lastModified[url]=lastModified;} if(etag){jimdoGen002.etag[url]=etag;} return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=x hr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xm l")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.no deName==="parsererror"){jimdoGen002.error("parsererror");} if(s&&s.dataFilter){data=s.dataFilter(data,type);} if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data= jimdoGen002.parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascr ipt")>=0){jimdoGen002.globalEval(data);}} return data;},param:function(a,traditional){var s=[];if(traditional===undefined) {traditional=jimdoGen002.ajaxSettings.traditional;} if(jimdoGen002.isArray(a)||a.jquery){jimdoGen002.each(a,function(){add(this.name ,this.value);});}else{for(var prefix in a){buildParams(prefix,a[prefix]);}} return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(jimdoGen 002.isArray(obj)){jimdoGen002.each(obj,function(i,v){if(traditional||/\[\]$/.tes t(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||jimd oGen002.isArray(v)?i:"")+"]",v);}});}else if(!traditional&&obj!=null&&typeof obj ==="object"){jimdoGen002.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v); });}else{add(prefix,obj);}} function add(key,value){value=jimdoGen002.isFunction(value)?value():value;s[s.le ngth]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});var elemdisplay ={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttr s=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width"," marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];jimdoGen002 .fn.extend({show:function(speed,callback){if(speed||speed===0){return this.anima te(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jimdoGen002.data(this[i],"olddisplay");this[i].style.display=old||"";if(jimd oGen002.css(this[i],"display")==="none"){var nodeName=this[i].nodeName,display;i f(elemdisplay[nodeName]){display=elemdisplay[nodeName];}else{var elem=jimdoGen00 2("<"+nodeName+" />").appendTo("body");display=elem.css("display");if(display=== "none"){display="block";} elem.remove();elemdisplay[nodeName]=display;}

jimdoGen002.data(this[i],"olddisplay",display);}} for(var j=0,k=this.length;j<k;j++){this[j].style.display=jimdoGen002.data(this[j ],"olddisplay")||"";} return this;}},hide:function(speed,callback){if(speed||speed===0){return this.an imate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){v ar old=jimdoGen002.data(this[i],"olddisplay");if(!old&&old!=="none"){jimdoGen002 .data(this[i],"olddisplay",jimdoGen002.css(this[i],"display"));}} for(var j=0,k=this.length;j<k;j++){this[j].style.display="none";} return this;}},_toggle:jimdoGen002.fn.toggle,toggle:function(fn,fn2){var bool=ty peof fn==="boolean";if(jimdoGen002.isFunction(fn)&&jimdoGen002.isFunction(fn2)){ this._toggle.apply(this,arguments);}else if(fn==null||bool){this.each(function() {var state=bool?fn:jimdoGen002(this).is(":hidden");jimdoGen002(this)[state?"show ":"hide"]();});}else{this.animate(genFx("toggle",3),fn,fn2);} return this;},fadeTo:function(speed,to,callback){return this.filter(":hidden").c ss("opacity",0).show().end().animate({opacity:to},speed,callback);},animate:func tion(prop,speed,easing,callback){var optall=jimdoGen002.speed(speed,easing,callb ack);if(jimdoGen002.isEmptyObject(prop)){return this.each(optall.complete);} return this[optall.queue===false?"each":"queue"](function(){var opt=jimdoGen002. extend({},optall),p,hidden=this.nodeType===1&&jimdoGen002(this).is(":hidden"),se lf=this;for(p in prop){var name=p.replace(rdashAlpha,fcamelCase);if(p!==name){pr op[name]=prop[p];delete prop[p];p=name;} if(prop[p]==="hide"&&hidden||prop[p]==="show"&&!hidden){return opt.complete.call (this);} if((p==="height"||p==="width")&&this.style){opt.display=jimdoGen002.css(this,"di splay");opt.overflow=this.style.overflow;} if(jimdoGen002.isArray(prop[p])){(opt.specialEasing=opt.specialEasing||{})[p]=pr op[p][1];prop[p]=prop[p][0];}} if(opt.overflow!=null){this.style.overflow="hidden";} opt.curAnim=jimdoGen002.extend({},prop);jimdoGen002.each(prop,function(name,val) {var e=new jimdoGen002.fx(self,opt,name);if(rfxtypes.test(val)){e[val==="toggle" ?hidden?"show":"hide":val](prop);}else{var parts=rfxnum.exec(val),start=e.cur(tr ue)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!=="px" ){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[n ame]=start+unit;} if(parts[1]){end=((parts[1]==="-="?-1:1)*end)+start;} e.custom(start,end,unit);}else{e.custom(start,val,"");}}});return true;});},stop :function(clearQueue,gotoEnd){var timers=jimdoGen002.timers;if(clearQueue){this. queue([]);} this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem===thi s){if(gotoEnd){timers[i](true);} timers.splice(i,1);}}});if(!gotoEnd){this.dequeue();} return this;}});jimdoGen002.each({slideDown:genFx("show",1),slideUp:genFx("hide" ,1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide "}},function(name,props){jimdoGen002.fn[name]=function(speed,callback){return th is.animate(props,speed,callback);};});jimdoGen002.extend({speed:function(speed,e asing,fn){var opt=speed&&typeof speed==="object"?speed:{complete:fn||!fn&&easing ||jimdoGen002.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing& &!jimdoGen002.isFunction(easing)&&easing};opt.duration=jimdoGen002.fx.off?0:type of opt.duration==="number"?opt.duration:jimdoGen002.fx.speeds[opt.duration]||jim doGen002.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt. queue!==false){jimdoGen002(this).dequeue();} if(jimdoGen002.isFunction(opt.old)){opt.old.call(this);}};return opt;},easing:{l inear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,fi rstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx: function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;i f(!options.orig){options.orig={};}}});jimdoGen002.fx.prototype={update:function( ){if(this.options.step){this.options.step.call(this.elem,this.now,this);} (jimdoGen002.fx.step[this.prop]||jimdoGen002.fx.step._default)(this);if((this.pr op==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="b lock";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||t

his.elem.style[this.prop]==null)){return this.elem[this.prop];} var r=parseFloat(jimdoGen002.css(this.elem,this.prop,force));return r&&r>-10000? r:parseFloat(jimdoGen002.curCSS(this.elem,this.prop))||0;},custom:function(from, to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.u nit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(got oEnd){return self.step(gotoEnd);} t.elem=this.elem;if(t()&&jimdoGen002.timers.push(t)&&!timerId){timerId=setInterv al(jimdoGen002.fx.tick,13);}},show:function(){this.options.orig[this.prop]=jimdo Gen002.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop== ="width"||this.prop==="height"?1:0,this.cur());jimdoGen002(this.elem).show();},h ide:function(){this.options.orig[this.prop]=jimdoGen002.style(this.elem,this.pro p);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now(),done=true;if(gotoEnd||t>=this.options.duration+this.startTime){this.now =this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=tr ue;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=fa lse;}} if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.ov erflow;var old=jimdoGen002.data(this.elem,"olddisplay");this.elem.style.display= old?old:this.options.display;if(jimdoGen002.css(this.elem,"display")==="none"){t his.elem.style.display="block";}} if(this.options.hide){jimdoGen002(this.elem).hide();} if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jimd oGen002.style(this.elem,p,this.options.orig[p]);}} this.options.complete.call(this.elem);} return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;var specialEasing=this.options.specialEasing&&this.options.specialEasing[this.prop] ;var defaultEasing=this.options.easing||(jimdoGen002.easing.swing?"swing":"linea r");this.pos=jimdoGen002.easing[specialEasing||defaultEasing](this.state,n,0,1,t his.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this. update();} return true;}};jimdoGen002.extend(jimdoGen002.fx,{tick:function(){var timers=jim doGen002.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice( i--,1);}} if(!timers.length){jimdoGen002.fx.stop();}},stop:function(){clearInterval(timerI d);timerId=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function (fx){jimdoGen002.style(fx.elem,"opacity",fx.now);},_default:function(fx){if(fx.e lem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=(fx.prop==="widt h"||fx.prop==="height"?Math.max(0,fx.now):fx.now)+fx.unit;}else{fx.elem[fx.prop] =fx.now;}}}});if(jimdoGen002.expr&&jimdoGen002.expr.filters){jimdoGen002.expr.fi lters.animated=function(elem){return jimdoGen002.grep(jimdoGen002.timers,functio n(fn){return elem===fn.elem;}).length;};} function genFx(type,num){var obj={};jimdoGen002.each(fxAttrs.concat.apply([],fxA ttrs.slice(0,num)),function(){obj[this]=type;});return obj;} if("getBoundingClientRect"in document.documentElement){jimdoGen002.fn.offset=fun ction(options){var elem=this[0];if(options){return this.each(function(i){jimdoGe n002.offset.setOffset(this,options,i);});} if(!elem||!elem.ownerDocument){return null;} if(elem===elem.ownerDocument.body){return jimdoGen002.offset.bodyOffset(elem);} var box=elem.getBoundingClientRect(),doc=elem.ownerDocument,body=doc.body,docEle m=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft= docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jimdoGen00 2.support.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+( self.pageXOffset||jimdoGen002.support.boxModel&&docElem.scrollLeft||body.scrollL eft)-clientLeft;return{top:top,left:left};};}else{jimdoGen002.fn.offset=function (options){var elem=this[0];if(options){return this.each(function(i){jimdoGen002. offset.setOffset(this,options,i);});} if(!elem||!elem.ownerDocument){return null;} if(elem===elem.ownerDocument.body){return jimdoGen002.offset.bodyOffset(elem);} jimdoGen002.offset.initialize();var offsetParent=elem.offsetParent,prevOffsetPar ent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=d

oc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView?defaultView.ge tComputedStyle(elem,null):elem.currentStyle,top=elem.offsetTop,left=elem.offsetL eft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){if(jimdoGen002.of fset.supportsFixedPosition&&prevComputedStyle.position==="fixed"){break;} computedStyle=defaultView?defaultView.getComputedStyle(elem,null):elem.currentSt yle;top-=elem.scrollTop;left-=elem.scrollLeft;if(elem===offsetParent){top+=elem. offsetTop;left+=elem.offsetLeft;if(jimdoGen002.offset.doesNotAddBorder&&!(jimdoG en002.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.nodeName) )){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloat(computedSty le.borderLeftWidth)||0;} prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;} if(jimdoGen002.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overfl ow!=="visible"){top+=parseFloat(computedStyle.borderTopWidth)||0;left+=parseFloa t(computedStyle.borderLeftWidth)||0;} prevComputedStyle=computedStyle;} if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static "){top+=body.offsetTop;left+=body.offsetLeft;} if(jimdoGen002.offset.supportsFixedPosition&&prevComputedStyle.position==="fixed "){top+=Math.max(docElem.scrollTop,body.scrollTop);left+=Math.max(docElem.scroll Left,body.scrollLeft);} return{top:top,left:left};};} jimdoGen002.offset={initialize:function(){var body=document.body,container=docum ent.createElement("div"),innerDiv,checkDiv,table,td,bodyMarginTop=parseFloat(jim doGen002.curCSS(body,"marginTop",true))||0,html="<div style='position:absolute;t op: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 so lid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><t d></td></tr></table>";jimdoGen002.extend(container.style,{position:"absolute",to p:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});cont ainer.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=conta iner.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild. firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForT ableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.t op="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTo p===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="h idden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisi ble=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offset Top!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDi v=table=td=null;jimdoGen002.offset.initialize=jimdoGen002.noop;},bodyOffset:func tion(body){var top=body.offsetTop,left=body.offsetLeft;jimdoGen002.offset.initia lize();if(jimdoGen002.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(j imdoGen002.curCSS(body,"marginTop",true))||0;left+=parseFloat(jimdoGen002.curCSS (body,"marginLeft",true))||0;} return{top:top,left:left};},setOffset:function(elem,options,i){if(/static/.test( jimdoGen002.curCSS(elem,"position"))){elem.style.position="relative";} var curElem=jimdoGen002(elem),curOffset=curElem.offset(),curTop=parseInt(jimdoGe n002.curCSS(elem,"top",true),10)||0,curLeft=parseInt(jimdoGen002.curCSS(elem,"le ft",true),10)||0;if(jimdoGen002.isFunction(options)){options=options.call(elem,i ,curOffset);} var props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.l eft)+curLeft};if("using"in options){options.using.call(elem,props);}else{curElem .css(props);}}};jimdoGen002.fn.extend({position:function(){if(!this[0]){return n ull;} var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOff set=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.of fset();offset.top-=parseFloat(jimdoGen002.curCSS(elem,"marginTop",true))||0;offs et.left-=parseFloat(jimdoGen002.curCSS(elem,"marginLeft",true))||0;parentOffset. top+=parseFloat(jimdoGen002.curCSS(offsetParent[0],"borderTopWidth",true))||0;pa rentOffset.left+=parseFloat(jimdoGen002.curCSS(offsetParent[0],"borderLeftWidth" ,true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.

left};},offsetParent:function(){return this.map(function(){var offsetParent=this .offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetPar ent.nodeName)&&jimdoGen002.css(offsetParent,"position")==="static")){offsetParen t=offsetParent.offsetParent;} return offsetParent;});}});jimdoGen002.each(["Left","Top"],function(i,name){var method="scroll"+name;jimdoGen002.fn[method]=function(val){var elem=this[0],win;i f(!elem){return null;} if(val!==undefined){return this.each(function(){win=getWindow(this);if(win){win. scrollTo(!i?val:jimdoGen002(win).scrollLeft(),i?val:jimdoGen002(win).scrollTop() );}else{this[method]=val;}});}else{win=getWindow(elem);return win?("pageXOffset" in win)?win[i?"pageYOffset":"pageXOffset"]:jimdoGen002.support.boxModel&&win.doc ument.documentElement[method]||win.document.body[method]:elem[method];}};});func tion getWindow(elem){return("scrollTo"in elem&&elem.document)?elem:elem.nodeType ===9?elem.defaultView||elem.parentWindow:false;} jimdoGen002.each(["Height","Width"],function(i,name){var type=name.toLowerCase() ;jimdoGen002.fn["inner"+name]=function(){return this[0]?jimdoGen002.css(this[0], type,false,"padding"):null;};jimdoGen002.fn["outer"+name]=function(margin){retur n this[0]?jimdoGen002.css(this[0],type,false,margin?"margin":"border"):null;};ji mdoGen002.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?n ull:this;} if(jimdoGen002.isFunction(size)){return this.each(function(i){var self=jimdoGen0 02(this);self[type](size.call(this,i,self[type]()));});} return("scrollTo"in elem&&elem.document&&!elem.parentNode)?elem.document.compatM ode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document. body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+n ame],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["off set"+name],elem.documentElement["offset"+name]):size===undefined?jimdoGen002.css (elem,type):this.css(type,typeof size==="string"?size:size+"px");};});window.jim doGen002=window.$=jimdoGen002;})(window);;this.Class=(function(slice,noop,undefi ned){function Class(_class){function instantiate(){var args=slice.call(arguments ,0),inst;for(var i=0;i<_class.classes.length;++i){if(inst){noop.prototype=inst;i ==1&&args.unshift(undefined);args[0]=new noop;inst=new noop;}else{inst={};};_cla ss.classes[i].apply(inst,args);};typeof inst.init=='function'&&inst.init();retur n inst;};instantiate.extend=function extend(subclass){var instantiate=Class(subc lass);subclass.classes.unshift.apply(subclass.classes,_class.classes);return ins tantiate;};_class.classes=[_class];return instantiate;};return Class;})(Array.pr ototype.slice,function(){});;var Mustache=function(){var Renderer=function(){};R enderer.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented: {"IMPLICIT-ITERATOR":true},context:{},render:function(template,context,partials, in_recursion){if(!in_recursion){this.context=context;this.buffer=[];} if(!this.includes("",template)){if(in_recursion){return template;}else{this.send (template);return;}} template=this.render_pragmas(template);var html=this.render_section(template,con text,partials);if(in_recursion){return this.render_tags(html,context,partials,in _recursion);} this.render_tags(html,context,partials,in_recursion);},send:function(line){if(li ne!=""){this.buffer.push(line);}},render_pragmas:function(template){if(!this.inc ludes("%",template)){return template;} var that=this;var regex=new RegExp(this.otag+"%([\\w-]+) ?([\\w]+=[\\w]+)?"+ this.ctag);return template.replace(regex,function(match,pragma,options){if(!that .pragmas_implemented[pragma]){throw({message:"This implementation of mustache do esn't understand the '"+ pragma+"' pragma"});} that.pragmas[pragma]={};if(options){var opts=options.split("=");that.pragmas[pra gma][opts[0]]=opts[1];} return"";});},render_partial:function(name,context,partials){name=this.trim(name );if(!partials||partials[name]===undefined){throw({message:"unknown_partial '"+n ame+"'"});} if(typeof(context[name])!="object"){return this.render(partials[name],context,pa rtials,true);}

return this.render(partials[name],context[name],partials,true);},render_section: function(template,context,partials){if(!this.includes("#",template)&&!this.inclu des("^",template)){return template;} var that=this;var regex=new RegExp(this.otag+"(\\^|\\#)\\s*(.+)\\s*"+this.ctag+" \n*([\\s\\S]+?)"+this.otag+"\\/\\s*\\2\\s*"+this.ctag+"\\s*","mg");return templa te.replace(regex,function(match,type,name,content){var value=that.find(name,cont ext);if(type=="^"){if(!value||that.is_array(value)&&value.length===0){return tha t.render(content,context,partials,true);}else{return"";}}else if(type=="#"){if(t hat.is_array(value)){return that.map(value,function(row){return that.render(cont ent,that.create_context(row),partials,true);}).join("");}else if(that.is_object( value)){return that.render(content,that.create_context(value),partials,true);}el se if(typeof value==="function"){return value.call(context,content,function(text ){return that.render(text,context,partials,true);});}else if(value){return that. render(content,context,partials,true);}else{return"";}}});},render_tags:function (template,context,partials,in_recursion){var that=this;var new_regex=function(){ return new RegExp(that.otag+"(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?"+ that.ctag+"+","g");};var regex=new_regex();var tag_replace_callback=function(mat ch,operator,name){switch(operator){case"!":return"";case"=":that.set_delimiters( name);regex=new_regex();return"";case">":return that.render_partial(name,context ,partials);case"{":return that.find(name,context);default:return that.escape(tha t.find(name,context));}};var lines=template.split("\n");for(var i=0;i<lines.leng th;i++){lines[i]=lines[i].replace(regex,tag_replace_callback,this);if(!in_recurs ion){this.send(lines[i]);}} if(in_recursion){return lines.join("\n");}},set_delimiters:function(delimiters){ var dels=delimiters.split(" ");this.otag=this.escape_regex(dels[0]);this.ctag=th is.escape_regex(dels[1]);},escape_regex:function(text){if(!arguments.callee.sRE) {var specials=['/','.','*','+','?','|','(',')','[',']','{','}','\\'];arguments.c allee.sRE=new RegExp('(\\'+specials.join('|\\')+')','g');} return text.replace(arguments.callee.sRE,'\\$1');},find:function(name,context){n ame=this.trim(name);function is_kinda_truthy(bool){return bool===false||bool===0 ||bool;} var value;if(is_kinda_truthy(context[name])){value=context[name];}else if(is_kin da_truthy(this.context[name])){value=this.context[name];} if(typeof value==="function"){return value.apply(context);} if(value!==undefined){return value;} return"";},includes:function(needle,haystack){return haystack.indexOf(this.otag+ needle)!=-1;},escape:function(s){s=String(s===null?"":s);return s.replace(/&(?!\ w+;)|["'<>\\]/g,function(s){switch(s){case"&":return"&amp;";case"\\":return"\\\\ ";case'"':return'&quot;';case"'":return'&#39;';case"<":return"&lt;";case">":retu rn"&gt;";default:return s;}});},create_context:function(_context){if(this.is_obj ect(_context)){return _context;}else{var iterator=".";if(this.pragmas["IMPLICITITERATOR"]){iterator=this.pragmas["IMPLICIT-ITERATOR"].iterator;} var ctx={};ctx[iterator]=_context;return ctx;}},is_object:function(a){return a&& typeof a=="object";},is_array:function(a){return Object.prototype.toString.call( a)==='[object Array]';},trim:function(s){return s.replace(/^\s*|\s*$/g,"");},map :function(array,fn){if(typeof array.map=="function"){return array.map(fn);}else{ var r=[];var l=array.length;for(var i=0;i<l;i++){r.push(fn(array[i]));} return r;}}};return({name:"mustache.js",version:"0.3.1-dev",to_html:function(tem plate,view,partials,send_fun){var renderer=new Renderer();if(send_fun){renderer. send=send_fun;} renderer.render(template,view,partials);if(!send_fun){return renderer.buffer.joi n("\n");}}});}();;if(typeof sessionStorage==="undefined")(function(window){var top=window;try{while(top!==top.top) top=top.top;}catch(e){};var RC4=(function(fromCharCode,random){return{decode:fun ction(key,data){return this.encode(key,data);},encode:function(key,data){for(var length=key.length,len=data.length,decode=[],a=[],i=0,j=0,k=0,l=0,$;i<256;++i)a[i ]=i;for(i=0;i<256;++i){j=(j+($=a[i])+key.charCodeAt(i%length))%256;a[i]=a[j];a[j ]=$;};for(j=0;k<len;++k){i=k%256;j=(j+($=a[i]))%256;length=a[i]=a[j];a[j]=$;deco de[l++]=fromCharCode(data.charCodeAt(k)^a[(length+$)%256]);};return decode.join( "");},key:function(length){for(var i=0,key=[];i<length;++i)

key[i]=fromCharCode(1+((random()*255)<<0));return key.join("");}}})(window.Strin g.fromCharCode,window.Math.random);var LSS=(function(window){function LSS(_stora ge,_key,_data){this._i=(this._data=_data||"").length;if(this._key=_key) this._storage=_storage;else{this._storage={_key:_storage||""};this._key="_key";} ;};LSS.prototype.c=String.fromCharCode(1);LSS.prototype._c=".";LSS.prototype.cle ar=function(){this._storage[this._key]=this._data;};LSS.prototype.del=function(k ey){var data=this.get(key);if(data!==null) this._storage[this._key]=this._storage[this._key].replace(escape.call(this,key,d ata),"");};LSS.prototype.escape=window.escape;LSS.prototype.get=function(key){va r _storage=this._storage[this._key],c=this.c,i=_storage.indexOf(key=c.concat(thi s._c,this.escape(key),c,c),this._i),data=null;if(-1<i){i=_storage.indexOf(c,i+ke y.length-1)+1;data=_storage.substring(i,i=_storage.indexOf(c,i));data=this.unesc ape(_storage.substr(++i,data));};return data;};LSS.prototype.key=function(){var _storage=this._storage[this._key],c=this.c,_c=c+this._c,i=this._i,data=[],length =0,l=0;while(-1<(i=_storage.indexOf(_c,i))){data[l++]=this.unescape(_storage.sub string(i+=2,length=_storage.indexOf(c,i)));i=_storage.indexOf(c,length)+2;length =_storage.indexOf(c,i);i=1+length+1*_storage.substring(i,length);};return data;} ;LSS.prototype.set=function(key,data){this.del(key);this._storage[this._key]+=es cape.call(this,key,data);};LSS.prototype.unescape=window.unescape;function escap e(key,data){var c=this.c;return c.concat(this._c,this.escape(key),c,c,(data=this .escape(data)).length,c,data);};return LSS;})(window);if(Object.prototype.toStri ng.call(window.opera)==="[object Opera]"){history.navigationMode="compatible";LS S.prototype.escape=window.encodeURIComponent;LSS.prototype.unescape=window.decod eURIComponent;};function sessionStorage(){function clear(){document.cookie=["ses sionStorage="+window.encodeURIComponent($key=RC4.key(128)),"path=/"].join('; '); domain=RC4.encode($key,domain);LSS=new LSS(top,"name",top.name);};var name=top.name,document=top.document,cookie=/\bsessionStorage\b=([^;]+)(;|$)/,dat a=cookie.exec(document.cookie),i;if(data){$key=window.decodeURIComponent(data[1] );domain=RC4.encode($key,domain);LSS=new LSS(top,"name");for(var key=LSS.key(),i =0,length=key.length,$cache={};i<length;++i){if((data=key[i]).indexOf(domain)=== 0){cache.push(data);$cache[data]=LSS.get(data);LSS.del(data);};};LSS=new LSS.con structor(top,"name",top.name);if(0<(this.length=cache.length)){for(i=0,length=ca che.length,c=LSS.c,data=[];i<length;++i) data[i]=c.concat(LSS._c,LSS.escape(key=cache[i]),c,c,(key=LSS.escape($cache[key] )).length,c,key);top.name+=data.join("");};}else{clear();if(!cookie.exec(documen t.cookie)) cache=null;};};sessionStorage.prototype={length:0,key:function(index){if(typeof index!=="number"||index<0||cache.length<=index) throw"Invalid argument";return cache[index];},getItem:function(key){key=domain+k ey;if(hasOwnProperty.call($cache,key)) return $cache[key];var data=LSS.get(key);if(data!==null) data=$cache[key]=RC4.decode($key,data);return data;},setItem:function(key,data){ this.removeItem(key);key=domain+key;LSS.set(key,RC4.encode($key,$cache[key]=""+d ata));this.length=cache.push(key);},removeItem:function(key){var data=LSS.get(ke y=domain+key);if(data!==null){delete $cache[key];LSS.del(key);this.length=cache. remove(key);};},clear:function(){LSS.clear();$cache={};cache.length=0;}};var domain=top.document.domain,cache=[],$cache={},hasOwnProperty=$cache.hasOwnProper ty,$key;cache.remove=function(data){var i=this.indexOf(data);if(-1<i) this.splice(i,1);return this.length;};if(!cache.indexOf)cache.indexOf=function(d ata){for(var i=0,length=this.length;i<length;++i){if(this[i]===data) return i;};return-1;};if(top.sessionStorage){sessionStorage=function(){};session Storage.prototype=top.sessionStorage;};sessionStorage=new sessionStorage;if(cach e!==null) window.sessionStorage=sessionStorage;})(window);;(function(global,toString,undef ined){var escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b 5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={'\b':'\\b', '\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function stri ngify(data){if(data===null)return'null';switch(typeof data){case'undefined':retu rn;case'string':return'"'+quote(data)+'"';case'number':return data;case'boolean' :return data.toString();case'function':return data.toString();};var results=[],v

al,i,key;if(toString.call(data)==='[object Array]'){for(i=0;i<data.length;i++){v al=stringify(data[i]);val!==undefined&&results.push(val);} return'['+results.join(', ')+']';}else if(data.nodeType!=1){for(key in data){val =stringify(data[key]);val!==undefined&&results.push(stringify(key)+': '+val);} return'{'+results.join(', ')+'}';} return data;} function quote(str){return str.replace(escapable,function(a){return meta[a];});} global.stringify=stringify;}(this,Object.prototype.toString));;(function(){var c ache={};this.tmpl=function tmpl(str,data){var fn=!/\W/.test(str)?cache[str]=cach e[str]||tmpl(document.getElementById(str).innerHTML):new Function("obj","var p=[ ],print=function(){p.push.apply(p,arguments);};"+"with(obj){p.push('"+ str.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g," $1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join( "p.push('").split("\r").join("\\'") +"');}return p.join('');");return data?fn(data):fn;};})();;(function($,global,un defined){$.noConflict();var namespaces='jimdoData stringify Class tmpl'.split(' ');for(var i=0;i<namespaces.length;++i){if(global[namespaces[i]]){$[namespaces[i ]]=global[namespaces[i]];if(namespaces[i]!='Class'){try{delete global[namespaces [i]];}catch(e){global[namespaces[i]]=undefined;}}}}})(jimdoGen002,this);;(functi on($){var emptyObj={},classes={},instances={};$.reg=function createClass(name,_c lass){if(typeof name=='string'||$.isFunction(_class)){name=name.match(/^\s*(\w+) (\s+\w+\s+(\w+))?\s*$/);var _super=name[3];name=name[1];classes[name]=_super?cla sses[_super].extend(_class):$.Class(_class);}else $.error("Couldn't create class. \n "+$.stringify(arguments));return _class;};$.r eg.get=function getInstance(instanceName){return instances[instanceName];};$.reg .set=function setInstance(instanceName,instance){return instances[instanceName]= instance;};$.reg.del=function delInstance(instanceName){delete instances[instanc eName];};$.factory=function factory(className,params){$.isArray(params)?params.u nshift($):params=[$];return classes[className]?classes[className].apply(emptyObj ,params):$.error("Class "+className+" doesn't exist.");};$.reg.getClass=function getClass(className){return classes[className];};$.reg.delClass=function delClas s(className){return delete classes[className];};})(jimdoGen002);;var Prototype={ Version:'1.6.0.2',Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!wind ow.opera,WebKit:navigator.userAgent.indexOf('AppleWebKit/')>-1,Gecko:navigator.u serAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('KHTML')==-1,MobileSaf ari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath :!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExten sions:document.createElement('div').__proto__&&document.createElement('div').__p roto__!==document.createElement('form').__proto__},ScriptFragment:'<script[^>]*> ([\\S\\s]*?)<\/script>',JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunctio n:function(){},K:function(x){return x}};if(Prototype.Browser.MobileSafari) Prototype.BrowserFeatures.SpecificElementExtensions=false;var Class={create:func tion(){var parent=null,properties=$A(arguments);if(Object.isFunction(properties[ 0])) parent=properties.shift();function klass(){this.initialize.apply(this,arguments) ;} Object.extend(klass,Class.Methods);klass.superclass=parent;klass.subclasses=[];i f(parent){var subclass=function(){};subclass.prototype=parent.prototype;klass.pr ototype=new subclass;parent.subclasses.push(klass);} for(var i=0;i<properties.length;i++) klass.addMethods(properties[i]);if(!klass.prototype.initialize) klass.prototype.initialize=Prototype.emptyFunction;klass.prototype.constructor=k lass;return klass;}};Class.Methods={addMethods:function(source){var ancestor=thi s.superclass&&this.superclass.prototype;var properties=Object.keys(source);if(!O bject.keys({toString:true}).length) properties.push("toString","valueOf");for(var i=0,length=properties.length;i<len gth;i++){var property=properties[i],value=source[property];if(ancestor&&Object.i sFunction(value)&&value.argumentNames().first()=="$super"){var method=value,valu e=Object.extend((function(m){return function(){return ancestor[m].apply(this,arg uments)};})(property).wrap(method),{valueOf:function(){return method},toString:f

unction(){return method.toString()}});} this.prototype[property]=value;} return this;}};var Abstract={};Object.extend=function(destination,source){for(va r property in source) destination[property]=source[property];return destination;};Object.extend(Object ,{inspect:function(object){try{if(Object.isUndefined(object))return'undefined';i f(object===null)return'null';return object.inspect?object.inspect():String(objec t);}catch(e){if(e instanceof RangeError)return'...';throw e;}},toJSON:function(o bject){var type=typeof object;switch(type){case'undefined':case'function':case'u nknown':return;case'boolean':return object.toString();} if(object===null)return'null';if(object.toJSON)return object.toJSON();if(Object. isElement(object))return;var results=[];for(var property in object){var value=Ob ject.toJSON(object[property]);if(!Object.isUndefined(value)) results.push(property.toJSON()+': '+value);} return'{'+results.join(', ')+'}';},toQueryString:function(object){return $H(obje ct).toQueryString();},toHTML:function(object){return object&&object.toHTML?objec t.toHTML():String.interpret(object);},keys:function(object){var keys=[];for(var property in object) keys.push(property);return keys;},values:function(object){var values=[];for(var property in object) values.push(object[property]);return values;},clone:function(object){return Obje ct.extend({},object);},isElement:function(object){return object&&object.nodeType ==1;},isArray:function(object){return object!=null&&typeof object=="object"&&'sp lice'in object&&'join'in object;},isHash:function(object){return object instance of Hash;},isFunction:function(object){return typeof object=="function";},isStrin g:function(object){return typeof object=="string";},isNumber:function(object){re turn typeof object=="number";},isUndefined:function(object){return typeof object =="undefined";}});Object.extend(Function.prototype,{argumentNames:function(){var names=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").inv oke("strip");return names.length==1&&!names[0]?[]:names;},bind:function(){if(arg uments.length<2&&Object.isUndefined(arguments[0]))return this;var __method=this, args=$A(arguments),object=args.shift();return function(){return __method.apply(o bject,args.concat($A(arguments)));}},bindAsEventListener:function(){var __method =this,args=$A(arguments),object=args.shift();return function(event){return __met hod.apply(object,[event||window.event].concat(args));}},curry:function(){if(!arg uments.length)return this;var __method=this,args=$A(arguments);return function() {return __method.apply(this,args.concat($A(arguments)));}},delay:function(){var __method=this,args=$A(arguments),timeout=args.shift()*1000;return window.setTime out(function(){return __method.apply(__method,args);},timeout);},wrap:function(w rapper){var __method=this;return function(){return wrapper.apply(this,[__method. bind(this)].concat($A(arguments)));}},methodize:function(){if(this._methodized)r eturn this._methodized;var __method=this;return this._methodized=function(){retu rn __method.apply(null,[this].concat($A(arguments)));};}});Function.prototype.de fer=Function.prototype.delay.curry(0.01);Date.prototype.toJSON=function(){return '"'+this.getUTCFullYear()+'-'+ (this.getUTCMonth()+1).toPaddedString(2)+'-'+ this.getUTCDate().toPaddedString(2)+'T'+ this.getUTCHours().toPaddedString(2)+':'+ this.getUTCMinutes().toPaddedString(2)+':'+ this.getUTCSeconds().toPaddedString(2)+'Z"';};var Try={these:function(){var retu rnValue;for(var i=0,length=arguments.length;i<length;i++){var lambda=arguments[i ];try{returnValue=lambda();break;}catch(e){}} return returnValue;}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape =function(str){return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,'\\$1');} ;var PeriodicalExecuter=Class.create({initialize:function(callback,frequency){th is.callback=callback;this.frequency=frequency;this.currentlyExecuting=false;this .registerCallback();},registerCallback:function(){this.timer=setInterval(this.on TimerEvent.bind(this),this.frequency*1000);},execute:function(){this.callback(th is);},stop:function(){if(!this.timer)return;clearInterval(this.timer);this.timer =null;},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyE

xecuting=true;this.execute();}finally{this.currentlyExecuting=false;}}}});Object .extend(String,{interpret:function(value){return value==null?'':String(value);}, specialChar:{'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','\\':'\\\\'} });Object.extend(String.prototype,{gsub:function(pattern,replacement){var result ='',source=this,match;replacement=arguments.callee.prepareReplacement(replacemen t);while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0 ,match.index);result+=String.interpret(replacement(match));source=source.slice(m atch.index+match[0].length);}else{result+=source,source='';}} return result;},sub:function(pattern,replacement,count){replacement=this.gsub.pr epareReplacement(replacement);count=Object.isUndefined(count)?1:count;return thi s.gsub(pattern,function(match){if(--count<0)return match[0];return replacement(m atch);});},scan:function(pattern,iterator){this.gsub(pattern,iterator);return St ring(this);},truncate:function(length,truncation){length=length||30;truncation=O bject.isUndefined(truncation)?'...':truncation;return this.length>length?this.sl ice(0,length-truncation.length)+truncation:String(this);},strip:function(){retur n this.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(){return this. replace(/<\/?[^>]+>/gi,'');},stripScripts:function(){return this.replace(new Reg Exp(Prototype.ScriptFragment,'img'),'');},extractScripts:function(){var matchAll =new RegExp(Prototype.ScriptFragment,'img');var matchOne=new RegExp(Prototype.Sc riptFragment,'im');return(this.match(matchAll)||[]).map(function(scriptTag){retu rn(scriptTag.match(matchOne)||['',''])[1];});},evalScripts:function(){return thi s.extractScripts().map(function(script){return eval(script)});},escapeHTML:funct ion(){var self=arguments.callee;self.text.data=this;return self.div.innerHTML;}, unescapeHTML:function(){var div=new Element('div');div.innerHTML=this.stripTags( );return div.childNodes[0]?(div.childNodes.length>1?$A(div.childNodes).inject('' ,function(memo,node){return memo+node.nodeValue}):div.childNodes[0].nodeValue):' ';},toQueryParams:function(separator){var match=this.strip().match(/([^?#]*)(#.* )?$/);if(!match)return{};return match[1].split(separator||'&').inject({},functio n(hash,pair){if((pair=pair.split('='))[0]){var key=decodeURIComponent(pair.shift ());var value=pair.length>1?pair.join('='):pair[0];if(value!=undefined)value=dec odeURIComponent(value);if(key in hash){if(!Object.isArray(hash[key]))hash[key]=[ hash[key]];hash[key].push(value);} else hash[key]=value;} return hash;});},toArray:function(){return this.split('');},succ:function(){retu rn this.slice(0,this.length-1)+ String.fromCharCode(this.charCodeAt(this.length-1)+1);},times:function(count){re turn count<1?'':new Array(count+1).join(this);},camelize:function(){var parts=th is.split('-'),len=parts.length;if(len==1)return parts[0];var camelized=this.char At(0)=='-'?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];for(v ar i=1;i<len;i++) camelized+=parts[i].charAt(0).toUpperCase()+parts[i].substring(1);return cameliz ed;},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1) .toLowerCase();},underscore:function(){return this.gsub(/::/,'/').gsub(/([A-Z]+) ([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').to LowerCase();},dasherize:function(){return this.gsub(/_/,'-');},inspect:function( useDoubleQuotes){var escapedString=this.gsub(/[\x00-\x1f\\]/,function(match){var character=String.specialChar[match[0]];return character?character:'\\u00'+match [0].charCodeAt().toPaddedString(2,16);});if(useDoubleQuotes)return'"'+escapedStr ing.replace(/"/g,'\\"')+'"';return"'"+escapedString.replace(/'/g,'\\\'')+"'";},t oJSON:function(){return this.inspect(true);},unfilterJSON:function(filter){retur n this.sub(filter||Prototype.JSONFilter,'#{1}');},isJSON:function(){var str=this ;if(str.blank())return false;str=this.replace(/\\./g,'@').replace(/"[^"\\\n\r]*" /g,'');return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);},evalJSON:funct ion(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON())retur n eval('('+json+')');}catch(e){} throw new SyntaxError('Badly formed JSON string: '+this.inspect());},include:fun ction(pattern){return this.indexOf(pattern)>-1;},startsWith:function(pattern){re turn this.indexOf(pattern)===0;},endsWith:function(pattern){var d=this.length-pa ttern.length;return d>=0&&this.lastIndexOf(pattern)===d;},empty:function(){retur n this=='';},blank:function(){return/^\s*$/.test(this);},interpolate:function(ob

ject,pattern){return new Template(this,pattern).evaluate(object);}});if(Prototyp e.Browser.WebKit||Prototype.Browser.IE)Object.extend(String.prototype,{escapeHTM L:function(){return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g ,'&gt;');},unescapeHTML:function(){return this.replace(/&amp;/g,'&').replace(/&l t;/g,'<').replace(/&gt;/g,'>');}});String.prototype.gsub.prepareReplacement=func tion(replacement){if(Object.isFunction(replacement))return replacement;var templ ate=new Template(replacement);return function(match){return template.evaluate(ma tch)};};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend (String.prototype.escapeHTML,{div:document.createElement('div'),text:document.cr eateTextNode('')});with(String.prototype.escapeHTML)div.appendChild(text);var Te mplate=Class.create({initialize:function(template,pattern){this.template=templat e.toString();this.pattern=pattern||Template.Pattern;},evaluate:function(object){ if(Object.isFunction(object.toTemplateReplacements)) object=object.toTemplateReplacements();return this.template.gsub(this.pattern,fu nction(match){if(object==null)return'';var before=match[1]||'';if(before=='\\')r eturn match[2];var ctx=object,expr=match[3];var pattern=/^([^.[]+|\[((?:.*?[^\\] )?)\])(\.|\[|$)/;match=pattern.exec(expr);if(match==null)return before;while(mat ch!=null){var comp=match[1].startsWith('[')?match[2].gsub('\\\\]',']'):match[1]; ctx=ctx[comp];if(null==ctx||''==match[3])break;expr=expr.substring('['==match[3] ?match[1].length:match[0].length);match=pattern.exec(expr);} return before+String.interpret(ctx);});}});Template.Pattern=/(^|.|\r|\n)(#\{(.*? )\})/;var $break={};var Enumerable={each:function(iterator,context){var index=0; iterator=iterator.bind(context);try{this._each(function(value){iterator(value,in dex++);});}catch(e){if(e!=$break)throw e;} return this;},eachSlice:function(number,iterator,context){iterator=iterator?iter ator.bind(context):Prototype.K;var index=-number,slices=[],array=this.toArray(); while((index+=number)<array.length) slices.push(array.slice(index,index+number));return slices.collect(iterator,cont ext);},all:function(iterator,context){iterator=iterator?iterator.bind(context):P rototype.K;var result=true;this.each(function(value,index){result=result&&!!iter ator(value,index);if(!result)throw $break;});return result;},any:function(iterat or,context){iterator=iterator?iterator.bind(context):Prototype.K;var result=fals e;this.each(function(value,index){if(result=!!iterator(value,index)) throw $break;});return result;},collect:function(iterator,context){iterator=iter ator?iterator.bind(context):Prototype.K;var results=[];this.each(function(value, index){results.push(iterator(value,index));});return results;},detect:function(i terator,context){iterator=iterator.bind(context);var result;this.each(function(v alue,index){if(iterator(value,index)){result=value;throw $break;}});return resul t;},findAll:function(iterator,context){iterator=iterator.bind(context);var resul ts=[];this.each(function(value,index){if(iterator(value,index)) results.push(value);});return results;},grep:function(filter,iterator,context){i terator=iterator?iterator.bind(context):Prototype.K;var results=[];if(Object.isS tring(filter)) filter=new RegExp(filter);this.each(function(value,index){if(filter.match(value) ) results.push(iterator(value,index));});return results;},include:function(object) {if(Object.isFunction(this.indexOf)) if(this.indexOf(object)!=-1)return true;var found=false;this.each(function(value ){if(value==object){found=true;throw $break;}});return found;},inGroupsOf:functi on(number,fillWith){fillWith=Object.isUndefined(fillWith)?null:fillWith;return t his.eachSlice(number,function(slice){while(slice.length<number)slice.push(fillWi th);return slice;});},inject:function(memo,iterator,context){iterator=iterator.b ind(context);this.each(function(value,index){memo=iterator(memo,value,index);}); return memo;},invoke:function(method){var args=$A(arguments).slice(1);return thi s.map(function(value){return value[method].apply(value,args);});},max:function(i terator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result ;this.each(function(value,index){value=iterator(value,index);if(result==null||va lue>=result) result=value;});return result;},min:function(iterator,context){iterator=iterator ?iterator.bind(context):Prototype.K;var result;this.each(function(value,index){v

alue=iterator(value,index);if(result==null||value<result) result=value;});return result;},partition:function(iterator,context){iterator=it erator?iterator.bind(context):Prototype.K;var trues=[],falses=[];this.each(funct ion(value,index){(iterator(value,index)?trues:falses).push(value);});return[true s,falses];},pluck:function(property){var results=[];this.each(function(value){re sults.push(value[property]);});return results;},reject:function(iterator,context ){iterator=iterator.bind(context);var results=[];this.each(function(value,index) {if(!iterator(value,index)) results.push(value);});return results;},sortBy:function(iterator,context){iterat or=iterator.bind(context);return this.map(function(value,index){return{value:val ue,criteria:iterator(value,index)};}).sort(function(left,right){var a=left.crite ria,b=right.criteria;return a<b?-1:a>b?1:0;}).pluck('value');},toArray:function( ){return this.map();},zip:function(){var iterator=Prototype.K,args=$A(arguments) ;if(Object.isFunction(args.last())) iterator=args.pop();var collections=[this].concat(args).map($A);return this.map( function(value,index){return iterator(collections.pluck(index));});},size:functi on(){return this.toArray().length;},inspect:function(){return'#<Enumerable:'+thi s.toArray().inspect()+'>';}};Object.extend(Enumerable,{map:Enumerable.collect,fi nd:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member: Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerab le.any});function $A(iterable){if(!iterable)return[];if(iterable.toArray)return iterable.toArray();var length=iterable.length||0,results=new Array(length);while (length--)results[length]=iterable[length];return results;} if(Prototype.Browser.WebKit){$A=function(iterable){if(!iterable)return[];if(!(Ob ject.isFunction(iterable)&&iterable=='[object NodeList]')&&iterable.toArray)retu rn iterable.toArray();var length=iterable.length||0,results=new Array(length);wh ile(length--)results[length]=iterable[length];return results;};} Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._rev erse)Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.protot ype,{_each:function(iterator){for(var i=0,length=this.length;i<length;i++) iterator(this[i]);},clear:function(){this.length=0;return this;},first:function( ){return this[0];},last:function(){return this[this.length-1];},compact:function (){return this.select(function(value){return value!=null;});},flatten:function() {return this.inject([],function(array,value){return array.concat(Object.isArray( value)?value.flatten():[value]);});},without:function(){var values=$A(arguments) ;return this.select(function(value){return!values.include(value);});},reverse:fu nction(inline){return(inline!==false?this:this.toArray())._reverse();},reduce:fu nction(){return this.length>1?this:this[0];},uniq:function(sorted){return this.i nject([],function(array,value,index){if(0==index||(sorted?array.last()!=value:!a rray.include(value))) array.push(value);return array;});},intersect:function(array){return this.uniq() .findAll(function(item){return array.detect(function(value){return item===value} );});},clone:function(){return[].concat(this);},size:function(){return this.leng th;},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']';},toJS ON:function(){var results=[];this.each(function(object){var value=Object.toJSON( object);if(!Object.isUndefined(value))results.push(value);});return'['+results.j oin(', ')+']';}});if(Object.isFunction(Array.prototype.forEach)) Array.prototype._each=Array.prototype.forEach;if(!Array.prototype.indexOf)Array. prototype.indexOf=function(item,i){i||(i=0);var length=this.length;if(i<0)i=leng th+i;for(;i<length;i++) if(this[i]===item)return i;return-1;};if(!Array.prototype.lastIndexOf)Array.prot otype.lastIndexOf=function(item,i){i=isNaN(i)?this.length:(i<0?this.length+i:i)+ 1;var n=this.slice(0,i).reverse().indexOf(item);return(n<0)?n:i-n-1;};Array.prot otype.toArray=Array.prototype.clone;function $w(string){if(!Object.isString(stri ng))return[];string=string.strip();return string?string.split(/\s+/):[];} if(Prototype.Browser.Opera){Array.prototype.concat=function(){var array=[];for(v ar i=0,length=this.length;i<length;i++)array.push(this[i]);for(var i=0,length=ar guments.length;i<length;i++){if(Object.isArray(arguments[i])){for(var j=0,arrayL ength=arguments[i].length;j<arrayLength;j++) array.push(arguments[i][j]);}else{array.push(arguments[i]);}}

return array;};} Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedStrin g(2,16);},succ:function(){return this+1;},times:function(iterator){$R(0,this,tru e).each(iterator);return this;},toPaddedString:function(length,radix){var string =this.toString(radix||10);return'0'.times(length-string.length)+string;},toJSON: function(){return isFinite(this)?this.toString():'null';}});$w('abs round ceil f loor').each(function(method){Number.prototype[method]=Math[method].methodize();} );function $H(object){return new Hash(object);};var Hash=Class.create(Enumerable ,(function(){function toQueryPair(key,value){if(Object.isUndefined(value))return key;return key+'='+encodeURIComponent(String.interpret(value));} return{initialize:function(object){this._object=Object.isHash(object)?object.toO bject():Object.clone(object);},_each:function(iterator){for(var key in this._obj ect){var value=this._object[key],pair=[key,value];pair.key=key;pair.value=value; iterator(pair);}},set:function(key,value){return this._object[key]=value;},get:f unction(key){return this._object[key];},unset:function(key){var value=this._obje ct[key];delete this._object[key];return value;},toObject:function(){return Objec t.clone(this._object);},keys:function(){return this.pluck('key');},values:functi on(){return this.pluck('value');},index:function(value){var match=this.detect(fu nction(pair){return pair.value===value;});return match&&match.key;},merge:functi on(object){return this.clone().update(object);},update:function(object){return n ew Hash(object).inject(this,function(result,pair){result.set(pair.key,pair.value );return result;});},toQueryString:function(){return this.map(function(pair){var key=encodeURIComponent(pair.key),values=pair.value;if(values&&typeof values=='o bject'){if(Object.isArray(values)) return values.map(toQueryPair.curry(key)).join('&');} return toQueryPair(key,values);}).join('&');},inspect:function(){return'#<Hash:{ '+this.map(function(pair){return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';},toJSON:function(){return Object.toJSON(this.toObject());},clone:functi on(){return new Hash(this);}}})());Hash.prototype.toTemplateReplacements=Hash.pr ototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initializ e:function(start,end,exclusive){this.start=start;this.end=end;this.exclusive=exc lusive;},_each:function(iterator){var value=this.start;while(this.include(value) ){iterator(value);value=value.succ();}},include:function(value){if(value<this.st art) return false;if(this.exclusive) return value<this.end;return value<=this.end;}});var $R=function(start,end,exclu sive){return new ObjectRange(start,end,exclusive);};var Ajax={getTransport:funct ion(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Micro soft.XMLHTTP')})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_ each:function(iterator){this.responders._each(iterator);},register:function(resp onder){if(!this.include(responder)) this.responders.push(responder);},unregister:function(responder){this.responders =this.responders.without(responder);},dispatch:function(callback,request,transpo rt,json){this.each(function(responder){if(Object.isFunction(responder[callback]) ){try{responder[callback].apply(responder,[request,transport,json]);}catch(e){}} });}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCrea te:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeReques tCount--}});Ajax.Base=Class.create({initialize:function(options){this.options={m ethod:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',e ncoding:'UTF-8',parameters:'',evalJSON:true,evalJS:true};Object.extend(this.opti ons,options||{});this.options.method=this.options.method.toLowerCase();if(Object .isString(this.options.parameters)) this.options.parameters=this.options.parameters.toQueryParams();else if(Object.i sHash(this.options.parameters)) this.options.parameters=this.options.parameters.toObject();}});Ajax.Request=Clas s.create(Ajax.Base,{_complete:false,initialize:function($super,url,options){$sup er(options);this.transport=Ajax.getTransport();this.request(url);},request:funct ion(url){this.url=url;this.method=this.options.method;var params=Object.clone(th is.options.parameters);if(!['get','post'].include(this.method)){params['_method'

]=this.method;this.method='post';} this.parameters=params;if(params=Object.toQueryString(params)){if(this.method==' get') this.url+=(this.url.include('?')?'&':'?')+params;else if(/Konqueror|Safari|KHTML /.test(navigator.userAgent)) params+='&_=';} try{var response=new Ajax.Response(this);if(this.options.onCreate)this.options.o nCreate(response);Ajax.Responders.dispatch('onCreate',this,response);this.transp ort.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.o ptions.asynchronous)this.respondToReadyState.bind(this).defer(1);this.transport. onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.b ody=this.method=='post'?(this.options.postBody||params):null;this.transport.send (this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType) this.onStateChange();} catch(e){this.dispatchException(e);}},onStateChange:function(){var readyState=th is.transport.readyState;if(readyState>1&&!((readyState==4)&&this._complete)) this.respondToReadyState(this.transport.readyState);},setRequestHeaders:function (){var headers={'X-Requested-With':'XMLHttpRequest','X-Prototype-Version':Protot ype.Version,'Accept':'text/javascript, text/html, application/xml, text/xml, */* '};if(this.method=='post'){headers['Content-type']=this.options.contentType+ (this.options.encoding?'; charset='+this.options.encoding:'');if(this.transport. overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<200 5) headers['Connection']='close';} if(typeof this.options.requestHeaders=='object'){var extras=this.options.request Headers;if(Object.isFunction(extras.push)) for(var i=0,length=extras.length;i<length;i+=2) headers[extras[i]]=extras[i+1];else $H(extras).each(function(pair){headers[pair.key]=pair.value});} for(var name in headers) this.transport.setRequestHeader(name,headers[name]);},success:function(){var sta tus=this.getStatus();return!status||(status>=200&&status<300);},getStatus:functi on(){try{return this.transport.status||0;}catch(e){return 0}},respondToReadyStat e:function(readyState){var state=Ajax.Request.Events[readyState],response=new Aj ax.Response(this);if(state=='Complete'){try{this._complete=true;(this.options['o n'+response.status]||this.options['on'+(this.success()?'Success':'Failure')]||Pr ototype.emptyFunction)(response,response.headerJSON);}catch(e){this.dispatchExce ption(e);} var contentType=response.getHeader('Content-type');if(this.options.evalJS=='forc e'||(this.options.evalJS&&this.isSameOrigin()&&contentType&&contentType.match(/^ \s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))) this.evalResponse();} try{(this.options['on'+state]||Prototype.emptyFunction)(response,response.header JSON);Ajax.Responders.dispatch('on'+state,this,response,response.headerJSON);}ca tch(e){this.dispatchException(e);} if(state=='Complete'){this.transport.onreadystatechange=Prototype.emptyFunction; }},isSameOrigin:function(){var m=this.url.match(/^\s*https?:\/\/[^\/]*/);return! m||(m[0]=='#{protocol}//#{domain}#{port}'.interpolate({protocol:location.protoco l,domain:document.domain,port:location.port?':'+location.port:''}));},getHeader: function(name){try{return this.transport.getResponseHeader(name)||null;}catch(e) {return null}},evalResponse:function(){try{return eval((this.transport.responseT ext||'').unfilterJSON());}catch(e){this.dispatchException(e);}},dispatchExceptio n:function(exception){(this.options.onException||Prototype.emptyFunction)(this,e xception);Ajax.Responders.dispatch('onException',this,exception);}});Ajax.Reques t.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Resp onse=Class.create({initialize:function(request){this.request=request;var transpo rt=this.transport=request.transport,readyState=this.readyState=transport.readySt ate;if((readyState>2&&!Prototype.Browser.IE)||readyState==4){this.status=this.ge tStatus();this.statusText=this.getStatusText();this.responseText=String.interpre t(transport.responseText);this.headerJSON=this._getHeaderJSON();}

if(readyState==4){var xml=transport.responseXML;this.responseXML=Object.isUndefi ned(xml)?null:xml;this.responseJSON=this._getResponseJSON();}},status:0,statusTe xt:'',getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{re turn this.transport.statusText||'';}catch(e){return''}},getHeader:Ajax.Request.p rototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeader s();}catch(e){return null}},getResponseHeader:function(name){return this.transpo rt.getResponseHeader(name);},getAllResponseHeaders:function(){return this.transp ort.getAllResponseHeaders();},_getHeaderJSON:function(){var json=this.getHeader( 'X-JSON');if(!json)return null;json=decodeURIComponent(escape(json));try{return json.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin());} catch(e){this.request.dispatchException(e);}},_getResponseJSON:function(){var op tions=this.request.options;if(!options.evalJSON||(options.evalJSON!='force'&&!(t his.getHeader('Content-type')||'').include('application/json'))||this.responseTe xt.blank()) return null;try{return this.responseText.evalJSON(options.sanitizeJSON||!this.re quest.isSameOrigin());}catch(e){this.request.dispatchException(e);}}});Ajax.Upda ter=Class.create(Ajax.Request,{initialize:function($super,container,url,options) {this.container={success:(container.success||container),failure:(container.failu re||(container.success?null:container))};options=Object.clone(options);var onCom plete=options.onComplete;options.onComplete=(function(response,json){this.update Content(response.responseText);if(Object.isFunction(onComplete))onComplete(respo nse,json);}).bind(this);$super(url,options);},updateContent:function(responseTex t){var receiver=this.container[this.success()?'success':'failure'],options=this. options;if(!options.evalScripts)responseText=responseText.stripScripts();if(rece iver=$(receiver)){if(options.insertion){if(Object.isString(options.insertion)){v ar insertion={};insertion[options.insertion]=responseText;receiver.insert(insert ion);} else options.insertion(receiver,responseText);} else receiver.update(responseText);}}});Ajax.PeriodicalUpdater=Class.create(Ajax .Base,{initialize:function($super,container,url,options){$super(options);this.on Complete=this.options.onComplete;this.frequency=(this.options.frequency||2);this .decay=(this.options.decay||1);this.updater={};this.container=container;this.url =url;this.start();},start:function(){this.options.onComplete=this.updateComplete .bind(this);this.onTimerEvent();},stop:function(){this.updater.options.onComplet e=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction). apply(this,arguments);},updateComplete:function(response){if(this.options.decay) {this.decay=(response.responseText==this.lastText?this.decay*this.options.decay: 1);this.lastText=response.responseText;} this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency);},onTim erEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.op tions);}});function $(element){if(arguments.length>1){for(var i=0,elements=[],le ngth=arguments.length;i<length;i++) elements.push($(arguments[i]));return elements;} if(Object.isString(element)) element=document.getElementById(element);return Element.extend(element);} if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(expres sion,parentElement){var results=[];var query=document.evaluate(expression,$(pare ntElement)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var i =0,length=query.snapshotLength;i<length;i++) results.push(Element.extend(query.snapshotItem(i)));return results;};} if(!window.Node)var Node={};if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_N ODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5, ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUM ENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});} (function(){var element=this.Element;this.Element=function(tagName,attributes){a ttributes=attributes||{};tagName=tagName.toLowerCase();var cache=Element.cache;i f(Prototype.Browser.IE&&attributes.name){tagName='<'+tagName+' name="'+attribute s.name+'">';delete attributes.name;return Element.writeAttribute(document.create Element(tagName),attributes);} if(!cache[tagName])cache[tagName]=Element.extend(document.createElement(tagName)

);return Element.writeAttribute(cache[tagName].cloneNode(false),attributes);};Ob ject.extend(this.Element,element||{});}).call(window);Element.cache={};Element.M ethods={visible:function(element){return $(element).style.display!='none';},togg le:function(element){element=$(element);Element[Element.visible(element)?'hide': 'show'](element);return element;},hide:function(element){$(element).style.displa y='none';return element;},show:function(element){$(element).style.display='';ret urn element;},remove:function(element){element=$(element);element.parentNode.rem oveChild(element);return element;},update:function(element,content){element=$(el ement);if(content&&content.toElement)content=content.toElement();if(Object.isEle ment(content))return element.update().insert(content);content=Object.toHTML(cont ent);element.innerHTML=content.stripScripts();content.evalScripts.bind(content). defer();return element;},replace:function(element,content){element=$(element);if (content&&content.toElement)content=content.toElement();else if(!Object.isElemen t(content)){content=Object.toHTML(content);var range=element.ownerDocument.creat eRange();range.selectNode(element);content.evalScripts.bind(content).defer();con tent=range.createContextualFragment(content.stripScripts());} element.parentNode.replaceChild(content,element);return element;},insert:functio n(element,insertions){element=$(element);if(Object.isString(insertions)||Object. isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toE lement||insertions.toHTML))) insertions={bottom:insertions};var content,insert,tagName,childNodes;for(var pos ition in insertions){content=insertions[position];position=position.toLowerCase( );insert=Element._insertionTranslations[position];if(content&&content.toElement) content=content.toElement();if(Object.isElement(content)){insert(element,content );continue;} content=Object.toHTML(content);tagName=((position=='before'||position=='after')? element.parentNode:element).tagName.toUpperCase();childNodes=Element._getContent FromAnonymousElement(tagName,content.stripScripts());if(position=='top'||positio n=='after')childNodes.reverse();childNodes.each(insert.curry(element));content.e valScripts.bind(content).defer();} return element;},wrap:function(element,wrapper,attributes){element=$(element);if (Object.isElement(wrapper)) $(wrapper).writeAttribute(attributes||{});else if(Object.isString(wrapper))wrapp er=new Element(wrapper,attributes);else wrapper=new Element('div',wrapper);if(el ement.parentNode) element.parentNode.replaceChild(wrapper,element);wrapper.appendChild(element);re turn wrapper;},inspect:function(element){element=$(element);var result='<'+eleme nt.tagName.toLowerCase();$H({'id':'id','className':'class'}).each(function(pair) {var property=pair.first(),attribute=pair.last();var value=(element[property]||' ').toString();if(value)result+=' '+attribute+'='+value.inspect(true);});return r esult+'>';},recursivelyCollect:function(element,property){element=$(element);var elements=[];while(element=element[property]) if(element.nodeType==1) elements.push(Element.extend(element));return elements;},ancestors:function(elem ent){return $(element).recursivelyCollect('parentNode');},descendants:function(e lement){return $(element).select("*");},firstDescendant:function(element){elemen t=$(element).firstChild;while(element&&element.nodeType!=1)element=element.nextS ibling;return $(element);},immediateDescendants:function(element){if(!(element=$ (element).firstChild))return[];while(element&&element.nodeType!=1)element=elemen t.nextSibling;if(element)return[element].concat($(element).nextSiblings());retur n[];},previousSiblings:function(element){return $(element).recursivelyCollect('p reviousSibling');},nextSiblings:function(element){return $(element).recursivelyC ollect('nextSibling');},siblings:function(element){element=$(element);return ele ment.previousSiblings().reverse().concat(element.nextSiblings());},match:functio n(element,selector){if(Object.isString(selector)) selector=new Selector(selector);return selector.match($(element));},up:function( element,expression,index){element=$(element);if(arguments.length==1)return $(ele ment.parentNode);var ancestors=element.ancestors();return Object.isNumber(expres sion)?ancestors[expression]:Selector.findElement(ancestors,expression,index);},d own:function(element,expression,index){element=$(element);if(arguments.length==1

)return element.firstDescendant();return Object.isNumber(expression)?element.des cendants()[expression]:element.select(expression)[index||0];},previous:function( element,expression,index){element=$(element);if(arguments.length==1)return $(Sel ector.handlers.previousElementSibling(element));var previousSiblings=element.pre viousSiblings();return Object.isNumber(expression)?previousSiblings[expression]: Selector.findElement(previousSiblings,expression,index);},next:function(element, expression,index){element=$(element);if(arguments.length==1)return $(Selector.ha ndlers.nextElementSibling(element));var nextSiblings=element.nextSiblings();retu rn Object.isNumber(expression)?nextSiblings[expression]:Selector.findElement(nex tSiblings,expression,index);},select:function(){var args=$A(arguments),element=$ (args.shift());return Selector.findChildElements(element,args);},adjacent:functi on(){var args=$A(arguments),element=$(args.shift());return Selector.findChildEle ments(element.parentNode,args).without(element);},identify:function(element){ele ment=$(element);var id=element.readAttribute('id'),self=arguments.callee;if(id)r eturn id;do{id='anonymous_element_'+self.counter++}while($(id));element.writeAtt ribute('id',id);return id;},readAttribute:function(element,name){element=$(eleme nt);if(Prototype.Browser.IE){var t=Element._attributeTranslations.read;if(t.valu es[name])return t.values[name](element,name);if(t.names[name])name=t.names[name] ;if(name.include(':')){return(!element.attributes||!element.attributes[name])?nu ll:element.attributes[name].value;}} return element.getAttribute(name);},writeAttribute:function(element,name,value){ element=$(element);var attributes={},t=Element._attributeTranslations.write;if(t ypeof name=='object')attributes=name;else attributes[name]=Object.isUndefined(va lue)?true:value;for(var attr in attributes){name=t.names[attr]||attr;value=attri butes[attr];if(t.values[attr])name=t.values[attr](element,value);if(value===fals e||value===null) element.removeAttribute(name);else if(value===true) element.setAttribute(name,name);else element.setAttribute(name,value);} return element;},getHeight:function(element){return $(element).getDimensions().h eight;},getWidth:function(element){return $(element).getDimensions().width;},cla ssNames:function(element){return new Element.ClassNames(element);},hasClassName: function(element,className){if(!(element=$(element)))return;var elementClassName =element.className;return(elementClassName.length>0&&(elementClassName==classNam e||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)));},addClass Name:function(element,className){if(!(element=$(element)))return;if(!element.has ClassName(className)) element.className+=(element.className?' ':'')+className;return element;},removeC lassName:function(element,className){if(!(element=$(element)))return;element.cla ssName=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)"),' ' ).strip();return element;},toggleClassName:function(element,className){if(!(elem ent=$(element)))return;return element[element.hasClassName(className)?'removeCla ssName':'addClassName'](className);},cleanWhitespace:function(element){element=$ (element);var node=element.firstChild;while(node){var nextNode=node.nextSibling; if(node.nodeType==3&&!/\S/.test(node.nodeValue)) element.removeChild(node);node=nextNode;} return element;},empty:function(element){return $(element).innerHTML.blank();},d escendantOf:function(element,ancestor){element=$(element),ancestor=$(ancestor);v ar originalAncestor=ancestor;if(element.compareDocumentPosition) return(element.compareDocumentPosition(ancestor)&8)===8;if(element.sourceIndex&& !Prototype.Browser.Opera){var e=element.sourceIndex,a=ancestor.sourceIndex,nextA ncestor=ancestor.nextSibling;if(!nextAncestor){do{ancestor=ancestor.parentNode;} while(!(nextAncestor=ancestor.nextSibling)&&ancestor.parentNode);} if(nextAncestor&&nextAncestor.sourceIndex) return(e>a&&e<nextAncestor.sourceIndex);} while(element=element.parentNode) if(element==originalAncestor)return true;return false;},scrollTo:function(elemen t){element=$(element);var pos=element.cumulativeOffset();window.scrollTo(pos[0], pos[1]);return element;},getStyle:function(element,style){element=$(element);sty le=style=='float'?'cssFloat':style.camelize();var value=element.style[style];if( !value){var css=document.defaultView.getComputedStyle(element,null);value=css?cs

s[style]:null;} if(style=='opacity')return value?parseFloat(value):1.0;return value=='auto'?null :value;},getOpacity:function(element){return $(element).getStyle('opacity');},se tStyle:function(element,styles){element=$(element);var elementStyle=element.styl e,match;if(Object.isString(styles)){element.style.cssText+=';'+styles;return sty les.include('opacity')?element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/) [1]):element;} for(var property in styles) if(property=='opacity')element.setOpacity(styles[property]);else elementStyle[(property=='float'||property=='cssFloat')?(Object.isUndefined(eleme ntStyle.styleFloat)?'cssFloat':'styleFloat'):property]=styles[property];return e lement;},setOpacity:function(element,value){element=$(element);element.style.opa city=(value==1||value==='')?'':(value<0.00001)?0:value;return element;},getDimen sions:function(element){element=$(element);var display=$(element).getStyle('disp lay');if(display!='none'&&display!=null) return{width:element.offsetWidth,height:element.offsetHeight};var els=element.st yle;var originalVisibility=els.visibility;var originalPosition=els.position;var originalDisplay=els.display;els.visibility='hidden';els.position='absolute';els. display='block';var originalWidth=element.clientWidth;var originalHeight=element .clientHeight;els.display=originalDisplay;els.position=originalPosition;els.visi bility=originalVisibility;return{width:originalWidth,height:originalHeight};},ma kePositioned:function(element){element=$(element);var pos=Element.getStyle(eleme nt,'position');if(pos=='static'||!pos){element._madePositioned=true;element.styl e.position='relative';if(window.opera){element.style.top=0;element.style.left=0; }} return element;},undoPositioned:function(element){element=$(element);if(element. _madePositioned){element._madePositioned=undefined;element.style.position=elemen t.style.top=element.style.left=element.style.bottom=element.style.right='';} return element;},makeClipping:function(element){element=$(element);if(element._o verflow)return element;element._overflow=Element.getStyle(element,'overflow')||' auto';if(element._overflow!=='hidden') element.style.overflow='hidden';return element;},undoClipping:function(element){ element=$(element);if(!element._overflow)return element;element.style.overflow=e lement._overflow=='auto'?'':element._overflow;element._overflow=null;return elem ent;},cumulativeOffset:function(element){var valueT=0,valueL=0;do{valueT+=elemen t.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;}while (element);return Element._returnOffset(valueL,valueT);},positionedOffset:functio n(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element .offsetLeft||0;element=element.offsetParent;if(element){if(element.tagName=='BOD Y')break;var p=Element.getStyle(element,'position');if(p!=='static')break;}}whil e(element);return Element._returnOffset(valueL,valueT);},absolutize:function(ele ment){element=$(element);if(element.getStyle('position')=='absolute')return;var offsets=element.positionedOffset();var top=offsets[1];var left=offsets[0];var wi dth=element.clientWidth;var height=element.clientHeight;element._originalLeft=le ft-parseFloat(element.style.left||0);element._originalTop=top-parseFloat(element .style.top||0);element._originalWidth=element.style.width;element._originalHeigh t=element.style.height;element.style.position='absolute';element.style.top=top+' px';element.style.left=left+'px';element.style.width=width+'px';element.style.he ight=height+'px';return element;},relativize:function(element){element=$(element );if(element.getStyle('position')=='relative')return;element.style.position='rel ative';var top=parseFloat(element.style.top||0)-(element._originalTop||0);var le ft=parseFloat(element.style.left||0)-(element._originalLeft||0);element.style.to p=top+'px';element.style.left=left+'px';element.style.height=element._originalHe ight;element.style.width=element._originalWidth;return element;},cumulativeScrol lOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.scrollTop||0; valueL+=element.scrollLeft||0;element=element.parentNode;}while(element);return Element._returnOffset(valueL,valueT);},getOffsetParent:function(element){if(elem ent.offsetParent)return $(element.offsetParent);if(element==document.body)return $(element);while((element=element.parentNode)&&element!=document.body) if(Element.getStyle(element,'position')!='static')

return $(element);return $(document.body);},viewportOffset:function(forElement){ var valueT=0,valueL=0;var element=forElement;do{valueT+=element.offsetTop||0;val ueL+=element.offsetLeft||0;if(element.offsetParent==document.body&&Element.getSt yle(element,'position')=='absolute')break;}while(element=element.offsetParent);e lement=forElement;do{if(!Prototype.Browser.Opera||element.tagName=='BODY'){value T-=element.scrollTop||0;valueL-=element.scrollLeft||0;}}while(element=element.pa rentNode);return Element._returnOffset(valueL,valueT);},clonePosition:function(e lement,source){var options=Object.extend({setLeft:true,setTop:true,setWidth:true ,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});source=$(source);var p=source.viewportOffset();element=$(element);var delta=[0,0];var parent=null;if (Element.getStyle(element,'position')=='absolute'){parent=element.getOffsetParen t();delta=parent.viewportOffset();} if(parent==document.body){delta[0]-=document.body.offsetLeft;delta[1]-=document. body.offsetTop;} if(options.setLeft)element.style.left=(p[0]-delta[0]+options.offsetLeft)+'px';if (options.setTop)element.style.top=(p[1]-delta[1]+options.offsetTop)+'px';if(opti ons.setWidth)element.style.width=source.offsetWidth+'px';if(options.setHeight)el ement.style.height=source.offsetHeight+'px';return element;}};Element.Methods.id entify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Me thods.select,childElements:Element.Methods.immediateDescendants});Element._attri buteTranslations={write:{names:{className:'class',htmlFor:'for'},values:{}}};if( Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap( function(proceed,element,style){switch(style){case'left':case'top':case'right':c ase'bottom':if(proceed(element,'position')==='static')return null;case'height':c ase'width':if(!Element.visible(element))return null;var dim=parseInt(proceed(ele ment,style),10);if(dim!==element['offset'+style.capitalize()]) return dim+'px';var properties;if(style==='height'){properties=['border-top-widt h','padding-top','padding-bottom','border-bottom-width'];} else{properties=['border-left-width','padding-left','padding-right','border-righ t-width'];} return properties.inject(dim,function(memo,property){var val=proceed(element,pro perty);return val===null?memo:memo-parseInt(val,10);})+'px';default:return proce ed(element,style);}});Element.Methods.readAttribute=Element.Methods.readAttribut e.wrap(function(proceed,element,attribute){if(attribute==='title')return element .title;return proceed(element,attribute);});} else if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.ge tOffsetParent.wrap(function(proceed,element){element=$(element);var position=ele ment.getStyle('position');if(position!=='static')return proceed(element);element .setStyle({position:'relative'});var value=proceed(element);element.setStyle({po sition:position});return value;});$w('positionedOffset viewportOffset').each(fun ction(method){Element.Methods[method]=Element.Methods[method].wrap(function(proc eed,element){element=$(element);var position=element.getStyle('position');if(pos ition!=='static')return proceed(element);var offsetParent=element.getOffsetParen t();if(offsetParent&&offsetParent.getStyle('position')==='fixed') offsetParent.setStyle({zoom:1});element.setStyle({position:'relative'});var valu e=proceed(element);element.setStyle({position:position});return value;});});Elem ent.Methods.getStyle=function(element,style){element=$(element);style=(style=='f loat'||style=='cssFloat')?'styleFloat':style.camelize();var value=element.style[ style];if(!value&&element.currentStyle)value=element.currentStyle[style];if(styl e=='opacity'){if(value=(element.getStyle('filter')||'').match(/alpha\(opacity=(. *)\)/)) if(value[1])return parseFloat(value[1])/100;return 1.0;} if(value=='auto'){if((style=='width'||style=='height')&&(element.getStyle('displ ay')!='none')) return element['offset'+style.capitalize()]+'px';return null;} return value;};Element.Methods.setOpacity=function(element,value){function strip Alpha(filter){return filter.replace(/alpha\([^\)]*\)/gi,'');} element=$(element);var currentStyle=element.currentStyle;if((currentStyle&&!curr entStyle.hasLayout)||(!currentStyle&&element.style.zoom=='normal')) element.style.zoom=1;var filter=element.getStyle('filter'),style=element.style;i

f(value==1||value===''){(filter=stripAlpha(filter))?style.filter=filter:style.re moveAttribute('filter');return element;}else if(value<0.00001)value=0;style.filt er=stripAlpha(filter)+'alpha(opacity='+(value*100)+')';return element;};Element. _attributeTranslations={read:{names:{'class':'className','for':'htmlFor'},values :{_getAttr:function(element,attribute){return element.getAttribute(attribute,2); },_getAttrNode:function(element,attribute){var node=element.getAttributeNode(att ribute);return node?node.value:"";},_getEv:function(element,attribute){attribute =element.getAttribute(attribute);return attribute?attribute.toString().slice(23, -2):null;},_flag:function(element,attribute){return $(element).hasAttribute(attr ibute)?attribute:null;},style:function(element){return element.style.cssText.toL owerCase();},title:function(element){return element.title;}}}};Element._attribut eTranslations.write={names:Object.extend({cellpadding:'cellPadding',cellspacing: 'cellSpacing'},Element._attributeTranslations.read.names),values:{checked:functi on(element,value){element.checked=!!value;},style:function(element,value){elemen t.style.cssText=value?value:'';}}};Element._attributeTranslations.has={};$w('col Span rowSpan vAlign dateTime accessKey tabIndex '+'encType maxLength readOnly lo ngDesc').each(function(attr){Element._attributeTranslations.write.names[attr.toL owerCase()]=attr;Element._attributeTranslations.has[attr.toLowerCase()]=attr;}); (function(v){Object.extend(v,{href:v._getAttr,src:v._getAttr,type:v._getAttr,act ion:v._getAttrNode,disabled:v._flag,checked:v._flag,readonly:v._flag,multiple:v. _flag,onload:v._getEv,onunload:v._getEv,onclick:v._getEv,ondblclick:v._getEv,onm ousedown:v._getEv,onmouseup:v._getEv,onmouseover:v._getEv,onmousemove:v._getEv,o nmouseout:v._getEv,onfocus:v._getEv,onblur:v._getEv,onkeypress:v._getEv,onkeydow n:v._getEv,onkeyup:v._getEv,onsubmit:v._getEv,onreset:v._getEv,onselect:v._getEv ,onchange:v._getEv});})(Element._attributeTranslations.read.values);} else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element .Methods.setOpacity=function(element,value){element=$(element);element.style.opa city=(value==1)?0.999999:(value==='')?'':(value<0.00001)?0:value;return element; };} else if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(element,va lue){element=$(element);element.style.opacity=(value==1||value==='')?'':(value<0 .00001)?0:value;if(value==1) if(element.tagName=='IMG'&&element.width){element.width++;element.width--;}else try{var n=document.createTextNode(' ');element.appendChild(n);element.removeChil d(n);}catch(e){} return element;};Element.Methods.cumulativeOffset=function(element){var valueT=0 ,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(eleme nt.offsetParent==document.body) if(Element.getStyle(element,'position')=='absolute')break;element=element.offset Parent;}while(element);return Element._returnOffset(valueL,valueT);};} if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=functio n(element,content){element=$(element);if(content&&content.toElement)content=cont ent.toElement();if(Object.isElement(content))return element.update().insert(cont ent);content=Object.toHTML(content);var tagName=element.tagName.toUpperCase();if (tagName in Element._insertionTranslations.tags){$A(element.childNodes).each(fun ction(node){element.removeChild(node)});Element._getContentFromAnonymousElement( tagName,content.stripScripts()).each(function(node){element.appendChild(node)}); } else element.innerHTML=content.stripScripts();content.evalScripts.bind(content). defer();return element;};} if('outerHTML'in document.createElement('div')){Element.Methods.replace=function (element,content){element=$(element);if(content&&content.toElement)content=conte nt.toElement();if(Object.isElement(content)){element.parentNode.replaceChild(con tent,element);return element;} content=Object.toHTML(content);var parent=element.parentNode,tagName=parent.tagN ame.toUpperCase();if(Element._insertionTranslations.tags[tagName]){var nextSibli ng=element.next();var fragments=Element._getContentFromAnonymousElement(tagName, content.stripScripts());parent.removeChild(element);if(nextSibling) fragments.each(function(node){parent.insertBefore(node,nextSibling)});else fragments.each(function(node){parent.appendChild(node)});}

else element.outerHTML=content.stripScripts();content.evalScripts.bind(content). defer();return element;};} Element._returnOffset=function(l,t){var result=[l,t];result.left=l;result.top=t; return result;};Element._getContentFromAnonymousElement=function(tagName,html){v ar div=new Element('div'),t=Element._insertionTranslations.tags[tagName];if(t){d iv.innerHTML=t[0]+html+t[1];t[2].times(function(){div=div.firstChild});}else div .innerHTML=html;return $A(div.childNodes);};Element._insertionTranslations={befo re:function(element,node){element.parentNode.insertBefore(node,element);},top:fu nction(element,node){element.insertBefore(node,element.firstChild);},bottom:func tion(element,node){element.appendChild(node);},after:function(element,node){elem ent.parentNode.insertBefore(node,element.nextSibling);},tags:{TABLE:['<table>',' </table>',1],TBODY:['<table><tbody>','</tbody></table>',2],TR:['<table><tbody><t r>','</tr></tbody></table>',3],TD:['<table><tbody><tr><td>','</td></tr></tbody>< /table>',4],SELECT:['<select>','</select>',1]}};(function(){Object.extend(this.t ags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD});}).call(Eleme nt._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(elem ent,attribute){attribute=Element._attributeTranslations.has[attribute]||attribut e;var node=$(element).getAttributeNode(attribute);return node&&node.specified;}} ;Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.B rowserFeatures.ElementExtensions&&document.createElement('div').__proto__){windo w.HTMLElement={};window.HTMLElement.prototype=document.createElement('div').__pr oto__;Prototype.BrowserFeatures.ElementExtensions=true;} Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtension s) return Prototype.K;var Methods={},ByTag=Element.Methods.ByTag;var extend=Object. extend(function(element){if(!element||element._extendedByPrototype||element.node Type!=1||element==window)return element;var methods=Object.clone(Methods),tagNam e=element.tagName,property,value;if(ByTag[tagName])Object.extend(methods,ByTag[t agName]);for(property in methods){value=methods[property];if(Object.isFunction(v alue)&&!(property in element)) element[property]=value.methodize();} element._extendedByPrototype=Prototype.emptyFunction;return element;},{refresh:f unction(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(Methods ,Element.Methods);Object.extend(Methods,Element.Methods.Simulated);}}});extend.r efresh();return extend;})();Element.hasAttribute=function(element,attribute){if( element.hasAttribute)return element.hasAttribute(attribute);return Element.Metho ds.Simulated.hasAttribute(element,attribute);};Element.addMethods=function(metho ds){var F=Prototype.BrowserFeatures,T=Element.Methods.ByTag;if(!methods){Object. extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Objec t.extend(Element.Methods.ByTag,{"FORM":Object.clone(Form.Methods),"INPUT":Object .clone(Form.Element.Methods),"SELECT":Object.clone(Form.Element.Methods),"TEXTAR EA":Object.clone(Form.Element.Methods)});} if(arguments.length==2){var tagName=methods;methods=arguments[1];} if(!tagName)Object.extend(Element.Methods,methods||{});else{if(Object.isArray(ta gName))tagName.each(extend);else extend(tagName);} function extend(tagName){tagName=tagName.toUpperCase();if(!Element.Methods.ByTag [tagName]) Element.Methods.ByTag[tagName]={};Object.extend(Element.Methods.ByTag[tagName],m ethods);} function copy(methods,destination,onlyIfAbsent){onlyIfAbsent=onlyIfAbsent||false ;for(var property in methods){var value=methods[property];if(!Object.isFunction( value))continue;if(!onlyIfAbsent||!(property in destination)) destination[property]=value.methodize();}} function findDOMClass(tagName){var klass;var trans={"OPTGROUP":"OptGroup","TEXTA REA":"TextArea","P":"Paragraph","FIELDSET":"FieldSet","UL":"UList","OL":"OList", "DL":"DList","DIR":"Directory","H1":"Heading","H2":"Heading","H3":"Heading","H4" :"Heading","H5":"Heading","H6":"Heading","Q":"Quote","INS":"Mod","DEL":"Mod","A" :"Anchor","IMG":"Image","CAPTION":"TableCaption","COL":"TableCol","COLGROUP":"Ta bleCol","THEAD":"TableSection","TFOOT":"TableSection","TBODY":"TableSection","TR ":"TableRow","TH":"TableCell","TD":"TableCell","FRAMESET":"FrameSet","IFRAME":"I

Frame"};if(trans[tagName])klass='HTML'+trans[tagName]+'Element';if(window[klass] )return window[klass];klass='HTML'+tagName+'Element';if(window[klass])return win dow[klass];klass='HTML'+tagName.capitalize()+'Element';if(window[klass])return w indow[klass];window[klass]={};window[klass].prototype=document.createElement(tag Name).__proto__;return window[klass];} if(F.ElementExtensions){copy(Element.Methods,HTMLElement.prototype);copy(Element .Methods.Simulated,HTMLElement.prototype,true);} if(F.SpecificElementExtensions){for(var tag in Element.Methods.ByTag){var klass= findDOMClass(tag);if(Object.isUndefined(klass))continue;copy(T[tag],klass.protot ype);}} Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.re fresh)Element.extend.refresh();Element.cache={};};document.viewport={getDimensio ns:function(){var dimensions={};var B=Prototype.Browser;$w('width height').each( function(d){var D=d.capitalize();dimensions[d]=(B.WebKit&&!document.evaluate)?se lf['inner'+D]:(B.Opera)?document.body['client'+D]:document.documentElement['clie nt'+D];});return dimensions;},getWidth:function(){return this.getDimensions().wi dth;},getHeight:function(){return this.getDimensions().height;},getScrollOffsets :function(){return Element._returnOffset(window.pageXOffset||document.documentEl ement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.document Element.scrollTop||document.body.scrollTop);}};var Selector=Class.create({initia lize:function(expression){this.expression=expression.strip();this.compileMatcher ();},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath)return false; var e=this.expression;if(Prototype.Browser.WebKit&&(e.include("-of-type")||e.inc lude(":empty"))) return false;if((/(\[[\w-]*?:|:checked)/).test(this.expression)) return false;return true;},compileMatcher:function(){if(this.shouldUseXPath()) return this.compileXPathMatcher();var e=this.expression,ps=Selector.patterns,h=S elector.handlers,c=Selector.criteria,le,p,m;if(Selector._cache[e]){this.matcher= Selector._cache[e];return;} this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.hand lers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps [i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Templ ate(c[i]).evaluate(m));e=e.replace(m[0],'');break;}}} this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join('\n'));Select or._cache[this.expression]=this.matcher;},compileXPathMatcher:function(){var e=t his.expression,ps=Selector.patterns,x=Selector.xpath,le,m;if(Selector._cache[e]) {this.xpath=Selector._cache[e];return;} this.matcher=['.//*'];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){if(m =e.match(ps[i])){this.matcher.push(Object.isFunction(x[i])?x[i](m):new Template( x[i]).evaluate(m));e=e.replace(m[0],'');break;}}} this.xpath=this.matcher.join('');Selector._cache[this.expression]=this.xpath;},f indElements:function(root){root=root||document;if(this.xpath)return document._ge tElementsByXPath(this.xpath,root);return this.matcher(root);},match:function(ele ment){this.tokens=[];var e=this.expression,ps=Selector.patterns,as=Selector.asse rtions;var le,p,m;while(e&&le!==e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i] ;if(m=e.match(p)){if(as[i]){this.tokens.push([i,Object.clone(m)]);e=e.replace(m[ 0],'');}else{return this.findElements(document).include(element);}}}} var match=true,name,matches;for(var i=0,token;token=this.tokens[i];i++){name=tok en[0],matches=token[1];if(!Selector.assertions[name](element,matches)){match=fal se;break;}} return match;},toString:function(){return this.expression;},inspect:function(){r eturn"#<Selector:"+this.expression.inspect()+">";}});Object.extend(Selector,{_ca che:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",la terSibling:'/following-sibling::*',tagName:function(m){if(m[1]=='*')return'';ret urn"[local-name()='"+m[1].toLowerCase()+"' or local-name()='"+m[1].toUpperCase() +"']";},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1 }']",attrPresence:function(m){m[1]=m[1].toLowerCase();return new Template("[@#{1 }]").evaluate(m);},attr:function(m){m[1]=m[1].toLowerCase();m[3]=m[5]||m[6];retu rn new Template(Selector.xpath.operators[m[2]]).evaluate(m);},pseudo:function(m) {var h=Selector.xpath.pseudos[m[1]];if(!h)return'';if(Object.isFunction(h))retur

n h(m);return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);},operators :{'=':"[@#{1}='#{3}']",'!=':"[@#{1}!='#{3}']",'^=':"[starts-with(@#{1}, '#{3}')] ",'$=':"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='# {3}']",'*=':"[contains(@#{1}, '#{3}')]",'~=':"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",'|=':"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{'fir st-child':'[not(preceding-sibling::*)]','last-child':'[not(following-sibling::*) ]','only-child':'[not(preceding-sibling::* or following-sibling::*)]','empty':"[ count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]", 'checked':"[@checked]",'disabled':"[@disabled]",'enabled':"[not(@disabled)]",'no t':function(m){var e=m[6],p=Selector.patterns,x=Selector.xpath,le,v;var exclusio n=[];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in p){if(m=e.match(p[i])){v= Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m);exclusion.push("( "+v.substring(1,v.length-1)+")");e=e.replace(m[0],'');break;}}} return"[not("+exclusion.join(" and ")+")]";},'nth-child':function(m){return Sele ctor.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",m);},'nth-last-chi ld':function(m){return Selector.xpath.pseudos.nth("(count(./following-sibling::* ) + 1) ",m);},'nth-of-type':function(m){return Selector.xpath.pseudos.nth("posit ion() ",m);},'nth-last-of-type':function(m){return Selector.xpath.pseudos.nth("( last() + 1 - position()) ",m);},'first-of-type':function(m){m[6]="1";return Sele ctor.xpath.pseudos['nth-of-type'](m);},'last-of-type':function(m){m[6]="1";retur n Selector.xpath.pseudos['nth-last-of-type'](m);},'only-of-type':function(m){var p=Selector.xpath.pseudos;return p['first-of-type'](m)+p['last-of-type'](m);},nt h:function(fragment,m){var mm,formula=m[6],predicate;if(formula=='even')formula= '2n+0';if(formula=='odd')formula='2n+1';if(mm=formula.match(/^(\d+)$/)) return'['+fragment+"= "+mm[1]+']';if(mm=formula.match(/^(-?\d*)?n(([+-])(\d+))?/ )){if(mm[1]=="-")mm[1]=-1;var a=mm[1]?Number(mm[1]):1;var b=mm[2]?Number(mm[2]): 0;predicate="[((#{fragment} - #{b}) mod #{a} = 0) and "+"((#{fragment} - #{b}) d iv #{a} >= 0)]";return new Template(predicate).evaluate({fragment:fragment,a:a,b :b});}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c); c = false;',cl assName:'n = h.className(n, r, "#{1}", c); c = false;',id:'n = h.id(n, r, "#{ 1}", c); c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c) ; c = false;',attr:function(m){m[3]=(m[5]||m[6]);return new Template('n = h.attr (n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m);},pseudo:function(m) {if(m[6])m[6]=m[6].replace(/"/g,'\\"');return new Template('n = h.pseudo(n, "#{1 }", "#{6}", r, c); c = false;').evaluate(m);},descendant:'c = "descendant";',chi ld:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'} ,patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descend ant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/ ^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type) |empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence: /^\[([\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?) \4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(element,matches){return ma tches[1].toUpperCase()==element.tagName.toUpperCase();},className:function(eleme nt,matches){return Element.hasClassName(element,matches[1]);},id:function(elemen t,matches){return element.id===matches[1];},attrPresence:function(element,matche s){return Element.hasAttribute(element,matches[1]);},attr:function(element,match es){var nodeValue=Element.readAttribute(element,matches[1]);return nodeValue&&Se lector.operators[matches[2]](nodeValue,matches[5]||matches[6]);}},handlers:{conc at:function(a,b){for(var i=0,node;node=b[i];i++) a.push(node);return a;},mark:function(nodes){var _true=Prototype.emptyFunction;f or(var i=0,node;node=nodes[i];i++) node._countedByPrototype=_true;return nodes;},unmark:function(nodes){for(var i=0 ,node;node=nodes[i];i++) node._countedByPrototype=undefined;return nodes;},index:function(parentNode,reve rse,ofType){parentNode._countedByPrototype=Prototype.emptyFunction;if(reverse){f or(var nodes=parentNode.childNodes,i=nodes.length-1,j=1;i>=0;i--){var node=nodes [i];if(node.nodeType==1&&(!ofType||node._countedByPrototype))node.nodeIndex=j++; }}else{for(var i=0,j=1,nodes=parentNode.childNodes;node=nodes[i];i++) if(node.nodeType==1&&(!ofType||node._countedByPrototype))node.nodeIndex=j++;}},u nique:function(nodes){if(nodes.length==0)return nodes;var results=[],n;for(var i

=0,l=nodes.length;i<l;i++) if(!(n=nodes[i])._countedByPrototype){n._countedByPrototype=Prototype.emptyFunct ion;results.push(Element.extend(n));} return Selector.handlers.unmark(results);},descendant:function(nodes){var h=Sele ctor.handlers;for(var i=0,results=[],node;node=nodes[i];i++) h.concat(results,node.getElementsByTagName('*'));return results;},child:function (nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++){f or(var j=0,child;child=node.childNodes[j];j++) if(child.nodeType==1&&child.tagName!='!')results.push(child);} return results;},adjacent:function(nodes){for(var i=0,results=[],node;node=nodes [i];i++){var next=this.nextElementSibling(node);if(next)results.push(next);} return results;},laterSibling:function(nodes){var h=Selector.handlers;for(var i= 0,results=[],node;node=nodes[i];i++) h.concat(results,Element.nextSiblings(node));return results;},nextElementSibling :function(node){while(node=node.nextSibling) if(node.nodeType==1)return node;return null;},previousElementSibling:function(no de){while(node=node.previousSibling) if(node.nodeType==1)return node;return null;},tagName:function(nodes,root,tagNam e,combinator){var uTagName=tagName.toUpperCase();var results=[],h=Selector.handl ers;if(nodes){if(combinator){if(combinator=="descendant"){for(var i=0,node;node= nodes[i];i++) h.concat(results,node.getElementsByTagName(tagName));return results;}else nodes= this[combinator](nodes);if(tagName=="*")return nodes;} for(var i=0,node;node=nodes[i];i++) if(node.tagName.toUpperCase()===uTagName)results.push(node);return results;}else return root.getElementsByTagName(tagName);},id:function(nodes,root,id,combinato r){var targetNode=$(id),h=Selector.handlers;if(!targetNode)return[];if(!nodes&&r oot==document)return[targetNode];if(nodes){if(combinator){if(combinator=='child' ){for(var i=0,node;node=nodes[i];i++) if(targetNode.parentNode==node)return[targetNode];}else if(combinator=='descenda nt'){for(var i=0,node;node=nodes[i];i++) if(Element.descendantOf(targetNode,node))return[targetNode];}else if(combinator= ='adjacent'){for(var i=0,node;node=nodes[i];i++) if(Selector.handlers.previousElementSibling(targetNode)==node) return[targetNode];}else nodes=h[combinator](nodes);} for(var i=0,node;node=nodes[i];i++) if(node==targetNode)return[targetNode];return[];} return(targetNode&&Element.descendantOf(targetNode,root))?[targetNode]:[];},clas sName:function(nodes,root,className,combinator){if(nodes&&combinator)nodes=this[ combinator](nodes);return Selector.handlers.byClassName(nodes,root,className);}, byClassName:function(nodes,root,className){if(!nodes)nodes=Selector.handlers.des cendant([root]);var needle=' '+className+' ';for(var i=0,results=[],node,nodeCla ssName;node=nodes[i];i++){nodeClassName=node.className;if(nodeClassName.length== 0)continue;if(nodeClassName==className||(' '+nodeClassName+' ').include(needle)) results.push(node);} return results;},attrPresence:function(nodes,root,attr,combinator){if(!nodes)nod es=root.getElementsByTagName("*");if(nodes&&combinator)nodes=this[combinator](no des);var results=[];for(var i=0,node;node=nodes[i];i++) if(Element.hasAttribute(node,attr))results.push(node);return results;},attr:func tion(nodes,root,attr,value,operator,combinator){if(!nodes)nodes=root.getElements ByTagName("*");if(nodes&&combinator)nodes=this[combinator](nodes);var handler=Se lector.operators[operator],results=[];for(var i=0,node;node=nodes[i];i++){var no deValue=Element.readAttribute(node,attr);if(nodeValue===null)continue;if(handler (nodeValue,value))results.push(node);} return results;},pseudo:function(nodes,name,value,root,combinator){if(nodes&&com binator)nodes=this[combinator](nodes);if(!nodes)nodes=root.getElementsByTagName( "*");return Selector.pseudos[name](nodes,value,root);}},pseudos:{'first-child':f unction(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(Sele ctor.handlers.previousElementSibling(node))continue;results.push(node);} return results;},'last-child':function(nodes,value,root){for(var i=0,results=[],

node;node=nodes[i];i++){if(Selector.handlers.nextElementSibling(node))continue;r esults.push(node);} return results;},'only-child':function(nodes,value,root){var h=Selector.handlers ;for(var i=0,results=[],node;node=nodes[i];i++) if(!h.previousElementSibling(node)&&!h.nextElementSibling(node)) results.push(node);return results;},'nth-child':function(nodes,formula,root){ret urn Selector.pseudos.nth(nodes,formula,root);},'nth-last-child':function(nodes,f ormula,root){return Selector.pseudos.nth(nodes,formula,root,true);},'nth-of-type ':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,fa lse,true);},'nth-last-of-type':function(nodes,formula,root){return Selector.pseu dos.nth(nodes,formula,root,true,true);},'first-of-type':function(nodes,formula,r oot){return Selector.pseudos.nth(nodes,"1",root,false,true);},'last-of-type':fun ction(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,true,true); },'only-of-type':function(nodes,formula,root){var p=Selector.pseudos;return p['l ast-of-type'](p['first-of-type'](nodes,formula,root),formula,root);},getIndices: function(a,b,total){if(a==0)return b>0?[b]:[];return $R(1,total).inject([],funct ion(memo,i){if(0==(i-b)%a&&(i-b)/a>=0)memo.push(i);return memo;});},nth:function (nodes,formula,root,reverse,ofType){if(nodes.length==0)return[];if(formula=='eve n')formula='2n+0';if(formula=='odd')formula='2n+1';var h=Selector.handlers,resul ts=[],indexed=[],m;h.mark(nodes);for(var i=0,node;node=nodes[i];i++){if(!node.pa rentNode._countedByPrototype){h.index(node.parentNode,reverse,ofType);indexed.pu sh(node.parentNode);}} if(formula.match(/^\d+$/)){formula=Number(formula);for(var i=0,node;node=nodes[i ];i++) if(node.nodeIndex==formula)results.push(node);}else if(m=formula.match(/^(-?\d*) ?n(([+-])(\d+))?/)){if(m[1]=="-")m[1]=-1;var a=m[1]?Number(m[1]):1;var b=m[2]?Nu mber(m[2]):0;var indices=Selector.pseudos.getIndices(a,b,nodes.length);for(var i =0,node,l=indices.length;node=nodes[i];i++){for(var j=0;j<l;j++) if(node.nodeIndex==indices[j])results.push(node);}} h.unmark(nodes);h.unmark(indexed);return results;},'empty':function(nodes,value, root){for(var i=0,results=[],node;node=nodes[i];i++){if(node.tagName=='!'||(node .firstChild&&!node.innerHTML.match(/^\s*$/)))continue;results.push(node);} return results;},'not':function(nodes,selector,root){var h=Selector.handlers,sel ectorType,m;var exclusions=new Selector(selector).findElements(root);h.mark(excl usions);for(var i=0,results=[],node;node=nodes[i];i++) if(!node._countedByPrototype)results.push(node);h.unmark(exclusions);return resu lts;},'enabled':function(nodes,value,root){for(var i=0,results=[],node;node=node s[i];i++) if(!node.disabled)results.push(node);return results;},'disabled':function(nodes, value,root){for(var i=0,results=[],node;node=nodes[i];i++) if(node.disabled)results.push(node);return results;},'checked':function(nodes,va lue,root){for(var i=0,results=[],node;node=nodes[i];i++) if(node.checked)results.push(node);return results;}},operators:{'=':function(nv, v){return nv==v;},'!=':function(nv,v){return nv!=v;},'^=':function(nv,v){return nv.startsWith(v);},'$=':function(nv,v){return nv.endsWith(v);},'*=':function(nv, v){return nv.include(v);},'~=':function(nv,v){return(' '+nv+' ').include(' '+v+' ');},'|=':function(nv,v){return('-'+nv.toUpperCase()+'-').include('-'+v.toUpper Case()+'-');}},split:function(expression){var expressions=[];expression.scan(/(( [\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(m){expressions.push(m[1].strip( ));});return expressions;},matchElements:function(elements,expression){var match es=$$(expression),h=Selector.handlers;h.mark(matches);for(var i=0,results=[],ele ment;element=elements[i];i++) if(element._countedByPrototype)results.push(element);h.unmark(matches);return re sults;},findElement:function(elements,expression,index){if(Object.isNumber(expre ssion)){index=expression;expression=false;} return Selector.matchElements(elements,expression||'*')[index||0];},findChildEle ments:function(element,expressions){expressions=Selector.split(expressions.join( ','));var results=[],h=Selector.handlers;for(var i=0,l=expressions.length,select or;i<l;i++){selector=new Selector(expressions[i].strip());h.concat(results,selec tor.findElements(element));}

return(l>1)?h.unique(results):results;}});if(Prototype.Browser.IE){Object.extend (Selector.handlers,{concat:function(a,b){for(var i=0,node;node=b[i];i++) if(node.tagName!=="!")a.push(node);return a;},unmark:function(nodes){for(var i=0 ,node;node=nodes[i];i++) node.removeAttribute('_countedByPrototype');return nodes;}});} function $$(){return Selector.findChildElements(document,$A(arguments));} var Form={reset:function(form){$(form).reset();return form;},serializeElements:f unction(elements,options){if(typeof options!='object')options={hash:!!options};e lse if(Object.isUndefined(options.hash))options.hash=true;var key,value,submitte d=false,submit=options.submit;var data=elements.inject({},function(result,elemen t){if(!element.disabled&&element.name){key=element.name;value=$(element).getValu e();if(value!=null&&(element.type!='submit'||(!submitted&&submit!==false&&(!subm it||key==submit)&&(submitted=true)))){if(key in result){if(!Object.isArray(resul t[key]))result[key]=[result[key]];result[key].push(value);} else result[key]=value;}} return result;});return options.hash?data:Object.toQueryString(data);}};Form.Met hods={serialize:function(form,options){return Form.serializeElements(Form.getEle ments(form),options);},getElements:function(form){return $A($(form).getElementsB yTagName('*')).inject([],function(elements,child){if(Form.Element.Serializers[ch ild.tagName.toLowerCase()]) elements.push(Element.extend(child));return elements;});},getInputs:function(for m,typeName,name){form=$(form);var inputs=form.getElementsByTagName('input');if(! typeName&&!name)return $A(inputs).map(Element.extend);for(var i=0,matchingInputs =[],length=inputs.length;i<length;i++){var input=inputs[i];if((typeName&&input.t ype!=typeName)||(name&&input.name!=name)) continue;matchingInputs.push(Element.extend(input));} return matchingInputs;},disable:function(form){form=$(form);Form.getElements(for m).invoke('disable');return form;},enable:function(form){form=$(form);Form.getEl ements(form).invoke('enable');return form;},findFirstElement:function(form){var elements=$(form).getElements().findAll(function(element){return'hidden'!=element .type&&!element.disabled;});var firstByIndex=elements.findAll(function(element){ return element.hasAttribute('tabIndex')&&element.tabIndex>=0;}).sortBy(function( element){return element.tabIndex}).first();return firstByIndex?firstByIndex:elem ents.find(function(element){return['input','select','textarea'].include(element. tagName.toLowerCase());});},focusFirstElement:function(form){form=$(form);form.f indFirstElement().activate();return form;},request:function(form,options){form=$ (form),options=Object.clone(options||{});var params=options.parameters,action=fo rm.readAttribute('action')||'';if(action.blank())action=window.location.href;opt ions.parameters=form.serialize(true);if(params){if(Object.isString(params))param s=params.toQueryParams();Object.extend(options.parameters,params);} if(form.hasAttribute('method')&&!options.method) options.method=form.method;return new Ajax.Request(action,options);}};Form.Eleme nt={focus:function(element){$(element).focus();return element;},select:function( element){$(element).select();return element;}};Form.Element.Methods={serialize:f unction(element){element=$(element);if(!element.disabled&&element.name){var valu e=element.getValue();if(value!=undefined){var pair={};pair[element.name]=value;r eturn Object.toQueryString(pair);}} return'';},getValue:function(element){element=$(element);var method=element.tagN ame.toLowerCase();return Form.Element.Serializers[method](element);},setValue:fu nction(element,value){element=$(element);var method=element.tagName.toLowerCase( );Form.Element.Serializers[method](element,value);return element;},clear:functio n(element){$(element).value='';return element;},present:function(element){return $(element).value!='';},activate:function(element){element=$(element);try{elemen t.focus();if(element.select&&(element.tagName.toLowerCase()!='input'||!['button' ,'reset','submit'].include(element.type))) element.select();}catch(e){} return element;},disable:function(element){element=$(element);element.blur();ele ment.disabled=true;return element;},enable:function(element){element=$(element); element.disabled=false;return element;}};var Field=Form.Element;var $F=Form.Elem ent.Methods.getValue;Form.Element.Serializers={input:function(element,value){swi

tch(element.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.S erializers.inputSelector(element,value);default:return Form.Element.Serializers. textarea(element,value);}},inputSelector:function(element,value){if(Object.isUnd efined(value))return element.checked?element.value:null;else element.checked=!!v alue;},textarea:function(element,value){if(Object.isUndefined(value))return elem ent.value;else element.value=value;},select:function(element,index){if(Object.is Undefined(index)) return this[element.type=='select-one'?'selectOne':'selectMany'](element);else{v ar opt,value,single=!Object.isArray(index);for(var i=0,length=element.length;i<l ength;i++){opt=element.options[i];value=this.optionValue(opt);if(single){if(valu e==index){opt.selected=true;return;}} else opt.selected=index.include(value);}}},selectOne:function(element){var index =element.selectedIndex;return index>=0?this.optionValue(element.options[index]): null;},selectMany:function(element){var values,length=element.length;if(!length) return null;for(var i=0,values=[];i<length;i++){var opt=element.options[i];if(op t.selected)values.push(this.optionValue(opt));} return values;},optionValue:function(opt){return Element.extend(opt).hasAttribut e('value')?opt.value:opt.text;}};Abstract.TimedObserver=Class.create(PeriodicalE xecuter,{initialize:function($super,element,frequency,callback){$super(callback, frequency);this.element=$(element);this.lastValue=this.getValue();},execute:func tion(){var value=this.getValue();if(Object.isString(this.lastValue)&&Object.isSt ring(value)?this.lastValue!=value:String(this.lastValue)!=String(value)){this.ca llback(this.element,value);this.lastValue=value;}}});Form.Element.Observer=Class .create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue (this.element);}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:f unction(){return Form.serialize(this.element);}});Abstract.EventObserver=Class.c reate({initialize:function(element,callback){this.element=$(element);this.callba ck=callback;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase() =='form') this.registerFormCallbacks();else this.registerCallback(this.element);},onElementEvent:function(){var value=this.g etValue();if(this.lastValue!=value){this.callback(this.element,value);this.lastV alue=value;}},registerFormCallbacks:function(){Form.getElements(this.element).ea ch(this.registerCallback,this);},registerCallback:function(element){if(element.t ype){switch(element.type.toLowerCase()){case'checkbox':case'radio':Event.observe (element,'click',this.onElementEvent.bind(this));break;default:Event.observe(ele ment,'change',this.onElementEvent.bind(this));break;}}}});Form.Element.EventObse rver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Elemen t.getValue(this.element);}});Form.EventObserver=Class.create(Abstract.EventObser ver,{getValue:function(){return Form.serialize(this.element);}});if(!window.Even t)var Event={};Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36, KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:fu nction(event){var element;switch(event.type){case'mouseover':element=event.fromE lement;break;case'mouseout':element=event.toElement;break;default:return null;} return Element.extend(element);}});Event.Methods=(function(){var isButton;if(Pro totype.Browser.IE){var buttonMap={0:1,1:4,2:2};isButton=function(event,code){ret urn event.button==buttonMap[code];};}else if(Prototype.Browser.WebKit){isButton= function(event,code){switch(code){case 0:return event.which==1&&!event.metaKey;c ase 1:return event.which==1&&event.metaKey;default:return false;}};}else{isButto n=function(event,code){return event.which?(event.which===code+1):(event.button== =code);};} return{isLeftClick:function(event){return isButton(event,0)},isMiddleClick:funct ion(event){return isButton(event,1)},isRightClick:function(event){return isButto n(event,2)},element:function(event){var node=Event.extend(event).target;return E lement.extend(node.nodeType==Node.TEXT_NODE?node.parentNode:node);},findElement: function(event,expression){var element=Event.element(event);if(!expression)retur n element;var elements=[element].concat(element.ancestors());return Selector.fin dElement(elements,expression,0);},pointer:function(event){return{x:event.pageX|| (event.clientX+

(document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY|| (event.clientY+ (document.documentElement.scrollTop||document.body.scrollTop))};},pointerX:funct ion(event){return Event.pointer(event).x},pointerY:function(event){return Event. pointer(event).y},stop:function(event){Event.extend(event);event.preventDefault( );event.stopPropagation();event.stopped=true;}};})();Event.extend=(function(){va r methods=Object.keys(Event.Methods).inject({},function(m,name){m[name]=Event.Me thods[name].methodize();return m;});if(Prototype.Browser.IE){Object.extend(metho ds,{stopPropagation:function(){this.cancelBubble=true},preventDefault:function() {this.returnValue=false},inspect:function(){return"[object Event]"}});return fun ction(event){if(!event)return false;if(event._extendedByPrototype)return event;e vent._extendedByPrototype=Prototype.emptyFunction;var pointer=Event.pointer(even t);Object.extend(event,{target:event.srcElement,relatedTarget:Event.relatedTarge t(event),pageX:pointer.x,pageY:pointer.y});return Object.extend(event,methods);} ;}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__pro to__;Object.extend(Event.prototype,methods);return Prototype.K;}})();Object.exte nd(Event,(function(){var cache=Event.cache;function getEventID(element){if(eleme nt._prototypeEventID)return element._prototypeEventID[0];arguments.callee.id=arg uments.callee.id||1;return element._prototypeEventID=[++arguments.callee.id];} function getDOMEventName(eventName){if(eventName&&eventName.include(':'))return" dataavailable";return eventName;} function getCacheForID(id){return cache[id]=cache[id]||{};} function getWrappersForEventName(id,eventName){var c=getCacheForID(id);return c[ eventName]=c[eventName]||[];} function createWrapper(element,eventName,handler){var id=getEventID(element);var c=getWrappersForEventName(id,eventName);if(c.pluck("handler").include(handler)) return false;var wrapper=function(event){if(!Event||!Event.extend||(event.eventN ame&&event.eventName!=eventName)) return false;Event.extend(event);handler.call(element,event);};wrapper.handler=h andler;c.push(wrapper);return wrapper;} function findWrapper(id,eventName,handler){var c=getWrappersForEventName(id,even tName);return c.find(function(wrapper){return wrapper.handler==handler});} function destroyWrapper(id,eventName,handler){var c=getCacheForID(id);if(!c[even tName])return false;c[eventName]=c[eventName].without(findWrapper(id,eventName,h andler));} function destroyCache(){for(var id in cache) for(var eventName in cache[id]) cache[id][eventName]=null;} if(window.attachEvent){window.attachEvent("onunload",destroyCache);} return{observe:function(element,eventName,handler){element=$(element);var name=g etDOMEventName(eventName);var wrapper=createWrapper(element,eventName,handler);i f(!wrapper)return element;if(element.addEventListener){element.addEventListener( name,wrapper,false);}else{element.attachEvent("on"+name,wrapper);} return element;},stopObserving:function(element,eventName,handler){element=$(ele ment);var id=getEventID(element),name=getDOMEventName(eventName);if(!handler&&ev entName){getWrappersForEventName(id,eventName).each(function(wrapper){element.st opObserving(eventName,wrapper.handler);});return element;}else if(!eventName){Ob ject.keys(getCacheForID(id)).each(function(eventName){element.stopObserving(even tName);});return element;} var wrapper=findWrapper(id,eventName,handler);if(!wrapper)return element;if(elem ent.removeEventListener){element.removeEventListener(name,wrapper,false);}else{e lement.detachEvent("on"+name,wrapper);} destroyWrapper(id,eventName,handler);return element;},fire:function(element,even tName,memo){element=$(element);if(element==document&&document.createEvent&&!elem ent.dispatchEvent) element=document.documentElement;var event;if(document.createEvent){event=docume nt.createEvent("HTMLEvents");event.initEvent("dataavailable",true,true);}else{ev ent=document.createEventObject();event.eventType="ondataavailable";} event.eventName=eventName;event.memo=memo||{};if(document.createEvent){element.d ispatchEvent(event);}else{element.fireEvent(event.eventType,event);}

return Event.extend(event);}};})());Object.extend(Event,Event.Methods);Element.a ddMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObservi ng});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Eleme nt.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.metho dize(),loaded:false});(function(){var timer;function fireContentLoadedEvent(){if (document.loaded)return;if(timer)window.clearInterval(timer);document.fire("dom: loaded");document.loaded=true;} if(document.addEventListener){if(Prototype.Browser.WebKit){timer=window.setInter val(function(){if(/loaded|complete/.test(document.readyState)) fireContentLoadedEvent();},0);Event.observe(window,"load",fireContentLoadedEvent );}else{document.addEventListener("DOMContentLoaded",fireContentLoadedEvent,fals e);}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/scrip t>");$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState= ="complete"){this.onreadystatechange=null;fireContentLoadedEvent();}};}})();Hash .toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element. Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(elem ent,content){return Element.insert(element,{before:content});},Top:function(elem ent,content){return Element.insert(element,{top:content});},Bottom:function(elem ent,content){return Element.insert(element,{bottom:content});},After:function(el ement,content){return Element.insert(element,{after:content});}};var $continue=n ew Error('"throw $continue" is deprecated, use "return" instead');var Position={ includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||do cument.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=windo w.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;}, within:function(element,x,y){if(this.includeScrollOffsets) return this.withinIncludingScrolloffsets(element,x,y);this.xcomp=x;this.ycomp=y; this.offset=Element.cumulativeOffset(element);return(y>=this.offset[1]&&y<this.o ffset[1]+element.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+element.offse tWidth);},withinIncludingScrolloffsets:function(element,x,y){var offsetcache=Ele ment.cumulativeScrollOffset(element);this.xcomp=x+offsetcache[0]-this.deltaX;thi s.ycomp=y+offsetcache[1]-this.deltaY;this.offset=Element.cumulativeOffset(elemen t);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+element.offsetHe ight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+element.offsetWidth) ;},overlap:function(mode,element){if(!mode)return 0;if(mode=='vertical') return((this.offset[1]+element.offsetHeight)-this.ycomp)/element.offsetHeight;if (mode=='horizontal') return((this.offset[0]+element.offsetWidth)-this.xcomp)/element.offsetWidth;},cu mulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods .positionedOffset,absolutize:function(element){Position.prepare();return Element .absolutize(element);},relativize:function(element){Position.prepare();return El ement.relativize(element);},realOffset:Element.Methods.cumulativeScrollOffset,of fsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,c lone:function(source,target,options){options=options||{};return Element.clonePos ition(target,source,options);}};if(!document.getElementsByClassName)document.get ElementsByClassName=function(instanceMethods){function iter(name){return name.bl ank()?null:"[contains(concat(' ', @class, ' '), ' "+name+" ')]";} instanceMethods.getElementsByClassName=Prototype.BrowserFeatures.XPath?function( element,className){className=className.toString().strip();var cond=/\s/.test(cla ssName)?$w(className).map(iter).join(''):iter(className);return cond?document._g etElementsByXPath('.//*'+cond,element):[];}:function(element,className){classNam e=className.toString().strip();var elements=[],classNames=(/\s/.test(className)? $w(className):null);if(!classNames&&!className)return elements;var nodes=$(eleme nt).getElementsByTagName('*');className=' '+className+' ';for(var i=0,child,cn;c hild=nodes[i];i++){if(child.className&&(cn=' '+child.className+' ')&&(cn.include (className)||(classNames&&classNames.all(function(name){return!name.toString().b lank()&&cn.include(' '+name+' ');})))) elements.push(Element.extend(child));} return elements;};return function(className,parentElement){return $(parentElemen t||document.body).getElementsByClassName(className);};}(Element.Methods);Element .ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(ele

ment){this.element=$(element);},_each:function(iterator){this.element.className. split(/\s+/).select(function(name){return name.length>0;})._each(iterator);},set :function(className){this.element.className=className;},add:function(classNameTo Add){if(this.include(classNameToAdd))return;this.set($A(this).concat(classNameTo Add).join(' '));},remove:function(classNameToRemove){if(!this.include(classNameT oRemove))return;this.set($A(this).without(classNameToRemove).join(' '));},toStri ng:function(){return $A(this).join(' ');}};Object.extend(Element.ClassNames.prot otype,Enumerable);Element.addMethods();; /* * jimdoGen002 UI 1.8.1 * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;jimdoGen002.ui||(function($){$.ui={version:"1.8.1",plugin:{add:function(module, option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]= proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(ins tance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].pa rentNode){return;} for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(in stance.element,args);}}}},contains:function(a,b){return document.compareDocument Position?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:functi on(el,a){if($(el).css('overflow')=='hidden'){return false;} var scroll=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(el[scroll]>0){re turn true;} el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x, reference,size){return(x>reference)&&(x<(reference+size));},isOver:function(y,x, top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,l eft,width);},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELET E:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107, NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD _SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB: 9,UP:38}};$.fn.extend({_focus:$.fn.focus,focus:function(delay,fn){return typeof delay==='number'?this.each(function(){var elem=this;setTimeout(function(){$(elem ).focus();(fn&&fn.call(elem));},delay);}):this._focus.apply(this,arguments);},en ableSelection:function(){return this.attr('unselectable','off').css('MozUserSele ct','');},disableSelection:function(){return this.attr('unselectable','on').css( 'MozUserSelect','none');},scrollParent:function(){var scrollParent;if(($.browser .msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this .css('position'))){scrollParent=this.parents().filter(function(){return(/(relati ve|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($ .curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow -x',1));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(au to|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.cu rCSS(this,'overflow-x',1));}).eq(0);} return(/fixed/).test(this.css('position'))||!scrollParent.length?$(document):scr ollParent;},zIndex:function(zIndex){if(zIndex!==undefined){return this.css('zInd ex',zIndex);} if(this.length){var elem=$(this[0]),position,value;while(elem.length&&elem[0]!== document){position=elem.css('position');if(position=='absolute'||position=='rela tive'||position=='fixed') {value=parseInt(elem.css('zIndex'));if(!isNaN(value)&&value!=0){return value;}} elem=elem.parent();}} return 0;}});$.extend($.expr[':'],{data:function(elem,i,match){return!!$.data(el em,match[3]);},focusable:function(element){var nodeName=element.nodeName.toLower Case(),tabIndex=$.attr(element,'tabindex');return(/input|select|textarea|button| object/.test(nodeName)?!element.disabled:'a'==nodeName||'area'==nodeName?element

.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(element)['area'==nodeName?'parents ':'closest'](':hidden').length;},tabbable:function(element){var tabIndex=$.attr( element,'tabindex');return(isNaN(tabIndex)||tabIndex>=0)&&$(element).is(':focusa ble');}});})(jimdoGen002);; /* * jimdoGen002 UI Widget 1.8.1 * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Widget */ (function($){var _remove=$.fn.remove;$.fn.remove=function(selector,keepData){ret urn this.each(function(){if(!keepData){if(!selector||$.filter(selector,[this]).l ength){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");}) ;}} return _remove.call($(this),selector,keepData);});};$.widget=function(name,base, prototype){var namespace=name.split(".")[0],fullName;name=name.split(".")[1];ful lName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget;} $.expr[":"][fullName]=function(elem){return!!$.data(elem,name);};$[namespace]=$[ namespace]||{};$[namespace][name]=function(options,element){if(arguments.length) {this._createWidget(options,element);}};var basePrototype=new base();basePrototy pe.options=$.extend({},basePrototype.options);$[namespace][name].prototype=$.ext end(true,basePrototype,{namespace:namespace,widgetName:name,widgetEventPrefix:$[ namespace][name].prototype.widgetEventPrefix||name,widgetBaseClass:fullName},pro totype);$.widget.bridge(name,$[namespace][name]);};$.widget.bridge=function(name ,object){$.fn[name]=function(options){var isMethodCall=typeof options==="string" ,args=Array.prototype.slice.call(arguments,1),returnValue=this;options=!isMethod Call&&args.length?$.extend.apply(null,[true,options].concat(args)):options;if(is MethodCall&&options.substring(0,1)==="_"){return returnValue;} if(isMethodCall){this.each(function(){var instance=$.data(this,name),methodValue =instance&&$.isFunction(instance[options])?instance[options].apply(instance,args ):instance;if(methodValue!==instance&&methodValue!==undefined){returnValue=metho dValue;return false;}});}else{this.each(function(){var instance=$.data(this,name );if(instance){if(options){instance.option(options);} instance._init();}else{$.data(this,name,new object(options,this));}});} return returnValue;};};$.Widget=function(options,element){if(arguments.length){t his._createWidget(options,element);}};$.Widget.prototype={widgetName:"widget",wi dgetEventPrefix:"",options:{disabled:false},_createWidget:function(options,eleme nt){this.element=$(element).data(this.widgetName,this);this.options=$.extend(tru e,{},this.options,$.metadata&&$.metadata.get(element)[this.widgetName],options); var self=this;this.element.bind("remove."+this.widgetName,function(){self.destro y();});this._create();this._init();},_create:function(){},_init:function(){},des troy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetN ame);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").remov eClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled");},widget:function( ){return this.element;},option:function(key,value){var options=key,self=this;if( arguments.length===0){return $.extend({},self.options);} if(typeof key==="string"){if(value===undefined){return this.options[key];} options={};options[key]=value;} $.each(options,function(key,value){self._setOption(key,value);});return self;},_ setOption:function(key,value){this.options[key]=value;if(key==="disabled"){this. widget() [value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-statedisabled").attr("aria-disabled",value);} return this;},enable:function(){return this._setOption("disabled",false);},disab le:function(){return this._setOption("disabled",true);},_trigger:function(type,e vent,data){var callback=this.options[type];event=$.Event(event);event.type=(type ===this.widgetEventPrefix?type:this.widgetEventPrefix+type).toLowerCase();data=d

ata||{};if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.e vent.props[--i];event[prop]=event.originalEvent[prop];}} this.element.trigger(event,data);return!($.isFunction(callback)&&callback.call(t his.element[0],event,data)===false||event.isDefaultPrevented());}};})(jimdoGen00 2);;;(function($){var $scrollTo=$.scrollTo=function(target,duration,settings){$s crollTo.window().scrollTo(target,duration,settings);};$scrollTo.defaults={axis:' y',duration:1};$scrollTo.window=function(){return $($.browser.safari?'body':'htm l');};$.fn.scrollTo=function(target,duration,settings){if(typeof duration=='obje ct'){settings=duration;duration=0;} settings=$.extend({},$scrollTo.defaults,settings);duration=duration||settings.sp eed||settings.duration;settings.queue=settings.queue&&settings.axis.length>1;if( settings.queue) duration/=2;settings.offset=both(settings.offset);settings.over=both(settings.ov er);return this.each(function(){var elem=this,$elem=$(elem),t=target,toff,attr={ },win=$elem.is('html,body');switch(typeof t){case'number':case'string':if(/^([+]=)?\d+(px)?$/.test(t)){t=both(t);break;} t=$(t,this);case'object':if(t.is||t.style) toff=(t=$(t)).offset();} $.each(settings.axis.split(''),function(i,axis){var Pos=axis=='x'?'Left':'Top',p os=Pos.toLowerCase(),key='scroll'+Pos,act=elem[key],Dim=axis=='x'?'Width':'Heigh t',dim=Dim.toLowerCase();if(toff){attr[key]=toff[pos]+(win?0:act-$elem.offset()[ pos]);if(settings.margin){attr[key]-=parseInt(t.css('margin'+Pos))||0;attr[key]=parseInt(t.css('border'+Pos+'Width'))||0;} attr[key]+=settings.offset[pos]||0;if(settings.over[pos]) attr[key]+=t[dim]()*settings.over[pos];}else attr[key]=t[pos];if(/^\d+$/.test(attr[key])) attr[key]=attr[key]<=0?0:Math.min(attr[key],max(Dim));if(!i&&settings.queue){if( act!=attr[key]) animate(settings.onAfterFirst);delete attr[key];}});animate(settings.onAfter);fu nction animate(callback){$elem.animate(attr,duration,settings.easing,callback&&f unction(){callback.call(this,target);});};function max(Dim){var el=win?$.browser .opera?document.body:document.documentElement:elem;return el['scroll'+Dim]-el['c lient'+Dim];};});};function both(val){return typeof val=='object'?val:{top:val,l eft:val};};})(jimdoGen002);;(function($){$.fn.bgIframe=$.fn.bgiframe=function(s) {if($.browser.msie&&/IE 6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',l eft:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{ });var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:bl ock;position:absolute;z-index:-1;'+ (s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'exp ression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')' :prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode .currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.wi dth=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+ 'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':pr op(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',thi s).length==0) this.insertBefore(document.createElement(html),this.firstChild);});} return this;};})(jimdoGen002);;(function($){$.parseQuery=function(str){if(str.in dexOf('?')!=-1)str=str.split('?')[1];str=str.split('&');var obj={};$.each(str,fu nction(i,param){param=param.split('=');obj[decodeURIComponent(param[0])]=decodeU RIComponent(param[1]);});return obj;};})(jimdoGen002);;(function($){$.fn.eval=fu nction(str){return this.each(function(){eval(str);});};})(jimdoGen002);;;(functi on($){$.xLazyLoader=function(method,options){if(typeof method=='object'){options =method;method='init';};new xLazyLoader()[method](options);};$.xLazyLoader.defau lts={js:[],css:[],img:[],jsKey:null,cssKey:null,imgKey:null,name:null,timeout:20 000,success:$.noop,error:$.noop,complete:$.noop,each:$.noop};var head=document.g etElementsByTagName("head")[0];function xLazyLoader() {var self=this,s,loaded=[],errors=[],tTimeout,cssTimeout,toLoad,files=[];this.in it=function(options)

{if(!options)return;s=$.extend({},$.xLazyLoader.defaults,options);toLoad={js:s.j s,css:s.css,img:s.img};$.each(toLoad,function(type,f){if(typeof f=='string') f=f.split(',');files=files.concat(f);});if(!files.length){dispatchCallbacks('err or');return;};if(s.timeout){tTimeout=setTimeout(function(){var handled=loaded.co ncat(errors);$.each(files,function(i,file){$.inArray(file,handled)==-1&&errors.p ush(file);});dispatchCallbacks('error');},s.timeout);};$.each(toLoad,function(ty pe,urls){if($.isArray(urls)) $.each(urls,function(i,url){load(type,url);});else if(typeof urls=='string') load(type,urls);});};this.js=function(src,callback,name,key) {var $script=$('script[src*="'+src+'"]');if($script.length){$script.attr('pendin g')?$script.bind('scriptload',callback):callback();return;};var s=document.creat eElement('script');s.setAttribute("type","text/javascript");s.setAttribute('char set','UTF-8');s.setAttribute("src",src+key);s.setAttribute('id',name);s.setAttri bute('pending',1);s.onerror=addError;$(s).bind('scriptload',function(){$(this).r emoveAttr('pending');callback();setTimeout(function(){$(s).unbind('scriptload'); },10);});var done=false;s.onload=s.onreadystatechange=function(){if(!done&&(!thi s.readyState||/loaded|complete/.test(this.readyState))){done=true;s.onload=s.onr eadystatechange=null;$(s).trigger('scriptload');};};head.appendChild(s);};this.c ss=function(href,callback,name,key) {if($('link[href*="'+href+'"]').length){callback();return;};var link=$('<link re l="stylesheet" type="text/css" media="all" href="'+href+key+'" id="'+name+'"></l ink>')[0];if($.browser.msie){link.onreadystatechange=function(){/loaded|complete /.test(link.readyState)&&callback();};}else if($.browser.opera){link.onload=call back;}else{var hostname=location.hostname.replace('www.',''),hrefHostname=/http: /.test(href)?/^(\w+:)?\/\/([^\/?#]+)/.exec(href)[2]:hostname;hostname!=hrefHostn ame&&$.browser.mozilla?callback():(function(){try{link.sheet.cssRules;}catch(e){ cssTimeout=setTimeout(arguments.callee,20);return;};callback();})();};head.appen dChild(link);};this.img=function(src,callback,name,key) {var img=new Image();img.onload=callback;img.onerror=addError;img.src=src+key;}; this.disable=function(name) {$('#lazy-loaded-'+name,head).attr('disabled','disabled');};this.enable=function (name) {$('#lazy-loaded-'+name,head).removeAttr('disabled');};this.destroy=function(nam e) {$('#lazy-loaded-'+name,head).remove();};function load(type,url){self[type](url, function(status){status=='error'?errors.push(url):loaded.push(url)&&s.each(url); checkProgress();},'lazy-loaded-'+(s.name?s.name:new Date().getTime()),s[type+'Ke y']?'?key='+s[type+'Key']:'');};function dispatchCallbacks(status){s.complete(st atus,loaded,errors);clearTimeout(tTimeout);clearTimeout(cssTimeout);try{s[status ](status=='error'?errors:loaded);}catch(e){window.console&&console.debug(e);}};f unction checkProgress(){if(loaded.length==files.length)dispatchCallbacks('succes s') else if(loaded.length+errors.length==files.length)dispatchCallbacks('error');};f unction addError(){errors.push(this.src);checkProgress();};};})(jimdoGen002);;(f unction($){$.fn.message=function(msg,options){return this.each(function(){if($.d ata(this,'message'))return;$.data(this,'message',new message(this,msg,options)). init();});};$.fn.message.defaults={message:null,closable:true,status:'success',a utoHide:5000,addClass:'',template:'\ <div>\ <span class="x-message-close x-message-action">x</span>\ <p class="x-message-content">${message}</p>\ ${buttons}\ </div>',buttonsTpl:'\ <br /><button type="button" class="x-message-button-ok x-message-action" selected="selected">${ok}</button>\ <button type="button" class="x-message-button-abort x-message-action">${ abort}</button>\ ',speed:300,width:'auto',maxHeight:150,top:null,left:null,onClose:$.noop,lab els:{ok:"Ok",abort:"Abort"},insertMethod:'insertBefore'};function message(target ,message,options)

{if(typeof message=='object'){options=message;message=null;} var s=$.extend({},$.fn.message.defaults,options);var self=this,$message,$target= $(target),height,width,left,position,buttons='',timeout;this.init=function() {message=message||s.message;if(!message)return this;$.event.trigger('messageshow ');if($target[0].nodeName=='FORM'){var $submit=$('[type="submit"]',$target);$tar get=$submit.length?$submit:$target;} if(s.status=='confirm'){buttons+=s.buttonsTpl.replace('${ok}',s.labels.ok).repla ce('${abort}',s.labels.abort);s.autoHide=null;} $message=$(s.template.replace('${message}',message||s.message).replace('${button s}',buttons)).addClass('x-message message-'+s.status+' '+s.addClass) [s.insertMethod]($target);s.closable&&$message.addClass('x-message-closable');po sition=$target.position();height=$message.height();width=$message.outerWidth();i f(height>s.maxHeight){height=s.maxHeight;$message.css('height',height).find('.xmessage-content').css('display','block');} left=s.left||position.left;var wWidth=$(window).width();if(left+width>wWidth){le ft=left-(left+width-wWidth);} $message.css({display:'none',visibility:'visible',top:s.top||(position.top-2*hei ght),left:left,width:s.width}).animate({top:'+='+height,opacity:'show'},s.speed, function(){if(s.autoHide){timeout=setTimeout(remove,s.autoHide);}}).click(remove );};this.destroy=function(){$message.remove();$.removeData(target,'message');$.e vent.trigger('messageclose');};function remove(e) {if(s.status=='confirm'&&!$(e.target).hasClass('x-message-action')){return false } clearTimeout(timeout);var status=e&&e.target&&/ok/.test(e.target.className)?'ok' :'abort';if(s.onClose.apply($message[0],[e,status,self])===false){return false;} self.destroy();return false;}};})(jimdoGen002);;;(function($){$.fn.xSlider=funct ion(options){var args=Array.prototype.slice.call(arguments,1),ret;this.each(func tion(){instance=$.data(this,'xSlider')||$.data(this,'xSlider',new xSlider(this,o ptions));ret=instance[typeof options=='string'?options:'init'].apply(instance,ar gs);});return ret===undefined?this:ret;};$.fn.xSlider.defaults={slider:'.x-slide r',speed:500,value:0,axis:'x',cycle:true,next:null,prev:null,slide:function(){}, afterSlide:function(){}};function xSlider(elem,options) {var self=this,s=$.extend({},$.fn.xSlider.defaults,options),$elem=$(elem),slider Size=getElemSize(),$next,$prev,animationComplete=false,animating;self.value=0;th is.init=function() {self.update();if(self.$slider.length<1)return;var value=valueToNum(s.value);$el em.addClass('x-slider-wrapper').wrapInner('<div class="x-slider-scroll-sections" ></div>').bind('scroll',function(){!animating&&$elem.scrollLeft(self.value*$elem .innerWidth());}).bind('resize',function(e,size){self.resize(size);});self.slide (value);self.$slider.eq(value).addClass('x-slider-active');if(s.next) $next=$(s.next).bind('click',function(){self.slide('next');return false;});if(s. prev) $prev=$(s.prev).bind('click',function(){self.slide('prev');return false;});};thi s.slide=function(value,c) {value=valueToNum(value);if(value==self.value||animating)return;if(s.cycle){valu e=value<0?self.$slider.length-1:value>=self.$slider.length?0:value;}else{if(valu e<0||value>=self.$slider.length){callback('afterSlide',c);return;};};self.$slide r.removeClass('x-slider-active').eq(value).addClass('x-slider-active');callback( 'slide');animating=true;$elem.addClass('x-slider-sliding').animate({scrollLeft:v alue*$elem.innerWidth()},s.speed,function(){$elem.removeClass('x-slider-sliding' );animating=false;animationComplete=true;callback('afterSlide',c);});self.value= value;};this.isAnimationComplete=function(){return animationComplete;};this.resi ze=function(size){sliderSize=size||getElemSize();self.$slider.css(sliderSize);se tTimeout(function(){$elem.scrollLeft(self.value*$elem.innerWidth());},10);};this .destroy=function(){$next&&$next.unbind('click');$prev&&$prev.unbind('click');$e lem.removeClass('x-slider-wrapper').unbind('scroll resize').removeData('xSlider' );};this.update=function(){self.$slider=$elem.find(s.slider).css(sliderSize);};t his.add=function(slider,callback){var $slider=$(slider).addClass('x-slider').css (sliderSize).appendTo($('.x-slider-scroll-sections',elem));self.$slider=self.$sl ider.add($slider);callback&&self.slide($slider[0],callback);};this.get=function(

value){return self.$slider.eq(valueToNum(value)).html();};function valueToNum(va lue){if(typeof value=='string') {var $slider=self.$slider.filter(value);if($slider.length>0) value=valueToNum($slider[0]);else if(value=='prev') value=self.value-1;else if(value=='next') value=self.value+1;else value=0;} else if(typeof value=='object') value=self.$slider.index(value);return value;};function getElemSize(){return{wid th:$elem.width(),height:$elem.height()};};function callback(name,c){$elem.trigge r(name,[self]);s[name].apply(elem,[$.Event(name),self]);$.isFunction(c)&&c.apply (elem,[$.Event(name),self]);};};})(jimdoGen002);;(function($){$.fn.ajaxForm=func tion(ajaxOptions,options){return this.each(function(){var method=typeof ajaxOpti ons=='string'?ajaxOptions:'init',instance=$.data(this,'ajaxForm');if(!instance){ instance=new ajaxForm($(this),ajaxOptions,options);$.data(this,'ajaxForm',instan ce);};return instance[method].call(instance,options);});};$.fn.ajaxForm.defaults ={disable:true,addClasses:true,selector:'input, textarea, button, select',prefix :'ajax-form',ajax:{type:'post',dataType:'json'}};function ajaxForm($f,ajaxOption s,options){var s=$.extend(true,{},$.fn.ajaxForm.defaults,options),submitBtn,send ing=false,$elements;$.extend(true,s.ajax,ajaxOptions);var _success=s.ajax.succes s;this.init=function(){$f.addClass(s.prefix).bind('submit',submit).bind('click', clickHandler);s.addClasses&&$(s.selector,$f).each(function(){this.type&&$(this). addClass(s.prefix+'-'+this.type);});return this;};this.destroy=function(){$f.rem oveClass(s.prefix).unbind('submit',submit).unbind('click',clickHandler).removeDa ta('ajaxForm');return this;};function submit(){if(sending)return false;sending=t rue;$f.addClass(s.prefix+'-sending');submitBtn&&$(submitBtn).addClass(s.prefix+' -submit-btn');$.extend(s.ajax,{url:s.ajax.url||$f.attr('action'),success:functio n(r){sending=false;$f.removeClass(s.prefix+'-sending');submitBtn&&$(submitBtn).r emoveClass(s.prefix+'-submit-btn');s.disable&&$elements&&$elements.removeAttr('d isabled');_success&&_success(r);},context:$f[0]});var hasFiles=!!$('input[type=" file"]',$f).length;if(hasFiles){$f.fileUpload(s.ajax);s.disable&&setTimeout(disa ble);}else{var formData=$f.form2Obj();submitBtn&&submitBtn.name&&(formData[submi tBtn.name]=submitBtn.value);s.ajax.data=s.ajax.data?$.extend(s.ajax.data,formDat a):formData;$.ajax(s.ajax);disable();} return hasFiles;} function disable(){$elements=$(s.selector,$f).filter(':enabled:visible').attr('d isabled','disabled');} function clickHandler(e){submitBtn=e.target;}}})(jimdoGen002);;(function($){var defaults={elements:'input, select, textarea, button',invisible:true};$.fn.form2O bj=function(options){var s=$.extend({},defaults,options),$elems=$(s.elements,thi s),undefined;s.invisible===false&&($elems=$elems.filter(':visible'));$elems=$ele ms.not('[data-noserialize="1"]');var data=$elems.serializeArray(),ret={};for(var i=0;i<data.length;++i){ret[data[i].name]===undefined&&(ret[data[i].name]=data[i ].value);} return ret;};})(jimdoGen002);;(function($,window){$.fn.fileUpload=function(optio ns){var s=$.extend(true,{},$.ajaxSettings,arguments.callee.defaults,options);ifr ameUpload(this,s);};$.fn.fileUpload.defaults={dataType:'json',type:'post',timeou t:60*60*10000};var timestamp=(new Date).getTime();function iframeUpload(form,s){ var _attr={target:form.target,enctype:form.enctype,method:form.method,action:form.ac tion},attr={target:'file-upload-'+(timestamp++),enctype:'multipart/form-data',me thod:'POST',action:s.url||form.action},onloadTimeout,$f=$(form),$iframe,$ajaxDat a;var types={'content-type':s.dataType,'Last-Modified':null,Etag:null};var xhr={ responseText:null,responseXML:null,status:0,readyState:4,statusText:'',getAllRes ponseHeaders:$.noop,setRequestHeader:$.noop,open:function(type,url,async){$ifram e=$('<iframe name="'+attr.target+'" src="javascript:;" style="display:none;"></i frame>').insertAfter(form);$f.attr(attr);},send:function(data){if(data){data=dat a.split('&');var ajaxData='';$.each(data,function(i,param){param=param.split('=' );if(param[0]&&param[1]){ajaxData+='<input type="hidden" name="'+param[0]+'" val ue="'+param[1]+'" />';}});$ajaxData=$(ajaxData).appendTo(form);}

$f.submit();onload();},getResponseHeader:function(type){return types[type];},abo rt:function(){close();}};function onload(){var doc=$iframe[0].contentDocument||$ iframe[0].contentWindow.document,isXml=s.dataType==='xml'||doc.XMLDocument||$.is XMLDoc(doc);if(!isXml&&(!doc.body||!doc.body.innerHTML)){onloadTimeout=setTimeou t(onload,500);return;} $.extend(xhr,{status:200,responseText:doc.body?doc.body.innerHTML:null,responseX ML:doc.XMLDocument?doc.XMLDocument:doc});if(s.dataType==='json'||s.dataType==='s cript'){var ta=doc.getElementsByTagName('textarea')[0];xhr.responseText=ta?ta.va lue:xhr.responseText;}else if(s.dataType==='xml'&&!xhr.responseXML&&xhr.response Text!==null){xhr.responseXML=toXml(xhr.responseText);} xhr.onreadystatechange();close();} function close(){clearTimeout(onloadTimeout);$f.attr(_attr);$ajaxData&&$ajaxData .remove();setTimeout(function(){$iframe.remove();},150);} s.xhr=function(){return xhr;};$.ajax(s);} function toXml(s){if(window.ActiveXObject){var doc=new ActiveXObject('Microsoft. XMLDOM');doc.async='false';doc.loadXML(s);return doc;}else{return(new DOMParser( )).parseFromString(s,'text/xml');};}})(jimdoGen002,window);;;(function($){$.fn.x PngFix=function(options){return this.each(function(){$.xPngFix(this,options);}); };$.xPngFix=function(selector,context,options){if(!IE6)return false;if($.isPlain Object(context)){options=context;context=document;} var s=$.extend({},$.xPngFix.defaults,options);return $(selector,context).each(fu nction(i){fix(this,s);});};$.xPngFix.defaults={gif:'spacer.gif',relativise:false ,sizingMethod:null,className:'x-png-fix'};function fix(elem,s){var $elem=$(elem) ;if(elem.nodeName==='IMG'){if(!elem.src.match(rpng))return false;if(!elem.width| |!elem.height){var img=new Image;img.onload=function(){elem.width=this.width;ele m.height=this.height;fix(elem,s);};img.src=elem.src;return false;} elem.attachEvent('onpropertychange',function(e){if(e.propertyName==='src'&&elem. src.match(rpng)){elem.detachEvent('onpropertychange',arguments.callee);fix(elem, s);}});$elem.css({filter:getFilter(elem.src,'scale'),width:elem.width,height:ele m.height}).attr('src',s.gif);}else{var bg=$elem.css('backgroundImage');if(!bg.ma tch(rpng))return false;if(!s.sizingMethod){s.sizingMethod=$elem.css('backgroundR epeat')==='no-repeat'?'crop':'scale';} var css={filter:getFilter(bg.substring(5,bg.length-2),s.sizingMethod),background Image:'none'};if($elem.css('width')==='auto')css.width=elem.offsetWidth;if($elem .css('height')==='auto')css.height=elem.offsetHeight;$elem.css(css);s.relativise &&$('a, input, select, textarea',elem).each(function(){this.style.position===''& &(this.style.position='relative');});} $elem.addClass(s.className);} var IE6=$.browser.msie&&parseInt($.browser.version)<=6,rpng=/\.png/;function get Filter(src,method){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(src ='"+src+"', sizingMethod='"+method+"')";}})(jimdoGen002);;(function($,slice){$.f n.actionController=function(controller,options){return this.each(function(){var instance=$.data(this,'actionController')||$.data(this,'actionController',new act ionController($(this),controller,options));typeof controller=='string'&&instance [controller](options);});};$.fn.actionController.defaults={actionPrefix:'_',acti onAttr:'data-action',paramsAttr:'data-params',historyAttr:'data-history',default Action:'action',events:'click',history:false,context:'element'};function actionC ontroller($container,controller,options){this.enabled=true;this.$container=$cont ainer;this.controller=controller;var s=this.settings=$.extend({},$.fn.actionCont roller.defaults,options);s.history&&$.fn.historyManager&&$container.historyManag er();$('['+s.actionAttr+']',$container).live(s.events,$.proxy(this,'handler'));} actionController.prototype={destroy:function(){$('['+this.settings.actionAttr+'] ',this.$container).die(this.events,this.handler);this.$container.removeData('act ionController');},disable:function(){this.enabled=false;},enable:function(){this .enabled=true;},handler:function(e){if(!this.enabled)return;var s=this.settings, $target=$(e.currentTarget),args=arguments,params=$target.attr(s.paramsAttr),acti onSuffix=e.type.substr(0,1).toUpperCase()+e.type.substr(1),action=this.controlle r[s.actionPrefix+$.trim($target.attr(s.actionAttr))+actionSuffix],defaultAction= this.controller[s.actionPrefix+s.defaultAction+actionSuffix],context=s.context== 'controller'?this.controller:$target[0];if(params){params=$.map(params.split(','

),function(param,i){return $.trim(param);});args=slice.call(args,0).concat(param s);} if($.isFunction(defaultAction)&&defaultAction.apply(context,args)===false){retur n false;} if($.isFunction(action)){if(s.history){var historyMethod=$.trim($target.attr(s.h istoryAttr));if(!e.historyHandled&&historyMethod){$target.historyManager(history Method,function historyHandler(){action.apply(context,args);});return false;}} return action.apply(context,args);}}};})(jimdoGen002,Array.prototype.slice);;(fu nction($){var queue=[],lastHighPrio=0,delays={},pending=false,pause=false;$.sync =function(ajaxOptions,options){var s=$.extend({},$.sync.defaults,options),ajax=$ .extend({},s.ajaxOptions,ajaxOptions),_complete=ajax.complete;if(!s.queue){}else if(s.delay&&s.delay>0){clearTimeout(delays[ajax.url]);delays[ajax.url]=setTimeo ut(add,s.delay);}else add();function add(){clearTimeout(delays[ajax.url]);if(s.prio=='high'){queue.spl ice(lastHighPrio,0,send);lastHighPrio++;}else queue.push(send);!pause&&!pending&&queue[0]();};function send(){pending=true;aja x.complete=complete;if($.isFunction(ajax.data))ajax.data=ajax.data();$.ajax(ajax );queue.shift();lastHighPrio=s.prio=='high'?lastHighPrio-1:lastHighPrio;};functi on complete(ajax,status){_complete&&_complete.apply(this,arguments);pending=fals e;!pause&&queue.length&&queue[0]();};};$.extend($.sync,{pause:function(){pause=t rue;},run:function(){pause=false;!pending&&queue[0]&&queue[0]();},defaults:{queu e:true,delay:300,prio:'high',ajaxOptions:{dataType:'json'}}});})(jimdoGen002);;( function($){var t={};$.defer=function(id,fn,delay){if($.isFunction(id)){delay=fn ;fn=id;id=fn+'';} function abortDefer(){clearTimeout(t[id]);delete t[id];} t[id]&&clearTimeout(t[id]);t[id]=setTimeout(fn,delay);return abortDefer;};})(jim doGen002);;(function($,doc){var cache={};$.cachedQuery=$.cq=function cachedQuery (selector,context){if(!context)context=doc;if(!cache[context])cache[context]={}; if(!cache[context][selector]) cache[context][selector]=$(selector,context);return cache[context][selector];};} )(jimdoGen002,document);;(function($){$.fn.extend({popup:function(){var args=Arr ay.prototype.slice.call(arguments);return this.each(function(){var self=this,ins tance=$.data(self,'popup')||$.data(self,'popup',$.popup.apply(self,args)),method =Array.prototype.shift.call(args);if(method&&typeof method==='string'&&method.ch arAt(0)!=='_'&&$.isFunction(instance[method])){instance[method].apply(instance,a rgs);}});}});$.fn.popup.defaults={popup:'.x-popup',events:'click keyup change',m aximizable:true,height:360,width:450};$.extend({popup:function(controller,opts,h tml){var self=this,template='\ <div id="x-popup-overlay" class="x-popup x-index-overlay" data-action="abortEsca pe"></div>\ <div id="x-popup-container" class="x-popup x-popup-border x-corner-all x-index-c ontainer">\ <div id="x-popup-buttons" class="x-popup x-index-container">\ <a href="#" data-action="abort" id="x-popup-close" title="{{closePopup}} " alt="{{closePopup}}"></a>\ {{#maximizable}}\ <a href="#" data-action="resize" id="x-popup-resize" title="{{resizePopu p}}" alt="{{resizePopup}}"></a>\ {{/maximizable}}\ </div>\ <div id="x-popup-content" class="x-popup">\ </div>\ </div>\ ',$popup,$container,maximized=false,defaults=$.fn.popup.defaults,options ={};this.init=function(){$.extend(options,defaults,opts);var doc=top.document;$p opup=$(Mustache.to_html(template,$.extend(options,$.jimdoData.tr.popup))).action Controller($.extend(self,controller),{events:options.events});$container=$popup. filter('#x-popup-container');$popup.filter('#x-popup-overlay').bind('click.popup ',self.destroy);options.zIndex&&$container.css('z-index',options.zIndex);$popup. appendTo(doc.body);$container.css({width:options.width,height:options.height}).c

ss(self._getOffsetPosition()).find('#x-popup-content').append(html||self);$(doc) .bind('keyup.popup',abortEscape);};this._abortClick=function(e){e.preventDefault ();self.destroy();};this._resizeClick=function(e){e.preventDefault();if(maximize d){$container.removeClass('x-popup-maximized').css($.extend({width:options.width ,height:options.height},self._getOffsetPosition()));}else{$container.addClass('x -popup-maximized').removeAttr('style');} maximized=!maximized;self.resize();};this._getOffsetPosition=function(){if(!opti ons.outerWidth){options.outerWidth=$container.outerWidth(true);} if(!options.outerHeight){options.outerHeight=$container.outerHeight(true);} var $window=$(top.window);return{top:parseInt(($window.height()-options.outerHei ght)/3,10),left:parseInt(($window.width()-options.outerWidth)/2,10)};};this.resi ze=$.noop;this.destroy=function(){var doc=top.document;$(doc).unbind('.popup');$ popup.data('actionController').destroy();$popup.filter('#x-popup-overlay').remov e();if(!$.support.opacity){$container.css('background','transparent none').find( '#x-popup-buttons a').css('background','transparent none');} $container.fadeOut('fast',function(){$(this).remove();});};function abortEscape( e){e.keyCode===27&&self.destroy();} self.init();return self;}});})(jimdoGen002);

You might also like