if(!window.jQuery){(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.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<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){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=jQuery.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(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},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]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(t){return typeof t!="string"?t:(t||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){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}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="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]=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(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];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();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();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){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}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(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.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||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a,clean){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){if(!clean||$.trim(this.value)){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))}})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){if(!clean||$.trim(this)){s.push(encodeURIComponent(j)+"[]="+encodeURIComponent(this))}})}else{if(!clean||$.trim(a[j])){s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]))}}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}if(jQuery.css(this,"visibility")=="hidden"){this.style.visibility="visible"}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.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:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.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;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();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;var done=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;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results,tempX,tempY;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=(this[0].offsetTop==(tempY=num(this,"marginTop")))?0:tempY;offset.left-=(this[0].offsetLeft==(tempX=num(this,"marginLeft")))?0:tempX;parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return }return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})()}(function(B){B.shadow={defaults:{imagePath:"assets/images/shadow/",imageType:"png",corners:"tl tr bl br",sides:"top right bottom left",dimensions:{width:5,height:5},wrap:"inside",noPadding:false,removeBorder:true,inheritBackground:true,margin:"left right",callback:false},remove:function(){B(".jq_shadow").shadow("remove")}};B.fn.shadow=B.browser.msie&&B.browser.version<7?function(){return this}:function(L){if(L&&L.constructor==String&&L=="remove"){return this.each(function(){var C=B(this);if(!C.is(".jq_shadow")){return }if(C.is(":has(> .jq_shadow_inner)")){C.css({border:"",backgroundColor:"",margin:"",padding:"",width:""}).children(".jq_shadow_inner").css({padding:0,width:"auto"})}C.removeClass("jq_shadow").children(".jq_shadow_element").remove()})}L=B.extend(true,{},B.shadow.defaults,L||{});var O=this;function N(D,C){return D[0]&&parseInt(jQuery.curCSS(D[0],C,true),10)||0}function P(C){return L.imagePath+C+"."+L.imageType}var M=L.corners.split(" ")[0],K;if(M&&(K=P(M))){var A=new Image();B(A).one("load",function(){L.dimensions={width:this.width,height:this.height};J(O,L)});A.src=K}else{setTimeout(function(){J(O,L)},0)}function J(D,C){D.each(function(){var S=B(this),T,H={},G,F={};if(S.is(".jq_shadow")){return }S.addClass("jq_shadow");if(!C.noPadding){if(/t/.test(C.corners)||/top/.test(C.sides)){F.top=C.dimensions.height}if(/r/.test(C.corners)||/right/.test(C.sides)){F.right=C.dimensions.width}if(/b/.test(C.corners)||/bottom/.test(C.sides)){F.bottom=C.dimensions.height}if(/l/.test(C.corners)||/left/.test(C.sides)){F.left=C.dimensions.width}B.each(F,function(R,Q){H["padding-"+R]=Q;if(C.margin&&C.margin.indexOf(R)>-1){H["margin-"+R]=-(Q-N(S,"padding-"+R))+N(S,"margin-"+R)}})}if(C.wrap=="inside"){var E={};S.css({border:"none"});if(!S.is(":has(> .jq_shadow_inner)")){S.wrapInner(B('<div class="jq_shadow_inner"></div>').css("background-color",S.css("background-color")))}B.each("left right top bottom".split(" "),function(){E["padding-"+this]=Math.max(N(S,"padding-"+this)-(F[this]||0),0)});var I=N(S,"width");if(I>0){E.width=I}if(B.browser.msie){E.zoom=1}S.children(".jq_shadow_inner").css(E);S.css({backgroundColor:"transparent",padding:"0px"});H.border="none";H.zoom=1;H.backgroundColor="transparent"}if(S.css("position")!="absolute"){H.position="relative"}S.css(H);H={position:"absolute"};if(B.browser.msie){H.lineHeight=0,H.fontSize=0}B.each(C.sides.split(" "),function(){var Q=B("<span>&nbsp;</span>").css(H).addClass(this+" jq_shadow_element");var R={backgroundImage:"url("+P(this)+")"};if(/left|right/.test(this)){R[this]=0;R.backgroundRepeat="repeat-y";R.width=C.dimensions.width;R.top=C.corners.indexOf("t"+this.charAt(0))>-1?C.dimensions.height:0;R.bottom=C.corners.indexOf("b"+this.charAt(0))>-1?C.dimensions.height:0}else{if(/top|bottom/.test(this)){R[this]=0;R.backgroundRepeat="repeat-x";R.height=C.dimensions.height;R.left=C.corners.indexOf(this.charAt(0)+"l")>-1?C.dimensions.width:0;R.right=C.corners.indexOf(this.charAt(0)+"r")>-1?C.dimensions.width:0}}Q.css(R).appendTo(S)});B.extend(H,C.dimensions);H.backgroundRepeat="no-repeat";B.each(C.corners.split(" "),function(){var Q=B("<span>&nbsp;</span>").css(H).addClass(this+" jq_shadow_element");var R={backgroundImage:"url("+P(this)+")"};if(/b/.test(this)){R.bottom=0}if(/t/.test(this)){R.top=0}if(/l/.test(this)){R.left=0}if(/r/.test(this)){R.right=0}Q.css(R).appendTo(S)});if(L.callback){L.callback.apply(S)}})}return this}})(jQuery);(function(B){B.ifixpng=function(C){B.ifixpng.pixel=C};B.ifixpng.regexp={bg:/^url\(["']?(.*\.png([?].*)?)["']?\)$/i,img:/.*\.png([?].*)?$/i},B.ifixpng.getPixel=function(){return B.ifixpng.pixel||"images/pixel.gif"};var A={base:B("base").attr("href"),ltie7:B.browser.msie&&B.browser.version<7,filter:function(C){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+C+"')"}};B.fn.ifixpng=A.ltie7?function(){function C(H,G,E,D,F){H.css({filter:A.filter(G),width:E,height:D}).attr({src:B.ifixpng.getPixel()}).positionFix()}return this.each(function(){var F=B(this);if(F.is("img")||F.is("input")){var H,E;if(this.src&&this.src.match(B.ifixpng.regexp.img)){H=(A.base&&this.src.substring(0,1)!="/"&&this.src.indexOf(A.base)===-1)?A.base+this.src:this.src;if(!this.width||!this.height){B(new Image()).one("load",function(){C(F,H,this.width,this.height);B(this).remove()}).attr("src",H)}else{C(F,H,this.width,this.height)}}}else{if(this.style){var I=F.css("backgroundImage");if(I&&I.match(B.ifixpng.regexp.bg)&&this.currentStyle.backgroundRepeat=="no-repeat"){I=RegExp.$1;var D=this.currentStyle.backgroundPositionX||0,J=this.currentStyle.backgroundPositionY||0;if(D||J){var G={},E;if(typeof D!="undefined"){if(D=="left"){G.left=0}else{if(D=="right"){G.right=F.width()%2===1?-1:0}else{G.left=D}}}if(typeof J!="undefined"){if(J=="bottom"){G.bottom=F.height()%2===1?-1:0}else{if(J=="top"){G.top=0}else{G.top=J}}}E=new Image();B(E).one("load",function(){var K,O,M={},N;if(/center|%/.test(G.top)){M.top="(this.parentNode.offsetHeight - this.offsetHeight) * "+(G.top=="center"?0.5:(parseInt(G.top)/100));delete G.top}if(/center|%/.test(G.left)){M.left="(this.parentNode.offsetWidth - this.offsetWidth) * "+(G.left=="center"?0.5:(parseInt(G.left)/100));delete G.left}F.positionFix().css({backgroundImage:"none"}).prepend(B("<div></div>").css(G).css({width:this.width,height:this.height,position:"absolute",filter:A.filter(I)}));if(M.top||M.left){var L=F.children(":first")[0];for(N in M){L.style.setExpression(N,M[N],"JavaScript")}}B(this).remove()});E.src=I}else{F.css({backgroundImage:"none",filter:A.filter(I)})}}}}})}:function(){return this};B.fn.positionFix=function(){return this.each(function(){var C=B(this);if(C.css("position")!="absolute"){C.css({position:"relative"})}})}})(jQuery);(function($){$.ewyseGallery={set:function(settings){$.ewyseGallery.settings=$.extend(true,$.ewyseGallery.settings,settings)},$:{},settings:{imgPath:"images/gallery/",img:{close:"close.png",overview:"overview.gif",info:"info.gif",loader:"loader.gif",prev:"previous.gif",next:"next.gif",play:"play.gif",pause:"pause.gif",sep:"sep.gif"},slideshowInterval:3500,minWidth:300,minHeight:0,maxWidth:900,maxHeight:600,borderSpace:0,autoMaxDimension:false,fitImage:true,overlayBgColor:"#000",overlayOpacity:0.8,cacheAjaxRequests:false,cache:{}},data:{},current:0,show:false,timer:false,_initInterface:function(options){if(!this.$.gallery){function _img(name){return $.ewyseGallery.settings.imgPath+$.ewyseGallery.settings.img[name]}this.options=$.extend({appendTo:"body",showInContent:false},options||{});$(this.options.appendTo).append((this.options.showInContent?"":'<div id="egallery-overlay" title="close" style="display: none;"></div>')+'<div id="egallery" style="display: none;"><div id="egallery-container">'+(this.options.showInContent?"":'<a id="egallery-close-link" href="javascript:void(0)"><img id="egallery-close" src="'+_img("close")+'" alt="Close"></a>')+'<div id="egallery-info"><span></span></div><div id="egallery-loading"><img src="'+_img("loader")+'"></div><div id="egallery-imageContainer"><img style="display: none;" id="egallery-image" alt="image"></div><div id="egallery-controls"><table><tr><td><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-prev" src="'+_img("prev")+'" alt="Previous Image" title="Previous Image"><img id="egallery-button-play" src="'+_img("play")+'" alt="Play Slideshow" title="Play Slideshow"><img id="egallery-button-pause" style="display: none;" src="'+_img("pause")+'" alt="Pause Slideshow" title="Pause Slideshow"><img id="egallery-button-next" src="'+_img("next")+'" alt="Next Image" title="Next Image"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-overview" src="'+_img("overview")+'" alt="View thumbnails" title="View thumbnails"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-info" src="'+_img("info")+'" alt="Toggle Info" title="Toggle Info"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"></td></tr></table><div id="egallery-index"></div></div></div></div>');if($.ifixpng){$("#egallery *").ifixpng()}this.$={overlay:$("#egallery-overlay").css({backgroundColor:this.settings.overlayBgColor,opacity:this.settings.overlayOpacity}),info:$("#egallery-info").css({zIndex:1002,opacity:0.7}),"close-link":$("#egallery-close-link").bind("click",this.actions.close),b:{info:$("#egallery-button-info"),play:$("#egallery-button-play"),pause:$("#egallery-button-pause"),prev:$("#egallery-button-prev"),next:$("#egallery-button-next"),overview:$("#egallery-button-overview").hide()},gallery:$("#egallery"),loading:$("#egallery-loading").css("z-index",2000),controls:$("#egallery-controls"),image:$("#egallery-image"),"image-container":$("#egallery-imageContainer").css({position:"relative",opacity:1}),container:$("#egallery-container"),index:$("#egallery-index")};if(this.options.hideInfo){this.$.b.info.remove()}this.$.controls.find("td").css({position:"relative",opacity:1});this._setButton("overview",true)}return this.$.gallery},actions:{next:function(){$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);$.ewyseGallery._setButton("play",false);$.ewyseGallery._setCurrentImage("next")},prev:function(){$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);$.ewyseGallery._setButton("play",false);$.ewyseGallery._setCurrentImage("prev")},close:function(){with($.ewyseGallery){show=false;slideshow.stop();window.$(window).add(document).unbind(".gallery");$.image.hide();$.info.slideUp("fast");$["close-link"].hide();$.gallery.hide();$.overlay.fadeOut();data=null;delete data;window.$("embed, object, select").css({visibility:"visible"})}},info:function(){$.ewyseGallery.$.info.slideToggle()},play:function(){$.ewyseGallery.slideshow.start()},pause:function(){$.ewyseGallery.slideshow.stop()},overview:function(){}},slideshow:{start:function(){$.ewyseGallery.$.b.play.hide();$.ewyseGallery.$.b.pause.show();$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);this.setTimeout()},setTimeout:function(){clearTimeout(this.timer);this.timer=setTimeout(this.next,$.ewyseGallery.settings.slideshowInterval)},next:function(){$.ewyseGallery._setCurrentImage("next")},toggle:function(){if(!this.timer){this.start()}else{this.stop()}},stop:function(){clearTimeout(this.timer);this.timer=false;$.ewyseGallery.$.b.pause.hide();$.ewyseGallery.$.b.play.show();$.ewyseGallery._setButton("prev",true);$.ewyseGallery._setButton("next",true)}},_setCurrentImage:function(which){if(this.loading){return }var img=this._getImage(which,true);if(img!==false){this.loading=true;this.$.info.slideUp("fast");this._preload(img,this._setImage)}},_preload:function(img,callback){if(!((typeof img=="object")||(img=this._getImage(img)))){return }var context=this;var newHeight=Math.max(this.settings.maxHeight,this.settings.minHeight)-this.settings.borderSpace*2;var newWidth=Math.max(this.settings.maxWidth,this.settings.minWidth)-this.settings.borderSpace*2;if(img.obj){if(callback&&(!this.data.rewriteFunction||img.width==newWidth&&img.height==newHeight)){if(img.obj.complete){callback.apply(context,[img.obj]);context=null;return }else{$(img.obj).one("load",function(e){callback.apply(context,[this]);context=null});this.$.loading.show();return }}}else{img.obj=new Image()}if(callback){this.$.loading.show();$(img.obj).one("load",function(e){callback.apply(context,[this]);context=null})}img.width=newWidth;img.height=newHeight;img.obj.title=img.obj.alt=$.trim(img.title)||"";img.obj.src=this.data.rewriteFunction?this.data.rewriteFunction.apply(context,[img.src,img.width,img.height]):img.src},_setImage:function(img){var newHeight,newWidth,h,w;if(this.settings.fitImage){newHeight=img.height+this.settings.borderSpace*2;newWidth=img.width+this.settings.borderSpace*2}else{newHeight=Math.max(Math.min(img.height+this.settings.borderSpace*2,this.settings.maxHeight),this.settings.minHeight);newWidth=Math.max(Math.min(img.width+this.settings.borderSpace*2,this.settings.maxWidth),this.settings.minWidth)}h=this.$["image-container"].height()!=newHeight;w=this.$.container.width()!=newWidth;function temp(){$.ewyseGallery._loadingDone(img);if(h&&$.ewyseGallery.options.showInContent!==true){$.ewyseGallery._setPosition()}}this.$.image.fadeOut(300,function(){if($.ewyseGallery.slideshow.timer){$.ewyseGallery.slideshow.setTimeout()}else{var enabled=$.ewyseGallery.data.images.length>1;$.ewyseGallery._setButton("play",enabled);$.ewyseGallery._setButton("prev",enabled);$.ewyseGallery._setButton("next",enabled)}$(this).remove();if(h||w){$.ewyseGallery.$["close-link"].hide();$.ewyseGallery.$["image-container"].animate({height:newHeight,width:newWidth},400,"easeout");$.ewyseGallery.$.container.animate({width:newWidth},400,"easeout",temp)}else{temp()}});this.$.image=$(img).css("display","none").attr("src",img.src).appendTo(this.$["image-container"])},_loadingDone:function(img){this._setButton("info",img.title);if(!!$.trim(img.title)){this.$.info.slideDown().children().html(img.title)}this.$["close-link"].show();this.$.loading.hide();this.$.index.html((this.current+1)+" / "+this.data.images.length);this.$.image.center().fadeIn(300);this.loading=false;this._preload("next")},_getImage:function(which,setCurrent){var index=which;if(typeof index=="undefined"){index=this.current}else{switch(which){case"current":case"active":index=this.current;break;case"prev":index=this.__testIndex(this.current-1)!==false?this.current-1:this.data.images.length-1;break;case"next":index=this.__testIndex(this.current+1)||0;break;case"last":index=this.data.images.length-1;break;case"first":index=0;break}}index=this.__testIndex(index);if(index!==false&&setCurrent){this.current=index}return $.ewyseGallery.data.images[index]},__testIndex:function(index){return(index>=0&&index<this.data.images.length)?index:false},_setButton:function(which,enabled){this.$.b[which].unbind().css({opacity:enabled?1:0.4,cursor:enabled?"pointer":"auto"});if(enabled){this.$.b[which].bind("click",this.actions[which])}},_show:function(args,index){this.show=true;$("embed, object, select").css({visibility:"hidden"});if(!this._settings){this._settings=$.extend({},this.settings)}if(this.options.showInContent!==true){this._setPosition();this.$.gallery.css({position:"absolute",left:0,top:0});$(window).bind("scroll.gallery resize.gallery",this._setPosition)}this.data=args;if(typeof index!="undefined"){this.current=index}this._setButton("play",this.data.images.length>1);this._setButton("pause",this.data.images.length>1);this.$.gallery.fadeIn(function(){if(args.autoplay){$.ewyseGallery.slideshow.start()}});this._bindKeys();this._setCurrentImage()},_bindKeys:function(){var self=this;this.$.gallery.attr("tabIndex",0).bind("keydown.gallery",function(e){var prevent=true;if(e.which==32){self.slideshow.toggle()}else{if(e.keyCode==39){self.actions.next()}else{if(e.keyCode==37){self.actions.prev()}else{if(e.keyCode==27&&self.options.showInContent!==true){self.actions.close()}else{prevent=false}}}}if(prevent){e.stopPropagation();e.preventDefault()}}).click()},_setPosition:function(y){if(!$.ewyseGallery.show){return }var $win=$(window),$doc=$(document),scrollTop=$win.scrollTop(),winHeight=$win.height();var location=$win.scrollTop()+(winHeight/2)-($.ewyseGallery.$.gallery.height()/2);if(!isNaN(y)){height=Math.max(y,$doc.height())}if($.ewyseGallery.settings.autoMaxDimension){$.ewyseGallery.settings.maxWidth=Math.min($win.width()-50,$.ewyseGallery._settings.maxWidth);$.ewyseGallery.settings.maxHeight=Math.min(winHeight-150,$.ewyseGallery._settings.maxHeight)}if(location>scrollTop){$.ewyseGallery.$.gallery.stop().animate({top:location,opacity:1},"fast","easeout",function(){$.ewyseGallery.$.overlay.css("height",$doc.height()).not(":visible").fadeIn("fast")})}else{$.ewyseGallery.$.overlay.css("height",$doc.height()).not(":visible").fadeIn("fast");if(!y||!isNaN(y)){$.ewyseGallery.$.gallery.animate({top:scrollTop+30},"fast","easeout")}}}};$.fn.center=function(){return this.each(function(){var $$=$(this);$parent=$$.parent().css({position:"relative"});$$.css({position:"absolute",left:($parent.width()-$$.width())/2,top:($parent.height()-$$.height())/2})})};$.fn.ewyseGallery=function(arg,arg2){$.ewyseGallery._initInterface();if(typeof arg=="string"){return this.each(function(){var $$=$(this);if(arg2.thumbnails&&typeof arg2.thumbnails=="string"){arg2.thumbnails=$$.find(arg2.thumbnails).get()}$$.find(arg).ewyseGallery($.extend({},arg2))})}var options=arg||{};options.images=options.images||[];options.thumbnails=options.thumbnails?(typeof options.thumbnails=="string"?$(options.thumbnails).get():options.thumbnails):[];var jsonLoaded=false;function _initialize(e){e.preventDefault();e.stopPropagation();var obj=this;if(!jsonLoaded&&options.mode&&options.mode.toLowerCase()=="json"){if($.ewyseGallery.settings.cacheAjaxRequests&&(options.images=$.ewyseGallery.settings.cache[options.url])){jsonLoaded=true;_start(obj,options)}else{$.getJSON(options.url,function(json){jsonLoaded=true;options.images=json.images||json;if($.ewyseGallery.settings.cacheAjaxRequests){$.ewyseGallery.settings.cache[options.url]=options.images}_start(obj,options)})}}else{_start(obj,options)}return false}function _start(obj,data){var img=obj.href||obj.src;var index=0;for(i=0;i<data.images.length;i++){if(data.images[i].src.indexOf(img)>-1){index=i;break}}$.ewyseGallery._show(data,index)}if(!options.images.length){this.each(function(){options.images.push({src:this.href||this.src,title:this.title||this.alt})})}return this.unbind(".gallery").bind("click.gallery",_initialize)}})(jQuery);(function(B){B.fn.example=function(F,G){var H=B.extend({},B.fn.example.defaults,G);var A=B.isFunction(F);if(!B.fn.example.bound_class_names[H.class_name]){B(window).unload(function(){B("."+H.class_name).val("")});B("form").submit(function(){B(this).find("."+H.class_name).val("")});B.fn.example.bound_class_names[H.class_name]=true}return this.each(function(){var C=B(this);if(B.browser.msie&&!C.attr("defaultValue")&&(A?C.val()!="":C.val()==F)){C.val("")}if(C.val()==""){C.addClass(H.class_name);C.val(A?F.call(this):F)}if(H.hide_label){var D=B("label[@for="+C.attr("id")+"]");D.next("br").hide();D.hide()}C.focus(function(){if(B(this).is("."+H.class_name)){B(this).val("");B(this).removeClass(H.class_name)}});C.blur(function(){if(B(this).val()==""){B(this).addClass(H.class_name);B(this).val(A?F.call(this):F)}})})};B.fn.example.defaults={class_name:"example",hide_label:false};B.fn.example.bound_class_names=[]})(jQuery);(function(B){B.ajaxNav={version:0.91,defaults:{ajaxFile:"ajax/getdata.php",ajaxParams:{},target:false,workspace:false,createWorkspace:false,createViewport:false,fixViewport:false,onShow:false,callback:false,subMenu:false,classActive:"activeItem",trackGA:false,useOverlay:false,keyNav:false,windowResize:false,fade:true,find:false,offset:[50,50],buttons:false,dragDrop:false},parseGetParameters:function(H){var A={};if(H&&(index=H.indexOf("?"))!==-1){var I=H.substring(index+1).split(/&amp;|&/);for(var G=0;G<I.length;G++){var J=I[G].split("=");A[J[0]]=(typeof (J[1])!="undefined")?J[1]:""}}return A},cache:[],init:function(F){if(F.mainNav.is(".ajaxNav")){return }F.cacheIndex=this.cache.length;this.cache[F.cacheIndex]=F;F.hashRegExp=new RegExp(F.cacheIndex+":(\\-?\\d+),(\\-?\\d+)");F.root=window.location.protocol+"//"+window.location.hostname+window.location.pathname;F.backLinkLog={};if(F.options.keyNav){F.backLinkLog[F.root]=[0,0]}var E=F.options;if(!E.workspace&&!E.target){return }var A=E.target?B(E.target):B(":first-child",E.workspace);F.mainNav.each(function(C){if(B(this).is("."+E.classActive)){F.activeItem=[C,0]}});if(E.subMenu){B(E.subMenu,A).each(function(C){if(B(this).is("."+E.classActive)){F.activeItem[1]=C}})}this.createNav(F,F,F.mainNav);this.setHash(F,F.activeItem,true);if(F.activeItem[0]==-1){F.nav[-1]={nav:[]};F.nav[-1].nav[F.activeItem[1]]={}}if(E.subMenu){this.createSubMenu(F,F.activeItem,true)}F.currentTarget=F.activeItem;var A=this.getNav(F,F.activeItem)["target"]=E.target?B(E.target):B(":first-child",E.workspace);F.workspace=E.workspace?B(E.workspace):E.createWorkspace?A.wrap("<div/>").parent():B(A).parent();F.viewport=E.createViewport?F.workspace.wrap("<div/>").parent():F.workspace.parent();F.workspace.addClass("ajaxNav_workspace");F.viewport.addClass("ajaxNav_viewport");if(B.browser.msie){F.viewport.css("zoom",1)}F.contentWidth=A.width();F.contentHeight=A.height()||A.append('<div style="clear: both" />').outerHeight();F.windowWidth=B(window).width();F.left=F.viewport.width()/2-5000;F.top=0;if(E.fixViewport){F.viewport.css({overflow:"hidden",width:F.viewport.outerWidth(),height:F.viewport.outerHeight(),position:F.viewport.css("position")=="absolute"?"absolute":"relative"})}F.workspace.css({width:10000,height:10000,position:"absolute",left:F.left,top:F.top,textAlign:"center"});if(E.dragDrop){F.workspace.css({cursor:"move"}).bind("mousedown.ajaxNav",function(C){B.ajaxNav.drag.start(C,F)})}A.css({cursor:"auto",textAlign:"left",position:"absolute",top:A.position().top,left:5000-F.contentWidth/2,width:F.contentWidth,height:F.contentHeight});if(E.windowResize){B(window).bind("resize.ajaxNav",B.ajaxNav.setPosition)}if(E.useOverlay&&!this.compare(F.activeItem,[-1,-1])){this.addOverlay(F,F.activeItem)}if(E.keyNav){this.initKeyNav(F)}if(E.buttons){this.initButtons(F);this.setButtons(F)}this.preloadNeighbors(F);if(!this.hashEnabled){this.hashEnabled=true;this.hashPoll()}},initButtons:function(A){A.buttons={};var D;for(D in A.options.buttons){if(this.nav[D]){A.buttons[D]=B("<img/>").css("cursor","pointer").attr({src:A.options.buttons[D],alt:D,display:"block"}).addClass(D).appendTo(A.viewport).bind("click.ajaxNav",function(){B.ajaxNav.nav[this.alt](A)})}}},initKeyNav:function(A){B(document).bind("keydown.ajaxNav",function(F){if(B(F.target).is(":input")){return true}var H=false,G=false;if(37==F.keyCode){H="left"}else{if(39==F.keyCode){H="right"}else{if(38==F.keyCode){H="up"}else{if(40==F.keyCode){H="down"}}}}if(H){G=B.ajaxNav.nav[H](A)}if(G){F.preventDefault();F.stopPropagation()}return !G})},setButtons:function(A){var D=A.buttons;if(!D){return }if(D.left){D.left[this.getNav(A,A.activeItem[0]-1)?"show":"hide"]()}if(D.right){D.right[this.getNav(A,A.activeItem[0]+1)?"show":"hide"]()}if(D.up){D.up[this.getNav(A,[A.activeItem[0],A.activeItem[1]-1])?"show":"hide"]()}if(D.down){D.down[this.getNav(A,[A.activeItem[0],A.activeItem[1]+1])?"show":"hide"]()}},nav:{left:function(A){return B.ajaxNav.navigate(A,[A.activeItem[0]-1,A.activeItem[1]])},right:function(A){return B.ajaxNav.navigate(A,[A.activeItem[0]+1,A.activeItem[1]])},up:function(A){return B.ajaxNav.navigate(A,[A.activeItem[0],A.activeItem[1]-1])},down:function(A){return B.ajaxNav.navigate(A,[A.activeItem[0],A.activeItem[1]+1])}},drag:{start:function(A,D){if(A.target!=D.workspace[0]){return true}D.drag={x:-A.clientX+D.left,y:-A.clientY+D.top+D.topOffset,startX:A.clientX,startY:A.clientY};B(window).bind("mousemove.ajaxNav",function(C){B.ajaxNav.drag.drag(C,D)});B(window).one("mouseup.ajaxNav",function(C){B.ajaxNav.drag.stop(C,D)})},drag:function(A,D){A.preventDefault();A.stopPropagation();D.workspace[0].style.left=(D.drag.x+A.clientX)+"px";D.workspace[0].style.top=(D.drag.y+A.clientY)+"px"},stop:function(A,D){B.ajaxNav.setPosition();B(window).unbind("mousemove.ajaxNav")}},createSubMenu:function(G,A){var F=this.getNav(G,A[0]);var H=B(G.options.subMenu,this.getNav(G,A,"target"));this.createNav(G,F,H,A[0])},createNav:function(F,G,A,H){if(!G.nav){G.nav=[]}A.each(function(D){if(B(this).is(".ajaxNav")){return }var C=typeof H!=="undefined"?[H,D]:[D,0];if(!G.nav[D]){G.nav[D]={url:this.href,target:false};F.backLinkLog[this.href]=C}B.ajaxNav.processLink(F,this,C)});this.processBackLinks(F)},processLink:function(E,F,A){B(F).not(".ajaxNav").addClass("ajaxNav").bind("click.ajaxNav",function(C){this.blur();C.preventDefault();B.ajaxNav.navigate(E,A)})},processBackLinks:function(E,F){var A;B("a:not(.ajaxNav)",F||document).each(function(){if(A=E.backLinkLog[this.href]){B.ajaxNav.processLink(E,this,A)}})},setHash:function(H,A,J){var G=H.cacheIndex+":"+A;if(!H.hashRegExp.test(window.location.hash)){window.location.hash=window.location.hash.length>1?(window.location.hash+";"+G):("#"+G)}else{if(!J){var I=B(window.location.hash.substring(1).split(";")).map(function(){return H.hashRegExp.test(this)?G:this}).get();window.location.hash="#"+I.join(";")}}},getHash:function(D){var A=D.hashRegExp.exec(window.location.hash);return A?[parseInt(A[1]),parseInt(A[2])]:false},hashPoll:function(A){var G,F,H;for(G=0;G<this.cache.length;G++){var F=this.cache[G];var H=this.getHash(F);if(H&&!this.compare(F.activeItem,H)){B.ajaxNav.navigate(F,H)}}setTimeout(function(){B.ajaxNav.hashPoll(A)},100)},compare:function(D,A){return(D[0]==A[0])&&((D[1]||0)==(A[1]||0))},getNav:function(G,A,H){var F=false;if(A.constructor==Number){F=G.nav[A]}else{if(A.constructor==Array){if(A[1]!=0){F=G.nav[A[0]]&&G.nav[A[0]].nav?G.nav[A[0]].nav[A[1]]:(G.options.subMenu?false:undefined)}else{F=G.nav[A[0]]}}}if(F&&H){return F[H]}else{return F}},setPosition:function(E,A){var F=B(window).width();B.each(B.ajaxNav.cache,function(){if(!E||this.options.windowResize){this.topOffset=(this.options.useOverlay&&this.activeItem[1]!=0)?(this.viewport.height()-this.contentHeight)/2:0;if(this.options.windowResize){this.left=this.left-(this.windowWidth-F)/2}this.windowWidth=F;this.workspace.stop().animate({left:this.left,top:this.top+this.topOffset},A||200,"easeout")}})},preloadNeighbors:function(A){var D=A.activeItem;if(D.constructor==Array){this.load(A,[D[0]-1,D[1]]);this.load(A,[D[0]+1,D[1]]);this.load(A,[D[0],D[1]-1]);this.load(A,[D[0],D[1]+1])}else{this.load(A,[D-1,0]);this.load(A,[D+1,0])}},load:function(I,A){var J,G;if((G=this.getNav(I,A))&&(J=G.url)){if(!G.target&&!G.loading){G.loading=true;var H=B.extend(this.parseGetParameters(J),I.options.ajaxParams);B.getJSON(I.options.ajaxFile,H,function(C){G.ready=true;G.title=C.title||C.name||"";B.ajaxNav.addContent(I,A,C);setTimeout(function(){B(G).trigger("ajaxload")},0)})}else{if(G.ready){setTimeout(function(){B(G).trigger("ajaxload")},0)}}}},addContent:function(N,K,P){var O,A,L,M,J;A=this.getNav(N,N.activeItem,"target");L=parseInt(A.css("left"))+(K[0]-N.activeItem[0])*(N.contentWidth+N.options.offset[0]);M=parseInt(A.css("top"))+((K[1]||0)-(N.activeItem[1]||0))*(N.contentHeight+N.options.offset[1]);J=this.getNav(N,K[0]);O=(N.options.find?B(N.options.find,P.content):B(P.content)).css({position:"absolute",left:L,top:M,textAlign:"left",width:N.contentWidth,height:N.contentHeight,display:N.options.fade?"none":"block",cursor:"auto"}).appendTo(N.workspace);if(K[1]>0){J.nav[K[1]]["target"]=O}else{J.target=O}if(N.options.useOverlay){B.ajaxNav.addOverlay(N,K);O.fadeIn(500)}if(N.options.subMenu){this.createSubMenu(N,K)}if(N.options.callback){N.options.callback.apply(O)}},addOverlay:function(H,G){var A=this.getNav(H,G);var J=B('<a href="'+A.url+'" class="contentOverlay" style="background-color: black; cursor: pointer; position: absolute; z-index: 10;"/>');J.css("opacity",0.4);var I=A.target;J.prependTo(I).css({width:I.width(),height:I.height()}).hover(function(){B(this).stop().fadeTo(200,0)},function(){B(this).stop().fadeTo(200,0.4)});this.processLink(H,I,G);if(this.compare(G,H.activeItem)){J.hide()}},navigate:function(S,R,M){if(!M&&this.compare(S.currentTarget,R)){return false}S.currentTarget=R;var P=this.getNav(S,S.activeItem,"target");var L=this.getNav(S,R);if(typeof L=="undefined"){return false}else{this.setHash(S,R)}if(!L){if(R[1]>0){B(this.getNav(S,R[0])).unbind("ajaxload").one("ajaxload",function(){B.ajaxNav.navigate(S,R,true)});this.load(S,[R[0],0])}return true}var N=L.target||false;if(!N){B(L).unbind("ajaxload").one("ajaxload",function(){B.ajaxNav.navigate(S,R,true)});this.load(S,R);return true}S.mainNav.filter("a[href='"+this.getNav(S,S.activeItem[0])["url"]+"']").removeClass(S.options.classActive);S.mainNav.filter("a[href='"+this.getNav(S,R[0])["url"]+"']",S.mainNav).addClass(S.options.classActive);S.activeItem=R;var O=parseInt(P.css("left"))-parseInt(N.css("left"));S.left+=O;var T=parseInt(P.css("top"))-parseInt(N.css("top"));S.top+=T;var A=T&&O?600:450;this.processBackLinks(S,N);if(S.options.trackGA&&window.pageTracker&&L.title){try{pageTracker._trackPageview(L.title)}catch(Q){if(window.console){console.log("Tracking error in ajaxNav: "+Q)}}}if(S.options.useOverlay){P.children(".contentOverlay").show();N.children(".contentOverlay").hide();if(T||O){B.ajaxNav.setPosition(false,A)}if(S.options.onShow){S.options.onShow.apply(N)}}else{if(S.options.fade){P.stop(false,true).fadeOut(A);if(T||O){B.ajaxNav.setPosition(false,A)}N.stop(false,true).fadeIn(A,S.options.onShow||false)}else{if(T||O){B.ajaxNav.setPosition(false,A)}S.options.onShow.apply(N)}}this.setButtons(S);setTimeout(function(){B.ajaxNav.preloadNeighbors(S)},500);return true}};B.fn.ajaxNav=function(D){var A={mainNav:this,activeItem:[-1,-1],options:B.extend({},B.ajaxNav.defaults,D)};B.ajaxNav.init(A)}})(jQuery);(function(B){if(!B.ewyseCustom){B.extend({ewyseCustom:true,load:function(H,F,G,A){return B(H).load(F,G,A)},ie6:function(){return B.browser.msie&&B.browser.version=="6.0"},activeItem:function(D,A){return B(D).activeItem(A)},makeURL:function(A,D){if(D){A+=(A.match(/\?/)?"&":"?")+(typeof D=="string"?D:B.param(D,true))}return A},postJSON:function(H,G,A,F){return B.ajax({type:"POST",url:B.makeURL(H,G),dataType:"json",data:A,success:F})},createStyleSheet:function(D){if(document.styleSheets){for(var A=0;A<document.styleSheets.length;A++){if(document.styleSheets[A].href.indexOf(D)>=0){return document.styleSheets[A]}}}if(B.browser.msie){return document.createStyleSheet(D)}else{return B("<link>").appendTo("head").attr({href:D,rel:"stylesheet",type:"text/css"})[0]}},fancySelect:{_livequery:false,useInput:true,options:{onSelect:false,maxListHeight:200},toggle:function(A){return B(A).toggleClass("open").next("dd").slideToggle(300)},enableSelection:function(F){if(B.fancySelect.useInput){var H=B(F);var A=H.find("dt li").attr("id");if(A){var G=H[0].options;A=A.substring(A.indexOf("option_")+"option_".length);if(G.inputField.val()!=A){G.inputField.val(A);if(B.isFunction(G.onSelect)){G.onSelect.apply(G.inputField,[A])}}}}},enableLivequery:function(){if(!B.fancySelect._livequery){B("dl.fancySelect dd li").livequery("click",function(H){var A=B(this).unbind("click");var G=A.clone(true);var J=A.parents("dl:first");var I=J.find("dt ul");if(H.clientX){B.fancySelect.toggle(J.find("dt"))}A.after(I.children("li").clone(true).mouseout()).remove();I.html(G.mouseout());B.fancySelect.enableSelection(J)}).livequery("keypress",function(A){if(/13|32/.test(A.which)){B(this).click()}});B("dl.fancySelect dt li").livequery("click",function(){B.fancySelect.toggle(B(this).parent().parent())}).livequery("keypress",function(A){if(/13|32/.test(A.which)){B(this).click()}});B.fancySelect._livequery=true}}}});if(!B.fn._load){B.fn._load=B.fn.load}B.fn.extend({doIf:function(D,A){return(D&&B.isFunction(A))?A.apply(this):this},absolutize:function(){return this.each(function(){var D=B(this);var A=D.position();D.css({position:"absolute",top:A.top,left:A.left,width:D.width(),height:D.height()})})},load:function(G,H,A){if(B.isFunction(G)){return B(this)._load(G,H,A)}if(!this.length){return this}var F=G;if(H){F+=(F.match(/\?/)?"&":"?")+B.param(H)}return this.each(function(){if(typeof this["location"]=="object"){this.location.href=F}else{if(typeof this["href"]!="undefined"){this.href=F}else{if(typeof this["src"]!="undefined"){this.src=F}else{B(this)._load(G,H,A)}}}})},hoverClass:function(A){return this.hover(function(){B(this).addClass(A)},function(){B(this).removeClass(A)})},focusClass:function(A){return this.each(function(){B(this).focus(function(){B(this).addClass(A)}).blur(function(){B(this).removeClass(A)})})},activeClass:function(A){return this.each(function(){B(this).mousedown(function(){B(this).addClass(A)}).mouseup(function(){B(this).removeClass(A)})})},document:function(A){if(this.length==1&&(el=this[0])&&el.nodeName=="IFRAME"){var D=B(el.contentWindow.document)}else{var D=B(document)}if(typeof A!="undefined"){return D.find(A)}else{return D}},window:function(A){if(this.length==1&&(el=this[0])&&el.nodeName=="IFRAME"){var D=B(el.contentWindow)}else{var D=B(window)}if(typeof A!="undefined"){return D.find(A)}else{return D}},enable:function(A){if(B.browser.mozilla||A){this.css("opacity",1)}return this.removeAttr("disabled")},disable:function(A){if(B.browser.mozilla||A){this.css("opacity",0.4)}return this.attr("disabled","disabled")},enabled:function(A,D){return this[A===false?"disable":"enable"](D)},fancySelect:function(E,A){if(typeof A=="object"){if(!A.location||!B.isFunction(this[A.location])){A.location="append"}var F=B("<dl></dl>").attr("id",A.id);this[A.location](F);F.append("<dt><ul></ul></dt><dd><ul></ul></dd>");B.each(A.options,function(D,H){var C=B("<li></li>").attr("id",A.id+"_option_"+H.id);if(H.id===A.selected){F.find("dt ul").append(C)}else{F.find("dd ul").append(C)}if(H.image){B("<img>").attr(H.image).prependTo(C)}if(H.spans){B.each(H.spans,function(G,J){B("<span></span>").appendTo(C).addClass(G).html(J)})}if(H.html){C.append(H.html).attr("title",H.html)}});return F.fancySelect(E)}this.each(function(){var C=B(this);if(this.tagName=="SELECT"){var I={location:"after",id:this.id,selected:B(this).val(),options:[]};C.children("option").each(function(){I.options.push({id:this.value,html:B(this).text()})});var J=C.fancySelect(E,I).css({width:C.width(),height:C.height()});C.remove();return J}else{if(this.tagName=="INPUT"&&C.is(".fancySelectInputBox")){B("#"+this.id+"_fancySelect").fancySelect(E,A);return this}}if(this.tagName!="DL"){return this}if(typeof E=="string"||typeof E=="number"){return C.find("dd li[@id$=option_"+E+"]").click()}if(C.is(".fancySelect")){return this}this.options=B.extend(B.fancySelect.options,E||{});var C=B(this).addClass("fancySelect").css("position","relative");var D=C.children("dd").css({position:"absolute",width:"100%","z-index":10,visibility:"hidden"}).children("ul").css({maxHeight:this.options.maxListHeight,overflow:"auto"});if(B.browser.msie){C.parents().css("z-index",8);if(D.height()>parseInt(this.options.maxListHeight)){D.css("height",this.options.maxListHeight)}}if(this.id&&B.fancySelect.useInput){this.options.inputField=B('<input type="hidden">').insertBefore(C).attr({name:this.id,id:this.id}).addClass("fancySelectInputBox");this.id+="_fancySelect"}B.fancySelect.enableSelection(this);C.find("li").css({cursor:"pointer",position:"relative",display:"block","z-index":9}).activeItem({classOver:"active",navigation:"vertical"})});B.fancySelect.enableLivequery();return this},activeItem:function(A){if(!A){A={}}var D={classBase:((A.classBase||this.className)||"dummyClassForActiveItem"),classDown:A.classDown||"",classOver:A.classOver||"",classActive:A.classActive||"",navigation:A.navigation||false,keyNext:A.navigation=="horizontal"?39:40,keyPrev:A.navigation=="horizontal"?37:38};return this.each(function(F){var C=B(this);this.tabIndex="0";this.className=D.classBase;C.mouseover(function(E){this.focus();B(this).addClass(D.classOver).siblings("."+D.classBase).mouseout()});C.mouseout(function(E){if(!D.classActive||!C.is("."+D.classActive)){B(this).removeClass([D.classDown,D.classOver].join(" "))}});C.blur(function(E){B(this).mouseout()});C.focus(function(E){B(this).mouseover()});if(D.classDown){C.mousedown(function(E){B(this).addClass(D.classDown);return false});C.mouseup(function(E){B(this).mouseout();return false})}C.keyup(function(E){if(/13|32/.test(E.which)){B(this).mouseup().click();return false}});C.keydown(function(E){if(/13|32/.test(E.which)){B(this).mousedown();return false}else{if(D.navigation){if(E.which==D.keyNext&&(nextItem=B(this).next().not(":disabled"))&&nextItem.length){B(this).mouseout();nextItem.mouseover().focus();return false}else{if(E.which==D.keyPrev&&(prevItem=B(this).prev().not(":disabled"))&&prevItem.length){B(this).mouseout();prevItem.mouseover().focus();return false}}}}});if(D.classOver){C.mouseover(function(E){if(!D.classActive||!C.is("."+D.classActive)){C.addClass(D.classOver)}})}})}});B.easing={easein:function(I,H,J,A,G){return A*(H/=G)*H+J},easeinout:function(K,J,L,A,H){if(J<H/2){return 2*A*J*J/(H*H)+L}var I=J-H/2;return -2*A*I*I/(H*H)+2*A*I/H+A/2+L},easeout:function(I,H,J,A,G){return -A*H*H/(G*G)+2*A*H/G+J},expoin:function(K,J,L,A,H){var I=1;if(A<0){I*=-1;A*=-1}return I*(Math.exp(Math.log(A)/H*J))+L},expoout:function(K,J,L,A,H){var I=1;if(A<0){I*=-1;A*=-1}return I*(-Math.exp(-Math.log(A)/H*(J-H))+A+1)+L},expoinout:function(K,J,L,A,H){var I=1;if(A<0){I*=-1;A*=-1}if(J<H/2){return I*(Math.exp(Math.log(A/2)/(H/2)*J))+L}return I*(-Math.exp(-2*Math.log(A/2)/H*(J-H))+A+1)+L},bouncein:function(I,H,J,A,G){return A-B.easing.bounceout(I,G-H,0,A,G)+J},bounceout:function(I,H,J,A,G){if((H/=G)<(1/2.75)){return A*(7.5625*H*H)+J}else{if(H<(2/2.75)){return A*(7.5625*(H-=(1.5/2.75))*H+0.75)+J}else{if(H<(2.5/2.75)){return A*(7.5625*(H-=(2.25/2.75))*H+0.9375)+J}else{return A*(7.5625*(H-=(2.625/2.75))*H+0.984375)+J}}}},bounceinout:function(I,H,J,A,G){if(H<G/2){return B.easing.bouncein(I,H*2,0,A,G)*0.5+J}return B.easing.bounceout(I,H*2-G,0,A,G)*0.5+A*0.5+J},elasin:function(O,M,P,A,J){var L=1.70158;var K=0;var N=A;if(M==0){return P}if((M/=J)==1){return P+A}if(!K){K=J*0.3}if(N<Math.abs(A)){N=A;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(A/N)}return -(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+P},elasout:function(O,M,P,A,J){var L=1.70158;var K=0;var N=A;if(M==0){return P}if((M/=J)==1){return P+A}if(!K){K=J*0.3}if(N<Math.abs(A)){N=A;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(A/N)}return N*Math.pow(2,-10*M)*Math.sin((M*J-L)*(2*Math.PI)/K)+A+P},elasinout:function(O,M,P,A,J){var L=1.70158;var K=0;var N=A;if(M==0){return P}if((M/=J/2)==2){return P+A}if(!K){K=J*(0.3*1.5)}if(N<Math.abs(A)){N=A;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(A/N)}if(M<1){return -0.5*(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+P}return N*Math.pow(2,-10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K)*0.5+A+P},backin:function(K,J,L,A,H){var I=1.70158;return A*(J/=H)*J*((I+1)*J-I)+L},backout:function(K,J,L,A,H){var I=1.70158;return A*((J=J/H-1)*J*((I+1)*J+I)+1)+L},backinout:function(K,J,L,A,H){var I=1.70158;if((J/=H/2)<1){return A/2*(J*J*(((I*=(1.525))+1)*J-I))+L}return A/2*((J-=2)*J*(((I*=(1.525))+1)*J+I)+2)+L},linear:function(I,H,J,A,G){return A*H/G+J}};B.fn.bgIframe=B.fn.bgiframe=function(E){if(B.browser.msie&&B.browser.version=="6.0"){E=B.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},E||{});var A=function(C){return C&&C.constructor==Number?C+"px":C},F='<iframe class="bgiframe" frameborder="0" tabindex="-1" src="'+E.src+'" style="display:block;position:absolute;z-index:-1;'+(E.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(E.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":A(E.top))+";left:"+(E.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":A(E.left))+";width:"+(E.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":A(E.width))+";height:"+(E.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":A(E.height))+';"/>';return this.not(".bgiframeProcessed").prepend(F).addClass("bgiframeProcessed")}return this};B.fn.scrollTo=function(G,H){H=H||{};var J={},A=H.horizontal?"left":"top",I="scroll"+A.charAt(0).toUpperCase()+A.substring(1);return this.each(function(){switch(typeof G){case"string":if(/(\d|px|em|%)$/.test(G)){break}G=B(G,this);case"object":G=B(G).position()[A]}if(H.speed){J[I]=G;B(this).animate(J,H.speed,H.easing,H.callback)}else{this[I]=G}})};B.scrollTo=function(A,D){return B("html,body").scrollTo(A,D)}}})(jQuery);(function(D){D.fn.ajaxSubmit=function(U){if(!this.length){C("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof U=="function"){U={success:U}}U=D.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},U||{});var P={};this.trigger("form-pre-serialize",[this,U,P]);if(P.veto){C("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}var T=this.formToArray(U.semantic);if(U.data){U.extraData=U.data;for(var W in U.data){T.push({name:W,value:U.data[W]})}}if(U.beforeSubmit&&U.beforeSubmit(T,this,U)===false){C("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[T,this,U,P]);if(P.veto){C("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var A=D.param(T);if(U.type.toUpperCase()=="GET"){U.url+=(U.url.indexOf("?")>=0?"&":"?")+A;U.data=null}else{U.data=A}var O=this,X=[];if(U.resetForm){X.push(function(){O.resetForm()})}if(U.clearForm){X.push(function(){O.clearForm()})}if(!U.dataType&&U.target){var R=U.success||function(){};X.push(function(E){D(U.target).html(E).each(R,arguments)})}else{if(U.success){X.push(U.success)}}U.success=function(E,F){for(var G=0,H=X.length;G<H;G++){X[G](E,F,O)}};var B=D("input:file",this).fieldValue();var Q=false;for(var V=0;V<B.length;V++){if(B[V]){Q=true}}if(U.iframe||Q){if(D.browser.safari&&U.closeKeepAlive){D.get(U.closeKeepAlive,S)}else{S()}}else{D.ajax(U)}this.trigger("form-submit-notify",[this,U]);return this;function S(){var N=O[0];if(D(":input[@name=submit]",N).length){alert('Error: Form elements must not be named "submit".');return }var b=D.extend({},D.ajaxSettings,U);var M="jqFormIO"+(new Date().getTime());var H=D('<iframe id="'+M+'" name="'+M+'" />');var F=H[0];if(D.browser.msie||D.browser.opera){F.src='javascript:false;document.write("");'}H.css({position:"absolute",top:"-1000px",left:"-1000px"});var d={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var G=b.global;if(G&&!D.active++){D.event.trigger("ajaxStart")}if(G){D.event.trigger("ajaxSend",[d,b])}var E=0;var I=0;var c=N.clk;if(c){var L=c.name;if(L&&!c.disabled){U.extraData=U.extraData||{};U.extraData[L]=c.value;if(c.type=="image"){U.extraData[name+".x"]=N.clk_x;U.extraData[name+".y"]=N.clk_y}}}setTimeout(function(){var a=O.attr("target"),Y=O.attr("action");O.attr({target:M,encoding:"multipart/form-data",enctype:"multipart/form-data",method:"POST",action:b.url});if(b.timeout){setTimeout(function(){I=true;K()},b.timeout)}var f=[];try{if(U.extraData){for(var Z in U.extraData){f.push(D('<input type="hidden" name="'+Z+'" value="'+U.extraData[Z]+'" />').appendTo(N)[0])}}H.appendTo("body");F.attachEvent?F.attachEvent("onload",K):F.addEventListener("load",K,false);N.submit()}finally{O.attr("action",Y);a?O.attr("target",a):O.removeAttr("target");D(f).remove()}},10);function K(){if(E++){return }F.detachEvent?F.detachEvent("onload",K):F.removeEventListener("load",K,false);var k=0;var j=true;try{if(I){throw"timeout"}var e,Z;Z=F.contentWindow?F.contentWindow.document:F.contentDocument?F.contentDocument:F.document;if(Z.body==null&&!k&&D.browser.opera){k=1;E--;setTimeout(K,100);return }d.responseText=Z.body?Z.body.innerHTML:null;d.responseXML=Z.XMLDocument?Z.XMLDocument:Z;d.getResponseHeader=function(g){var f={"content-type":b.dataType};return f[g]};if(b.dataType=="json"||b.dataType=="script"){var Y=Z.getElementsByTagName("textarea")[0];d.responseText=Y?Y.value:d.responseText}else{if(b.dataType=="xml"&&!d.responseXML&&d.responseText!=null){d.responseXML=J(d.responseText)}}e=D.httpData(d,b.dataType)}catch(a){j=false;D.handleError(b,d,"error",a)}if(j){b.success(e,"success");if(G){D.event.trigger("ajaxSuccess",[d,b])}}if(G){D.event.trigger("ajaxComplete",[d,b])}if(G&&!--D.active){D.event.trigger("ajaxStop")}if(b.complete){b.complete(d,j?"success":"error")}setTimeout(function(){H.remove();d.responseXML=null},100)}function J(Y,Z){if(window.ActiveXObject){Z=new ActiveXObject("Microsoft.XMLDOM");Z.async="false";Z.loadXML(Y)}else{Z=(new DOMParser()).parseFromString(Y,"text/xml")}return(Z&&Z.documentElement&&Z.documentElement.tagName!="parsererror")?Z:null}}};D.fn.ajaxForm=function(A){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){D(this).ajaxSubmit(A);return false}).each(function(){D(":submit,input:image",this).bind("click.form-plugin",function(G){var H=this.form;H.clk=this;if(this.type=="image"){if(G.offsetX!=undefined){H.clk_x=G.offsetX;H.clk_y=G.offsetY}else{if(typeof D.fn.offset=="function"){var B=D(this).offset();H.clk_x=G.pageX-B.left;H.clk_y=G.pageY-B.top}else{H.clk_x=G.pageX-this.offsetLeft;H.clk_y=G.pageY-this.offsetTop}}}setTimeout(function(){H.clk=H.clk_x=H.clk_y=null},10)})})};D.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){D(":submit,input:image",this).unbind("click.form-plugin")})};D.fn.formToArray=function(Q){var R=[];if(this.length==0){return R}var A=this[0];var V=Q?A.getElementsByTagName("*"):A.elements;if(!V){return R}for(var U=0,T=V.length;U<T;U++){var Z=V[U];var X=Z.name;if(!X){continue}if(Q&&A.clk&&Z.type=="image"){if(!Z.disabled&&A.clk==Z){R.push({name:X+".x",value:A.clk_x},{name:X+".y",value:A.clk_y})}continue}var P=D.fieldValue(Z,true);if(P&&P.constructor==Array){for(var W=0,B=P.length;W<B;W++){R.push({name:X,value:P[W]})}}else{if(P!==null&&typeof P!="undefined"){R.push({name:X,value:P})}}}if(!Q&&A.clk){var Y=A.getElementsByTagName("input");for(var U=0,T=Y.length;U<T;U++){var S=Y[U];var X=S.name;if(X&&!S.disabled&&S.type=="image"&&A.clk==S){R.push({name:X+".x",value:A.clk_x},{name:X+".y",value:A.clk_y})}}}return R};D.fn.formSerialize=function(A){return D.param(this.formToArray(A))};D.fn.fieldSerialize=function(A){var B=[];this.each(function(){var I=this.name;if(!I){return }var K=D.fieldValue(this,A);if(K&&K.constructor==Array){for(var J=0,L=K.length;J<L;J++){B.push({name:I,value:K[J]})}}else{if(K!==null&&typeof K!="undefined"){B.push({name:this.name,value:K})}}});return D.param(B)};D.fn.fieldValue=function(B){for(var A=[],J=0,L=this.length;J<L;J++){var I=this[J];var K=D.fieldValue(I,B);if(K===null||typeof K=="undefined"||(K.constructor==Array&&!K.length)){continue}K.constructor==Array?D.merge(A,K):A.push(K)}return A};D.fieldValue=function(A,Z){var Y=A.name,Q=A.type,P=A.tagName.toLowerCase();if(typeof Z=="undefined"){Z=true}if(Z&&(!Y||A.disabled||Q=="reset"||Q=="button"||(Q=="checkbox"||Q=="radio")&&!A.checked||(Q=="submit"||Q=="image")&&A.form&&A.form.clk!=A||P=="select"&&A.selectedIndex==-1)){return null}if(P=="select"){var U=A.selectedIndex;if(U<0){return null}var S=[],B=A.options;var W=(Q=="select-one");var T=(W?U+1:B.length);for(var X=(W?U:0);X<T;X++){var V=B[X];if(V.selected){var R=D.browser.msie&&!(V.attributes.value.specified)?V.text:V.value;if(W){return R}S.push(R)}}return S}return A.value};D.fn.clearForm=function(){return this.each(function(){D("input,select,textarea",this).clearFields()})};D.fn.clearFields=D.fn.clearInputs=function(){return this.each(function(){var A=this.type,B=this.tagName.toLowerCase();if(A=="text"||A=="password"||B=="textarea"){this.value=""}else{if(A=="checkbox"||A=="radio"){this.checked=false}else{if(B=="select"){this.selectedIndex=-1}}}})};D.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};D.fn.enable=function(A){if(A==undefined){A=true}return this.each(function(){this.disabled=!A})};D.fn.select=function(A){if(A==undefined){A=true}return this.each(function(){var F=this.type;if(F=="checkbox"||F=="radio"){this.checked=A}else{if(this.tagName.toLowerCase()=="option"){var B=D(this).parent("select");if(A&&B[0]&&B[0].type=="select-one"){B.find("option").select(false)}this.selected=A}}})};function C(){if(D.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return }var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);var PopupMessage=function(){if(window==this){return window.___popupMessage?window.___popupMessage:new PopupMessage()}window.___popupMessage=this;$(function(){$('<div id="dimmer" title="Click to close" style="cursor: pointer; position: absolute; left: 0; top: 0; width: 100%; background: #000; z-index:100; display:none;"></div>').appendTo("body").click(function(){PopupMessage().hide()})})};PopupMessage.prototype={settings:{emptyOnHide:false,width:600,ifixpng:"img",lightboxButton:"assets/images/buttons/close.png",addHelpers:false},set:function(A){$.extend(this.settings,A)},lightbox:function(E,C){C=C||{};var B=$("#lightbox"),A=this;if(!(B.length)){B='<div id="lightbox"><div id="lightboxInner"><span id="lightboxCloseLink"><img alt="sluiten" src="'+this.settings.lightboxButton+'" id="lightboxClose"/></span>';if(this.settings.addHelpers){B=B+'<span class="top">&nbsp;</span><span class="tl">&nbsp;</span><span class="tr">&nbsp;</span>'}B=B+'<div id="lightboxContent"></div>';if(this.settings.addHelpers){B=B+'<span class="bottom">&nbsp;</span><span class="bl">&nbsp;</span><span class="br">&nbsp;</span></div></div>'}B=$(B).css({textAlign:"center",position:"absolute",left:0,display:"none",width:"100%"}).appendTo("body");$("#lightboxClose",B).css({cursor:"pointer",zIndex:1001}).click(function(){A.hide()})}var D={width:this.settings.width,margin:"auto",textAlign:"left",position:"relative"};if($.metadata){D.width=$(this).metadata().width||D.width}$("#lightboxInner",B).css(D);if(this.settings.emptyOnHide){this.settings.emptyOnHide="#lightboxContent"}B.find("#lightboxContent").html(E);this.show(B,false,C)},showMessage:function(C,B){B=B||{};var A=$("#myMessageBoxHelper");if(!(A.length)){A=$('<div id="myMessageBoxHelper" style="position: absolute; width: 100%; display: none; text-align: center; left: 0;"><div id="myMessageBox" style="margin: auto; position: relative;"></div></div>').appendTo("body")}var E={width:"",height:""};if($.metadata){var D=$(C).metadata();E.width=D.width||E.width;E.height=D.height||E.height}A.find(":first-child").css(E).html(C);this.show("myMessageBoxHelper",B.onShow,B)},show:function(D,E,C){C=C||{};var B=this;$("embed, object, select").css({visibility:"hidden"});var A=typeof D=="string"?$("#"+D):$(D);if(!A.length){return }else{this.control=A}if(E){C.onShow=E}if($("#dimmer").is(":hidden")){$("#dimmer").css({opacity:"0.5",zIndex:900}).animate({opacity:"show"},200,function(){B._show(A,C)})}else{this._show(A,C)}return this},_show:function(C,B){var A=this;this._setHeight();if($.ifixpng&&this.settings.ifixpng){$(this.settings.ifixpng===true?"img":this.settings.ifixpng,C).ifixpng()}C.css({zIndex:1000,position:"absolute",opacity:1}).animate({opacity:"show"},200,function(){if($.browser.msie){C.css("opacity","")}$(window).bind("resize.popupmessage scroll.popupmessage",window.___popupMessage._setHeight);$(document).bind("keyup.popupmessage",function(E){var D=true;if(E.keyCode==27){A.hide()}else{D=false}if(D){E.preventDefault()}});if($.isFunction(B.onShow)){B.onShow.apply(C)}});if($.isFunction(B.onHide)){$$.one("hide.popupmessage",B.onHide)}},hide:function(B){$(window).add(document).unbind(".popupmessage");var A=$(this.control).stop().animate({opacity:"hide"}).trigger("hide");if(this.settings.emptyOnHide){if($.browser.msie){A.find("embed,object").remove()}A.find(this.settings.emptyOnHide.constructor!=Boolean?this.settings.emptyOnHide:":first-child").empty()}$("#dimmer").animate({opacity:"hide"},300,function(){$("embed, object, select").css({visibility:"visible"})});return this},_setHeight:function(D){var C=$(window.___popupMessage.control);var E=$(window);var B=E.scrollTop();var A=E.scrollTop()+(E.height()/2)-(C.height()/2);if(A>B){if(D){C.stop(true)}C.animate({top:A},"fast","easeout")}else{if(!D){C.animate({top:B+25},"fast","easeout")}}$("#dimmer").height($(document).height())}};$.browser.safari?$(window).load(init):$(init);function addEffects(){$("ul.collection_items li").shadow({margin:"left right top bottom"});$("div.search ul a").fancyHover()}function init(){addEffects();if($.ie6()){$.ifixpng("assets/images/pixel.gif");$("#logo").ifixpng()}$("div.shadowWrapper").shadow({margin:"left right top bottom"});$.ewyseGallery.set({imgPath:"assets/images/gallery/",borderSpace:25,maxHeight:600,minHeight:600,minWidth:800,maxWidth:800,autoMaxDimension:true});$("input.jq_example, textarea.jq_example").example(function(){return $(this).metadata().empty});$("#menu a:not(.activeItem), #subMenu a:not(.activeItem)").addClass("fade").each(function(){var C=$(this).css("position","relative").prepend('<span style="display: none;" class="hover">'+$(this).text()+"</span>");var B=$("> span.hover",this).css({opacity:0,position:"absolute",left:0,top:0,display:"block",height:C.outerHeight(),width:C.width(),paddingLeft:C.css("paddingLeft"),paddingRight:C.css("paddingRight")});$(this).hover(function(){B.stop().animate({opacity:1},300,"easeout")},function(){B.stop().animate({opacity:0},500,"easein")})});$("div.gallery > ul a, div.downloads > ul a, div.horizontaal_kader > ul a, div.verticaal_kader > ul a").fancyHover();if(sfeerCollectie>0){$.getJSON("?output=json&retrieve=collectionImages&doc_id="+sfeerCollectie,function(B){if(B.images.length>1){($.sfeerbeelden={images:B.images,index:0,img:$("#topImageLayer > img.sfeer"),showNext:function(){$.sfeerbeelden.index=$.sfeerbeelden.index<($.sfeerbeelden.images.length-1)?$.sfeerbeelden.index+1:0;preload($.sfeerbeelden.images[$.sfeerbeelden.index],showImage)},setTimeout:function(){if($.sfeerbeelden.images.length>1){window.setTimeout($.sfeerbeelden.showNext,5000)}}}).setTimeout()}})}$("div.assets.ewyse_collection").each(function(){$('a[href*="doc_id="]',this).ewyseGallery({rewriteFunction:resizeImage,mode:"json",url:"?output=json&retrieve=collectionImages&view="+$(this).attr("id").split("_")[1]})});var A=$("div.collection_navigation");if(A.length){A.find(".prevItem, .nextItem").remove();$("a.page",A).ajaxNav({ajaxFile:rootURL,target:$("ul.collection_items"),keyNav:true,fade:false,callback:addEffects,onShow:fixSearch,fixViewport:true,createViewport:true,createWorkspace:true,classActive:"activePage",ajaxParams:{output:"json",retrieve:"pane",pane:"centreCollectionPane"},find:"ul"});$viewport=A.parents(".ewyse_collection").find(".ajaxNav_viewport");$viewport.css("height",$viewport.height()+40)}}$.fn.fancyHover=function(){this.addClass("fade").children(":not(.nextButton)").css({zIndex:2,position:"relative"}).end().prepend('<span class="hover" />').each(function(){var C=$(this).css("position","relative");var B=C.find("img.nextButton").css({display:"block",opacity:0});var A=$("> span.hover",this).css({opacity:0,position:"absolute",left:0,top:0,height:C.outerHeight(),width:C.outerWidth(),zIndex:1});$(this).hover(function(){A.add(C.find("img.nextButton")).stop().fadeTo(500,1)},function(){A.add(C.find("img.nextButton")).stop().fadeTo(300,0)})})};function fixSearch(){var B=$(".collection_item_index",this);var A=$(".searchInfo strong");A[0].innerHTML=$(this).parents(".ewyse_collection:first").find(".activePage").text();A[1].innerHTML=B.slice(0,1).text()+" - "+B.slice(-1).text()}function showImage(A){$.sfeerbeelden.img.fadeOut(1000,function(){$(this).remove()});$.sfeerbeelden.img=$(A).css({display:"none"}).appendTo("#topImageLayer").fadeIn(1000);$.sfeerbeelden.setTimeout()}function preload(B,C){var A=this;if(B.obj){if(C){if(B.obj.complete){C.apply(A,[B.obj]);return }else{$(B.obj).one("load",function(D){C.apply(A,[this])});return }}}else{B.obj=new Image()}if(C){$(B.obj).one("load",function(D){C.apply(A,[this])})}B.obj.alt=$.trim(B.alt)||"";B.obj.title="";B.obj.src=B.src}$.fn.args=function(A){return this.each(function(){if(/FORM|A/.test(this.nodeName)){var B=parseGetParameters(this.href||this.action,true);A=$.extend({},B,A);this[this.nodeName=="FORM"?"action":"href"]=$.makeURL(rootURL,A)}})};function processContent(){$("form:not(.processed)").args({output:"json",retrieve:"content"}).addClass("processed").ajaxForm({dataType:"json",success:ajaxFormReply,beforeSubmit:beforeFormSubmit})}function ajaxFormReply(B,A,C){$form=$(C);$form.find(".ajaxLoader").fadeOut("slow",function(){$(this).remove()});if(!B.validated){$form.add($(":submit, :image",C)).removeAttr("disabled");if(B.missing&&B.missing.length>0){$.each(B.missing,function(){var E=$('[name="'+this+'"]:not(.error)',C);if(E.length){var D=E.metadata().error;if(E.is(":radio")||E.is(":checkbox")){E=$(C).find('label[for="'+E.attr("id")+'"]')}var G=E.position();if(D){var F=$('<span class="errorMessage"/>').text(D).appendTo(C).css({position:"absolute",left:G.left+E.outerWidth()+2,top:G.top,cursor:"pointer"}).click(function(){E.focus()})}E.addClass("error").one("focus click",function(){if(D){F.remove()}$(this).removeClass("error")})}})}else{PopupMessage().lightbox(B.message)}}else{PopupMessage().lightbox(B.message)}}function beforeFormSubmit(A,B){$(B).add($(":submit, :image",B)).attr("disabled","disabled")}function parseGetParameters(C,E){if(!C){if(E){return{}}C=window.location.href}var F={};if((index=C.indexOf("?"))!==-1){var B=C.substring(index+1).split(/&amp;|&/);for(var D=0;D<B.length;D++){var A=B[D].split("=");F[A[0]]=(typeof (A[1])!="undefined")?A[1]:""}}return F}function resizeImage(C,D,A){var E=C.split("?");var B=parseGetParameters(C,true);B.width=D;B.height=A;return $.makeURL(E[0],B)};