/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
(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(text){return(text||"").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){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){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(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():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();}}).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;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-=num(this,'marginTop');offset.left-=num(this,'marginLeft');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);};});})();

/*
 * jQuery validation plug-in 1.3
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 * Copyright (c) 2006 John Resig, Yehuda Katz, Jörn Zaefferer, Paul McLanahan
 * $Id: jquery.validate.js 5565 2008-05-12 11:15:24Z joern.zaefferer $
 * Dual licensed under the MIT and GPL licenses
 */
(function($) {
/* Validator - use pack version*/
(function($){$.extend($.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=$.data(this[0],'validator');if(c){return c}c=new $.validator(b,this[0]);$.data(this[0],'validator',c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});this.submit(function(a){if(c.settings.debug)a.preventDefault();function handle(){if(c.settings.submitHandler){c.settings.submitHandler.call(c,c.currentForm);return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return handle()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return handle()}else{c.focusInvalid();return false}})}return c},valid:function(){if($(this[0]).is('form')){return this.validate().form()}else{var a=false;var b=$(this[0].form).validate();this.each(function(){a|=b.element(this)});return a}},removeAttrs:function(a){var b={},$element=this;$.each(a.split(/\s/),function(){b[this]=$element.attr(this);$element.removeAttr(this)});return b},rules:function(c,d){var e=this[0];if(c){var f=$.data(e.form,'validator').settings.rules;var g=$.validator.staticRules(e);switch(c){case"add":$.extend(g,$.validator.normalizeRule(d));f[e.name]=g;break;case"remove":if(!d){delete f[e.name];return g}var h={};$.each(d.split(/\s/),function(a,b){h[b]=g[b];delete g[b]});return h}}var i=$.validator.normalizeRules($.extend({},$.validator.metadataRules(e),$.validator.classRules(e),$.validator.attributeRules(e),$.validator.staticRules(e)),e);if(i.required){var j=i.required;delete i.required;i=$.extend({required:j},i)}return i},push:function(t){return this.setArray(this.add(t).get())}});$.extend($.expr[":"],{blank:function(a){return!$.trim(a.value)},filled:function(a){return!!$.trim(a.value)},unchecked:function(a){return!a.checked}});$.format=function(b,c){if(arguments.length==1)return function(){var a=$.makeArray(arguments);a.unshift(b);return $.format.apply(this,a)};if(arguments.length>2&&c.constructor!=Array){c=$.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}$.each(c,function(i,n){b=b.replace(new RegExp("\\{"+i+"\\}","g"),n)});return b};$.validator=function(a,b){this.settings=$.extend({},$.validator.defaults,a);this.currentForm=b;this.init()};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass);this.errorsFor(a).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a))){this.element(a)}},onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement){this.element(a)}},onclick:function(a){if(a.name in this.submitted)this.element(a)},highlight:function(a,b){$(a).addClass(b)},unhighlight:function(a,b){$(a).removeClass(b)}},setDefaults:function(a){$.extend($.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.format("Please enter no more than {0} characters."),minlength:$.format("Please enter at least {0} characters."),rangelength:$.format("Please enter a value between {0} and {1} characters long."),range:$.format("Please enter a value between {0} and {1}."),max:$.format("Please enter a value less than or equal to {0}."),min:$.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var e=(this.groups={});$.each(this.settings.groups,function(c,d){$.each(d.split(/\s/),function(a,b){e[b]=c})});var f=this.settings.rules;$.each(f,function(a,b){f[a]=$.validator.normalizeRule(b)});function delegate(a){var b=$.data(this[0].form,"validator");b.settings["on"+a.type]&&b.settings["on"+a.type].call(b,this[0])}$(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",delegate).delegate("click",":radio, :checkbox",delegate)},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form.validate",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i])}return this.valid()},element:function(a){a=this.clean(a);this.lastElement=a;this.prepareElement(a);this.currentElements=$(a);var b=this.check(a);if(b){delete this.invalid[a.name]}else{this.invalid[a.name]=true}if(!this.numberOfInvalids()){this.toHide.push(this.containers)}this.showErrors();return b},showErrors:function(b){if(b){$.extend(this.errorMap,b);this.errorList=[];for(var c in b){this.errorList.push({message:b[c],element:this.findByName(c)[0]})}this.successList=$.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0;for(var i in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(e){}}},findLastActive:function(){var a=this.lastActive;return a&&$.grep(this.errorList,function(n){return n.element.name==a.name}).length==1&&a},elements:function(){var a=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!a.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true})},clean:function(a){return $(a)[0]},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.formSubmitted=false;this.currentElements=$([])},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a)){a=this.findByName(a.name)[0]}var b=$(a).rules();var c=false;for(method in b){var d={method:method,parameters:b[method]};try{var f=$.validator.methods[method].call(this,$.trim(a.value),a,d.parameters);if(f=="dependency-mismatch"){c=true;continue}c=false;if(f=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!f){this.formatAndAdd(a,d);return false}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+a.id+", check the '"+d.method+"' method");throw e;}}if(c)return;if(this.objectLength(b))this.successList.push(a);return true},customMetaMessage:function(a,b){if(!$.metadata)return;var c=this.settings.meta?$(a).metadata({type:'attr',name:this.settings.meta}):$(a).metadata();if(!c)return;return c.messages&&c.messages[b]},customMessage:function(a,b){var m=this.settings.messages[a];return m&&(m.constructor==String?m:m[b])},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined)return arguments[i]}return undefined},defaultMessage:function(a,b){return this.findDefined(this.customMessage(a.name,b),this.customMetaMessage(a,b),a.title||undefined,$.validator.messages[b],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b.method);if(typeof c=="function")c=c.call(this,b.parameters,a);this.errorList.push({message:c,element:a});this.errorMap[a.name]=c;this.submitted[a.name]=c},addWrapper:function(a){if(this.settings.wrapper)a.push(a.parents(this.settings.wrapper));return a},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var a=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,a.element,this.settings.errorClass);this.showLabel(a.element,a.message)}if(this.errorList.length){this.toShow.push(this.containers)}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i])}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map(function(){return this.element})},showLabel:function(a,b){var c=this.errorsFor(a);if(c.length){c.removeClass().addClass(this.settings.errorClass);c.attr("generated")&&c.html(b)}else{c=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper){c=c.hide().show().wrap("<"+this.settings.wrapper+">").parent()}if(!this.labelContainer.append(c).length)this.settings.errorPlacement?this.settings.errorPlacement(c,$(a)):c.insertAfter(a)}if(!b&&this.settings.success){c.text("");typeof this.settings.success=="string"?c.addClass(this.settings.success):this.settings.success(c)}this.toShow.push(c)},errorsFor:function(a){return this.errors().filter("[@for='"+this.idOrName(a)+"']")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(c){var d=this.currentForm;return $(document.getElementsByName(c)).map(function(a,b){return b.form==d&&b.name==c&&b||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case'select':return $("option:selected",b).length;case'input':if(this.checkable(b))return this.findByName(b.name).filter(':checked').length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a,b){return a},"string":function(a,b){return!!$(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!$.validator.methods.required.call(this,$.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit()}},previousValue:function(a){return $.data(a,"previousValue")||$.data(a,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:$.extend(this.classRuleSettings,a)},classRules:function(a){var b={};var c=$(a).attr('class');c&&$.each(c.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(b,$.validator.classRuleSettings[this])}});return b},attributeRules:function(a){var b={};var c=$(a);for(method in $.validator.methods){var d=c.attr(method);if(d){b[method]=d}}if(b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)){delete b.maxlength}return b},metadataRules:function(a){if(!$.metadata)return{};var b=$.data(a.form,'validator').settings.meta;return b?$(a).metadata({type:'attr',name:b}):$(a).metadata()},staticRules:function(a){var b={};var c=$.data(a.form,'validator');if(c.settings.rules){b=$.validator.normalizeRule(c.settings.rules[a.name])||{}}return b},normalizeRules:function(d,e){$.each(d,function(a,b){if(b===false){delete d[a];return}if(b.param||b.depends){var c=true;switch(typeof b.depends){case"string":c=!!$(b.depends,e.form).length;break;case"function":c=b.depends.call(e,e);break}if(c){d[a]=b.param!==undefined?b.param:true}else{delete d[a]}}});$.each(d,function(a,b){d[a]=$.isFunction(b)?b(e):b});$.each(['minlength','maxlength','min','max'],function(){if(d[this]){d[this]=Number(d[this])}});$.each(['rangelength','range'],function(){if(d[this]){d[this]=[Number(d[this][0]),Number(d[this][1])]}});if($.validator.autoCreateRanges){if(d.min&&d.max){d.range=[d.min,d.max];delete d.min;delete d.max}if(d.minlength&&d.maxlength){d.rangelength=[d.minlength,d.maxlength];delete d.minlength;delete d.maxlength}}if(d.messages){delete d.messages}return d},normalizeRule:function(a){if(typeof a=="string"){var b={};$.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,c){$.validator.methods[a]=b;$.validator.messages[a]=c;if(b.length<3){$.validator.addClassRules(a,$.validator.normalizeRule(a))}},methods:{required:function(a,b,c){if(!this.depend(c,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case'select':var d=$("option:selected",b);return d.length>0&&(b.type=="select-multiple"||($.browser.msie&&!(d[0].attributes['value'].specified)?d[0].text:d[0].value).length>0);case'input':if(this.checkable(b))return this.getLength(a,b)>0;default:return a.length>0}},remote:function(d,e,f){if(this.optional(e))return"dependency-mismatch";var g=this.previousValue(e);if(!this.settings.messages[e.name])this.settings.messages[e.name]={};this.settings.messages[e.name].remote=typeof g.message=="function"?g.message(d):g.message;if(g.old!==d){g.old=d;var h=this;this.startRequest(e);var i={};i[e.name]=d;$.ajax({url:f,mode:"abort",port:"validate"+e.name,dataType:"json",data:i,success:function(a){if(!a){var b={};b[e.name]=a||h.defaultMessage(e,"remote");h.showErrors(b)}else{var c=h.formSubmitted;h.prepareElement(e);h.formSubmitted=c;h.successList.push(e);h.showErrors()}g.valid=a;h.stopRequest(e,a)}});return"pending"}else if(this.pending[e.name]){return"pending"}return g.valid},minlength:function(a,b,c){return this.optional(b)||this.getLength(a,b)>=c},maxlength:function(a,b,c){return this.optional(b)||this.getLength(a,b)<=c},rangelength:function(a,b,c){var d=this.getLength(a,b);return this.optional(b)||(d>=c[0]&&d<=c[1])},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||(a>=c[0]&&a<=c[1])},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(b.value)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(b.value)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},dateDE:function(a,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},numberDE:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var c=0,e=0,bEven=false;a=a.replace(/\D/g,"");for(n=a.length-1;n>=0;n--){var d=a.charAt(n);var e=parseInt(d,10);if(bEven){if((e*=2)>9)e-=9}c+=e;bEven=!bEven}return(c%10)==0},accept:function(a,b,c){c=typeof c=="string"?c:"png|jpe?g|gif";return this.optional(b)||a.match(new RegExp(".("+c+")$","i"))},equalTo:function(a,b,c){return a==$(c).val()}}})})(jQuery);(function($){var c=$.ajax;var d={};$.ajax=function(a){a=$.extend(a,$.extend({},$.ajaxSettings,a));var b=a.port;if(a.mode=="abort"){if(d[b]){d[b].abort()}return(d[b]=c.apply(this,arguments))}return c.apply(this,arguments)}})(jQuery);(function($){$.each({focus:'focusin',blur:'focusout'},function(a,b){$.event.special[b]={setup:function(){if($.browser.msie)return false;this.addEventListener(a,$.event.special[b].handler,true)},teardown:function(){if($.browser.msie)return false;this.removeEventListener(a,$.event.special[b].handler,true)},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=b;return $.event.handle.apply(this,arguments)}}});$.extend($.fn,{delegate:function(c,d,e){return this.bind(c,function(a){var b=$(a.target);if(b.is(d)){return e.apply(b,arguments)}})},triggerEvent:function(a,b){return this.triggerHandler(a,[$.event.fix({type:a,target:b})])}})})(jQuery);
jQuery.validator.addMethod("letterswithbasicpunc", function(value, element) {
	return this.optional(element) || /^[a-z-.,()'\"\s]+$/i.test(value);
}, "Letters or punctuation only please");  

jQuery.validator.addMethod("alphanumeric", function(value, element) {
	return this.optional(element) || /^\w+$/i.test(value);
}, "Letters, numbers, or underscores only please");  
jQuery.validator.addMethod("alphaspace", function(value, element) {
	return this.optional(element) || /^[a-z\s]+$/i.test(value);
}, "Letters or spaces only please");  

jQuery.validator.addMethod("lettersonly", function(value, element) {
	return this.optional(element) || /^[a-z]+$/i.test(value);
}, "Letters only please"); 

jQuery.validator.addMethod("nowhitespace", function(value, element) {
	return this.optional(element) || /^\S+$/i.test(value);
}, "No white space please"); 
jQuery.validator.addMethod("dateITA", function(value, element) {
	var check = false;
	var re = /^\d{1,2}\/\d{1,2}\/\d{4}$/
	if( re.test(value)){
		var adata = value.split('/');
		var gg = parseInt(adata[0],10);
		var mm = parseInt(adata[1],10);
		var aaaa = parseInt(adata[2],10);
		var xdata = new Date(aaaa,mm-1,gg);
		if ( ( xdata.getFullYear() == aaaa ) && ( xdata.getMonth () == mm - 1 ) && ( xdata.getDate() == gg ) )
			check = true;
		else
			check = false;
	} else
		check = false;
	return this.optional(element) || check;
}, "Please enter a correct date"
);
// check if the given field is not selected
jQuery.validator.addMethod("noselect", function(value, element, param) {
	var check = true;
	for (var i=0;i<param.length;i++) {
		if (param[i] == value) {
			check=false; break;
		}
	}
	return check; 
}, "Please select a valid value");
$.validator.setDefaults({meta: "validate",errorClass:"invalid-inp",errorElement:"div", errorPlacement: function(error, element) { if(element.parent().find(".errCont").length > 0) {error.appendTo(element.parent().find(".errCont"));} else if($("#" + element.attr("name") + "Error").length > 0) {error.insertAfter("#" + element.attr("name") + "Error");} else {error.insertAfter(element);}}});
// text2xml
(function($){$.text2xml=function(c){var b;try{var a=($.browser.msie)?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser();a.async=false}catch(e){throw new Error("XML Parser could not be instantiated");};try{if($.browser.msie)b=(a.loadXML(c))?a:false;else b=a.parseFromString(c,"text/xml")}catch(e){throw new Error("Error parsing XML string");};return b}})(jQuery);
/* Metadata */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){$.r({3:{7:{8:\'l\',h:\'3\',q:/({.*})/,4:\'3\'},w:9(a,b){g.7.8=a;g.7.h=b},j:9(b,c){5 d=$.r({},g.7,c);2(!d.4.o)d.4=\'3\';5 a=$.n(b,d.4);2(a)6 a;a="{}";2(d.8=="l"){5 m=d.q.v(b.u);2(m)a=m[1]}k 2(d.8=="t"){2(!b.i)6;5 e=b.i(d.h);2(e.o)a=$.s(e[0].C)}k 2(b.p!=A){5 f=b.p(d.h);2(f)a=f}2(a.z(\'{\')<0)a="{"+a+"}";a=y("("+a+")");$.n(b,d.4,a);6 a}}});$.x.3=9(a){6 $.3.j(g[0],a)}})(B);',39,39,'||if|metadata|single|var|return|defaults|type|function|||||||this|name|getElementsByTagName|get|else|class||data|length|getAttribute|cre|extend|trim|elem|className|exec|setType|fn|eval|indexOf|undefined|jQuery|innerHTML'.split('|'),0,{}))
/* star rater */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6.Y.14=C(x){d 3={f:11,k:"",8:5,b:0,F:t};c(x){6.E(3,x)};6.E(3,{10:(3.8>1)?Q:t});d 7=6(p);6.E(7,{X:3.b,k:3.k});d N=3.8*L;d m=(3.m)?3.m:"";d n=\'\';c(3.r==\'I\'){n+=\'<G l="I-4">\'}n+=\'<12 l="9-4 \'+m+\'" r="g:\'+N+\'S">\';7.D(n);d B,A,h=\'\';d R=P.O(y/3.8*3.b);Z(d i=0;i<=3.8;i++){c(i==0){h+=\'<v l="o-4" r="g:\'+R+\'%;">\'+3.b+\'/\'+3.8+\'</v>\'}q{B=P.O(y/3.8*i);A=(3.8-i)+2;h+=\'<v l="9">\';c(!3.F){h+=\'<a M="#\'+i+\'" W="\'+i+\'/\'+3.8+\'" r="g:\'+B+\'%;z-K:\'+A+\'">\'+i+\'</a>\'}h+=\'</v>\'}}7.j(\'.9-4\').D(h);c(3.8>1&&!3.f){7.D(\'<G l="9-4-J"></G>\')}c(!3.F){d w=6(7).j(\'.9-4\').e(\'.9\');w.V(C(){c(3.8==1){3.b=(3.b==0)?1:0;6(7).j(\'.9-4\').e(\'.o-4\').H({g:(3.b*y)+\'%\'});c(3.f){3.f(3.b)}q{6.U(7.k,{"4":3.b})}u t}q{3.b=w.K(p)+1;s=6(p).e(\'a\')[0].M.13(\'#\')[1];6(7).j(\'.9-4\').e(\'.o-4\').H({g:\'0%\'});6(7).j(\'.9-4\').e(\'.o-4\').H({g:(s*L)+\'S\'});c(3.f){3.f(s)}q{6.U(7.k,{"4":s},C(T){7.e(\'.9-4-J\').15(T)})}u t}u Q})}u p}',62,68,'|||settings|rating||jQuery|container|maxvalue|star||curvalue|if|var|children|poster|width|listitems||find|url|class|starStyle|ratingparent|current|this|else|style|raterValue|false|return|li|stars|options|100||starIndex|starWidth|function|append|extend|readonly|span|css|inline|result|index|20|href|raterwidth|floor|Math|true|curvalueWidth|px|response|post|click|title|averageRating|fn|for|cancel|null|ul|split|rater|html'.split('|'),0,{}))
/* Highlighter */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.1y.f=q(D){l o=(D&&D.E==1F)?{u:D}:D||{};l d=7.f.M;l i=o[\'z\']||d[\'z\'];l a=o[\'B\']||d[\'B\'];l G={\'13\':q(s,e,t,c){5 p(s+(c/t)*(e-s))},\'1r\':q(s,e,t,c){5 p(s+X.1k(((c/t)*1g)*(X.1d/1b))*(e-s))},\'1T\':q(s,e,t,c){5 p(s+(X.1Q(c/t,2))*(e-s))}};l t=(o[\'v\']&&o[\'v\'].E==T)?o[\'v\']:G[o[\'v\']]||G[d[\'v\']]||G[\'13\'];j(d[\'v\']&&d[\'v\'].E==T)t=d[\'v\'];5 k.1H(q(){j(!k.4)k.4={};l e=(k.4[a])?k.4[a].n:7.f.12(k,a)||[6,6,6];l c=7.f.H(o[\'u\']||o[\'1C\']||o[\'1B\']||d[\'u\']||[6,6,m]);l s=7.I(o[\'I\']||d[\'I\']);l r=o[\'Q\']||(k.4[a]&&k.4[a].J)?k.4[a].J:7.1q(k,a);j(o[\'n\']||d[\'n\'])r=7.f.N(e=7.f.H(o[\'n\']||d[\'n\']));j(1n o[\'Q\']!=\'16\')r=o[\'Q\'];j(k.4[a]&&k.4[a].F)S.15(k.4[a].F);k.4[a]={A:((s.1c)/i),z:i,C:0,u:c,n:e,J:r,B:a};7.f(k,a,o[\'1a\'],t)})};7.f=q(e,a,o,t){e.4[a].F=S.1R(q(){l 19=t(e.4[a].u[0],e.4[a].n[0],e.4[a].A,e.4[a].C);l 18=t(e.4[a].u[1],e.4[a].n[1],e.4[a].A,e.4[a].C);l 17=t(e.4[a].u[2],e.4[a].n[2],e.4[a].A,e.4[a].C);7(e).V(a,7.f.N([19,18,17]));j(e.4[a].C++>=e.4[a].A){7(e).V(a,e.4[a].J||\'\');S.15(e.4[a].F);e.4[a]=U;j(o&&o.E==T)o.1P(e)}},e.4[a].z)};7.f.M={u:[6,6,m],z:1N,I:1M,B:\'14\'};7.f.H=q(c,d){l 8;j(c&&c.E==1L&&c.1J==3)5 c;j(8=/R\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.L(c))5[p(8[1]),p(8[2]),p(8[3])];K j(8=/R\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.L(c))5[P(8[1])*2.O,P(8[2])*2.O,P(8[3])*2.O];K j(8=/#([a-y-x-9]{2})([a-y-x-9]{2})([a-y-x-9]{2})/.L(c))5[p("w"+8[1]),p("w"+8[2]),p("w"+8[3])];K j(8=/#([a-y-x-9])([a-y-x-9])([a-y-x-9])/.L(c))5[p("w"+8[1]+8[1]),p("w"+8[2]+8[2]),p("w"+8[3]+8[3])];K 5 7.f.11(c)||d||U};7.f.N=q(a){5"R("+a.1D(",")+")"};7.f.12=q(e,a,b){l s,t;b=b||10;t=a=a||7.f.M[\'B\'];1A{s=7(e).V(t||\'14\');j((s!=\'\'&&s!=\'Z\')||(e.1z.Y()=="1x")||(!b&&e.4&&e.4[a]&&e.4[a].n))1w;t=10}1v(e=e.1u);j(!b&&e.4&&e.4[a]&&e.4[a].n)s=e.4[a].n;j(s==16||s==\'\'||s==\'Z\')s=[6,6,6];5 7.f.H(s)};7.f.11=q(c){j(!c)5 U;1t(c.1s(/^\\s*|\\s*$/g,\'\').Y()){h\'1p\':5[0,6,6];h\'1E\':5[0,0,0];h\'1o\':5[0,0,6];h\'1G\':5[6,0,6];h\'1m\':5[m,m,m];h\'1I\':5[0,m,0];h\'1l\':5[0,6,0];h\'1K\':5[m,0,0];h\'1j\':5[0,0,m];h\'1i\':5[m,m,0];h\'1h\':5[m,0,m];h\'1O\':5[6,0,0];h\'1f\':5[W,W,W];h\'1e\':5[0,m,m];h\'1S\':5[6,6,6];h\'1U\':5[6,6,0]}};',62,119,'||||highlighting|return|255|jQuery|result|||||||highlightFade||case||if|this|var|128|end||parseInt|function||||start|iterator|0x|F0|fA|interval|steps|attr|currentStep|settings|constructor|timer|ts|getRGB|speed|orig|else|exec|defaults|asRGBString|55|parseFloat|final|rgb|window|Function|null|css|192|Math|toLowerCase|transparent|false|checkColorName|getBaseValue|linear|backgroundColor|clearInterval|undefined|newB|newG|newR|complete|180|duration|PI|teal|silver|90|purple|olive|navy|sin|lime|gray|typeof|blue|aqua|curCSS|sinusoidal|replace|switch|parentNode|while|break|body|fn|tagName|do|color|colour|join|black|String|fuchsia|each|green|length|maroon|Array|900|50|red|call|pow|setInterval|white|exponential|yellow'.split('|'),0,{}))
})(jQuery);
/* Block UI */
;(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert('blockUI requires jQuery v1.2.3 or later!  You are using v'+$.fn.jquery);return}$.blockUI=function(a){install(window,a)};$.unblockUI=function(a){remove(window,a)};$.fn.block=function(a){return this.each(function(){if($.css(this,'position')=='static')this.style.position='relative';if($.browser.msie)this.style.zoom=1;install(this,a)})};$.fn.unblock=function(a){return this.each(function(){remove(this,a)})};$.blockUI.version=2.08;$.blockUI.defaults={message:'<h1>Please wait...</h1>',title:null,close:true,shadow:true,css:{},overlayCSS:{opacity:'0.3'},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,blockClass:null,msgBlockClass:null,msgBlockHdClass:"",preBlockHTML:null,postBlockHTML:null,onUnblock:null};var w=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var A=null;var B=[];function install(a,b){var c=(a==window);var d=b&&b.message!==undefined?b.message:undefined;b=$.extend({},$.blockUI.defaults,b||{});b.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,b.overlayCSS||{});var e=$.extend({},$.blockUI.defaults.css,b.css||{});d=d===undefined?b.message:d;if(c&&A)remove(window,{fadeOut:0});if(d&&typeof d!='string'&&(d.parentNode||d.jquery)){var f=d.jquery?d[0]:d;var g={};$(a).data('blockUI.history',g);g.el=f;g.parent=f.parentNode;g.display=f.style.display;g.position=f.style.position;g.parent.removeChild(f)}var z=b.baseZ;var h=($.browser.msie)?$('<iframe class="blockUI" style="z-index:'+z++ +';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):$('<div class="blockUI" style="display:none"></div>');var j=$('<div class="blockUI blockUIOverlay" style="z-index:'+z++ +';width:100%;height:100%;top:0;left:0"></div>');var k=c?$('<div class="blockUI blockDialog blockPage" style="z-index:'+z+';position:fixed"></div>'):$('<div class="blockUI blockDialog blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');if(b.blockClass)k.addClass(b.blockClass);if(d)k.css(e);if(!b.applyPlatformOpacityRules||!($.browser.mozilla&&/Linux/.test(navigator.platform)))j.css(b.overlayCSS);j.css('position',c?'fixed':'absolute');var m=___getPageSize();if(c){j.css({width:m[0],height:m[1]})}if($.browser.msie)h.css('opacity','0.0');$([h[0],j[0],k[0]]).appendTo(c?'body':a);var n=$.browser.msie&&(!$.boxModel||$('object,embed',c?null:a).length>0);if(w||n){if(c&&b.allowBodyStretch&&$.boxModel)$('html,body').css('height','100%');if((w||!$.boxModel)&&!c){var t=sz(a,'borderTopWidth'),l=sz(a,'borderLeftWidth');var p=t?'(0 - '+t+')':0;var q=l?'(0 - '+l+')':0}$.each([h,j,k],function(i,o){var s=o[0].style;s.position='absolute';if(i<2){c?s.setExpression('height','document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):s.setExpression('height','this.parentNode.offsetHeight + "px"');c?s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):s.setExpression('width','this.parentNode.offsetWidth + "px"');if(q)s.setExpression('left',q);if(p)s.setExpression('top',p)}else if(b.centerY){if(c)s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');s.marginTop=0}})}var r=null;if(d){var u=$('<div class="blockMsg"></div>').appendTo(k);if(b.msgBlockClass)$(u).addClass(b.msgBlockClass);if(b.preBlockHTML)$(b.preBlockHTML).prependTo(k);if(b.postBlockHTML)$(b.postBlockHTML).appendTo(k);if(b.title){$('<div class="blockHd"></div>').appendTo(u).append(b.title).addClass(b.msgBlockHdClass)}$('<div class="blockBd"></div>').appendTo(u).append(d);if(b.shadow){r=$('<div class="blockShadow"></div>').appendTo(k)}if(b.close){var v=$('<span class="blockClose"></span>').appendTo(u);v.hover(function(){$(this).addClass("blockCloseHover")},function(){$(this).removeClass("blockCloseHover")});v.click(function(){if(c){$.unblockUI(b)}else{$(a).unblock(b)}})}k.show()}else{k.hide()}if(d&&(d.jquery||d.nodeType))$(d).show();if(b.shadow&&r&&w){r.css({height:k.height()+'px',width:(k.width()+6)+'px'})}if(c&&!w){if(b.centerY){k.css('top',($(window).height()-$(k).height())/2+'px')}if(b.centerX){k.css('left',($(window).width()-$(k).width())/2+'px')}}bind(1,a,b);if(c){A=k[0];B=$(':input:enabled:visible',A);if(b.focusInput)setTimeout(focus,20)}else center(k[0],b.centerX,b.centerY)};function remove(a,b){var c=a==window;var d=$(a).data('blockUI.history');b=$.extend({},$.blockUI.defaults,b||{});bind(0,a,b);var e=c?$('body').children().filter('.blockUI'):$('.blockUI',a);if(c)A=B=null;if(b.fadeOut){e.children().filter('.blockShadow').hide();e.fadeOut(b.fadeOut);setTimeout(function(){reset(e,d,b,a)},b.fadeOut)}else reset(e,d,b,a)};function reset(a,b,c,d){a.each(function(i,o){if(this.parentNode)this.parentNode.removeChild(this)});if(b&&b.el){b.el.style.display=b.display;b.el.style.position=b.position;b.parent.appendChild(b.el);$(b.el).removeData('blockUI.history')}if(typeof c.onUnblock=='function')c.onUnblock(d,c)};function bind(b,a,c){var d=a==window,$el=$(a);if(!b&&(d&&!A||!d&&!$el.data('blockUI.isBlocked')))return;if(!d)$el.data('blockUI.isBlocked',b);var e='mousedown mouseup keydown keypress click';b?$(document).bind(e,c,handler):$(document).unbind(e,handler)};function handler(e){if(e.keyCode&&e.keyCode==9){if(A&&e.data.constrainTabKey){var a=B;var b=!e.shiftKey&&e.target==a[a.length-1];var c=e.shiftKey&&e.target==a[0];if(b||c){setTimeout(function(){focus(c)},10);return false}}}if($(e.target).parents('div.blockMsg').length>0)return true;return $(e.target).parents().children().filter('div.blockUI').length==0};function focus(a){if(!B)return;var e=B[a===true?B.length-1:0];if(e)e.focus()};function center(a,x,y){var p=a.parentNode,s=a.style;var l=((p.offsetWidth-a.offsetWidth)/2)-sz(p,'borderLeftWidth');var t=((p.offsetHeight-a.offsetHeight)/2)-sz(p,'borderTopWidth');if(x)s.left=l>0?(l+'px'):'0';if(y)s.top=t>0?(t+'px'):'0'};function sz(a,p){return parseInt($.css(a,p))||0};function ___getPageSize(){var a,yScroll;if(window.innerHeight&&window.scrollMaxY){a=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){a=document.body.scrollWidth;yScroll=document.body.scrollHeight}else{a=document.body.offsetWidth;yScroll=document.body.offsetHeight}var b,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{b=self.innerWidth}windowHeight=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else if(document.body){b=document.body.clientWidth;windowHeight=document.body.clientHeight}if(yScroll<windowHeight){pageHeight=windowHeight}else{pageHeight=yScroll}if(a<b){pageWidth=a}else{pageWidth=b}arrayPageSize=new Array(pageWidth,pageHeight,b,windowHeight);return arrayPageSize}})(jQuery);
/* bgIFrame */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild)})}return this};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);
/* hover intent */
(function($){$.fn.hoverIntent=function(f,g){var c={sensitivity:7,interval:100,timeout:0};c=$.extend(c,g?{over:f,out:g}:f);var d,cY,pX,pY;var h=function(a){d=a.pageX;cY=a.pageY};var i=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);if((Math.abs(pX-d)+Math.abs(pY-cY))<c.sensitivity){$(b).unbind("mousemove",h);b.hoverIntent_s=1;return c.over.apply(b,[a])}else{pX=d;pY=cY;b.hoverIntent_t=setTimeout(function(){i(a,b)},c.interval)}};var j=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return c.out.apply(b,[a])};var k=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}var a=jQuery.extend({},e);var b=this;if(b.hoverIntent_t){b.hoverIntent_t=clearTimeout(b.hoverIntent_t)}if(e.type=="mouseover"){pX=a.pageX;pY=a.pageY;$(b).bind("mousemove",h);if(b.hoverIntent_s!=1){b.hoverIntent_t=setTimeout(function(){i(a,b)},c.interval)}}else{$(b).unbind("mousemove",h);if(b.hoverIntent_s==1){b.hoverIntent_t=setTimeout(function(){j(a,b)},c.timeout)}}};return this.mouseover(k).mouseout(k)}})(jQuery);
/* mTooltip */
(function($){var I={},$this;var J=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent);var K=null,inactivateTooltipFn=null;var L=0;$.fn.mTooltip=function(G,H){if(typeof G=='object'){H=G;G=null}return this.each(function(g){var h=$(this);var j=$.extend(false,{},$.fn.mTooltip.defaults,H||{});var k=false;var l=parseInt(j.mtipzIndex,10)-1;var m=false,closeOnDelay=0;if(!$('#mTooltip').length){I.body=$('<div id="mtipContent"></div>');if(j.contentClass){I.body.addClass(j.contentClass)}I.hd=$('<div class="content"></div>').append('<div class="t"></div>').append(I.body);I.parent=$('<div id="mTooltip"></div>').css({zIndex:j.mtipzIndex}).append(I.hd).append('<div class="b" style="z-index:'+l+';"><div></div></div>')[M](insertionElement).hide();I.parent.css({position:'absolute',zIndex:l});$('<div id="mTooltip-waitimage"></div>').css({position:'absolute',zIndex:l-1}).insertBefore('#mTooltip').hide();I.hd.css({position:'relative',zIndex:l+1});I.arrow=$('<div id="mTooltip-arrows" class="mTooltip-arrows"></div>').css({zIndex:l+1}).appendTo('#mTooltip')}var n=(j.htmlShadow)?+j.htmlShadowSteps:0;if(!I.htmlShadow){I.htmlShadow=$([]);for(var i=0;i<n;i++){I.htmlShadow=I.htmlShadow.add($('<div></div>').css({zIndex:l-i-1,opacity:.1,top:1+i,left:1+i}))}I.htmlShadow.css({position:'absolute',backgroundColor:'#000'}).prependTo(I.parent)}var o=h.attr(j.attribute),ctClass=j.tooltipClass;var p=parseInt(j.topOffset,10),lOffset=parseInt(j.leftOffset,10)+(j.arrows?j.arrowParams.width:0);var q,wHeight;var r=isNaN(parseInt(j.height,10))?'auto':(/\D/g).test(j.height)?j.height:j.height+'px';var s,linkTop,posY,tipY,mouseY,baseline;var t=isNaN(parseInt(j.width,10))?275:parseInt(j.width,10);var u=t+(parseInt(I.parent.css('paddingLeft'))||0)+(parseInt(I.parent.css('paddingRight'))||0);var v=u+lOffset;var w=this.offsetWidth;var x,posX,tipX,mouseX,winWidth;var y=(j.attribute!='title')?h.attr(j.titleAttribute):'';var z;var A=function(b){if(!j.onActivate(h)){return false}m=true;I.parent.removeClass().css({width:t});if(j.hoverClass){h.addClass(j.hoverClass)}linkTop=posY=h.offset().top;x=h.offset().left;w=h.get(0).offsetWidth;mouseX=b.pageX;mouseY=b.pageY;if(h[0].tagName.toLowerCase()!='area'){s=$(document).scrollTop();winWidth=$(window).width()}if(j.positionBy=='fixed'){posX=w+x+lOffset;I.parent.css({left:posX})}else{posX=(w>x&&x>u)||x+w+v>winWidth?x-v:w+x+lOffset;var c=posX<0?b.pageY+p:b.pageY;I.parent.css({left:(posX>0)?posX:(winWidth-mouseX>v)?mouseX+lOffset:(mouseX-v)})}wHeight=$(window).height();I.body.empty();if(G){I.body.html(G);C(c)}else if(j.dataFromFn){j.loadData(I.body,h);if(I.body.html()!=""){C(c)}}else if(!j.local&&o.indexOf('#')!=0){if(k&&j.ajaxCache){I.body.html(k);C(c)}else{var d=j.ajaxSettings;d.url=o;d.beforeSend=function(){I.body.empty();if(j.waitImage){$('#mTooltip-waitimage').css({top:mouseY+20,left:mouseX+20}).show()}};d.error=function(){if(m){I.body.html('<i>sorry, the contents could not be loaded</i>')}};d.success=function(a){k=j.ajaxProcess(a);if(m){I.body.html(k)}};d.complete=function(){$('#mTooltip-waitimage').hide();if(m)C(c)};$.ajax(d)}}else if(j.local){var e=$(o+':first');var f=$.fn.wrapInner?e.wrapInner('<div></div>').children().clone(true):e.html();$.fn.wrapInner?I.body.empty().append(f):I.body.html(f);C(c)}};var B=function(){var a,swLeft=0,swTop=0,swWidth=0,swHeight=0;var b,siLeft=0,siTop=0,siWidth=0,siHeight=0;var c=j.shadowParams.left;spBottom=j.shadowParams.bottom;spTop=j.shadowParams.top;spRight=j.shadowParams.right;var d=Math.min(parseInt($(".t",I.parent).css('marginLeft'),10),0);$(".mTooltip-shadow").remove();if(c>0){swLeft=-1*c+d;swTop=0;swWidth=c;swHeight=I.parent.outerHeight()-c;a=$('<div class="mTooltip-shadow"></div>');a.css({top:swTop+"px",left:swLeft+"px",width:swWidth+"px",height:swHeight+"px"});b=$('<div></div>');siLeft=0;siWidth=j.shadowParams.imgWidth;siHeight=j.shadowParams.imgHeight;siTop=0;b.css({top:siTop+"px",left:siLeft+"px",width:siWidth+"px",height:siHeight+"px"});a.append(b).appendTo(I.parent)}if(spBottom>0){swLeft=-1*c+d;swTop=I.parent.outerHeight()-c;swWidth=I.parent.outerWidth();swHeight=spBottom;a=$('<div class="mTooltip-shadow"></div>');a.css({top:swTop+"px",left:swLeft+"px",width:swWidth+"px",height:swHeight+"px"});b=$('<div></div>');siLeft=0;siWidth=j.shadowParams.imgWidth;siHeight=j.shadowParams.imgHeight;siTop=0;b.css({bottom:siTop+"px",left:siLeft+"px",width:siWidth+"px",height:siHeight+"px"});a.append(b).appendTo(I.parent)}if(spRight>0){swLeft=-1*c+d+I.parent.outerWidth();swTop=0+spTop;swWidth=spRight;swHeight=I.parent.outerHeight()-spTop- +c+spBottom;a=$('<div class="mTooltip-shadow"></div>');a.css({top:swTop+"px",left:swLeft+"px",width:swWidth+"px",height:swHeight+"px"});b=$('<div></div>');siLeft=0;siWidth=j.shadowParams.imgWidth;siHeight=j.shadowParams.imgHeight;siTop=0;b.css({bottom:siTop+"px",right:siLeft+"px",width:siWidth+"px",height:siHeight+"px"});a.append(b).appendTo(I.parent)}if(spTop>0){swLeft=0;swTop=0;swWidth=I.parent.outerWidth()+c;swHeight=spTop;a=$('<div class="mTooltip-shadow"></div>');a.css({top:swTop+"px",left:swLeft+"px",width:swWidth+"px",height:swHeight+"px"});b=$('<div></div>');siLeft=0;siWidth=j.shadowParams.imgWidth;siHeight=j.shadowParams.imgHeight;siTop=0;b.css({top:siTop+"px",right:siLeft+"px",width:siWidth+"px",height:siHeight+"px"});a.append(b).appendTo(I.parent)}};var C=function(a){if(L>0){clearTimeout(L);L=0}I.parent.addClass('mTooltip-'+ctClass);if(j.dropShadow){B()}function doNothing(){};if(j.sticky){I.close=$('<div id="mTooltip-close"><a href="#">'+j.closeText+'</a></div>');(j.closePosition=='bottom')?I.close.appendTo(I.body):(j.closePosition=='top')?I.close.prependTo(I.body):"";I.close.click(function(){E();return false});if(!j.mouseOutClose){I.parent.unbind('mouseout')}}if(j.mouseOutClose){if($.fn.hoverIntent&&j.hoverIntent){I.parent.hoverIntent({over:function(){if(L>0){clearTimeout(L);L=0}},timeout:j.hoverIntent.timeout,out:function(){L=setTimeout(function(){E()},j.mouseOutDelay)}})}else{I.parent.unbind('mouseenter').unbind('mouseleave');I.parent.hover(function(){if(L>0){clearTimeout(L);L=0}},function(){L=setTimeout(function(){E()},j.mouseOutDelay)})}}var b='';if(r!='auto'){I.content.css({overflow:'auto',height:r})}I.parent.css({height:r});q=r=='auto'?Math.max(I.parent.outerHeight(),I.parent.height()):parseInt(r,10);tipY=posY;baseline=s+wHeight;if(j.positionBy=='fixed'){tipY=posY+p}else if(posY+q+p>baseline){tipY=(q>=wHeight)?s:baseline-q-p}else if(h.css('display')=='block'||h[0].tagName.toLowerCase()=='area'||j.positionBy=="mouse"){tipY=a-p}else{tipY=posY}if(b==''){mouseX>parseInt($(I.parent).css("left"),10)?b='left':b='right'}I.parent.css({top:tipY+'px'}).removeClass().addClass('mTooltip-'+ctClass);if(j.arrows){if(j.arrowParams.tipHeight<q){var c=(linkTop>(tipY+q/2))?'lower':'upper';var d=(posY-tipY)-(c=='lower'?j.arrowParams.tipHeight:0);I.arrow.css({top:(/(left|right)/.test(b)&&d>0)?d+'px':/(left|right)/.test(b)?0:''}).show();if(b=='left'){I.arrow.css({left:u-5})}else{I.arrow.css({left:''})}I.arrow.removeClass("aul").removeClass("all").removeClass("aur").removeClass("alr").addClass("a"+(c=='lower'?"l":"u")+(b=='left'?"l":"r"))}}else{I.arrow.hide()}I.htmlShadow.hide();I.parent.hide()[j.fx.open](j.fx.open!='show'&&j.fx.openSpeed);if(j.htmlShadow)I.htmlShadow.css({height:q,width:t}).show();if($.fn.bgiframe){I.parent.bgiframe()}if(j.delayedClose>0){closeOnDelay=setTimeout(E,j.delayedClose)}j.onShow(I.parent,I.body)};var D=function(){m=false;$('#mTooltip-waitimage').hide();if(!j.sticky||(/click|toggle/).test(j.activation)){L=setTimeout(function(){E()},j.mouseOutDelay);clearTimeout(closeOnDelay)};if(j.hoverClass){h.removeClass(j.hoverClass)}$('.mTooltip-clicked').removeClass('mTooltip-clicked')};var E=function(){if(L>0){clearTimeout(L);L=0}I.parent.fadeOut().queue(function(){I.parent.hide();$(this).dequeue()});if(y){h.attr(j.titleAttribute,y)}h.css('cursor','');if(j.arrows)I.arrow.css({top:''})};if((/click|toggle/).test(j.activation)){h.click(function(a){if(I.parent.is(':hidden')||!h.is('.mTooltip-clicked')){A(a);$('.mTooltip-clicked').removeClass('mTooltip-clicked');h.addClass('mTooltip-clicked')}else{D(a)}this.blur();return false})}else if(j.activation=='focus'){h.focus(function(a){A(a)});h.blur(function(a){D(a)})}else{h.click(function(){if(h.attr('href')&&h.attr('href')==o&&!j.clickThrough){return false}});var F=function(a){};if($.fn.hoverIntent&&j.hoverIntent){h.mouseover(function(){h.attr('title','')}).hoverIntent({sensitivity:j.hoverIntent.sensitivity,interval:j.hoverIntent.interval,over:function(a){A(a);F(a)},timeout:j.hoverIntent.timeout,out:function(a){D(a);h.unbind('mousemove')}})}else{h.hover(function(a){A(a);F(a)},function(a){D(a);h.unbind('mousemove')})}}inactivateTooltipFn=D;K=E})};$.fn.mTooltip.close=function(){if(inactivateTooltipFn){inactivateTooltipFn();K()}};$.fn.mTooltip.defaults={width:275,height:'auto',mtipzIndex:97,positionBy:'auto',topOffset:0,leftOffset:0,local:false,dataFromFn:false,attribute:'rel',titleAttribute:'title',tooltipClass:'default',contentClass:null,hoverClass:'',waitImage:true,cursor:'help',arrows:false,arrowParams:{tipHeight:55,width:20},dropShadow:true,htmlShadow:false,htmlShadowSteps:3,shadowParams:{left:15,right:37,top:20,bottom:27,imgWidth:806,imgHeight:751},sticky:false,mouseOutClose:false,mouseOutDelay:1000,activation:'hover',clickThrough:false,tracking:false,delayedClose:0,closePosition:'top',closeText:'<img src="/static/img/tooltip/close.gif">',truncate:0,fx:{open:'fadeIn',openSpeed:''},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(e){return true},onShow:function(a,c){},loadData:function(a,b){},ajaxCache:true,ajaxProcess:function(a){a=a.replace(/<s(cript|tyle)(.|\s)*?\/s(cript|tyle)>/g,'').replace(/<(link|title)(.|\s)*?\/(link|title)>/g,'');return a},ajaxSettings:{dataType:'html'},debug:false};var M='appendTo',insertionElement='body';$.mTooltip={};$.mTooltip.setup=function(a){if(a&&a.insertionType&&(a.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){M=a.insertionType}if(a&&a.insertionElement){insertionElement=a.insertionElement}}})(jQuery);
/* jdMenu (little modified) */
(function($){function addEvents(e){var f=$.data($(e).parents().andSelf().filter('ul.jd_menu')[0],'jdMenuSettings');$('> li',e).bind('mouseenter.jdmenu mouseleave.jdmenu',function(a){$(this).toggleClass('jdm_hover');var b=$('> ul',this);if(b.length==1){clearTimeout(this.$jdTimer);var c=(a.type=='mouseenter');var d=(c?showMenu:hideMenu);this.$jdTimer=setTimeout(function(){d(b[0],f.onAnimate,f.isVertical)},c?f.showDelay:f.hideDelay)}}).bind('click.jdmenu',function(b){var c=$('> ul',this);if(c.length==1&&(f.disableLinks==true||$(this).hasClass('accessible'))){showMenu(c,f.onAnimate,f.isVertical);return false}if(b.target==this){var d=$(f.aTraversal,b.target).not('.accessible');if(d.length>0){var a=d[0];if(!a.onclick){window.open(a.href,a.target||'_self')}else{$(a).trigger('click')}}}if(f.disableLinks||(!f.disableLinks&&!$(this).parent().hasClass('jd_menu'))){$(this).parent().jdMenuHide();b.stopPropagation()}}).find(f.aTraversal).bind('focus.jdmenu blur.jdmenu',function(a){var p=$(this).parents('li:eq(0)');if(a.type=='focus'){p.addClass('jdm_hover')}else{p.removeClass('jdm_hover')}}).filter('.accessible').bind('click.jdmenu',function(a){a.preventDefault()})}function showMenu(a,b,c){var a=$(a);if(a.is(':visible')){return}setTimeout(function(){a.bgiframe()},10);var d=a.parent();a.trigger('jdMenuShow').positionBy({target:d[0],targetPos:(c===true||!d.parent().hasClass('jd_menu')?1:3),elementPos:0,hideAfterPosition:true});if(!a.hasClass('jdm_events')){a.addClass('jdm_events');addEvents(a)}d.addClass('jdm_active').siblings('li').find('> ul:eq(0):visible').each(function(){hideMenu(this)});if(b===undefined){a.show()}else{b.apply(a[0],[true])}}function hideMenu(a,b){var a=$(a);$('.bgiframe',a).remove();a.filter(':not(.jd_menu)').find('> li > ul:eq(0):visible').each(function(){hideMenu(this)}).end();if(b===undefined){a.hide()}else{b.apply(a[0],[false])}a.trigger('jdMenuHide').parents('li:eq(0)').removeClass('jdm_active jdm_hover').end().find('> li').removeClass('jdm_active jdm_hover')}$.fn.jdMenu=function(a){var a=$.extend({showDelay:100,hideDelay:400,aTraversal:'>a',disableLinks:true},a);if(!$.isFunction(a.onAnimate)){a.onAnimate=undefined}return this.filter('ul.jd_menu').each(function(){$.data(this,'jdMenuSettings',$.extend({isVertical:$(this).hasClass('jd_menu_vertical')},a));addEvents(this)})};$.fn.jdMenuUnbind=function(){$('ul.jdm_events',this).unbind('.jdmenu').find('> a').unbind('.jdmenu')};$.fn.jdMenuHide=function(){return this.filter('ul').each(function(){hideMenu(this)})};$(window).bind('click.jdmenu',function(){$('ul.jd_menu ul:visible').jdMenuHide()})})(jQuery);
/* positionBy (jdMenu) */
(function($){var B=function(a,b,c,d){this.x1=a;this.x2=c;this.y1=b;this.y2=d};B.prototype.contains=function(a){return(this.x1<=a.x1&&a.x2<=this.x2)&&(this.y1<=a.y1&&a.y2<=this.y2)};B.prototype.transform=function(x,y){return new B(this.x1+x,this.y1+y,this.x2+x,this.y2+y)};$.fn.positionBy=function(r){var s=new Date();if(this.length==0){return this}var r=$.extend({target:null,targetPos:null,elementPos:null,x:null,y:null,positions:null,addClass:false,force:false,container:window,hideAfterPosition:false},r);if(r.x!=null){var t=r.x;var u=r.y;var v=0;var w=0}else{var x=$($(r.target)[0]);var v=x.outerWidth();var w=x.outerHeight();var y=x.offset();var t=y.left;var u=y.top}var z=t+v;var A=u+w;return this.each(function(){var c=$(this);if(!c.is(':visible')){c.css({left:-3000,top:-3000}).show()}var d=c.outerWidth();var e=c.outerHeight();var f=[];var g=[];f[0]=new B(z,u,z+d,u+e);g[0]=[1,7,4];f[1]=new B(z,A-e,z+d,A);g[1]=[0,6,4];f[2]=new B(z,A,z+d,A+e);g[2]=[1,3,10];f[3]=new B(z-d,A,z,A+e);g[3]=[1,6,10];f[4]=new B(t,A,t+d,A+e);g[4]=[1,6,9];f[5]=new B(t-d,A,t,A+e);g[5]=[6,4,9];f[6]=new B(t-d,A-e,t,A);g[6]=[7,1,4];f[7]=new B(t-d,u,t,u+e);g[7]=[6,0,4];f[8]=new B(t-d,u-e,t,u);g[8]=[7,9,4];f[9]=new B(t,u-e,t+d,u);g[9]=[0,7,4];f[10]=new B(z-d,u-e,z,u);g[10]=[0,7,3];f[11]=new B(z,u-e,z+d,u);g[11]=[0,10,3];f[12]=new B(z-d,u,z,u+e);g[12]=[13,7,10];f[13]=new B(z-d,A-e,z,A);g[13]=[12,6,3];f[14]=new B(t,A-e,t+d,A);g[14]=[15,1,4];f[15]=new B(t,u,t+d,u+e);g[15]=[14,0,9];if(r.positions!==null){var h=r.positions[0]}else if(r.targetPos!=null&&r.elementPos!=null){var h=[];h[0]=[];h[0][0]=15;h[0][1]=7;h[0][2]=8;h[0][3]=9;h[1]=[];h[1][0]=0;h[1][1]=12;h[1][2]=10;h[1][3]=11;h[2]=[];h[2][0]=2;h[2][1]=3;h[2][2]=13;h[2][3]=1;h[3]=[];h[3][0]=4;h[3][1]=5;h[3][2]=6;h[3][3]=14;var h=h[r.targetPos][r.elementPos]}var i=f[h];var j=h;if(!r.force){$window=$(window);var k=$window.scrollLeft();var l=$window.scrollTop();var m=new B(k,l,k+$window.width(),l+$window.height());var n;if(r.positions){n=r.positions}else{n=[h]}var o=[];while(n.length>0){var p=n.shift();if(o[p]){continue}o[p]=true;if(!m.contains(f[p])){if(r.positions===null){n=jQuery.merge(n,g[p])}}else{i=f[p];break}}}c.parents().each(function(){var a=$(this);if(a.css('position')!='static'){var b=a.offset();i=i.transform(-b.left,-b.top);return false}});var q={left:i.x1,top:i.y1};if(r.hideAfterPosition){q['display']='none'}c.css(q);if(r.addClass){c.removeClass('positionBy0 positionBy1 positionBy2 positionBy3 positionBy4 positionBy5 '+'positionBy6 positionBy7 positionBy8 positionBy9 positionBy10 positionBy11 '+'positionBy12 positionBy13 positionBy14 positionBy15').addClass('positionBy'+p)}})}})(jQuery);
/* Cycle */
;(function($){var ver="2.54";if($.support==undefined){$.support={opacity:!($.browser.msie&&/MSIE 6.0/.test(navigator.userAgent))};}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""));}}$.fn.cycle=function(options,arg2){if(this.length==0&&options!="stop"){if(!$.isReady&&this.selector){log("DOM not ready, queuing slideshow");var o={s:this.selector,c:this.context};$(function(){$(o.s,o.c).cycle(options,arg2);});return;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){options=handleArguments(this,options,arg2);if(options===false){return;}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=options.slideExpr?$(options.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts=buildOptions($cont,$slides,els,options);if(opts===false){return;}if(opts.timeout||opts.continuous){this.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},opts.continuous?10:opts.timeout+(opts.delay||0));}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"stop":cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;if(arg2===true){options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}return false;default:options={fx:options};}}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(this.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;}function buildOptions($cont,$slides,els,options){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){this.style.removeAttribute("filter");});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=0;opts.startingSlide=opts.randomMap[0];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();if(!$.support.opacity&&opts.cleartype){els[first].style.removeAttribute("filter");}if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var i=0;i<els.length;i++){var $e=$(els[i]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth;}if(!h){h=e.offsetHeight;}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}supportMultiTransitions(opts);if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();});opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}while((opts.timeout-opts.speed)<250){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){opts.nextSlide=opts.currSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).click(function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).click(function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(var i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];var tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknowtn transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){var tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(var i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}log("randomized fx sequence: ",opts.fxs);}}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){var fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy){$(els).stop(true,true);opts.busy=false;}if(opts.busy){return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}if(manual||!p.cyclePause){var fx=opts.fx;curr.cycleH=curr.cycleH||curr.offsetHeight;curr.cycleW=curr.cycleW||curr.offsetWidth;next.cycleH=next.cycleH||next.offsetHeight;next.cycleW=next.cycleW||next.offsetWidth;if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after);}else{$.fn.cycle.custom(curr,next,opts,after,manual&&opts.fastOnEvent);}}}opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}if(opts.pager){$.fn.cycle.updateActivePagerLink(opts.pager,opts.currSlide);}}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide){$(pager).find("a").removeClass("activeSlide").filter("a:eq("+currSlide+")").addClass("activeSlide");};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}if($.isFunction(opts.prevNextClick)){opts.prevNextClick(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});$.fn.cycle.updateActivePagerLink(opts.pager,opts.startingSlide);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a=($.isFunction(opts.pagerAnchorBuilder))?opts.pagerAnchorBuilder(i,el):'<a href="#">'+(i+1)+"</a>";if(!a){return;}var $a=$(a);if($a.parents("body").length==0){$a.appendTo($p);}$a.bind(opts.pagerEvent,function(){opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if($.isFunction(opts.pagerClick)){opts.pagerClick(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);return false;});if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){function hex(s){var s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0};})(jQuery);
/* Cycle Effects */
(function($){$.fn.cycle.transitions.scrollLeft=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){$(this).show();c.cssBefore.left=b.offsetWidth;c.animOut.left=0-a.offsetWidth});f.cssFirst={left:0};f.animIn={left:0}};$.fn.cycle.transitions.scrollRight=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){$(this).show();c.cssBefore.left=0-b.offsetWidth;c.animOut.left=a.offsetWidth});f.cssFirst={left:0};f.animIn={left:0}};$.fn.cycle.transitions.scrollHorz=function(f,g,h){f.css('overflow','hidden').width();h.before.push(function(a,b,c,d){$(this).show();var e=a.offsetWidth,nextW=b.offsetWidth;c.cssBefore=d?{left:nextW}:{left:-nextW};c.animIn.left=0;c.animOut.left=d?-e:e;g.not(a).css(c.cssBefore)});h.cssFirst={left:0};h.cssAfter={display:'none'}};$.fn.cycle.transitions.scrollVert=function(f,g,h){f.css('overflow','hidden');h.before.push(function(a,b,c,d){$(this).show();var e=a.offsetHeight,nextH=b.offsetHeight;c.cssBefore=d?{top:-nextH}:{top:nextH};c.animIn.top=0;c.animOut.top=d?e:-e;g.not(a).css(c.cssBefore)});h.cssFirst={top:0};h.cssAfter={display:'none'}};$.fn.cycle.transitions.shuffle=function(g,h,j){var w=g.css('overflow','visible').width();h.css({left:0,top:0});j.before.push(function(){$(this).show()});j.speed=j.speed/2;j.random=0;j.shuffle=j.shuffle||{left:-w,top:15};j.els=[];for(var i=0;i<h.length;i++)j.els.push(h[i]);for(var i=0;i<j.startingSlide;i++)j.els.push(j.els.shift());j.fxFn=function(a,b,c,d,e){var f=e?$(a):$(b);f.animate(c.shuffle,c.speedIn,c.easeIn,function(){e?c.els.push(c.els.shift()):c.els.unshift(c.els.pop());if(e)for(var i=0,len=c.els.length;i<len;i++)$(c.els[i]).css('z-index',len-i);else{var z=$(a).css('z-index');f.css('z-index',parseInt(z)+1)}f.animate({left:0,top:0},c.speedOut,c.easeOut,function(){$(e?this:a).hide();if(d)d()})})};j.onAddSlide=function(a){a.hide()}};$.fn.cycle.transitions.cover=function(e,f,g){var d=g.direction||'left';var w=e.css('overflow','hidden').width();var h=e.height();g.before.push(function(a,b,c){c.cssBefore=c.cssBefore||{};c.cssBefore.zIndex=2;c.cssBefore.display='block';if(d=='right')c.cssBefore.left=-w;else if(d=='up')c.cssBefore.top=h;else if(d=='down')c.cssBefore.top=-h;else c.cssBefore.left=w;$(a).css('zIndex',1)});if(!g.animIn)g.animIn={left:0,top:0};if(!g.animOut)g.animOut={left:0,top:0};g.cssAfter=g.cssAfter||{};g.cssAfter.zIndex=2;g.cssAfter.display='none'};$.fn.cycle.transitions.uncover=function(e,f,g){var d=g.direction||'left';var w=e.css('overflow','hidden').width();var h=e.height();g.before.push(function(a,b,c){c.cssBefore.display='block';if(d=='right')c.animOut.left=w;else if(d=='up')c.animOut.top=-h;else if(d=='down')c.animOut.top=h;else c.animOut.left=-w;$(a).css('zIndex',2);$(b).css('zIndex',1)});g.onAddSlide=function(a){a.hide()};if(!g.animIn)g.animIn={left:0,top:0};g.cssBefore=g.cssBefore||{};g.cssBefore.top=0;g.cssBefore.left=0;g.cssAfter=g.cssAfter||{};g.cssAfter.zIndex=1;g.cssAfter.display='none'};$.fn.cycle.transitions.toss=function(d,e,f){var w=d.css('overflow','visible').width();var h=d.height();f.before.push(function(a,b,c){$(a).css('zIndex',2);c.cssBefore.display='block';if(!c.animOut.left&&!c.animOut.top)c.animOut={left:w*2,top:-h/2,opacity:0};else c.animOut.opacity=0});f.onAddSlide=function(a){a.hide()};f.cssBefore={left:0,top:0,zIndex:1,opacity:1};f.animIn={left:0};f.cssAfter={zIndex:2,display:'none'}};$.fn.cycle.transitions.wipe=function(o,p,q){var w=o.css('overflow','hidden').width();var h=o.height();q.cssBefore=q.cssBefore||{};var s;if(q.clip){if(/l2r/.test(q.clip))s='rect(0px 0px '+h+'px 0px)';else if(/r2l/.test(q.clip))s='rect(0px '+w+'px '+h+'px '+w+'px)';else if(/t2b/.test(q.clip))s='rect(0px '+w+'px 0px 0px)';else if(/b2t/.test(q.clip))s='rect('+h+'px '+w+'px '+h+'px 0px)';else if(/zoom/.test(q.clip)){var t=parseInt(h/2);var l=parseInt(w/2);s='rect('+t+'px '+l+'px '+t+'px '+l+'px)'}}q.cssBefore.clip=q.cssBefore.clip||s||'rect(0px 0px 0px 0px)';var d=q.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);q.before.push(function(g,i,j){if(g==i)return;var k=$(g).css('zIndex',2);var m=$(i).css({zIndex:3,display:'block'});var n=1,count=parseInt((j.speedIn/13))-1;function f(){var a=t?t-parseInt(n*(t/count)):0;var c=l?l-parseInt(n*(l/count)):0;var d=b<h?b+parseInt(n*((h-b)/count||1)):h;var e=r<w?r+parseInt(n*((w-r)/count||1)):w;m.css({clip:'rect('+a+'px '+e+'px '+d+'px '+c+'px)'});(n++<=count)?setTimeout(f,13):k.css('display','none')}f()});q.cssAfter={};q.animIn={left:0};q.animOut={left:0}}})(jQuery);
/* Example */
(function($){$.fn.example=function(b,c){var d=$.isFunction(b);var e=$.extend({},c,{example:b});return this.each(function(){var a=$(this);if($.metadata){var o=$.extend({},$.fn.example.defaults,a.metadata(),e)}else{var o=$.extend({},$.fn.example.defaults,e)}if(!$.fn.example.boundClassNames[o.className]){$(window).unload(function(){$('.'+o.className).val('')});$('form').submit(function(){$(this).find('.'+o.className).val('')});$.fn.example.boundClassNames[o.className]=true}if($.browser.msie&&!a.attr('defaultValue')&&(d||a.val()==o.example))a.val('');if(a.val()==''&&this!=document.activeElement){a.addClass(o.className);a.val(d?o.example.call(this):o.example)}a.focus(function(){if($(this).is('.'+o.className)){$(this).val('');$(this).removeClass(o.className)}});a.blur(function(){if($(this).val()==''){$(this).addClass(o.className);$(this).val(d?o.example.call(this):o.example)}})})};$.fn.exampleClear=function(){return this.each(function(){var a=$(this);var o=$.extend({},$.fn.example.defaults);$('.'+o.className,a).val('')})};$.fn.example.defaults={className:'example'};$.fn.example.boundClassNames=[]})(jQuery);
/* context menu */
(function($){var h,shadow,trigger,content,hash,currentTarget;var j={menuClass:'cMenu',itemClass:'',itemHoverClass:'hover',eventPosX:'pageX',eventPosY:'pageY',shadow:true,leftButton:false,onContextMenu:null,onShowMenu:null};$.fn.contextMenu=function(b,c){if(!h){h=$('<div id="jqCMenu"></div>').hide().css({position:'absolute',zIndex:'500'}).appendTo('body').bind('click',function(e){e.stopPropagation()})}if(!shadow){shadow=$('<div></div>').css({backgroundColor:'#000',position:'absolute',opacity:0.2,zIndex:499}).appendTo('body').hide()}hash=hash||[];hash.push({id:b,menuClass:c.menuClass||j.menuClass,itemClass:c.itemClass||j.itemClass,itemHoverClass:c.itemHoverClass||j.itemHoverClass,bindings:c.bindings||{},shadow:c.shadow||c.shadow===false?c.shadow:j.shadow,leftButton:c.leftButton||c.leftButton===false?c.leftButton:j.leftButton,onContextMenu:c.onContextMenu||j.onContextMenu,onShowMenu:c.onShowMenu||j.onShowMenu,eventPosX:c.eventPosX||j.eventPosX,eventPosY:c.eventPosY||j.eventPosY});var d=hash.length-1;$(this).bind((hash[d].leftButton?'click':'contextmenu'),function(e){var a=(!!hash[d].onContextMenu)?hash[d].onContextMenu(e):true;if(a)display(d,this,e,c);return false});return this};function display(c,d,e,f){var g=hash[c];content=$(g.id).find('ul:first').clone(true);content.addClass(g.menuClass).find('li').hover(function(){$(this).addClass(g.itemHoverClass)},function(){$(this).removeClass(g.itemHoverClass)});h.html(content);if(!!g.onShowMenu)h=g.onShowMenu(e,h);$.each(g.bindings,function(a,b){$('#'+a,h).bind('click',function(e){hide();b(d,currentTarget)})});h.css({'left':e[g.eventPosX],'top':e[g.eventPosY]}).show();if(g.shadow)shadow.css({width:content.width()+2,height:content.height()+2,left:e.pageX+2,top:e.pageY+2}).show();$(document).one('click',hide)}function hide(){h.hide();shadow.hide()}$.contextMenu={defaults:function(b){$.each(b,function(i,a){if(typeof a=='object'&&j[i]){$.extend(j[i],a)}else j[i]=a})}}})(jQuery);
/* outer */
(function($){jQuery.fn.outer = function() {return $( $('<div></div>').html(this.clone()) ).html();} })(jQuery);