/* * 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 new jimdoGen002.fn.init(selector,context);},_jimdoGen002=window.jimdoGen002,_$=window.$,document=window.document,rootjimdoGen002,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;jimdoGen002.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)){selector=[document.createElement(ret[1])];jimdoGen002.fn.attr.call(selector,context,true);}else{selector=[doc.createElement(ret[1])];}}else{ret=buildFragment([match[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=document.getElementsByTagName(selector);return jimdoGen002.merge(this,selector);}else if(!context||context.jquery){return(context||rootjimdoGen002).find(selector);}else{return jimdoGen002(context).find(selector);}}else if(jimdoGen002.isFunction(selector)){return rootjimdoGen002.ready(selector);} if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.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,elems);} ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else if(name){ret.selector=this.selector+"."+name+"("+selector+")";} return ret;},each:function(callback,args){return jimdoGen002.each(this,callback,args);},ready:function(fn){jimdoGen002.bindReady();if(jimdoGen002.isReady){fn.call(document,jimdoGen002);}else if(readyList){readyList.push(fn);} return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jimdoGen002.map(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){return this.prevObject||jimdoGen002(null);},push:push,sort:[].sort,splice:[].splice};jimdoGen002.fn.init.prototype=jimdoGen002.fn;jimdoGen002.extend=jimdoGen002.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=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
a";var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;} jimdoGen002.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){} root.insertBefore(script,root.firstChild);if(window[id]){jimdoGen002.support.scriptEval=true;delete window[id];} try{delete script.test;}catch(e){jimdoGen002.support.deleteExpando=false;} root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){jimdoGen002.support.noCloneEvent=false;div.detachEvent("onclick",click);});div.cloneNode(true).fireEvent("onclick");} div=document.createElement("div");div.innerHTML="";var fragment=document.createDocumentFragment();fragment.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.offsetWidth===2;document.body.removeChild(div).style.display='none';div=null;});var eventSupported=function(eventName){var el=document.createElement("div");eventName="on"+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,"return;");isSupported=typeof el[eventName]==="function";} el=null;return isSupported;};jimdoGen002.support.submitBubbles=eventSupported("submit");jimdoGen002.support.changeBubbles=eventSupported("change");root=script=div=all=a=null;})();jimdoGen002.props={"for":"htmlFor","class":"className",readonly:"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:function(elem,name,data){if(elem.nodeName&&jimdoGen002.noData[elem.nodeName.toLowerCase()]){return;} elem=elem==window?windowData:elem;var id=elem[expando],cache=jimdoGen002.cache,thisCache;if(!id&&typeof name==="string"&&data===undefined){return null;} if(!id){id=++uuid;} if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=jimdoGen002.extend(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(elem,name){if(elem.nodeName&&jimdoGen002.noData[elem.nodeName.toLowerCase()]){return;} elem=elem==window?windowData:elem;var id=elem[expando],cache=jimdoGen002.cache,thisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(jimdoGen002.isEmptyObject(thisCache)){jimdoGen002.removeData(elem);}}}else{if(jimdoGen002.support.deleteExpando){delete elem[jimdoGen002.expando];}else if(elem.removeAttribute){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===undefined&&this.length){data=jimdoGen002.data(this[0],key);} return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jimdoGen002.data(this,key,value);});}},removeData:function(key){return this.each(function(){jimdoGen002.removeData(this,key);});}});jimdoGen002.extend({queue:function(elem,type,data){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.makeArray(data));}else{q.push(data);} return q;},dequeue:function(elem,type){type=type||"fx";var queue=jimdoGen002.queue(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.extend({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);}});},dequeue:function(type){return this.each(function(){jimdoGen002.dequeue(this,type);});},delay:function(time,type){time=jimdoGen002.fx?jimdoGen002.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){jimdoGen002.dequeue(elem,type);},time);});},clearQueue:function(type){return this.queue(type||"fx",[]);}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;jimdoGen002.fn.extend({attr:function(name,value){return access(this,name,value,true,jimdoGen002.attr);},removeAttr:function(name,fn){return this.each(function(){jimdoGen002.attr(this,name,"");if(this.nodeType===1){this.removeAttribute(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-1){return true;}} return false;},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jimdoGen002.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;} if(jimdoGen002.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=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=0;}else if(jimdoGen002.nodeName(this,"select")){var values=jimdoGen002.makeArray(val);jimdoGen002("option",this).each(function(){this.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,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||elem.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=rspecialurl.test(name);if(name==="selected"&&!jimdoGen002.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}} if(name in elem&¬xml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodeName)&&elem.parentNode){jimdoGen002.error("type property can't be changed");} elem[name]=value;} if(jimdoGen002.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(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&¬xml&&name==="style"){if(set){elem.style.cssText=""+value;} return elem.style.cssText;} if(set){elem.setAttribute(name,""+value);} var attr=!jimdoGen002.support.hrefNormalized&¬xml&&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||elem.nodeType===8){return;} if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window;} var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handleObjIn.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,eventHandle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof jimdoGen002!=="undefined"&&!jimdoGen002.event.triggered?jimdoGen002.event.handle.apply(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=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".");}else{namespaces=[];handleObj.namespace="";} handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],special=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(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);}}} if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.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,origType,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(type 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=namespaces.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=0){event.type=type=type.slice(0,-1);event.exclusive=true;} if(!elem){event.stopPropagation();if(jimdoGen002.event.global[type]){jimdoGen002.each(jimdoGen002.cache,function(){if(this.events&&this.events[type]){jimdoGen002.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.unshift(event);} event.currentTarget=elem;var handle=jimdoGen002.data(elem,"handle");if(handle){handle.apply(elem,data);} var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&jimdoGen002.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;}}}catch(e){} if(!event.isPropagationStopped()&&parent){jimdoGen002.event.trigger(event,data,parent,true);}else if(!event.isDefaultPrevented()){var target=event.target,old,isClick=jimdoGen002.nodeName(target,"a")&&type==="click",special=jimdoGen002.event.special[type]||{};if((!special._default||special._default.call(elem,event)===false)&&!isClick&&!(target&&target.nodeName&&jimdoGen002.noData[target.nodeName.toLowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+type]=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,namespaces,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();namespace=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-1?jimdoGen002.map(elem.options,function(elem){return elem.selected;}).join("-"):"";}else if(elem.nodeName.toLowerCase()==="select"){val=elem.selectedIndex;} return val;},testChange=function testChange(e){var elem=e.target,data,val;if(!formElems.test(elem.nodeName)||elem.readOnly){return;} data=jimdoGen002.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||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,click:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkbox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e);}},keydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e);}},beforeactivate:function(e){var elem=e.target;jimdoGen002.data(elem,"_change_data",getVal(elem));}},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);}};changeFilters=jimdoGen002.event.special.change.filters;} function trigger(type,elem,args){args[0].type=type;return jimdoGen002.event.handle.apply(elem,args);} if(document.addEventListener){jimdoGen002.each({focus:"focusin",blur:"focusout"},function(orig,fix){jimdoGen002.event.special[fix]={setup:function(){this.addEventListener(orig,handler,true);},teardown:function(){this.removeEventListener(orig,handler,true);}};function handler(e){e=jimdoGen002.event.fix(e);e.type=fix;return jimdoGen002.event.handle.call(this,e);}});} jimdoGen002.each(["bind","one"],function(i,name){jimdoGen002.fn[name]=function(type,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+~,(\[\\]+)+|[>+~])(\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(selector,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=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break;}} if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[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.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];} if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):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(results,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&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;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":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i=0)){if(!inplace){result.push(elem);}}else if(inplace){curLoop[i]=false;}}} return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){return match[1].toLowerCase();},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[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,isXML){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]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);} return false;}}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;} return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return!!elem.firstChild;},empty:function(elem){return!elem.firstChild;},has:function(elem,i,match){return!!Sizzle(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"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},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:function(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 imatch[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.filters[name];if(filter){return filter(elem,i,match,array);}else if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(var i=0,l=not.length;i=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.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.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.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.childNodes,0)[0].nodeType;}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};} root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(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="";if(div.firstChild&&typeof div.firstChild.getAttribute!=="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="

";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;} Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}} return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];} div=null;})();} (function(){var div=document.createElement("div");div.innerHTML="
";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return;} div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return;} Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i0){match=elem;break;}} elem=elem[dir];} checkSet[i]=match;}}} var contains=document.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16);}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");} selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i=0)===keep;});};jimdoGen002.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;for(var i=0,l=this.length;i0){for(var n=length;n0;},closest:function(selectors,context){if(jimdoGen002.isArray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i-1:jimdoGen002(cur).is(match)){ret.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.ownerDocument&&cur!==context){if(pos?pos.index(cur)>-1:jimdoGen002(cur).is(selectors)){return cur;} cur=cur.parentNode;} return null;});},index:function(elem){if(!elem||typeof elem==="string"){return jimdoGen002.inArray(this[0],elem?jimdoGen002(elem):this.parent().children());} return jimdoGen002.inArray(elem.jquery?elem[0]:elem,this);},add:function(selector,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:jimdoGen002.unique(all));},andSelf:function(){return this.add(this.prevObject);}});function isDisconnected(node){return!node||!node.parentNode||node.parentNode.nodeType===11;} jimdoGen002.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return jimdoGen002.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return jimdoGen002.dir(elem,"parentNode",until);},next:function(elem){return jimdoGen002.nth(elem,2,"nextSibling");},prev:function(elem){return jimdoGen002.nth(elem,2,"previousSibling");},nextAll:function(elem){return jimdoGen002.dir(elem,"nextSibling");},prevAll:function(elem){return jimdoGen002.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return jimdoGen002.dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return jimdoGen002.dir(elem,"previousSibling",until);},siblings:function(elem){return jimdoGen002.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jimdoGen002.sibling(elem.firstChild);},contents:function(elem){return jimdoGen002.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jimdoGen002.makeArray(elem.childNodes);}},function(name,fn){jimdoGen002.fn[name]=function(until,selector){var ret=jimdoGen002.map(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 matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==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;for(;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.nodeType===1&&n!==elem){r.push(n);}} return r;}});var rinlinejimdoGen002=/ jimdoGen002\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/";},wrapMap={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!jimdoGen002.support.htmlSerialize){wrapMap._default=[1,"div
","
"];} jimdoGen002.fn.extend({text:function(text){if(jimdoGen002.isFunction(text)){return this.each(function(i){var self=jimdoGen002(this);self.text(text.call(this,i,self.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);if(this[0].parentNode){wrap.insertBefore(this[0]);} wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;} return elem;}).append(this);} return this;},wrapInner:function(html){if(jimdoGen002.isFunction(html)){return this.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:function(html){return this.each(function(){jimdoGen002(this).wrapAll(html);});},unwrap:function(){return this.parent().each(function(){if(!jimdoGen002.nodeName(this,"body")){jimdoGen002(this).replaceWith(this.childNodes);}}).end();},append:function(){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.firstChild);}});},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.toArray());return this.pushStack(set,"before",arguments);}},after:function(){if(this[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(var i=0,elem;(elem=this[i])!=null;i++){if(!selector||jimdoGen002.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){jimdoGen002.cleanData(elem.getElementsByTagName("*"));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(elem.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,ownerDocument=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{return this.cloneNode(true);}});if(events===true){cloneCopyEvent(this,ret);cloneCopyEvent(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(typeof value==="string"&&!rnocache.test(value)&&(jimdoGen002.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i0||results.cacheable||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")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("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),events=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,doc=(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(cacheresults!==1){fragment=cacheresults;}}} if(!fragment){fragment=doc.createDocumentFragment();jimdoGen002.clean(args,doc,fragment,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(name,original){jimdoGen002.fn[name]=function(selector){var ret=[],insert=jimdoGen002(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this;}else{for(var i=0,l=insert.length;i0?this.clone(true):this).get();jimdoGen002.fn[original].apply(jimdoGen002(insert[i]),elems);ret=ret.concat(elems);} return this.pushStack(ret,name,insert.selector);}};});jimdoGen002.extend({clean:function(elems,context,fragment,scripts){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[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._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[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]===""&&!hasBody?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.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);} 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],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(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,special=jimdoGen002.event.special,deleteExpando=jimdoGen002.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[jimdoGen002.expando];if(id){data=cache[id];if(data.events){for(var type in data.events){if(special[type]){jimdoGen002.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-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=jimdoGen002.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase();};jimdoGen002.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)+""==="NaN"?"":"alpha(opacity="+value*100+")";var filter=style.filter||jimdoGen002.curCSS(elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):opacity;} return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(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;function getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){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){var 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(rfloat.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 camelCase=name.replace(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentStyle[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 options){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=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeName.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height>0&&!skip?false:jimdoGen002.curCSS(elem,"display")==="none";};jimdoGen002.expr.filters.visible=function(elem){return!jimdoGen002.expr.filters.hidden(elem);};} var jsc=now(),rscript=//gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=jimdoGen002.fn.load;jimdoGen002.fn.extend({load:function(url,params,callback){if(typeof url!=="string"){return _load.call(this,url);}else if(!this.length){return this;} var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);} var type="GET";if(params){if(jimdoGen002.isFunction(params)){callback=params;params=null;}else if(typeof params==="object"){params=jimdoGen002.param(params,jimdoGen002.ajaxSettings.traditional);type="POST";}} var self=this;jimdoGen002.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status==="success"||status==="notmodified"){self.html(selector?jimdoGen002("
").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());},serializeArray:function(){return this.map(function(){return this.elements?jimdoGen002.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=jimdoGen002(this).val();return val==null?null:jimdoGen002.isArray(val)?jimdoGen002.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jimdoGen002.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){jimdoGen002.fn[o]=function(f){return this.bind(o,f);};});jimdoGen002.extend({get: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,callback,"script");},getJSON:function(url,data,callback){return jimdoGen002.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jimdoGen002.isFunction(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.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest();}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=jimdoGen002.extend(true,{},jimdoGen002.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof 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.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else if(!s.data||!jsre.test(s.data)){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.jsonpCallback||("jsonp"+jsc++);if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");} s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=window[jsonp]||function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{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 script=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==="complete")){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("Content-Type",s.contentType);} if(s.ifModified){if(jimdoGen002.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",jimdoGen002.lastModified[s.url]);} if(jimdoGen002.etag[s.url]){xhr.setRequestHeader("If-None-Match",jimdoGen002.etag[s.url]);}} if(!remote){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");} xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":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.readyState===0||isTimeout==="abort"){if(!requestDone){complete();} requestDone=true;if(xhr){xhr.onreadystatechange=jimdoGen002.noop;}}else if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=jimdoGen002.noop;status=isTimeout==="timeout"?"timeout":!jimdoGen002.httpSuccess(xhr)?"error":s.ifModified&&jimdoGen002.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=jimdoGen002.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}} if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{jimdoGen002.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){onreadystatechange("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.context||s,xhr,status,e);} if(s.global){(s.context?jimdoGen002(s.context):jimdoGen002.event).trigger("ajaxError",[xhr,s,e]);}},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.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.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){jimdoGen002.lastModified[url]=lastModified;} if(etag){jimdoGen002.etag[url]=etag;} return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="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("javascript")>=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(jimdoGen002.isArray(obj)){jimdoGen002.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||jimdoGen002.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.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});var elemdisplay={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];jimdoGen002.fn.extend({show:function(speed,callback){if(speed||speed===0){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i").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=0;i--){if(timers[i].elem===this){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 this.animate(props,speed,callback);};});jimdoGen002.extend({speed:function(speed,easing,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:typeof opt.duration==="number"?opt.duration:jimdoGen002.fx.speeds[opt.duration]||jimdoGen002.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:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,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;if(!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.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.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.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);} t.elem=this.elem;if(t()&&jimdoGen002.timers.push(t)&&!timerId){timerId=setInterval(jimdoGen002.fx.tick,13);}},show:function(){this.options.orig[this.prop]=jimdoGen002.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();},hide:function(){this.options.orig[this.prop]=jimdoGen002.style(this.elem,this.prop);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]=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}} if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var old=jimdoGen002.data(this.elem,"olddisplay");this.elem.style.display=old?old:this.options.display;if(jimdoGen002.css(this.elem,"display")==="none"){this.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){jimdoGen002.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":"linear");this.pos=jimdoGen002.easing[specialEasing||defaultEasing](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();} return true;}};jimdoGen002.extend(jimdoGen002.fx,{tick:function(){var timers=jimdoGen002.timers;for(var i=0;i
";jimdoGen002.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild;checkDiv=innerDiv.firstChild;td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDiv=table=td=null;jimdoGen002.offset.initialize=jimdoGen002.noop;},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;jimdoGen002.offset.initialize();if(jimdoGen002.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(jimdoGen002.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(jimdoGen002.curCSS(elem,"top",true),10)||0,curLeft=parseInt(jimdoGen002.curCSS(elem,"left",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.left)+curLeft};if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};jimdoGen002.fn.extend({position:function(){if(!this[0]){return null;} var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(jimdoGen002.curCSS(elem,"marginTop",true))||0;offset.left-=parseFloat(jimdoGen002.curCSS(elem,"marginLeft",true))||0;parentOffset.top+=parseFloat(jimdoGen002.curCSS(offsetParent[0],"borderTopWidth",true))||0;parentOffset.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(offsetParent.nodeName)&&jimdoGen002.css(offsetParent,"position")==="static")){offsetParent=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;if(!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.document.documentElement[method]||win.document.body[method]:elem[method];}};});function 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){return this[0]?jimdoGen002.css(this[0],type,false,margin?"margin":"border"):null;};jimdoGen002.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this;} if(jimdoGen002.isFunction(size)){return this.each(function(i){var self=jimdoGen002(this);self[type](size.call(this,i,self[type]()));});} return("scrollTo"in elem&&elem.document&&!elem.parentNode)?elem.document.compatMode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document.body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name]):size===undefined?jimdoGen002.css(elem,type):this.css(type,typeof size==="string"?size:size+"px");};});window.jimdoGen002=window.$=jimdoGen002;})(window);;this.Class=(function(slice,noop,undefined){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={};};_class.classes[i].apply(inst,args);};typeof inst.init=='function'&&inst.init();return inst;};instantiate.extend=function extend(subclass){var instantiate=Class(subclass);subclass.classes.unshift.apply(subclass.classes,_class.classes);return instantiate;};_class.classes=[_class];return instantiate;};return Class;})(Array.prototype.slice,function(){});;;(function($){$.xLazyLoader=function(method,options){if(typeof method=='object'){options=method;method='init';};new xLazyLoader()[method](options);};$.xLazyLoader.defaults={js:[],css:[],img:[],jsKey:null,cssKey:null,imgKey:null,name:null,timeout:20000,success:$.noop,error:$.noop,complete:$.noop,each:$.noop};var head=document.getElementsByTagName("head")[0];function xLazyLoader() {var self=this,s,loaded=[],errors=[],tTimeout,cssTimeout,toLoad,files=[];this.init=function(options) {if(!options)return;s=$.extend({},$.xLazyLoader.defaults,options);toLoad={js:s.js,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('error');return;};if(s.timeout){tTimeout=setTimeout(function(){var handled=loaded.concat(errors);$.each(files,function(i,file){$.inArray(file,handled)==-1&&errors.push(file);});dispatchCallbacks('error');},s.timeout);};$.each(toLoad,function(type,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('pending')?$script.bind('scriptload',callback):callback();return;};var s=document.createElement('script');s.setAttribute("type","text/javascript");s.setAttribute('charset','UTF-8');s.setAttribute("src",src+key);s.setAttribute('id',name);s.setAttribute('pending',1);s.onerror=addError;$(s).bind('scriptload',function(){$(this).removeAttr('pending');callback();setTimeout(function(){$(s).unbind('scriptload');},10);});var done=false;s.onload=s.onreadystatechange=function(){if(!done&&(!this.readyState||/loaded|complete/.test(this.readyState))){done=true;s.onload=s.onreadystatechange=null;$(s).trigger('scriptload');};};head.appendChild(s);};this.css=function(href,callback,name,key) {if($('link[href*="'+href+'"]').length){callback();return;};var link=$('')[0];if($.browser.msie){link.onreadystatechange=function(){/loaded|complete/.test(link.readyState)&&callback();};}else if($.browser.opera){link.onload=callback;}else{var hostname=location.hostname.replace('www.',''),hrefHostname=/http:/.test(href)?/^(\w+:)?\/\/([^\/?#]+)/.exec(href)[2]:hostname;hostname!=hrefHostname&&$.browser.mozilla?callback():(function(){try{link.sheet.cssRules;}catch(e){cssTimeout=setTimeout(arguments.callee,20);return;};callback();})();};head.appendChild(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(name) {$('#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-'http://s.jimdo.com/app/cdn/min/group/+(s.name?s.name:new Date().getTime()),s[type+'Key']?'?key='+s[type+'Key']:'');};function dispatchCallbacks(status){s.complete(status,loaded,errors);clearTimeout(tTimeout);clearTimeout(cssTimeout);try{s[status](status=='error'?errors:loaded);}catch(e){window.console&&console.debug(e);}};function checkProgress(){if(loaded.length==files.length)dispatchCallbacks('success') else if(loaded.length+errors.length==files.length)dispatchCallbacks('error');};function addError(){errors.push(this.src);checkProgress();};};})(jimdoGen002);;;(function($){$.fn.xPngFix=function(options){return this.each(function(){$.xPngFix(this,options);});};$.xPngFix=function(selector,context,options){if(!IE6)return false;if($.isPlainObject(context)){options=context;context=document;} var s=$.extend({},$.xPngFix.defaults,options);return $(selector,context).each(function(i){fix(this,s);});};$.xPngFix.defaults={gif:'spacer.gif'/*tpa=http://s.jimdo.com/app/cdn/min/group/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;elem.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:elem.height}).attr('src',s.gif);}else{var bg=$elem.css('backgroundImage');if(!bg.match(rpng))return false;if(!s.sizingMethod){s.sizingMethod=$elem.css('backgroundRepeat')==='no-repeat'?'crop':'scale';} var css={filter:getFilter(bg.substring(5,bg.length-2),s.sizingMethod),backgroundImage:'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 getFilter(src,method){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='"+method+"')";}})(jimdoGen002);;;(function($,window,document){$.fn.tinyLightbox=function(options){return this.each(function(){!$.data(this,'tinyLightbox')&&$.data(this,'tinyLightbox',new tinyLightbox(this,options)).init();});};$.fn.tinyLightbox.defaults={item:'a',slideshowSpeed:5000,slideshowAutostart:false,pathAttr:'href',descrAttr:'title',speed:300,labelImage:'Image',labelOf:'of',animation:'original',keyNavigation:true,cycle:true,minWidth:250,minHeight:190,overlayOpacity:0.7,bgiframe:true,easing:'swing'};var templateGalleryPicture='\
\
\
\
\ \ \ \ \ \ \
\
\
\ \ \ \
\
\ ';var templateSinglePicture='\ \ ';var urlExpr=/(\s((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/gi;function tinyLightbox(container,options){var self=this,$container=$(container),$tl,$elems,$stats,$descr,$prevNext,animations,activeIndex,animating,slideshowRunning=false,cycle;var s=this.s=$.extend({},$.fn.tinyLightbox.defaults,options);this.init=function() {cycle=s.cycle;animations=new $.fn.tinyLightbox[s.animation](self);$elems=$(s.item+'['+s.pathAttr+']',$container);$container.delegate(s.item,'click',function(){if(self.$tl)return false;activeIndex=$elems.index(this);if($elems.length>1){var template=templateGalleryPicture;}else{var template=templateSinglePicture;} self.$tl=$(template).appendTo(document.body);self.$overlay=$('#tiny-lightbox-overlay').css('opacity',s.overlayOpacity);resizeOverlay();self.$box=$('#tiny-lightbox-box');self.$image=$('#tiny-lightbox-image');self.path=$(this).attr(s.pathAttr);self.boxData={width:self.$box.width(),height:self.$box.height(),top:parseInt(self.$box.css('top'))+self.docData.scrollTop,borderWidth:(self.$box.outerWidth()-self.$box.innerWidth())/2||0};setLeft();self.$bar=$('#tiny-lightbox-bar');$descr=$('#tiny-lightbox-description');$stats=$('#tiny-lightbox-stats');updateBar();self.$tl.bind('click',function(e){if(animating)return false;var act=$(e.target).attr('data-action');if(!act)return;self[act]();return false;});$prevNext=$('#tiny-lightbox-next, #tiny-lightbox-prev').bind('mouseout mouseover',function(){$('span',this).toggleClass('tiny-lightbox-hover');});$(window).bind('resize scroll',resizeOverlay);s.keyNavigation&&$(document).bind('keydown',keyNavigation);s.bgiframe&&$.fn.bgiframe&&self.$tl.bgiframe();animations.start(function(){preload(self.path,function(){animations.animate(function(){resizeOverlay();self.$tl.removeClass('tiny-lightbox-animating');if(s.slideshowAutostart){animating=setTimeout(self.slideshow,s.slideshowSpeed);self.$bar.addClass('tiny-lightbox-slideshow-animating');};});});});return false;});};this.showNext=function(){change(activeIndex+1,null,true);};this.showPrev=function(){change(activeIndex-1,null,true);};this.slideshow=function(start){clearTimeout(slideshowRunning);if(slideshowRunning&&!start){slideshowRunning=false;cycle=s.cycle;self.$bar.removeClass('tiny-lightbox-slideshow-animating');}else{slideshowRunning=true;cycle=true;self.$bar.addClass('tiny-lightbox-slideshow-animating');change(activeIndex+1,function(){slideshowRunning=setTimeout(function(){self.slideshow(true);},s.slideshowSpeed);});};};this.close=function(){clearTimeout(slideshowRunning);$prevNext.unbind('mouseover mouseout');$(window).unbind('resize scroll',resizeOverlay);s.keyNavigation&&$(document).unbind('keydown',keyNavigation);self.$tl.unbind('click');animations.close(function(){self.$tl.remove();delete self.$tl;});};function resizeOverlay(){self.docData={width:$(window).width(),height:$(document).height(),scrollTop:$(window).scrollTop(),scrollLeft:$(window).scrollLeft()};self.$tl.add(self.$overlay).css({height:self.docData.height,width:self.docData.width});};function keyNavigation(e){e.keyCode==39?self.showNext():e.keyCode==37?self.showPrev():e.keyCode==27&&self.close();};function preload(url,callback){self.$tl.addClass('tiny-lightbox-loading');var img=new Image();img.onload=function(){self.$tl.removeClass('tiny-lightbox-loading');$.extend(self.boxData,{width:img.width>s.minWidth?img.width:s.minWidth,height:img.height>s.minHeight?img.height:s.minHeight});setLeft();callback();};img.src=self.path=url;};function setLeft(){self.boxData.left=(self.docData.width-(self.boxData.width+self.boxData.borderWidth*2))/2;};function updateBar(){$stats.text(s.labelImage+' '+(activeIndex+1)+' '+s.labelOf+' '+$elems.length);var descr=$elems.eq(activeIndex).attr(s.descrAttr);descr=descr.replace(urlExpr,'$1');$descr.html(descr)[descr?'show':'hide']();};function change(id,callback,click){if(animating)return;if(click&&slideshowRunning){self.slideshow(true);return};if(id>$elems.length-1||id<0){if(cycle){change(id<0?$elems.length-1:0,callback);}}else{activeIndex=id;animating=true;self.$tl.addClass('tiny-lightbox-animating');animations.prepare(function(){preload($elems.eq(activeIndex).attr(s.pathAttr),function(){updateBar();animations.animate(function(){self.$tl.removeClass('tiny-lightbox-animating');resizeOverlay();$(callback);animating=false;});});});};};};})(jimdoGen002,window,document);;;(function($){$.fn.tinyLightbox.original=function(inst){this.start=function(callback){inst.$overlay.animate({opacity:'show'},inst.s.speed,inst.s.easing,function(){inst.$box.css({visibility:'visible',left:inst.boxData.left,top:inst.boxData.top});callback();});};this.animate=function(callback){inst.$box.animate({height:inst.boxData.height},inst.s.speed,inst.s.easing,function(){$(this).animate({width:inst.boxData.width,left:inst.boxData.left},inst.s.speed,inst.s.easing,function(){inst.$image.css('background-image','url('+inst.path+')').fadeIn(inst.s.speed,function(){inst.$bar.css({top:inst.boxData.top+inst.boxData.height+inst.boxData.borderWidth*2,left:inst.boxData.left,width:inst.boxData.width}).slideDown(inst.s.speed,callback);});});});};this.prepare=function(callback){inst.$bar.slideUp(inst.s.speed,function(){inst.$image.fadeOut(inst.s.speed,callback);});};this.limit=function(callback){(function shake(times,distance,dir,timesNow){timesNow++;dir=dir=='+'?'-':'+';inst.$bar.hide();inst.$box.animate({left:dir+'='+distance},150,function(){timesNow0){clearTimeout(delays[ajax.url]);delays[ajax.url]=setTimeout(add,s.delay);}else add();function add(){clearTimeout(delays[ajax.url]);if(s.prio=='high'){queue.splice(lastHighPrio,0,send);lastHighPrio++;}else queue.push(send);!pause&&!pending&&queue[0]();};function send(){pending=true;ajax.complete=complete;if($.isFunction(ajax.data))ajax.data=ajax.data();$.ajax(ajax);queue.shift();lastHighPrio=s.prio=='high'?lastHighPrio-1:lastHighPrio;};function complete(ajax,status){_complete&&_complete.apply(this,arguments);pending=false;!pause&&queue.length&&queue[0]();};};$.extend($.sync,{pause:function(){pause=true;},run:function(){pause=false;!pending&&queue[0]&&queue[0]();},defaults:{queue:true,delay:300,prio:'high',ajaxOptions:{dataType:'json'}}});})(jimdoGen002);;(function($,slice){$.fn.actionController=function(controller,options){return this.each(function(){var instance=$.data(this,'actionController')||$.data(this,'actionController',new actionController($(this),controller,options));typeof controller=='string'&&instance[controller](options);});};$.fn.actionController.defaults={actionPrefix:'_',actionAttr:'data-action',paramsAttr:'data-params',historyAttr:'data-history',defaultAction:'action',events:'click',history:false,context:'element'};function actionController($container,controller,options){this.enabled=true;this.$container=$container;this.controller=controller;var s=this.settings=$.extend({},$.fn.actionController.defaults,options);s.history&&$.fn.historyManager&&$container.historyManager();$('['+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('actionController');},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),actionSuffix=e.type.substr(0,1).toUpperCase()+e.type.substr(1),action=this.controller[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(params);} if($.isFunction(defaultAction)&&defaultAction.apply(context,args)===false){return false;} if($.isFunction(action)){if(s.history){var historyMethod=$.trim($target.attr(s.historyAttr));if(!e.historyHandled&&historyMethod){$target.historyManager(historyMethod,function historyHandler(){action.apply(context,args);});return false;}} return action.apply(context,args);}}};})(jimdoGen002,Array.prototype.slice);;(function($){$.fn.humanMsg=function(message,options) {return this.each(function(){var elem=this==window||this==document?document.body:this;!$.data(elem,'humanMsg')&&$.data(elem,'humanMsg',new $.humanMsg(elem,message,options));});};$.fn.humanMsg.defaults={message:'no message was set',autoHide:3000,addClass:'',speed:300};$.humanMsg=function(container,message,options) {if(typeof message=='object'){options=message;message=null;};var s=$.extend({},$.fn.humanMsg.defaults,options),tpl='\
\
\
\
\ 'http://s.jimdo.com/app/cdn/min/group/;var $m,sizeContainer=container==document.body?window:container;$m=$(tpl).addClass(s.addClass).click(remove).appendTo(container);$('.humanized-message-content',$m).html(message||s.message);$m.css({display:'none',visibility:'visible',top:($(sizeContainer).height()-$m.innerHeight())/2,left:($(sizeContainer).width()-$m.innerWidth())/2}).fadeIn(s.speed);s.autoHide&&setTimeout(remove,s.autoHide);function remove(){$m.fadeOut(s.speed,function(){$m.remove();$.removeData(container,'humanMsg');});};};})(jimdoGen002);;(function($){$.fn.message=function(msg,options){return this.each(function(){if($.data(this,'message'))return;$.data(this,'message',new message(this,msg,options)).init();});};$.fn.message.defaults={message:null,closable:true,status:'success',autoHide:5000,addClass:'',template:'\
\ x\

${message}

\ ${buttons}\
',buttonsTpl:'\
\ \ ',speed:300,width:'auto',maxHeight:150,top:null,left:null,onClose:$.noop,labels:{ok:"Ok",abort:"Abort"}};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);$target=$submit.length?$submit:$target;} if(s.status=='confirm'){buttons+=s.buttonsTpl.replace('${ok}',s.labels.ok).replace('${abort}',s.labels.abort);s.autoHide=null;} $message=$(s.template.replace('${message}',message||s.message).replace('${buttons}',buttons)).addClass('x-message message-'+s.status+' '+s.addClass).insertBefore($target);s.closable&&$message.addClass('x-message-closable');position=$target.position();height=$message.height();width=$message.outerWidth();if(height>s.maxHeight){height=s.maxHeight;$message.css('height',height).find('.x-message-content').css('display','block');} left=s.left||position.left;var wWidth=$(window).width();if(left+width>wWidth){left=left-(left+width-wWidth);} $message.css({display:'none',visibility:'visible',top:s.top||(position.top-2*height),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');$.event.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($){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;};})(jimdoGen002);;(function($){$.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;} var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;} expires='; expires='http://s.jimdo.com/app/cdn/min/group/+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i';return this.each(function(){if($('> iframe.bgiframe',this).length==0) this.insertBefore(document.createElement(html),this.firstChild);});} return this;};})(jimdoGen002);;(function($) {$.fn.jqzoom=function(options) {var settings={zoomType:'standard',zoomWidth:200,zoomHeight:200,xOffset:10,yOffset:0,position:"right",lens:true,lensReset:false,imageOpacity:0.2,title:true,alwaysOn:false,showEffect:'show',hideEffect:'hide',fadeinSpeed:'fast',fadeoutSpeed:'slow',preloadImages:true,showPreload:true,preloadText:'Loading zoom',preloadPosition:'center',container:$('body')};options=options||{};$.extend(settings,options);return this.each(function() {var a=$(this);var aTitle=a.attr('title');$(a).removeAttr('title');$(a).css('outline-style','none');var img=$("img",this);var imageTitle=img.attr('title');img.removeAttr('title');var smallimage=new Smallimage(img);var smallimagedata={};var btop=0;var bleft=0;var loader=null;loader=new Loader();var ZoomTitle=($.trim(aTitle).length>0)?aTitle:($.trim(imageTitle).length>0)?imageTitle:null;var ZoomTitleObj=new zoomTitle();var largeimage=new Largeimage(a[0].href);var lens=new Lens();var lensdata={};var largeimageloaded=false;var scale={};var stage=null;var running=false;var mousepos={};var firstime=0;var preloadshow=false;var isMouseDown=false;var dragstatus=false;smallimage.loadimage();var fixedX=false;var fixedY=false;$(this).click(function(){return false;});$(this).hover(function(e) {mousepos.x=e.pageX;mousepos.y=e.pageY;activate();},function() {deactivate();});smallimage.node.onload();if(settings.alwaysOn) {setTimeout(function(){activate();},150);} function activate() {if(!running){smallimage.findborder();running=true;imageTitle=img.attr('title');img.removeAttr('title');aTitle=a.attr('title');$(a).removeAttr('title');if(!largeimage||$.browser.safari){largeimage=new Largeimage(a[0].href);} if(!largeimageloaded||$.browser.safari) {largeimage.loadimage();}else {if(settings.zoomType!='innerzoom') {stage=new Stage();stage.activate();} lens=new Lens;lens.activate();} a[0].blur();return false;}} function deactivate() {if(settings.zoomType=='reverse'&&!settings.alwaysOn) {img.css({'opacity':1});} if(!settings.alwaysOn) {running=false;largeimageloaded=false;$(lens.node).unbind('mousemove');lens.remove();if($('div.jqZoomWindow').length>0) {stage.remove();} if($('div.jqZoomTitle').length>0) {ZoomTitleObj.remove();} img.attr('title',imageTitle);a.attr('title',aTitle);$().unbind();a.unbind('mousemove');firstime=0;if(jimdoGen002('.zoom_ieframe').length>0) {jimdoGen002('.zoom_ieframe').remove();}}else {if(settings.lensReset) {switch(settings.zoomType) {case'innerzoom':largeimage.setcenter();break;default:lens.center();break;}}} if(settings.alwaysOn) {activate();}};function Smallimage(image) {this.node=image[0];this.loadimage=function(){this.node.src=image[0].src;};this.findborder=function() {var bordertop='';bordertop=$(img).css('border-top-width');btop='';var borderleft='';borderleft=$(img).css('border-left-width');bleft='';if(bordertop) {for(i=0;i<3;i++) {var x=[];x=bordertop.substr(i,1);if(isNaN(x)==false) {btop=btop+''+bordertop.substr(i,1);}else {break;}}} if(borderleft) {for(i=0;i<3;i++) {if(!isNaN(borderleft.substr(i,1))) {bleft=bleft+borderleft.substr(i,1)}else {break;}}} btop=(btop.length>0)?eval(btop):0;bleft=(bleft.length>0)?eval(bleft):0;} this.node.onload=function() {a.css({'cursor':'crosshair','display':'block'});if(a.css('position')!='absolute'&&a.parent().css('position')) {a.css({'cursor':'crosshair','position':'relative','display':'block'});} if(a.parent().css('position')!='absolute') {a.parent().css('position','relative');} else{} if($.browser.safari||$.browser.opera) {$(img).css({position:'absolute',top:'0px',left:'0px'});} smallimagedata.w=$(this).width();smallimagedata.h=$(this).height();smallimagedata.h=$(this).height();smallimagedata.pos=$(this).offset();smallimagedata.pos.l=$(this).offset().left;smallimagedata.pos.t=$(this).offset().top;smallimagedata.pos.r=smallimagedata.w+smallimagedata.pos.l;smallimagedata.pos.b=smallimagedata.h+smallimagedata.pos.t;a.height(smallimagedata.h);a.width(smallimagedata.w);if(settings.preloadImages) {largeimage.loadimage();}} return this;};function Lens() {this.node=document.createElement("div");$(this.node).addClass('jqZoomPup');this.node.onerror=function(){$(lens.node).remove();lens=new Lens();lens.activate();};this.loadlens=function() {switch(settings.zoomType) {case'reverse':this.image=new Image();this.image.src=smallimage.node.src;this.node.appendChild(this.image);$(this.node).css({'opacity':1});break;case'innerzoom':this.image=new Image();this.image.src=largeimage.node.src;this.node.appendChild(this.image);$(this.node).css({'opacity':1});break;default:break;} switch(settings.zoomType) {case'innerzoom':lensdata.w=smallimagedata.w;lensdata.h=smallimagedata.h;break;default:lensdata.w=Math.floor((settings.zoomWidth)/scale.x);lensdata.h=Math.floor((settings.zoomHeight)/scale.y);if(lensdata.w>smallimagedata.w){lensdata.w=smallimagedata.w-1;fixedX=true;} if(lensdata.h>smallimagedata.h){lensdata.h=smallimagedata.h-1;fixedY=true;} break;} $(this.node).css({width:lensdata.w+'px',height:lensdata.h+'px',position:'absolute',display:'none',borderWidth:1+'px'});a.append(this.node);} return this;};Lens.prototype.activate=function() {this.loadlens();switch(settings.zoomType) {case'reverse':img.css({'opacity':settings.imageOpacity});(settings.alwaysOn)?lens.center():lens.setposition(null);a.bind('mousemove',function(e) {mousepos.x=e.pageX;mousepos.y=e.pageY;lens.setposition(e);});break;case'innerzoom':$(this.node).css({top:0,left:0});if(settings.title) {ZoomTitleObj.loadtitle();} largeimage.setcenter();a.bind('mousemove',function(e) {mousepos.x=e.pageX;mousepos.y=e.pageY;largeimage.setinner(e);});break;default:(settings.alwaysOn)?lens.center():lens.setposition(null);$(a).bind('mousemove',function(e) {mousepos.x=e.pageX;mousepos.y=e.pageY;lens.setposition(e);});break;} return this;};Lens.prototype.setposition=function(e) {if(e) {mousepos.x=e.pageX;mousepos.y=e.pageY;} if(firstime==0) {var lensleft=(smallimagedata.w)/2-(lensdata.w)/2;var lenstop=(smallimagedata.h)/2-(lensdata.h)/2;$('div.jqZoomPup').show() if(settings.lens) {this.node.style.visibility='visible';} else {this.node.style.visibility='hidden';$('div.jqZoomPup').hide();} firstime=1;}else {var lensleft=mousepos.x-smallimagedata.pos.l-(lensdata.w)/2;var lenstop=mousepos.y-smallimagedata.pos.t-(lensdata.h)/2;} if(overleft()) {lensleft=0+bleft;}else if(overright()) {if($.browser.msie) {lensleft=smallimagedata.w-lensdata.w+bleft+1;}else {lensleft=smallimagedata.w-lensdata.w+bleft-1;}} if(overtop()) {lenstop=0+btop;}else if(overbottom()) {if($.browser.msie) {lenstop=smallimagedata.h-lensdata.h+btop+1;}else {lenstop=smallimagedata.h-lensdata.h-1+btop;}} lensleft=parseInt(lensleft);lenstop=parseInt(lenstop);$('div.jqZoomPup',a).css({top:lenstop,left:lensleft});if(settings.zoomType=='reverse') {$('div.jqZoomPup img',a).css({'position':'absolute','top':-(lenstop-btop+1),'left':-(lensleft-bleft+1)});} this.node.style.left=lensleft+'px';this.node.style.top=lenstop+'px';largeimage.setposition();function overleft(){return mousepos.x-(lensdata.w+2*1)/2-bleftsmallimagedata.pos.r+bleft;} function overtop(){return mousepos.y-(lensdata.h+2*1)/2-btopsmallimagedata.pos.b+btop;} return this;};Lens.prototype.center=function() {$('div.jqZoomPup',a).css('display','none');var lensleft=(smallimagedata.w)/2-(lensdata.w)/2;var lenstop=(smallimagedata.h)/2-(lensdata.h)/2;this.node.style.left=lensleft+'px';this.node.style.top=lenstop+'px';$('div.jqZoomPup',a).css({top:lenstop,left:lensleft});if(settings.zoomType=='reverse') {$('div.jqZoomPup img',a).css({'position':'absolute','top':-(lenstop-btop+1),'left':-(lensleft-bleft+1)});} largeimage.setposition();if($.browser.msie) {$('div.jqZoomPup',a).show();}else {setTimeout(function(){$('div.jqZoomPup').fadeIn('fast');},10);}};Lens.prototype.getoffset=function(){var o={};o.left=parseInt(this.node.style.left);o.top=parseInt(this.node.style.top);return o;};Lens.prototype.remove=function() {if(settings.zoomType=='innerzoom') {$('div.jqZoomPup',a).fadeOut('fast',function(){$(this).remove();});}else {$('div.jqZoomPup',a).remove();}};Lens.prototype.findborder=function() {var bordertop='';bordertop=$('div.jqZoomPup').css('borderTop');lensbtop='';var borderleft='';borderleft=$('div.jqZoomPup').css('borderLeft');lensbleft='';if($.browser.msie) {var temp=bordertop.split(' ');bordertop=temp[1];var temp=borderleft.split(' ');borderleft=temp[1];} if(bordertop) {for(i=0;i<3;i++) {var x=[];x=bordertop.substr(i,1);if(isNaN(x)==false) {lensbtop=lensbtop+''+bordertop.substr(i,1);}else {break;}}} if(borderleft) {for(i=0;i<3;i++) {if(!isNaN(borderleft.substr(i,1))) {lensbleft=lensbleft+borderleft.substr(i,1)}else {break;}}} lensbtop=(lensbtop.length>0)?eval(lensbtop):0;lensbleft=(lensbleft.length>0)?eval(lensbleft):0;} function Largeimage(url) {this.url=url;this.node=new Image();this.loadimage=function() {if(!this.node){this.node=new Image();} this.node.style.position='absolute';this.node.style.display='none';this.node.style.left='-5000px';this.node.style.top='10px';loader=new Loader();if(settings.showPreload&&!preloadshow) {loader.show();preloadshow=true;} document.body.appendChild(this.node);this.node.src=this.url;} this.node.onload=function() {this.style.display='block';var w=Math.round($(this).width());var h=Math.round($(this).height());this.style.display='none';scale.x=(w/smallimagedata.w);scale.y=(h/smallimagedata.h);if($('div.preload').length>0) {$('div.preload').remove();} largeimageloaded=true;if(settings.zoomType!='innerzoom'&&running){stage=new Stage();stage.activate();} if(running) {lens=new Lens();lens.activate();} if($('div.preload').length>0) {$('div.preload').remove();}} return this;} Largeimage.prototype.setposition=function() {var left=Math.ceil(-scale.x*parseInt(lens.getoffset().left)+bleft)+'px';var top=Math.ceil(-scale.y*parseInt(lens.getoffset().top)+btop)+'px';if(fixedX){left=Math.ceil(settings.zoomWidth/2-$(this.node).width()/2)+'px';} if(fixedY){top=Math.ceil(settings.zoomHeight/2-$(this.node).height()/2)+'px';} this.node.style.left=left;this.node.style.top=top;};Largeimage.prototype.setinner=function(e){this.node.style.left=Math.ceil(-scale.x*Math.abs(e.pageX-smallimagedata.pos.l))+'px';this.node.style.top=Math.ceil(-scale.y*Math.abs(e.pageY-smallimagedata.pos.t))+'px';$('div.jqZoomPup img',a).css({'position':'absolute','top':this.node.style.top,'left':this.node.style.left});};Largeimage.prototype.setcenter=function(){this.node.style.left=Math.ceil(-scale.x*Math.abs((smallimagedata.w)/2))+'px';this.node.style.top=Math.ceil(-scale.y*Math.abs((smallimagedata.h)/2))+'px';$('div.jqZoomPup img',a).css({'position':'absolute','top':this.node.style.top,'left':this.node.style.left});};function Stage() {var leftpos=smallimagedata.pos.l;var toppos=smallimagedata.pos.t;this.node=settings.container.prepend('
').find('.jqZoomWindow').get(0);$(this.node).css({position:'absolute',width:Math.round(settings.zoomWidth)+'px',height:Math.round(settings.zoomHeight)+'px',display:'none',zIndex:100099,overflow:'hidden'});switch(settings.position) {case"right":leftpos=settings.xOffset;topwindow=smallimagedata.pos.t+settings.yOffset+settings.zoomHeight;toppos=(topwindow0)?smallimagedata.pos.t+settings.yOffset:smallimagedata.pos.t;break;case"left":leftpos=(smallimagedata.pos.l-Math.abs(settings.xOffset)-settings.zoomWidth>0)?(smallimagedata.pos.l-Math.abs(settings.xOffset)-settings.zoomWidth):(smallimagedata.pos.l+smallimagedata.w+Math.abs(settings.xOffset));topwindow=smallimagedata.pos.t+settings.yOffset+settings.zoomHeight;toppos=(topwindow0)?smallimagedata.pos.t+settings.yOffset:smallimagedata.pos.t;break;case"top":toppos=(smallimagedata.pos.t-Math.abs(settings.yOffset)-settings.zoomHeight>0)?(smallimagedata.pos.t-Math.abs(settings.yOffset)-settings.zoomHeight):(smallimagedata.pos.t+smallimagedata.h+Math.abs(settings.yOffset));leftwindow=smallimagedata.pos.l+settings.xOffset+settings.zoomWidth;leftpos=(leftwindow0)?smallimagedata.pos.l+settings.xOffset:smallimagedata.pos.l;break;case"bottom":toppos=(smallimagedata.pos.b+Math.abs(settings.yOffset)+settings.zoomHeight<$('body').height())?(smallimagedata.pos.b+Math.abs(settings.yOffset)):(smallimagedata.pos.t-settings.zoomHeight-Math.abs(settings.yOffset));leftwindow=smallimagedata.pos.l+settings.xOffset+settings.zoomWidth;leftpos=(leftwindow0)?smallimagedata.pos.l+settings.xOffset:smallimagedata.pos.l;break;default:leftpos=(smallimagedata.pos.l+smallimagedata.w+settings.xOffset+settings.zoomWidth').css({position:"absolute",left:this.node.style.left,top:this.node.style.top,zIndex:99,width:settings.zoomWidth,height:settings.zoomHeight}).insertBefore(this.node);};largeimage.node.style.display='block';} Stage.prototype.remove=function(){switch(settings.hideEffect) {case'hide':$('.jqZoomWindow').remove();break;case'fadeout':$('.jqZoomWindow').fadeOut(settings.fadeoutSpeed);break;default:$('.jqZoomWindow').remove();break;}} function zoomTitle() {this.node=jimdoGen002('
').addClass('jqZoomTitle').html(''+ZoomTitle+'');this.loadtitle=function() {if(settings.zoomType=='innerzoom') {$(this.node).css({position:'absolute',top:smallimagedata.pos.b+3,left:(smallimagedata.pos.l+1),width:smallimagedata.w}).appendTo('body');}else {$(this.node).appendTo(stage.node);}};} zoomTitle.prototype.remove=function(){$('.jqZoomTitle').remove();} function Loader() {this.node=document.createElement("div");$(this.node).addClass('preload');$(this.node).html(settings.preloadText);$(this.node).appendTo("body").css('visibility','hidden');this.show=function() {switch(settings.preloadPosition) {case'center':loadertop=smallimagedata.pos.t+(smallimagedata.h-$(this.node).height())/2;loaderleft=smallimagedata.pos.l+(smallimagedata.w-$(this.node).width())/2;break;default:var loaderoffset=this.getoffset();loadertop=!isNaN(loaderoffset.top)?smallimagedata.pos.t+loaderoffset.top:smallimagedata.pos.t+0;loaderleft=!isNaN(loaderoffset.left)?smallimagedata.pos.l+loaderoffset.left:smallimagedata.pos.l+0;break;} $(this.node).css({top:loadertop,left:loaderleft,position:'absolute',visibility:'visible'});} return this;} Loader.prototype.getoffset=function() {var o=null;o=$('div.preload').offset();return o;}});}})(jimdoGen002);;(function($,global,undefined){$.noConflict();var namespaces='jimdoData stringify Class tmpl'.split(' ');for(var i=0;i-1,Gecko:navigator.userAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('KHTML')==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement('div').__proto__&&document.createElement('div').__proto__!==document.createElement('form').__proto__},ScriptFragment:']*>([\\S\\s]*?)<\/script>',JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(x){return x}};if(Prototype.Browser.MobileSafari) Prototype.BrowserFeatures.SpecificElementExtensions=false;var Class={create:function(){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=[];if(parent){var subclass=function(){};subclass.prototype=parent.prototype;klass.prototype=new subclass;parent.subclasses.push(klass);} for(var i=0;i0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length);}else{result+=source,source='';}} return result;},sub:function(pattern,replacement,count){replacement=this.gsub.prepareReplacement(replacement);count=Object.isUndefined(count)?1:count;return this.gsub(pattern,function(match){if(--count<0)return match[0];return replacement(match);});},scan:function(pattern,iterator){this.gsub(pattern,iterator);return String(this);},truncate:function(length,truncation){length=length||30;truncation=Object.isUndefined(truncation)?'...':truncation;return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this);},strip:function(){return this.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'');},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,'img'),'');},extractScripts:function(){var matchAll=new RegExp(Prototype.ScriptFragment,'img');var matchOne=new RegExp(Prototype.ScriptFragment,'im');return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||['',''])[1];});},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)});},escapeHTML:function(){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({},function(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=decodeURIComponent(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(){return this.slice(0,this.length-1)+ String.fromCharCode(this.charCodeAt(this.length-1)+1);},times:function(count){return count<1?'':new Array(count+1).join(this);},camelize:function(){var parts=this.split('-'),len=parts.length;if(len==1)return parts[0];var camelized=this.charAt(0)=='-'?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];for(var i=1;i-1;},startsWith:function(pattern){return this.indexOf(pattern)===0;},endsWith:function(pattern){var d=this.length-pattern.length;return d>=0&&this.lastIndexOf(pattern)===d;},empty:function(){return this=='';},blank:function(){return/^\s*$/.test(this);},interpolate:function(object,pattern){return new Template(this,pattern).evaluate(object);}});if(Prototype.Browser.WebKit||Prototype.Browser.IE)Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,'&').replace(//g,'>');},unescapeHTML:function(){return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}});String.prototype.gsub.prepareReplacement=function(replacement){if(Object.isFunction(replacement))return replacement;var template=new Template(replacement);return function(match){return template.evaluate(match)};};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement('div'),text:document.createTextNode('')});with(String.prototype.escapeHTML)div.appendChild(text);var Template=Class.create({initialize:function(template,pattern){this.template=template.toString();this.pattern=pattern||Template.Pattern;},evaluate:function(object){if(Object.isFunction(object.toTemplateReplacements)) object=object.toTemplateReplacements();return this.template.gsub(this.pattern,function(match){if(object==null)return'';var before=match[1]||'';if(before=='\\')return match[2];var ctx=object,expr=match[3];var pattern=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;match=pattern.exec(expr);if(match==null)return before;while(match!=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,index++);});}catch(e){if(e!=$break)throw e;} return this;},eachSlice:function(number,iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var index=-number,slices=[],array=this.toArray();while((index+=number)=result) result=value;});return result;},min:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result;this.each(function(value,index){value=iterator(value,index);if(result==null||valueb?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:function(){return this.toArray().length;},inspect:function(){return'#';}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.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(!(Object.isFunction(iterable)&&iterable=='[object NodeList]')&&iterable.toArray)return iterable.toArray();var length=iterable.length||0,results=new Array(length);while(length--)results[length]=iterable[length];return results;};} Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse)Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(iterator){for(var i=0,length=this.length;i1?this:this[0];},uniq:function(sorted){return this.inject([],function(array,value,index){if(0==index||(sorted?array.last()!=value:!array.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.length;},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']';},toJSON:function(){var results=[];this.each(function(object){var value=Object.toJSON(object);if(!Object.isUndefined(value))results.push(value);});return'['+results.join(', ')+']';}});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=length+i;for(;i';},toJSON:function(){return Object.toJSON(this.toObject());},clone:function(){return new Hash(this);}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initialize:function(start,end,exclusive){this.start=start;this.end=end;this.exclusive=exclusive;},_each:function(iterator){var value=this.start;while(this.include(value)){iterator(value);value=value.succ();}},include:function(value){if(value1&&!((readyState==4)&&this._complete)) this.respondToReadyState(this.transport.readyState);},setRequestHeaders:function(){var headers={'X-Requested-With':'XMLHttpRequest','X-Prototype-Version':Prototype.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]<2005) headers['Connection']='close';} if(typeof this.options.requestHeaders=='object'){var extras=this.options.requestHeaders;if(Object.isFunction(extras.push)) for(var i=0,length=extras.length;i=200&&status<300);},getStatus:function(){try{return this.transport.status||0;}catch(e){return 0}},respondToReadyState:function(readyState){var state=Ajax.Request.Events[readyState],response=new Ajax.Response(this);if(state=='Complete'){try{this._complete=true;(this.options['on'+response.status]||this.options['on'+(this.success()?'Success':'Failure')]||Prototype.emptyFunction)(response,response.headerJSON);}catch(e){this.dispatchException(e);} var contentType=response.getHeader('Content-type');if(this.options.evalJS=='force'||(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.headerJSON);Ajax.Responders.dispatch('on'+state,this,response,response.headerJSON);}catch(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.protocol,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.responseText||'').unfilterJSON());}catch(e){this.dispatchException(e);}},dispatchException:function(exception){(this.options.onException||Prototype.emptyFunction)(this,exception);Ajax.Responders.dispatch('onException',this,exception);}});Ajax.Request.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Response=Class.create({initialize:function(request){this.request=request;var transport=this.transport=request.transport,readyState=this.readyState=transport.readyState;if((readyState>2&&!Prototype.Browser.IE)||readyState==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(transport.responseText);this.headerJSON=this._getHeaderJSON();} if(readyState==4){var xml=transport.responseXML;this.responseXML=Object.isUndefined(xml)?null:xml;this.responseJSON=this._getResponseJSON();}},status:0,statusText:'',getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||'';}catch(e){return''}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders();}catch(e){return null}},getResponseHeader:function(name){return this.transport.getResponseHeader(name);},getAllResponseHeaders:function(){return this.transport.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 options=this.request.options;if(!options.evalJSON||(options.evalJSON!='force'&&!(this.getHeader('Content-type')||'').include('application/json'))||this.responseText.blank()) return null;try{return this.responseText.evalJSON(options.sanitizeJSON||!this.request.isSameOrigin());}catch(e){this.request.dispatchException(e);}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,container,url,options){this.container={success:(container.success||container),failure:(container.failure||(container.success?null:container))};options=Object.clone(options);var onComplete=options.onComplete;options.onComplete=(function(response,json){this.updateContent(response.responseText);if(Object.isFunction(onComplete))onComplete(response,json);}).bind(this);$super(url,options);},updateContent:function(responseText){var receiver=this.container[this.success()?'success':'failure'],options=this.options;if(!options.evalScripts)responseText=responseText.stripScripts();if(receiver=$(receiver)){if(options.insertion){if(Object.isString(options.insertion)){var insertion={};insertion[options.insertion]=responseText;receiver.insert(insertion);} else options.insertion(receiver,responseText);} else receiver.update(responseText);}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,container,url,options){$super(options);this.onComplete=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.onComplete=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);},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);}});function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i';delete attributes.name;return Element.writeAttribute(document.createElement(tagName),attributes);} if(!cache[tagName])cache[tagName]=Element.extend(document.createElement(tagName));return Element.writeAttribute(cache[tagName].cloneNode(false),attributes);};Object.extend(this.Element,element||{});}).call(window);Element.cache={};Element.Methods={visible:function(element){return $(element).style.display!='none';},toggle:function(element){element=$(element);Element[Element.visible(element)?'hide':'show'](element);return element;},hide:function(element){$(element).style.display='none';return element;},show:function(element){$(element).style.display='';return element;},remove:function(element){element=$(element);element.parentNode.removeChild(element);return element;},update:function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content))return element.update().insert(content);content=Object.toHTML(content);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.isElement(content)){content=Object.toHTML(content);var range=element.ownerDocument.createRange();range.selectNode(element);content.evalScripts.bind(content).defer();content=range.createContextualFragment(content.stripScripts());} element.parentNode.replaceChild(content,element);return element;},insert:function(element,insertions){element=$(element);if(Object.isString(insertions)||Object.isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toElement||insertions.toHTML))) insertions={bottom:insertions};var content,insert,tagName,childNodes;for(var position 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._getContentFromAnonymousElement(tagName,content.stripScripts());if(position=='top'||position=='after')childNodes.reverse();childNodes.each(insert.curry(element));content.evalScripts.bind(content).defer();} return element;},wrap:function(element,wrapper,attributes){element=$(element);if(Object.isElement(wrapper)) $(wrapper).writeAttribute(attributes||{});else if(Object.isString(wrapper))wrapper=new Element(wrapper,attributes);else wrapper=new Element('div',wrapper);if(element.parentNode) element.parentNode.replaceChild(wrapper,element);wrapper.appendChild(element);return wrapper;},inspect:function(element){element=$(element);var result='<'+element.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 result+'>';},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(element){return $(element).recursivelyCollect('parentNode');},descendants:function(element){return $(element).select("*");},firstDescendant:function(element){element=$(element).firstChild;while(element&&element.nodeType!=1)element=element.nextSibling;return $(element);},immediateDescendants:function(element){if(!(element=$(element).firstChild))return[];while(element&&element.nodeType!=1)element=element.nextSibling;if(element)return[element].concat($(element).nextSiblings());return[];},previousSiblings:function(element){return $(element).recursivelyCollect('previousSibling');},nextSiblings:function(element){return $(element).recursivelyCollect('nextSibling');},siblings:function(element){element=$(element);return element.previousSiblings().reverse().concat(element.nextSiblings());},match:function(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 $(element.parentNode);var ancestors=element.ancestors();return Object.isNumber(expression)?ancestors[expression]:Selector.findElement(ancestors,expression,index);},down:function(element,expression,index){element=$(element);if(arguments.length==1)return element.firstDescendant();return Object.isNumber(expression)?element.descendants()[expression]:element.select(expression)[index||0];},previous:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.previousElementSibling(element));var previousSiblings=element.previousSiblings();return Object.isNumber(expression)?previousSiblings[expression]:Selector.findElement(previousSiblings,expression,index);},next:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.nextElementSibling(element));var nextSiblings=element.nextSiblings();return Object.isNumber(expression)?nextSiblings[expression]:Selector.findElement(nextSiblings,expression,index);},select:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element,args);},adjacent:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element.parentNode,args).without(element);},identify:function(element){element=$(element);var id=element.readAttribute('id'),self=arguments.callee;if(id)return id;do{id='anonymous_element_'+self.counter++}while($(id));element.writeAttribute('id',id);return id;},readAttribute:function(element,name){element=$(element);if(Prototype.Browser.IE){var t=Element._attributeTranslations.read;if(t.values[name])return t.values[name](element,name);if(t.names[name])name=t.names[name];if(name.include(':')){return(!element.attributes||!element.attributes[name])?null:element.attributes[name].value;}} return element.getAttribute(name);},writeAttribute:function(element,name,value){element=$(element);var attributes={},t=Element._attributeTranslations.write;if(typeof name=='object')attributes=name;else attributes[name]=Object.isUndefined(value)?true:value;for(var attr in attributes){name=t.names[attr]||attr;value=attributes[attr];if(t.values[attr])name=t.values[attr](element,value);if(value===false||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().height;},getWidth:function(element){return $(element).getDimensions().width;},classNames:function(element){return new Element.ClassNames(element);},hasClassName:function(element,className){if(!(element=$(element)))return;var elementClassName=element.className;return(elementClassName.length>0&&(elementClassName==className||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)));},addClassName:function(element,className){if(!(element=$(element)))return;if(!element.hasClassName(className)) element.className+=(element.className?' ':'')+className;return element;},removeClassName:function(element,className){if(!(element=$(element)))return;element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)"),' ').strip();return element;},toggleClassName:function(element,className){if(!(element=$(element)))return;return element[element.hasClassName(className)?'removeClassName':'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();},descendantOf:function(element,ancestor){element=$(element),ancestor=$(ancestor);var originalAncestor=ancestor;if(element.compareDocumentPosition) return(element.compareDocumentPosition(ancestor)&8)===8;if(element.sourceIndex&&!Prototype.Browser.Opera){var e=element.sourceIndex,a=ancestor.sourceIndex,nextAncestor=ancestor.nextSibling;if(!nextAncestor){do{ancestor=ancestor.parentNode;} while(!(nextAncestor=ancestor.nextSibling)&&ancestor.parentNode);} if(nextAncestor&&nextAncestor.sourceIndex) return(e>a&&e','',1],TBODY:['','
',2],TR:['','
',3],TD:['
','
',4],SELECT:['',1]}};(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD});}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(element,attribute){attribute=Element._attributeTranslations.has[attribute]||attribute;var node=$(element).getAttributeNode(attribute);return node&&node.specified;}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement('div').__proto__){window.HTMLElement={};window.HTMLElement.prototype=document.createElement('div').__proto__;Prototype.BrowserFeatures.ElementExtensions=true;} Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions) return Prototype.K;var Methods={},ByTag=Element.Methods.ByTag;var extend=Object.extend(function(element){if(!element||element._extendedByPrototype||element.nodeType!=1||element==window)return element;var methods=Object.clone(Methods),tagName=element.tagName,property,value;if(ByTag[tagName])Object.extend(methods,ByTag[tagName]);for(property in methods){value=methods[property];if(Object.isFunction(value)&&!(property in element)) element[property]=value.methodize();} element._extendedByPrototype=Prototype.emptyFunction;return element;},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(Methods,Element.Methods);Object.extend(Methods,Element.Methods.Simulated);}}});extend.refresh();return extend;})();Element.hasAttribute=function(element,attribute){if(element.hasAttribute)return element.hasAttribute(attribute);return Element.Methods.Simulated.hasAttribute(element,attribute);};Element.addMethods=function(methods){var F=Prototype.BrowserFeatures,T=Element.Methods.ByTag;if(!methods){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{"FORM":Object.clone(Form.Methods),"INPUT":Object.clone(Form.Element.Methods),"SELECT":Object.clone(Form.Element.Methods),"TEXTAREA":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(tagName))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],methods);} 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","TEXTAREA":"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":"TableCol","THEAD":"TableSection","TFOOT":"TableSection","TBODY":"TableSection","TR":"TableRow","TH":"TableCell","TD":"TableCell","FRAMESET":"FrameSet","IFRAME":"IFrame"};if(trans[tagName])klass='HTML'+trans[tagName]+'Element';if(window[klass])return window[klass];klass='HTML'+tagName+'Element';if(window[klass])return window[klass];klass='HTML'+tagName.capitalize()+'Element';if(window[klass])return window[klass];window[klass]={};window[klass].prototype=document.createElement(tagName).__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.prototype);}} Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh)Element.extend.refresh();Element.cache={};};document.viewport={getDimensions:function(){var dimensions={};var B=Prototype.Browser;$w('width height').each(function(d){var D=d.capitalize();dimensions[d]=(B.WebKit&&!document.evaluate)?self['inner'+D]:(B.Opera)?document.body['client'+D]:document.documentElement['client'+D];});return dimensions;},getWidth:function(){return this.getDimensions().width;},getHeight:function(){return this.getDimensions().height;},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);}};var Selector=Class.create({initialize: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.include(":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=Selector.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.handlers, 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 Template(c[i]).evaluate(m));e=e.replace(m[0],'');break;}}} this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join('\n'));Selector._cache[this.expression]=this.matcher;},compileXPathMatcher:function(){var e=this.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;},findElements:function(root){root=root||document;if(this.xpath)return document._getElementsByXPath(this.xpath,root);return this.matcher(root);},match:function(element){this.tokens=[];var e=this.expression,ps=Selector.patterns,as=Selector.assertions;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=token[0],matches=token[1];if(!Selector.assertions[name](element,matches)){match=false;break;}} return match;},toString:function(){return this.expression;},inspect:function(){return"#";}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:'/following-sibling::*',tagName:function(m){if(m[1]=='*')return'';return"[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];return 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))return 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:{'first-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)]",'not':function(m){var e=m[6],p=Selector.patterns,x=Selector.xpath,le,v;var exclusion=[];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 Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",m);},'nth-last-child':function(m){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",m);},'nth-of-type':function(m){return Selector.xpath.pseudos.nth("position() ",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 Selector.xpath.pseudos['nth-of-type'](m);},'last-of-type':function(m){m[6]="1";return 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);},nth: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}) div #{a} >= 0)]";return new Template(predicate).evaluate({fragment:fragment,a:a,b:b});}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c); c = false;',className:'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";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\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 matches[1].toUpperCase()==element.tagName.toUpperCase();},className:function(element,matches){return Element.hasClassName(element,matches[1]);},id:function(element,matches){return element.id===matches[1];},attrPresence:function(element,matches){return Element.hasAttribute(element,matches[1]);},attr:function(element,matches){var nodeValue=Element.readAttribute(element,matches[1]);return nodeValue&&Selector.operators[matches[2]](nodeValue,matches[5]||matches[6]);}},handlers:{concat:function(a,b){for(var i=0,node;node=b[i];i++) a.push(node);return a;},mark:function(nodes){var _true=Prototype.emptyFunction;for(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,reverse,ofType){parentNode._countedByPrototype=Prototype.emptyFunction;if(reverse){for(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++;}},unique:function(nodes){if(nodes.length==0)return nodes;var results=[],n;for(var i=0,l=nodes.length;i0?[b]:[];return $R(1,total).inject([],function(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=='even')formula='2n+0';if(formula=='odd')formula='2n+1';var h=Selector.handlers,results=[],indexed=[],m;h.mark(nodes);for(var i=0,node;node=nodes[i];i++){if(!node.parentNode._countedByPrototype){h.index(node.parentNode,reverse,ofType);indexed.push(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]?Number(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+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(m){expressions.push(m[1].strip());});return expressions;},matchElements:function(elements,expression){var matches=$$(expression),h=Selector.handlers;h.mark(matches);for(var i=0,results=[],element;element=elements[i];i++) if(element._countedByPrototype)results.push(element);h.unmark(matches);return results;},findElement:function(elements,expression,index){if(Object.isNumber(expression)){index=expression;expression=false;} return Selector.matchElements(elements,expression||'*')[index||0];},findChildElements:function(element,expressions){expressions=Selector.split(expressions.join(','));var results=[],h=Selector.handlers;for(var i=0,l=expressions.length,selector;i1)?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:function(elements,options){if(typeof options!='object')options={hash:!!options};else if(Object.isUndefined(options.hash))options.hash=true;var key,value,submitted=false,submit=options.submit;var data=elements.inject({},function(result,element){if(!element.disabled&&element.name){key=element.name;value=$(element).getValue();if(value!=null&&(element.type!='submit'||(!submitted&&submit!==false&&(!submit||key==submit)&&(submitted=true)))){if(key in result){if(!Object.isArray(result[key]))result[key]=[result[key]];result[key].push(value);} else result[key]=value;}} return result;});return options.hash?data:Object.toQueryString(data);}};Form.Methods={serialize:function(form,options){return Form.serializeElements(Form.getElements(form),options);},getElements:function(form){return $A($(form).getElementsByTagName('*')).inject([],function(elements,child){if(Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child));return elements;});},getInputs:function(form,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=0;}).sortBy(function(element){return element.tabIndex}).first();return firstByIndex?firstByIndex:elements.find(function(element){return['input','select','textarea'].include(element.tagName.toLowerCase());});},focusFirstElement:function(form){form=$(form);form.findFirstElement().activate();return form;},request:function(form,options){form=$(form),options=Object.clone(options||{});var params=options.parameters,action=form.readAttribute('action')||'';if(action.blank())action=window.location.href;options.parameters=form.serialize(true);if(params){if(Object.isString(params))params=params.toQueryParams();Object.extend(options.parameters,params);} if(form.hasAttribute('method')&&!options.method) options.method=form.method;return new Ajax.Request(action,options);}};Form.Element={focus:function(element){$(element).focus();return element;},select:function(element){$(element).select();return element;}};Form.Element.Methods={serialize:function(element){element=$(element);if(!element.disabled&&element.name){var value=element.getValue();if(value!=undefined){var pair={};pair[element.name]=value;return Object.toQueryString(pair);}} return'';},getValue:function(element){element=$(element);var method=element.tagName.toLowerCase();return Form.Element.Serializers[method](element);},setValue:function(element,value){element=$(element);var method=element.tagName.toLowerCase();Form.Element.Serializers[method](element,value);return element;},clear:function(element){$(element).value='';return element;},present:function(element){return $(element).value!='';},activate:function(element){element=$(element);try{element.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();element.disabled=true;return element;},enable:function(element){element=$(element);element.disabled=false;return element;}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(element,value){switch(element.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.Serializers.inputSelector(element,value);default:return Form.Element.Serializers.textarea(element,value);}},inputSelector:function(element,value){if(Object.isUndefined(value))return element.checked?element.value:null;else element.checked=!!value;},textarea:function(element,value){if(Object.isUndefined(value))return element.value;else element.value=value;},select:function(element,index){if(Object.isUndefined(index)) return this[element.type=='select-one'?'selectOne':'selectMany'](element);else{var opt,value,single=!Object.isArray(index);for(var i=0,length=element.length;i=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<\/script>");$("__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(element,content){return Element.insert(element,{before:content});},Top:function(element,content){return Element.insert(element,{top:content});},Bottom:function(element,content){return Element.insert(element,{bottom:content});},After:function(element,content){return Element.insert(element,{after:content});}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.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.offset[0]&&x=this.offset[1]&&this.ycomp=this.offset[0]&&this.xcomp0;})._each(iterator);},set:function(className){this.element.className=className;},add:function(classNameToAdd){if(this.include(classNameToAdd))return;this.set($A(this).concat(classNameToAdd).join(' '));},remove:function(classNameToRemove){if(!this.include(classNameToRemove))return;this.set($A(this).without(classNameToRemove).join(' '));},toString:function(){return $A(this).join(' ');}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();;function showLoginBox(url,page,useopenid){if(useopenid){if(useopenid>1){var infix='app/auth/openid/?openid_identifier=';var options={width:782,height:660};}else{var infix='app/auth/signin/?so=&claimed_identifier=';var options={width:544,height:330};} ModalWindow.show(jimdoGen002.jimdoData.webserver+infix+escape(url),options,function(){var node=document.createElement('script');node.type='text/javascript';node.src=jimdoGen002.jimdoData.webserver+'app/auth/aux/jumpcms/?t='+(new Date()).getTime()+'&page='+page+'&url='+escape(url);document.getElementsByTagName('head')[0].appendChild(node);});return;} new Ajax.Request(jimdoGen002.jimdoData.webPath+'cc/getloginbox.php',{method:'post',onComplete:onComplete,postBody:'url='+url+'&page='+page});function onComplete(t){$('loginboxOuter').update(t.responseText);$('loginbox').className='show';document.location.href='#login';$('loginPasswd').focus();if(navigator.cookieEnabled==false){$('login_container').style.display='none';$('js_note').style.display='block';}}} function CC_openEmailForm(){new Ajax.Request(jimdoGen002.jimdoData.webPath+'app/web/cmsproxy/openemailform',{method:'post',evalScripts:true,onComplete:onComplete,postBody:'resend=1'});function onComplete(t){jimdoGen002('#loginbox .message-alert').remove();jimdoGen002('
'+t.responseText+'
').insertAfter('#login_container');$('email-for-passwd').focus();$('login_container').hide();}} function CC_checkEmail(){new Ajax.Request(jimdoGen002.jimdoData.webPath+'app/web/cmsproxy/resendpassword',{parameters:$('ask-for-email').serialize(),onSuccess:function(t){r=t.responseText.evalJSON();jimdoGen002('#email-check-message').remove();jimdoGen002('#loginbox img.logo').hide();if(r.error==0){$('mail-form-div').hide();$('login_container').show();jimdoGen002('
'+r.message+'
').insertBefore('#loginPasswd');$('email-check-message').addClassName('message-ok');$('pwvergessenlink').hide();}else{jimdoGen002('
'+r.message+'
').insertAfter('#email-for-passwd');$('email-check-message').addClassName('message-alert');}}});return false;} function CC_cancelSendEmail(){$('ask-for-email').hide();$('login_container').show();} function CC_close(){$('loginbox').className='hidden';} function PopupFenster(pfad){F=window.open(pfad,"Druckversion","width=700,height=600,scrollbars=yes,top=30,left=30,toolbar=yes,menubar=yes");} function tellafriend(page){new Ajax.Updater('content_start',jimdoGen002.jimdoData.webPath+'cc/templates/tellafriend.php?pageID='+page+'&url='+self.location.href,{method:'get',asynchronous:true,evalScripts:true});window.scrollTo(0,0);$('content_start').style.display='block';} function tellafriend_send(){$('tellafriend_absenden').disabled=true;new Ajax.Request(jimdoGen002.jimdoData.webPath+'cc/tellafriend.php',{onComplete:tellafriend_check,method:'post',postBody:Form.serialize('tellafriend_form'),asynchronous:true,evalScripts:true});Form.disable('tellafriend_form');return false;} function tellafriend_check(t){var response=t.responseText.evalJSON();if(response['body']=='ok'){$('tellafriend_error').hide();Element.update('tellsurl',response['thanks']);Element.update('tellstatus',response['sent']);$('tellbody').hide();}else{$('tellafriend_error').style.display='block';$('tellafriend_error').update(response['body']);} $('captchaImage'+response['captchaId']).src='/app/common/captcha/index/captchaId/'+response['captchaId']+'/w/160/h/29/t/'+new Date().getTime();Form.enable('tellafriend_form');$('tellafriend_absenden').disabled=false;};var friend={addresponse:function(t) {response=t.responseText.evalJSON();if(response.status!='FATAL_ERROR'){document.location=response.go;} else{new Insertion.Before('becomefriendsiframe','

'+frienddata.errorMessage+'

');}},add:function(friendid){$('becomefriends-button').disabled=true;new Ajax.Request('/app/social/friend/becomefriends/with/'+escape(friendid)+'/',{method:'post',parameters:'token='+$F('becomefriends-token'),onSuccess:this.addresponse});},showpopup:function(elem,url){(function($){if($.jimdoData.isCMS){$(elem).message({message:$.jimdoData.tr.common.webOnly,status:'alert'});return;} url=escape(url.split('/')[2]);if($('#friendpopup').length){friend.hidepopup();return;} $.getJSON('/app/social/friend/getprofile/of/'+url,function(data){friend.frienddata=data;$('\ \ ').insertAfter(elem).fadeIn(500);});})(jimdoGen002);},hidepopup:function(){if($('becomefriendsiframe')!=null){$('becomefriendsiframe').hide();} jimdoGen002('#friendpopup').fadeOut(500,function(){jimdoGen002(this).remove();});return false;},message:function(){if($('becomefriendsiframe')!=null){$('becomefriendsiframe').hide();} new Insertion.Before('becomefriendsiframe',"

"+this.frienddata.successMessage+"

");window.setTimeout('friend.hidepopup()',2500);}};var ModalWindow={rmiClose:function(theWindow,returnObject) {var callback=ModalWindow.callback;delete ModalWindow.callback;ModalWindow.returnValue={};for(prop in returnObject){ModalWindow.returnValue[prop]=returnObject[prop];} theWindow.close();callback();delete ModalWindow.returnValue;},check:function() {if(ModalWindow.popup){var closed=false;try{closed=ModalWindow.popup.closed;}catch(e){} if(closed){delete ModalWindow.popup;if(ModalWindow.callback){ModalWindow.callback();delete ModalWindow.callback;}}else{setTimeout(ModalWindow.check,800);}}},hide:function() {if(null!=ModalWindow.popup){ModalWindow.popup.close();ModalWindow.popup=null;}},show:function(url,options,callback){if(ModalWindow.popup){ModalWindow.popup.focus();return;} delete ModalWindow.returnValue;ModalWindow.callback=callback;var defaultOptions={height:80,width:80,directories:'no',location:'yes',menu:'no',resizable:'yes',scroll:'yes',status:'yes',title:'yes',tools:'no'} for(key in options){defaultOptions[key]=options[key];} var hasEventListener=('undefined'==typeof window.attachEvent);var hasModalDialog=('undefined'!=typeof window.showModalDialog);if(hasEventListener&&hasModalDialog){optionString='dialogHeight:'+defaultOptions.height+'px;';optionString+='dialogWidth:'+defaultOptions.width+'px;';optionString+='resizable:'+defaultOptions.resizable+';';optionString+='scroll:'+defaultOptions.scroll+';';optionString+='status:'+defaultOptions.status;showModalDialog(url,null,optionString);if(ModalWindow.callback){ModalWindow.callback();}}else{optionString='height='+defaultOptions.height+',';optionString+='width='+defaultOptions.width+',';optionString+='directories='+defaultOptions.directories+',';optionString+='location='+defaultOptions.location+',';optionString+='menubar='+defaultOptions.menu+',';optionString+='resizable='+defaultOptions.resizable+',';optionString+='scrollbars='+defaultOptions.scroll+',';optionString+='status='+defaultOptions.status+',';optionString+='titlebar='+defaultOptions.status+',';optionString+='toolbar='+defaultOptions.tools;ModalWindow.popup=window.open(url,'ModalWindow',optionString);if(window.addEventListener){window.addEventListener('unload',ModalWindow.hide,true);}else if(window.attachEvent){window.attachEvent('unload',ModalWindow.hide);} setTimeout(ModalWindow.check,800);}}};function JimdoSigninWindow(callback,url) {if(JimdoSigninWindow._instance){return JimdoSigninWindow._instance;} if(window.webserver){this.popupLocation=window.webserver+'app/auth/signin/';}else{this.popupLocation='http://s.jimdo.com/app/auth/signin/';} if(url){this.popupLocation+='?claimed_identifier='+url;} this.callback=callback;this.show=function(){var options={width:544,height:330};ModalWindow.show(this.popupLocation,options,this.callback);};JimdoSigninWindow._instance=this;return JimdoSigninWindow._instance;} function OldJimdoSigninWindow(callback,url) {if(JimdoSigninWindow._instance){return JimdoSigninWindow._instance;} if(window.webserver){this.popupLocation=window.webserver+'app/auth/signin/';}else{this.popupLocation='http://s.jimdo.com/app/auth/signin/';} if(url){this.popupLocation+='?claimed_identifier='+url;} this.callback=callback;this.hide=function(){if('undefined'!=typeof(this.popup)){this.popup.close();delete this.popup;}};this.checkClosed=function(){var recheck=true;try{recheck=!this.popup.closed;}catch(e){} if(recheck){setTimeout('JimdoSigninWindow().checkClosed();',800);return;} delete this.popup;this.callback();};this.show=function(){if('undefined'!=typeof(this.popup)){this.popup.focus();return true;} this.popup=window.open(this.popupLocation,'JimdoSigninWindow','width=550,height=330,titlebar=yes,menubar=no,location=yes,scrollbars=yes,status=yes,resizable=yes');setTimeout('JimdoSigninWindow().checkClosed();',600);if(window.addEventListener){window.addEventListener('unload',function(){JimdoSigninWindow().hide();},true);} else if(window.attachEvent){window.attachEvent('unload',function(){JimdoSigninWindow().hide();});}};JimdoSigninWindow._instance=this;return JimdoSigninWindow._instance;} function JimdoXAjaxRequest() {JimdoXAjaxRequest._instances.push(this);for(i=0;i0?'&':'?')+'_requestId='+this._instanceId;this._scriptNode=document.createElement('script');this._scriptNode.request=this;this._scriptNode.type='text/javascript';this._scriptNode.onload=function(){JimdoXAjaxRequest._dispatch(this.request);};this._scriptNode.onreadystatechange=function(){if((this.readyState=='complete')||(this.readyState=='loaded')){JimdoXAjaxRequest._dispatch(this.request);}};this._scriptNode.src=serviceUrl;document.getElementsByTagName('head')[0].appendChild(this._scriptNode);};var XSAjax={Request:function(url,options){if('undefined',typeof(options.requestHeaders)){options.requestHeaders={};} options.requestHeaders['X-Requested-With']='Jimdo XS XMLHttpRequest';options.method='post';var callback=options.onSuccess;options.onSuccess=function(t){var res=t.responseText.evalJSON();var req=new JimdoXAjaxRequest();req.onreadystatechange=callback;req.open(res.pullUrl);};return new Ajax.Request(url,options);}};function changeCaptcha(captchaId){var time=new Date();if($('captchaImage'+captchaId)){$('captchaImage'+captchaId).src=jimdoGen002.jimdoData.webserver+'app/common/captcha/index/captchaId/'+captchaId+'/t/'+time.getTime();}}