/* FILE: /media/system/js/mootools.js */
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

var MooTools={version:'1.12'};function $defined(obj){return(obj!=undefined);};function $type(obj){if(!$defined(obj))return false;if(obj.htmlElement)return'element';var type=typeof obj;if(type=='object'&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return(/\S/).test(obj.nodeValue)?'textnode':'whitespace';}}
if(type=='object'||type=='function'){switch(obj.constructor){case Array:return'array';case RegExp:return'regexp';case Class:return'class';}
if(typeof obj.length=='number'){if(obj.item)return'collection';if(obj.callee)return'arguments';}}
return type;};function $merge(){var mix={};for(var i=0;i<arguments.length;i++){for(var property in arguments[i]){var ap=arguments[i][property];var mp=mix[property];if(mp&&$type(ap)=='object'&&$type(mp)=='object')mix[property]=$merge(mp,ap);else mix[property]=ap;}}
return mix;};var $extend=function(){var args=arguments;if(!args[1])args=[this,args[0]];for(var property in args[1])args[0][property]=args[1][property];return args[0];};var $native=function(){for(var i=0,l=arguments.length;i<l;i++){arguments[i].extend=function(props){for(var prop in props){if(!this.prototype[prop])this.prototype[prop]=props[prop];if(!this[prop])this[prop]=$native.generic(prop);}};}};$native.generic=function(prop){return function(bind){return this.prototype[prop].apply(bind,Array.prototype.slice.call(arguments,1));};};$native(Function,Array,String,Number);function $chk(obj){return!!(obj||obj===0);};function $pick(obj,picked){return $defined(obj)?obj:picked;};function $random(min,max){return Math.floor(Math.random()*(max-min+1)+min);};function $time(){return new Date().getTime();};function $clear(timer){clearTimeout(timer);clearInterval(timer);return null;};var Abstract=function(obj){obj=obj||{};obj.extend=$extend;return obj;};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName('head')[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject)window.ie=window[window.XMLHttpRequest?'ie7':'ie6']=true;else if(document.childNodes&&!document.all&&!navigator.taintEnabled)window.webkit=window[window.xpath?'webkit420':'webkit419']=true;else if(document.getBoxObjectFor!=null||window.mozInnerScreenX!=null)window.gecko=true;window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=='undefined'){var HTMLElement=function(){};if(window.webkit)document.createElement("iframe");HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{};}
HTMLElement.prototype.htmlElement=function(){};if(window.ie6)try{document.execCommand("BackgroundImageCache",false,true);}catch(e){};var Class=function(properties){var klass=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=='function')?this.initialize.apply(this,arguments):this;};$extend(klass,this);klass.prototype=properties;klass.constructor=Class;return klass;};Class.empty=function(){};Class.prototype={extend:function(properties){var proto=new this(null);for(var property in properties){var pp=proto[property];proto[property]=Class.Merge(pp,properties[property]);}
return new Class(proto);},implement:function(){for(var i=0,l=arguments.length;i<l;i++)$extend(this.prototype,arguments[i]);}};Class.Merge=function(previous,current){if(previous&&previous!=current){var type=$type(current);if(type!=$type(previous))return current;switch(type){case'function':var merged=function(){this.parent=arguments.callee.parent;return current.apply(this,arguments);};merged.parent=previous;return merged;case'object':return $merge(previous,current);}}
return current;};var Chain=new Class({chain:function(fn){this.chains=this.chains||[];this.chains.push(fn);return this;},callChain:function(){if(this.chains&&this.chains.length)this.chains.shift().delay(10,this);},clearChain:function(){this.chains=[];}});var Events=new Class({addEvent:function(type,fn){if(fn!=Class.empty){this.$events=this.$events||{};this.$events[type]=this.$events[type]||[];this.$events[type].include(fn);}
return this;},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}
return this;},removeEvent:function(type,fn){if(this.$events&&this.$events[type])this.$events[type].remove(fn);return this;}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var option in this.options){if($type(this.options[option]=='function')&&(/^on[A-Z]/).test(option))this.addEvent(option,this.options[option]);}}
return this;}});Array.extend({forEach:function(fn,bind){for(var i=0,j=this.length;i<j;i++)fn.call(bind,this[i],i,this);},filter:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))results.push(this[i]);}
return results;},map:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++)results[i]=fn.call(bind,this[i],i,this);return results;},every:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(!fn.call(bind,this[i],i,this))return false;}
return true;},some:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))return true;}
return false;},indexOf:function(item,from){var len=this.length;for(var i=(from<0)?Math.max(0,len+from):from||0;i<len;i++){if(this[i]===item)return i;}
return-1;},copy:function(start,length){start=start||0;if(start<0)start=this.length+start;length=length||(this.length-start);var newArray=[];for(var i=0;i<length;i++)newArray[i]=this[start++];return newArray;},remove:function(item){var i=0;var len=this.length;while(i<len){if(this[i]===item){this.splice(i,1);len--;}else{i++;}}
return this;},contains:function(item,from){return this.indexOf(item,from)!=-1;},associate:function(keys){var obj={},length=Math.min(this.length,keys.length);for(var i=0;i<length;i++)obj[keys[i]]=this[i];return obj;},extend:function(array){for(var i=0,j=array.length;i<j;i++)this.push(array[i]);return this;},merge:function(array){for(var i=0,l=array.length;i<l;i++)this.include(array[i]);return this;},include:function(item){if(!this.contains(item))this.push(item);return this;},getRandom:function(){return this[$random(0,this.length-1)]||null;},getLast:function(){return this[this.length-1]||null;}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(array){return Array.copy(array);};function $each(iterable,fn,bind){if(iterable&&typeof iterable.length=='number'&&$type(iterable)!='object'){Array.forEach(iterable,fn,bind);}else{for(var name in iterable)fn.call(bind||iterable,iterable[name],name);}};Array.prototype.test=Array.prototype.contains;String.extend({test:function(regex,params){return(($type(regex)=='string')?new RegExp(regex,params):regex).test(this);},toInt:function(){return parseInt(this,10);},toFloat:function(){return parseFloat(this);},camelCase:function(){return this.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(match){return(match.charAt(0)+'-'+match.charAt(1).toLowerCase());});},capitalize:function(){return this.replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},trim:function(){return this.replace(/^\s+|\s+$/g,'');},clean:function(){return this.replace(/\s{2,}/g,' ').trim();},rgbToHex:function(array){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):false;},hexToRgb:function(array){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(array):false;},contains:function(string,s){return(s)?(s+this+s).indexOf(s+string+s)>-1:this.indexOf(string)>-1;},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,'\\$1');}});Array.extend({rgbToHex:function(array){if(this.length<3)return false;if(this.length==4&&this[3]==0&&!array)return'transparent';var hex=[];for(var i=0;i<3;i++){var bit=(this[i]-0).toString(16);hex.push((bit.length==1)?'0'+bit:bit);}
return array?hex:'#'+hex.join('');},hexToRgb:function(array){if(this.length!=3)return false;var rgb=[];for(var i=0;i<3;i++){rgb.push(parseInt((this[i].length==1)?this[i]+this[i]:this[i],16));}
return array?rgb:'rgb('+rgb.join(',')+')';}});Function.extend({create:function(options){var fn=this;options=$merge({'bind':fn,'event':false,'arguments':null,'delay':false,'periodical':false,'attempt':false},options);if($chk(options.arguments)&&$type(options.arguments)!='array')options.arguments=[options.arguments];return function(event){var args;if(options.event){event=event||window.event;args=[(options.event===true)?event:new options.event(event)];if(options.arguments)args.extend(options.arguments);}
else args=options.arguments||arguments;var returns=function(){return fn.apply($pick(options.bind,fn),args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)try{return returns();}catch(err){return false;};return returns();};},pass:function(args,bind){return this.create({'arguments':args,'bind':bind});},attempt:function(args,bind){return this.create({'arguments':args,'bind':bind,'attempt':true})();},bind:function(bind,args){return this.create({'bind':bind,'arguments':args});},bindAsEventListener:function(bind,args){return this.create({'bind':bind,'event':true,'arguments':args});},delay:function(delay,bind,args){return this.create({'delay':delay,'bind':bind,'arguments':args})();},periodical:function(interval,bind,args){return this.create({'periodical':interval,'bind':bind,'arguments':args})();}});Number.extend({toInt:function(){return parseInt(this);},toFloat:function(){return parseFloat(this);},limit:function(min,max){return Math.min(max,Math.max(min,this));},round:function(precision){precision=Math.pow(10,precision||0);return Math.round(this*precision)/precision;},times:function(fn){for(var i=0;i<this;i++)fn(i);}});var Element=new Class({initialize:function(el,props){if($type(el)=='string'){if(window.ie&&props&&(props.name||props.type)){var name=(props.name)?' name="'+props.name+'"':'';var type=(props.type)?' type="'+props.type+'"':'';delete props.name;delete props.type;el='<'+el+name+type+'>';}
el=document.createElement(el);}
el=$(el);return(!props||!el)?el:el.set(props);}});var Elements=new Class({initialize:function(elements){return(elements)?$extend(elements,this):this;}});Elements.extend=function(props){for(var prop in props){this.prototype[prop]=props[prop];this[prop]=$native.generic(prop);}};function $(el){if(!el)return null;if(el.htmlElement)return Garbage.collect(el);if([window,document].contains(el))return el;var type=$type(el);if(type=='string'){el=document.getElementById(el);type=(el)?'element':false;}
if(type!='element')return null;if(el.htmlElement)return Garbage.collect(el);if(['object','embed'].contains(el.tagName.toLowerCase()))return el;$extend(el,Element.prototype);el.htmlElement=function(){};return Garbage.collect(el);};document.getElementsBySelector=document.getElementsByTagName;function $$(){var elements=[];for(var i=0,j=arguments.length;i<j;i++){var selector=arguments[i];switch($type(selector)){case'element':elements.push(selector);case'boolean':break;case false:break;case'string':selector=document.getElementsBySelector(selector,true);default:elements.extend(selector);}}
return $$.unique(elements);};$$.unique=function(array){var elements=[];for(var i=0,l=array.length;i<l;i++){if(array[i].$included)continue;var element=$(array[i]);if(element&&!element.$included){element.$included=true;elements.push(element);}}
for(var n=0,d=elements.length;n<d;n++)elements[n].$included=null;return new Elements(elements);};Elements.Multi=function(property){return function(){var args=arguments;var items=[];var elements=true;for(var i=0,j=this.length,returns;i<j;i++){returns=this[i][property].apply(this[i],args);if($type(returns)!='element')elements=false;items.push(returns);};return(elements)?$$.unique(items):items;};};Element.extend=function(properties){for(var property in properties){HTMLElement.prototype[property]=properties[property];Element.prototype[property]=properties[property];Element[property]=$native.generic(property);var elementsProperty=(Array.prototype[property])?property+'Elements':property;Elements.prototype[elementsProperty]=Elements.Multi(property);}};Element.extend({set:function(props){for(var prop in props){var val=props[prop];switch(prop){case'styles':this.setStyles(val);break;case'events':if(this.addEvents)this.addEvents(val);break;case'properties':this.setProperties(val);break;default:this.setProperty(prop,val);}}
return this;},inject:function(el,where){el=$(el);switch(where){case'before':el.parentNode.insertBefore(this,el);break;case'after':var next=el.getNext();if(!next)el.parentNode.appendChild(this);else el.parentNode.insertBefore(this,next);break;case'top':var first=el.firstChild;if(first){el.insertBefore(this,first);break;}
default:el.appendChild(this);}
return this;},injectBefore:function(el){return this.inject(el,'before');},injectAfter:function(el){return this.inject(el,'after');},injectInside:function(el){return this.inject(el,'bottom');},injectTop:function(el){return this.inject(el,'top');},adopt:function(){var elements=[];$each(arguments,function(argument){elements=elements.concat(argument);});$$(elements).inject(this);return this;},remove:function(){return this.parentNode.removeChild(this);},clone:function(contents){var el=$(this.cloneNode(contents!==false));if(!el.$events)return el;el.$events={};for(var type in this.$events)el.$events[type]={'keys':$A(this.$events[type].keys),'values':$A(this.$events[type].values)};return el.removeEvents();},replaceWith:function(el){el=$(el);this.parentNode.replaceChild(el,this);return el;},appendText:function(text){this.appendChild(document.createTextNode(text));return this;},hasClass:function(className){return this.className.contains(className,' ');},addClass:function(className){if(!this.hasClass(className))this.className=(this.className+' '+className).clean();return this;},removeClass:function(className){this.className=this.className.replace(new RegExp('(^|\\s)'+className+'(?:\\s|$)'),'$1').clean();return this;},toggleClass:function(className){return this.hasClass(className)?this.removeClass(className):this.addClass(className);},setStyle:function(property,value){switch(property){case'opacity':return this.setOpacity(parseFloat(value));case'float':property=(window.ie)?'styleFloat':'cssFloat';}
property=property.camelCase();switch($type(value)){case'number':if(!['zIndex','zoom'].contains(property))value+='px';break;case'array':value='rgb('+value.join(',')+')';}
this.style[property]=value;return this;},setStyles:function(source){switch($type(source)){case'object':Element.setMany(this,'setStyle',source);break;case'string':this.style.cssText=source;}
return this;},setOpacity:function(opacity){if(opacity==0){if(this.style.visibility!="hidden")this.style.visibility="hidden";}else{if(this.style.visibility!="visible")this.style.visibility="visible";}
if(!this.currentStyle||!this.currentStyle.hasLayout)this.style.zoom=1;if(window.ie)this.style.filter=(opacity==1)?'':"alpha(opacity="+opacity*100+")";this.style.opacity=this.$tmp.opacity=opacity;return this;},getStyle:function(property){property=property.camelCase();var result=this.style[property];if(!$chk(result)){if(property=='opacity')return this.$tmp.opacity;result=[];for(var style in Element.Styles){if(property==style){Element.Styles[style].each(function(s){var style=this.getStyle(s);result.push(parseInt(style)?style:'0px');},this);if(property=='border'){var every=result.every(function(bit){return(bit==result[0]);});return(every)?result[0]:false;}
return result.join(' ');}}
if(property.contains('border')){if(Element.Styles.border.contains(property)){return['Width','Style','Color'].map(function(p){return this.getStyle(property+p);},this).join(' ');}else if(Element.borderShort.contains(property)){return['Top','Right','Bottom','Left'].map(function(p){return this.getStyle('border'+p+property.replace('border',''));},this).join(' ');}}
if(document.defaultView)result=document.defaultView.getComputedStyle(this,null).getPropertyValue(property.hyphenate());else if(this.currentStyle)result=this.currentStyle[property];}
if(window.ie)result=Element.fixStyle(property,result,this);if(result&&property.test(/color/i)&&result.contains('rgb')){return result.split('rgb').splice(1,4).map(function(color){return color.rgbToHex();}).join(' ');}
return result;},getStyles:function(){return Element.getMany(this,'getStyle',arguments);},walk:function(brother,start){brother+='Sibling';var el=(start)?this[start]:this[brother];while(el&&$type(el)!='element')el=el[brother];return $(el);},getPrevious:function(){return this.walk('previous');},getNext:function(){return this.walk('next');},getFirst:function(){return this.walk('next','firstChild');},getLast:function(){return this.walk('previous','lastChild');},getParent:function(){return $(this.parentNode);},getChildren:function(){return $$(this.childNodes);},hasChild:function(el){return!!$A(this.getElementsByTagName('*')).contains(el);},getProperty:function(property){var index=Element.Properties[property];if(index)return this[index];var flag=Element.PropertiesIFlag[property]||0;if(!window.ie||flag)return this.getAttribute(property,flag);var node=this.attributes[property];return(node)?node.nodeValue:null;},removeProperty:function(property){var index=Element.Properties[property];if(index)this[index]='';else this.removeAttribute(property);return this;},getProperties:function(){return Element.getMany(this,'getProperty',arguments);},setProperty:function(property,value){var index=Element.Properties[property];if(index)this[index]=value;else this.setAttribute(property,value);return this;},setProperties:function(source){return Element.setMany(this,'setProperty',source);},setHTML:function(){this.innerHTML=$A(arguments).join('');return this;},setText:function(text){var tag=this.getTag();if(['style','script'].contains(tag)){if(window.ie){if(tag=='style')this.styleSheet.cssText=text;else if(tag=='script')this.setProperty('text',text);return this;}else{this.removeChild(this.firstChild);return this.appendText(text);}}
this[$defined(this.innerText)?'innerText':'textContent']=text;return this;},getText:function(){var tag=this.getTag();if(['style','script'].contains(tag)){if(window.ie){if(tag=='style')return this.styleSheet.cssText;else if(tag=='script')return this.getProperty('text');}else{return this.innerHTML;}}
return($pick(this.innerText,this.textContent));},getTag:function(){return this.tagName.toLowerCase();},empty:function(){Garbage.trash(this.getElementsByTagName('*'));return this.setHTML('');}});Element.fixStyle=function(property,result,element){if($chk(parseInt(result)))return result;if(['height','width'].contains(property)){var values=(property=='width')?['left','right']:['top','bottom'];var size=0;values.each(function(value){size+=element.getStyle('border-'+value+'-width').toInt()+element.getStyle('padding-'+value).toInt();});return element['offset'+property.capitalize()]-size+'px';}else if(property.test(/border(.+)Width|margin|padding/)){return'0px';}
return result;};Element.Styles={'border':[],'padding':[],'margin':[]};['Top','Right','Bottom','Left'].each(function(direction){for(var style in Element.Styles)Element.Styles[style].push(style+direction);});Element.borderShort=['borderWidth','borderStyle','borderColor'];Element.getMany=function(el,method,keys){var result={};$each(keys,function(key){result[key]=el[method](key);});return result;};Element.setMany=function(el,method,pairs){for(var key in pairs)el[method](key,pairs[key]);return el;};Element.Properties=new Abstract({'class':'className','for':'htmlFor','colspan':'colSpan','rowspan':'rowSpan','accesskey':'accessKey','tabindex':'tabIndex','maxlength':'maxLength','readonly':'readOnly','frameborder':'frameBorder','value':'value','disabled':'disabled','checked':'checked','multiple':'multiple','selected':'selected'});Element.PropertiesIFlag={'href':2,'src':2};Element.Methods={Listeners:{addListener:function(type,fn){if(this.addEventListener)this.addEventListener(type,fn,false);else this.attachEvent('on'+type,fn);return this;},removeListener:function(type,fn){if(this.removeEventListener)this.removeEventListener(type,fn,false);else this.detachEvent('on'+type,fn);return this;}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(el){if(!el.$tmp){Garbage.elements.push(el);el.$tmp={'opacity':1};}
return el;},trash:function(elements){for(var i=0,j=elements.length,el;i<j;i++){if(!(el=elements[i])||!el.$tmp)continue;if(el.$events)el.fireEvent('trash').removeEvents();for(var p in el.$tmp)el.$tmp[p]=null;for(var d in Element.prototype)el[d]=null;Garbage.elements[Garbage.elements.indexOf(el)]=null;el.htmlElement=el.$tmp=el=null;}
Garbage.elements.remove(null);},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements);}};window.addListener('beforeunload',function(){window.addListener('unload',Garbage.empty);if(window.ie)window.addListener('unload',CollectGarbage);});var Event=new Class({initialize:function(event){if(event&&event.$extended)return event;this.$extended=true;event=event||window.event;this.event=event;this.type=event.type;this.target=event.target||event.srcElement;if(this.target.nodeType==3)this.target=this.target.parentNode;this.shift=event.shiftKey;this.control=event.ctrlKey;this.alt=event.altKey;this.meta=event.metaKey;if(['DOMMouseScroll','mousewheel'].contains(this.type)){this.wheel=(event.wheelDelta)?event.wheelDelta/120:-(event.detail||0)/3;}else if(this.type.contains('key')){this.code=event.which||event.keyCode;for(var name in Event.keys){if(Event.keys[name]==this.code){this.key=name;break;}}
if(this.type=='keydown'){var fKey=this.code-111;if(fKey>0&&fKey<13)this.key='f'+fKey;}
this.key=this.key||String.fromCharCode(this.code).toLowerCase();}else if(this.type.test(/(click|mouse|menu)/)){this.page={'x':event.pageX||event.clientX+document.documentElement.scrollLeft,'y':event.pageY||event.clientY+document.documentElement.scrollTop};this.client={'x':event.pageX?event.pageX-window.pageXOffset:event.clientX,'y':event.pageY?event.pageY-window.pageYOffset:event.clientY};this.rightClick=(event.which==3)||(event.button==2);switch(this.type){case'mouseover':this.relatedTarget=event.relatedTarget||event.fromElement;break;case'mouseout':this.relatedTarget=event.relatedTarget||event.toElement;}
this.fixRelatedTarget();}
return this;},stop:function(){return this.stopPropagation().preventDefault();},stopPropagation:function(){if(this.event.stopPropagation)this.event.stopPropagation();else this.event.cancelBubble=true;return this;},preventDefault:function(){if(this.event.preventDefault)this.event.preventDefault();else this.event.returnValue=false;return this;}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3)this.relatedTarget=this.relatedTarget.parentNode;},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this);}catch(e){this.relatedTarget=this.target;}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;Event.keys=new Abstract({'enter':13,'up':38,'down':40,'left':37,'right':39,'esc':27,'space':32,'backspace':8,'tab':9,'delete':46});Element.Methods.Events={addEvent:function(type,fn){this.$events=this.$events||{};this.$events[type]=this.$events[type]||{'keys':[],'values':[]};if(this.$events[type].keys.contains(fn))return this;this.$events[type].keys.push(fn);var realType=type;var custom=Element.Events[type];if(custom){if(custom.add)custom.add.call(this,fn);if(custom.map)fn=custom.map;if(custom.type)realType=custom.type;}
if(!this.addEventListener)fn=fn.create({'bind':this,'event':true});this.$events[type].values.push(fn);return(Element.NativeEvents.contains(realType))?this.addListener(realType,fn):this;},removeEvent:function(type,fn){if(!this.$events||!this.$events[type])return this;var pos=this.$events[type].keys.indexOf(fn);if(pos==-1)return this;var key=this.$events[type].keys.splice(pos,1)[0];var value=this.$events[type].values.splice(pos,1)[0];var custom=Element.Events[type];if(custom){if(custom.remove)custom.remove.call(this,fn);if(custom.type)type=custom.type;}
return(Element.NativeEvents.contains(type))?this.removeListener(type,value):this;},addEvents:function(source){return Element.setMany(this,'addEvent',source);},removeEvents:function(type){if(!this.$events)return this;if(!type){for(var evType in this.$events)this.removeEvents(evType);this.$events=null;}else if(this.$events[type]){this.$events[type].keys.each(function(fn){this.removeEvent(type,fn);},this);this.$events[type]=null;}
return this;},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}
return this;},cloneEvents:function(from,type){if(!from.$events)return this;if(!type){for(var evType in from.$events)this.cloneEvents(from,evType);}else if(from.$events[type]){from.$events[type].keys.each(function(fn){this.addEvent(type,fn);},this);}
return this;}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({'mouseenter':{type:'mouseover',map:function(event){event=new Event(event);if(event.relatedTarget!=this&&!this.hasChild(event.relatedTarget))this.fireEvent('mouseenter',event);}},'mouseleave':{type:'mouseout',map:function(event){event=new Event(event);if(event.relatedTarget!=this&&!this.hasChild(event.relatedTarget))this.fireEvent('mouseleave',event);}},'mousewheel':{type:(window.gecko)?'DOMMouseScroll':'mousewheel'}});Element.NativeEvents=['click','dblclick','mouseup','mousedown','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','keydown','keypress','keyup','load','unload','beforeunload','resize','move','focus','blur','change','submit','reset','select','error','abort','contextmenu','scroll'];Function.extend({bindWithEvent:function(bind,args){return this.create({'bind':bind,'arguments':args,'event':Event});}});Elements.extend({filterByTag:function(tag){return new Elements(this.filter(function(el){return(Element.getTag(el)==tag);}));},filterByClass:function(className,nocash){var elements=this.filter(function(el){return(el.className&&el.className.contains(className,' '));});return(nocash)?elements:new Elements(elements);},filterById:function(id,nocash){var elements=this.filter(function(el){return(el.id==id);});return(nocash)?elements:new Elements(elements);},filterByAttribute:function(name,operator,value,nocash){var elements=this.filter(function(el){var current=Element.getProperty(el,name);if(!current)return false;if(!operator)return true;switch(operator){case'=':return(current==value);case'*=':return(current.contains(value));case'^=':return(current.substr(0,value.length)==value);case'$=':return(current.substr(current.length-value.length)==value);case'!=':return(current!=value);case'~=':return current.contains(value,' ');}
return false;});return(nocash)?elements:new Elements(elements);}});function $E(selector,filter){return($(filter)||document).getElement(selector);};function $ES(selector,filter){return($(filter)||document).getElementsBySelector(selector);};$$.shared={'regexp':/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,'xpath':{getParam:function(items,context,param,i){var temp=[context.namespaceURI?'xhtml:':'',param[1]];if(param[2])temp.push('[@id="',param[2],'"]');if(param[3])temp.push('[contains(concat(" ", @class, " "), " ',param[3],' ")]');if(param[4]){if(param[5]&&param[6]){switch(param[5]){case'*=':temp.push('[contains(@',param[4],', "',param[6],'")]');break;case'^=':temp.push('[starts-with(@',param[4],', "',param[6],'")]');break;case'$=':temp.push('[substring(@',param[4],', string-length(@',param[4],') - ',param[6].length,' + 1) = "',param[6],'"]');break;case'=':temp.push('[@',param[4],'="',param[6],'"]');break;case'!=':temp.push('[@',param[4],'!="',param[6],'"]');}}else{temp.push('[@',param[4],']');}}
items.push(temp.join(''));return items;},getItems:function(items,context,nocash){var elements=[];var xpath=document.evaluate('.//'+items.join('//'),context,$$.shared.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,j=xpath.snapshotLength;i<j;i++)elements.push(xpath.snapshotItem(i));return(nocash)?elements:new Elements(elements.map($));}},'normal':{getParam:function(items,context,param,i){if(i==0){if(param[2]){var el=context.getElementById(param[2]);if(!el||((param[1]!='*')&&(Element.getTag(el)!=param[1])))return false;items=[el];}else{items=$A(context.getElementsByTagName(param[1]));}}else{items=$$.shared.getElementsByTagName(items,param[1]);if(param[2])items=Elements.filterById(items,param[2],true);}
if(param[3])items=Elements.filterByClass(items,param[3],true);if(param[4])items=Elements.filterByAttribute(items,param[4],param[5],param[6],true);return items;},getItems:function(items,context,nocash){return(nocash)?items:$$.unique(items);}},resolver:function(prefix){return(prefix=='xhtml')?'http://www.w3.org/1999/xhtml':false;},getElementsByTagName:function(context,tagName){var found=[];for(var i=0,j=context.length;i<j;i++)found.extend(context[i].getElementsByTagName(tagName));return found;}};$$.shared.method=(window.xpath)?'xpath':'normal';Element.Methods.Dom={getElements:function(selector,nocash){var items=[];selector=selector.trim().split(' ');for(var i=0,j=selector.length;i<j;i++){var sel=selector[i];var param=sel.match($$.shared.regexp);if(!param)break;param[1]=param[1]||'*';var temp=$$.shared[$$.shared.method].getParam(items,this,param,i);if(!temp)break;items=temp;}
return $$.shared[$$.shared.method].getItems(items,this,nocash);},getElement:function(selector){return $(this.getElements(selector,true)[0]||false);},getElementsBySelector:function(selector,nocash){var elements=[];selector=selector.split(',');for(var i=0,j=selector.length;i<j;i++)elements=elements.concat(this.getElements(selector[i],true));return(nocash)?elements:$$.unique(elements);}};Element.extend({getElementById:function(id){var el=document.getElementById(id);if(!el)return false;for(var parent=el.parentNode;parent!=this;parent=parent.parentNode){if(!parent)return false;}
return el;},getElementsByClassName:function(className){return this.getElements('.'+className);}});document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);Element.extend({getValue:function(){switch(this.getTag()){case'select':var values=[];$each(this.options,function(option){if(option.selected)values.push($pick(option.value,option.text));});return(this.multiple)?values:values[0];case'input':if(!(this.checked&&['checkbox','radio'].contains(this.type))&&!['hidden','text','password'].contains(this.type))break;case'textarea':return this.value;}
return false;},getFormElements:function(){return $$(this.getElementsByTagName('input'),this.getElementsByTagName('select'),this.getElementsByTagName('textarea'));},toQueryString:function(){var queryString=[];this.getFormElements().each(function(el){var name=el.name;var value=el.getValue();if(value===false||!name||el.disabled)return;var qs=function(val){queryString.push(name+'='+encodeURIComponent(val));};if($type(value)=='array')value.each(qs);else qs(value);});return queryString.join('&');}});Element.extend({scrollTo:function(x,y){this.scrollLeft=x;this.scrollTop=y;},getSize:function(){return{'scroll':{'x':this.scrollLeft,'y':this.scrollTop},'size':{'x':this.offsetWidth,'y':this.offsetHeight},'scrollSize':{'x':this.scrollWidth,'y':this.scrollHeight}};},getPosition:function(overflown){overflown=overflown||[];var el=this,left=0,top=0;do{left+=el.offsetLeft||0;top+=el.offsetTop||0;el=el.offsetParent;}while(el);overflown.each(function(element){left-=element.scrollLeft||0;top-=element.scrollTop||0;});return{'x':left,'y':top};},getTop:function(overflown){return this.getPosition(overflown).y;},getLeft:function(overflown){return this.getPosition(overflown).x;},getCoordinates:function(overflown){var position=this.getPosition(overflown);var obj={'width':this.offsetWidth,'height':this.offsetHeight,'left':position.x,'top':position.y};obj.right=obj.left+obj.width;obj.bottom=obj.top+obj.height;return obj;}});Element.Events.domready={add:function(fn){if(window.loaded){fn.call(this);return;}
var domReady=function(){if(window.loaded)return;window.loaded=true;window.timer=$clear(window.timer);this.fireEvent('domready');}.bind(this);if(document.readyState&&window.webkit){window.timer=function(){if(['loaded','complete'].contains(document.readyState))domReady();}.periodical(50);}else if(document.readyState&&window.ie){if(!$('ie_ready')){var src=(window.location.protocol=='https:')?'://0':'javascript:void(0)';document.write('<script id="ie_ready" defer src="'+src+'"><\/script>');$('ie_ready').onreadystatechange=function(){if(this.readyState=='complete')domReady();};}}else{window.addListener("load",domReady);document.addListener("DOMContentLoaded",domReady);}}};window.onDomReady=function(fn){return this.addEvent('domready',fn);};window.extend({getWidth:function(){if(this.webkit419)return this.innerWidth;if(this.opera)return document.body.clientWidth;return document.documentElement.clientWidth;},getHeight:function(){if(this.webkit419)return this.innerHeight;if(this.opera)return document.body.clientHeight;return document.documentElement.clientHeight;},getScrollWidth:function(){if(this.ie)return Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth);if(this.webkit)return document.body.scrollWidth;return document.documentElement.scrollWidth;},getScrollHeight:function(){if(this.ie)return Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight);if(this.webkit)return document.body.scrollHeight;return document.documentElement.scrollHeight;},getScrollLeft:function(){return this.pageXOffset||document.documentElement.scrollLeft;},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollTop;},getSize:function(){return{'size':{'x':this.getWidth(),'y':this.getHeight()},'scrollSize':{'x':this.getScrollWidth(),'y':this.getScrollHeight()},'scroll':{'x':this.getScrollLeft(),'y':this.getScrollTop()}};},getPosition:function(){return{'x':0,'y':0};}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(p){return-(Math.cos(Math.PI*p)-1)/2;},duration:500,unit:'px',wait:true,fps:50},initialize:function(options){this.element=this.element||null;this.setOptions(options);if(this.options.initialize)this.options.initialize.call(this);},step:function(){var time=$time();if(time<this.time+this.options.duration){this.delta=this.options.transition((time-this.time)/this.options.duration);this.setNow();this.increase();}else{this.stop(true);this.set(this.to);this.fireEvent('onComplete',this.element,10);this.callChain();}},set:function(to){this.now=to;this.increase();return this;},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(from,to){return(to-from)*this.delta+from;},start:function(from,to){if(!this.options.wait)this.stop();else if(this.timer)return this;this.from=from;this.to=to;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);this.fireEvent('onStart',this.element);return this;},stop:function(end){if(!this.timer)return this;this.timer=$clear(this.timer);if(!end)this.fireEvent('onCancel',this.element);return this;},custom:function(from,to){return this.start(from,to);},clearTimer:function(end){return this.stop(end);}});Fx.Base.implement(new Chain,new Events,new Options);Fx.CSS={select:function(property,to){if(property.test(/color/i))return this.Color;var type=$type(to);if((type=='array')||(type=='string'&&to.contains(' ')))return this.Multi;return this.Single;},parse:function(el,property,fromTo){if(!fromTo.push)fromTo=[fromTo];var from=fromTo[0],to=fromTo[1];if(!$chk(to)){to=from;from=el.getStyle(property);}
var css=this.select(property,to);return{'from':css.parse(from),'to':css.parse(to),'css':css};}};Fx.CSS.Single={parse:function(value){return parseFloat(value);},getNow:function(from,to,fx){return fx.compute(from,to);},getValue:function(value,unit,property){if(unit=='px'&&property!='opacity')value=Math.round(value);return value+unit;}};Fx.CSS.Multi={parse:function(value){return value.push?value:value.split(' ').map(function(v){return parseFloat(v);});},getNow:function(from,to,fx){var now=[];for(var i=0;i<from.length;i++)now[i]=fx.compute(from[i],to[i]);return now;},getValue:function(value,unit,property){if(unit=='px'&&property!='opacity')value=value.map(Math.round);return value.join(unit+' ')+unit;}};Fx.CSS.Color={parse:function(value){return value.push?value:value.hexToRgb(true);},getNow:function(from,to,fx){var now=[];for(var i=0;i<from.length;i++)now[i]=Math.round(fx.compute(from[i],to[i]));return now;},getValue:function(value){return'rgb('+value.join(',')+')';}};Fx.Style=Fx.Base.extend({initialize:function(el,property,options){this.element=$(el);this.property=property;this.parent(options);},hide:function(){return this.set(0);},setNow:function(){this.now=this.css.getNow(this.from,this.to,this);},set:function(to){this.css=Fx.CSS.select(this.property,to);return this.parent(this.css.parse(to));},start:function(from,to){if(this.timer&&this.options.wait)return this;var parsed=Fx.CSS.parse(this.element,this.property,[from,to]);this.css=parsed.css;return this.parent(parsed.from,parsed.to);},increase:function(){this.element.setStyle(this.property,this.css.getValue(this.now,this.options.unit,this.property));}});Element.extend({effect:function(property,options){return new Fx.Style(this,property,options);}});Fx.Styles=Fx.Base.extend({initialize:function(el,options){this.element=$(el);this.parent(options);},setNow:function(){for(var p in this.from)this.now[p]=this.css[p].getNow(this.from[p],this.to[p],this);},set:function(to){var parsed={};this.css={};for(var p in to){this.css[p]=Fx.CSS.select(p,to[p]);parsed[p]=this.css[p].parse(to[p]);}
return this.parent(parsed);},start:function(obj){if(this.timer&&this.options.wait)return this;this.now={};this.css={};var from={},to={};for(var p in obj){var parsed=Fx.CSS.parse(this.element,p,obj[p]);from[p]=parsed.from;to[p]=parsed.to;this.css[p]=parsed.css;}
return this.parent(from,to);},increase:function(){for(var p in this.now)this.element.setStyle(p,this.css[p].getValue(this.now[p],this.options.unit,p));}});Element.extend({effects:function(options){return new Fx.Styles(this,options);}});Fx.Elements=Fx.Base.extend({initialize:function(elements,options){this.elements=$$(elements);this.parent(options);},setNow:function(){for(var i in this.from){var iFrom=this.from[i],iTo=this.to[i],iCss=this.css[i],iNow=this.now[i]={};for(var p in iFrom)iNow[p]=iCss[p].getNow(iFrom[p],iTo[p],this);}},set:function(to){var parsed={};this.css={};for(var i in to){var iTo=to[i],iCss=this.css[i]={},iParsed=parsed[i]={};for(var p in iTo){iCss[p]=Fx.CSS.select(p,iTo[p]);iParsed[p]=iCss[p].parse(iTo[p]);}}
return this.parent(parsed);},start:function(obj){if(this.timer&&this.options.wait)return this;this.now={};this.css={};var from={},to={};for(var i in obj){var iProps=obj[i],iFrom=from[i]={},iTo=to[i]={},iCss=this.css[i]={};for(var p in iProps){var parsed=Fx.CSS.parse(this.elements[i],p,iProps[p]);iFrom[p]=parsed.from;iTo[p]=parsed.to;iCss[p]=parsed.css;}}
return this.parent(from,to);},increase:function(){for(var i in this.now){var iNow=this.now[i],iCss=this.css[i];for(var p in iNow)this.elements[i].setStyle(p,iCss[p].getValue(iNow[p],this.options.unit,p));}}});Fx.Scroll=Fx.Base.extend({options:{overflown:[],offset:{'x':0,'y':0},wheelStops:true},initialize:function(element,options){this.now=[];this.element=$(element);this.bound={'stop':this.stop.bind(this,false)};this.parent(options);if(this.options.wheelStops){this.addEvent('onStart',function(){document.addEvent('mousewheel',this.bound.stop);}.bind(this));this.addEvent('onComplete',function(){document.removeEvent('mousewheel',this.bound.stop);}.bind(this));}},setNow:function(){for(var i=0;i<2;i++)this.now[i]=this.compute(this.from[i],this.to[i]);},scrollTo:function(x,y){if(this.timer&&this.options.wait)return this;var el=this.element.getSize();var values={'x':x,'y':y};for(var z in el.size){var max=el.scrollSize[z]-el.size[z];if($chk(values[z]))values[z]=($type(values[z])=='number')?values[z].limit(0,max):max;else values[z]=el.scroll[z];values[z]+=this.options.offset[z];}
return this.start([el.scroll.x,el.scroll.y],[values.x,values.y]);},toTop:function(){return this.scrollTo(false,0);},toBottom:function(){return this.scrollTo(false,'full');},toLeft:function(){return this.scrollTo(0,false);},toRight:function(){return this.scrollTo('full',false);},toElement:function(el){var parent=this.element.getPosition(this.options.overflown);var target=$(el).getPosition(this.options.overflown);return this.scrollTo(target.x-parent.x,target.y-parent.y);},increase:function(){this.element.scrollTo(this.now[0],this.now[1]);}});Fx.Slide=Fx.Base.extend({options:{mode:'vertical'},initialize:function(el,options){this.element=$(el);this.wrapper=new Element('div',{'styles':$extend(this.element.getStyles('margin'),{'overflow':'hidden'})}).injectAfter(this.element).adopt(this.element);this.element.setStyle('margin',0);this.setOptions(options);this.now=[];this.parent(this.options);this.open=true;this.addEvent('onComplete',function(){this.open=(this.now[0]===0);});if(window.webkit419)this.addEvent('onComplete',function(){if(this.open)this.element.remove().inject(this.wrapper);});},setNow:function(){for(var i=0;i<2;i++)this.now[i]=this.compute(this.from[i],this.to[i]);},vertical:function(){this.margin='margin-top';this.layout='height';this.offset=this.element.offsetHeight;},horizontal:function(){this.margin='margin-left';this.layout='width';this.offset=this.element.offsetWidth;},slideIn:function(mode){this[mode||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[0,this.offset]);},slideOut:function(mode){this[mode||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[-this.offset,0]);},hide:function(mode){this[mode||this.options.mode]();this.open=false;return this.set([-this.offset,0]);},show:function(mode){this[mode||this.options.mode]();this.open=true;return this.set([0,this.offset]);},toggle:function(mode){if(this.wrapper.offsetHeight==0||this.wrapper.offsetWidth==0)return this.slideIn(mode);return this.slideOut(mode);},increase:function(){this.element.setStyle(this.margin,this.now[0]+this.options.unit);this.wrapper.setStyle(this.layout,this.now[1]+this.options.unit);}});Fx.Transition=function(transition,params){params=params||[];if($type(params)!='array')params=[params];return $extend(transition,{easeIn:function(pos){return transition(pos,params);},easeOut:function(pos){return 1-transition(1-pos,params);},easeInOut:function(pos){return(pos<=0.5)?transition(2*pos,params)/2:(2-transition(2*(1-pos),params))/2;}});};Fx.Transitions=new Abstract({linear:function(p){return p;}});Fx.Transitions.extend=function(transitions){for(var transition in transitions){Fx.Transitions[transition]=new Fx.Transition(transitions[transition]);Fx.Transitions.compat(transition);}};Fx.Transitions.compat=function(transition){['In','Out','InOut'].each(function(easeType){Fx.Transitions[transition.toLowerCase()+easeType]=Fx.Transitions[transition]['ease'+easeType];});};Fx.Transitions.extend({Pow:function(p,x){return Math.pow(p,x[0]||6);},Expo:function(p){return Math.pow(2,8*(p-1));},Circ:function(p){return 1-Math.sin(Math.acos(p));},Sine:function(p){return 1-Math.sin((1-p)*Math.PI/2);},Back:function(p,x){x=x[0]||1.618;return Math.pow(p,2)*((x+1)*p-x);},Bounce:function(p){var value;for(var a=0,b=1;1;a+=b,b/=2){if(p>=(7-4*a)/11){value=-Math.pow((11-6*a-11*p)/4,2)+b*b;break;}}
return value;},Elastic:function(p,x){return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x[0]||1)/3);}});['Quad','Cubic','Quart','Quint'].each(function(transition,i){Fx.Transitions[transition]=new Fx.Transition(function(p){return Math.pow(p,[i+2]);});Fx.Transitions.compat(transition);});var Drag={};Drag.Base=new Class({options:{handle:false,unit:'px',onStart:Class.empty,onBeforeStart:Class.empty,onComplete:Class.empty,onSnap:Class.empty,onDrag:Class.empty,limit:false,modifiers:{x:'left',y:'top'},grid:false,snap:6},initialize:function(el,options){this.setOptions(options);this.element=$(el);this.handle=$(this.options.handle)||this.element;this.mouse={'now':{},'pos':{}};this.value={'start':{},'now':{}};this.bound={'start':this.start.bindWithEvent(this),'check':this.check.bindWithEvent(this),'drag':this.drag.bindWithEvent(this),'stop':this.stop.bind(this)};this.attach();if(this.options.initialize)this.options.initialize.call(this);},attach:function(){this.handle.addEvent('mousedown',this.bound.start);return this;},detach:function(){this.handle.removeEvent('mousedown',this.bound.start);return this;},start:function(event){this.fireEvent('onBeforeStart',this.element);this.mouse.start=event.page;var limit=this.options.limit;this.limit={'x':[],'y':[]};for(var z in this.options.modifiers){if(!this.options.modifiers[z])continue;this.value.now[z]=this.element.getStyle(this.options.modifiers[z]).toInt();this.mouse.pos[z]=event.page[z]-this.value.now[z];if(limit&&limit[z]){for(var i=0;i<2;i++){if($chk(limit[z][i]))this.limit[z][i]=($type(limit[z][i])=='function')?limit[z][i]():limit[z][i];}}}
if($type(this.options.grid)=='number')this.options.grid={'x':this.options.grid,'y':this.options.grid};document.addListener('mousemove',this.bound.check);document.addListener('mouseup',this.bound.stop);this.fireEvent('onStart',this.element);event.stop();},check:function(event){var distance=Math.round(Math.sqrt(Math.pow(event.page.x-this.mouse.start.x,2)+Math.pow(event.page.y-this.mouse.start.y,2)));if(distance>this.options.snap){document.removeListener('mousemove',this.bound.check);document.addListener('mousemove',this.bound.drag);this.drag(event);this.fireEvent('onSnap',this.element);}
event.stop();},drag:function(event){this.out=false;this.mouse.now=event.page;for(var z in this.options.modifiers){if(!this.options.modifiers[z])continue;this.value.now[z]=this.mouse.now[z]-this.mouse.pos[z];if(this.limit[z]){if($chk(this.limit[z][1])&&(this.value.now[z]>this.limit[z][1])){this.value.now[z]=this.limit[z][1];this.out=true;}else if($chk(this.limit[z][0])&&(this.value.now[z]<this.limit[z][0])){this.value.now[z]=this.limit[z][0];this.out=true;}}
if(this.options.grid[z])this.value.now[z]-=(this.value.now[z]%this.options.grid[z]);this.element.setStyle(this.options.modifiers[z],this.value.now[z]+this.options.unit);}
this.fireEvent('onDrag',this.element);event.stop();},stop:function(){document.removeListener('mousemove',this.bound.check);document.removeListener('mousemove',this.bound.drag);document.removeListener('mouseup',this.bound.stop);this.fireEvent('onComplete',this.element);}});Drag.Base.implement(new Events,new Options);Element.extend({makeResizable:function(options){return new Drag.Base(this,$merge({modifiers:{x:'width',y:'height'}},options));}});Drag.Move=Drag.Base.extend({options:{droppables:[],container:false,overflown:[]},initialize:function(el,options){this.setOptions(options);this.element=$(el);this.droppables=$$(this.options.droppables);this.container=$(this.options.container);this.position={'element':this.element.getStyle('position'),'container':false};if(this.container)this.position.container=this.container.getStyle('position');if(!['relative','absolute','fixed'].contains(this.position.element))this.position.element='absolute';var top=this.element.getStyle('top').toInt();var left=this.element.getStyle('left').toInt();if(this.position.element=='absolute'&&!['relative','absolute','fixed'].contains(this.position.container)){top=$chk(top)?top:this.element.getTop(this.options.overflown);left=$chk(left)?left:this.element.getLeft(this.options.overflown);}else{top=$chk(top)?top:0;left=$chk(left)?left:0;}
this.element.setStyles({'top':top,'left':left,'position':this.position.element});this.parent(this.element);},start:function(event){this.overed=null;if(this.container){var cont=this.container.getCoordinates();var el=this.element.getCoordinates();if(this.position.element=='absolute'&&!['relative','absolute','fixed'].contains(this.position.container)){this.options.limit={'x':[cont.left,cont.right-el.width],'y':[cont.top,cont.bottom-el.height]};}else{this.options.limit={'y':[0,cont.height-el.height],'x':[0,cont.width-el.width]};}}
this.parent(event);},drag:function(event){this.parent(event);var overed=this.out?false:this.droppables.filter(this.checkAgainst,this).getLast();if(this.overed!=overed){if(this.overed)this.overed.fireEvent('leave',[this.element,this]);this.overed=overed?overed.fireEvent('over',[this.element,this]):null;}
return this;},checkAgainst:function(el){el=el.getCoordinates(this.options.overflown);var now=this.mouse.now;return(now.x>el.left&&now.x<el.right&&now.y<el.bottom&&now.y>el.top);},stop:function(){if(this.overed&&!this.out)this.overed.fireEvent('drop',[this.element,this]);else this.element.fireEvent('emptydrop',this);this.parent();return this;}});Element.extend({makeDraggable:function(options){return new Drag.Move(this,options);}});var XHR=new Class({options:{method:'post',async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:'utf-8',autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject('Microsoft.XMLHTTP'):false);return this;},initialize:function(options){this.setTransport().setOptions(options);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=='post'){var encoding=(this.options.encoding)?'; charset='+this.options.encoding:'';this.setHeader('Content-type','application/x-www-form-urlencoded'+encoding);}
if(this.options.initialize)this.options.initialize.call(this);},onStateChange:function(){if(this.transport.readyState!=4||!this.running)return;this.running=false;var status=0;try{status=this.transport.status;}catch(e){};if(this.options.isSuccess.call(this,status))this.onSuccess();else this.onFailure();this.transport.onreadystatechange=Class.empty;},isSuccess:function(status){return((status>=200)&&(status<300));},onSuccess:function(){this.response={'text':this.transport.responseText,'xml':this.transport.responseXML};this.fireEvent('onSuccess',[this.response.text,this.response.xml]);this.callChain();},onFailure:function(){this.fireEvent('onFailure',this.transport);},setHeader:function(name,value){this.headers[name]=value;return this;},send:function(url,data){if(this.options.autoCancel)this.cancel();else if(this.running)return this;this.running=true;if(data&&this.options.method=='get'){url=url+(url.contains('?')?'&':'?')+data;data=null;}
this.transport.open(this.options.method.toUpperCase(),url,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=='post')&&this.transport.overrideMimeType)this.setHeader('Connection','close');$extend(this.headers,this.options.headers);for(var type in this.headers)try{this.transport.setRequestHeader(type,this.headers[type]);}catch(e){};this.fireEvent('onRequest');this.transport.send($pick(data,null));return this;},cancel:function(){if(!this.running)return this;this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;this.setTransport();this.fireEvent('onCancel');return this;}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(url,options){this.addEvent('onSuccess',this.onComplete);this.setOptions(options);this.options.data=this.options.data||this.options.postBody;if(!['post','get'].contains(this.options.method)){this._method='_method='+this.options.method;this.options.method='post';}
this.parent();this.setHeader('X-Requested-With','XMLHttpRequest');this.setHeader('Accept','text/javascript, text/html, application/xml, text/xml, */*');this.url=url;},onComplete:function(){if(this.options.update)$(this.options.update).empty().setHTML(this.response.text);if(this.options.evalScripts||this.options.evalResponse)this.evalScripts();this.fireEvent('onComplete',[this.response.text,this.response.xml],20);},request:function(data){data=data||this.options.data;switch($type(data)){case'element':data=$(data).toQueryString();break;case'object':data=Object.toQueryString(data);}
if(this._method)data=(data)?[this._method,data].join('&'):this._method;return this.send(this.url,data);},evalScripts:function(){var script,scripts;if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader('Content-type')))scripts=this.response.text;else{scripts=[];var regexp=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((script=regexp.exec(this.response.text)))scripts.push(script[1]);scripts=scripts.join('\n');}
if(scripts)(window.execScript)?window.execScript(scripts):window.setTimeout(scripts,0);},getHeader:function(name){try{return this.transport.getResponseHeader(name);}catch(e){};return null;}});Object.toQueryString=function(source){var queryString=[];for(var property in source)queryString.push(encodeURIComponent(property)+'='+encodeURIComponent(source[property]));return queryString.join('&');};Element.extend({send:function(options){return new Ajax(this.getProperty('action'),$merge({data:this.toQueryString()},options,{method:'post'})).request();}});var Cookie=new Abstract({options:{domain:false,path:false,duration:false,secure:false},set:function(key,value,options){options=$merge(this.options,options);value=encodeURIComponent(value);if(options.domain)value+='; domain='+options.domain;if(options.path)value+='; path='+options.path;if(options.duration){var date=new Date();date.setTime(date.getTime()+options.duration*24*60*60*1000);value+='; expires='+date.toGMTString();}
if(options.secure)value+='; secure';document.cookie=key+'='+value;return $extend(options,{'key':key,'value':value});},get:function(key){var value=document.cookie.match('(?:^|;)\\s*'+key.escapeRegExp()+'=([^;]*)');return value?decodeURIComponent(value[1]):false;},remove:function(cookie,options){if($type(cookie)=='object')this.set(cookie.key,'',$merge(cookie,{duration:-1}));else this.set(cookie,'',$merge(options,{duration:-1}));}});var Json={toString:function(obj){switch($type(obj)){case'string':return'"'+obj.replace(/(["\\])/g,'\\$1')+'"';case'array':return'['+obj.map(Json.toString).join(',')+']';case'object':var string=[];for(var property in obj)string.push(Json.toString(property)+':'+Json.toString(obj[property]));return'{'+string.join(',')+'}';case'number':if(isFinite(obj))break;case false:return'null';}
return String(obj);},evaluate:function(str,secure){return(($type(str)!='string')||(secure&&!str.test(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/)))?null:eval('('+str+')');}};Json.Remote=XHR.extend({initialize:function(url,options){this.url=url;this.addEvent('onSuccess',this.onComplete);this.parent(options);this.setHeader('X-Request','JSON');},send:function(obj){return this.parent(this.url,'json='+Json.toString(obj));},onComplete:function(){this.fireEvent('onComplete',[Json.evaluate(this.response.text,this.options.secure)]);}});var Asset=new Abstract({javascript:function(source,properties){properties=$merge({'onload':Class.empty},properties);var script=new Element('script',{'src':source}).addEvents({'load':properties.onload,'readystatechange':function(){if(this.readyState=='complete')this.fireEvent('load');}});delete properties.onload;return script.setProperties(properties).inject(document.head);},css:function(source,properties){return new Element('link',$merge({'rel':'stylesheet','media':'screen','type':'text/css','href':source},properties)).inject(document.head);},image:function(source,properties){properties=$merge({'onload':Class.empty,'onabort':Class.empty,'onerror':Class.empty},properties);var image=new Image();image.src=source;var element=new Element('img',{'src':source});['load','abort','error'].each(function(type){var event=properties['on'+type];delete properties['on'+type];element.addEvent(type,function(){this.removeEvent(type,arguments.callee);event.call(this);});});if(image.width&&image.height)element.fireEvent('load',element,1);return element.setProperties(properties);},images:function(sources,options){options=$merge({onComplete:Class.empty,onProgress:Class.empty},options);if(!sources.push)sources=[sources];var images=[];var counter=0;sources.each(function(source){var img=new Asset.image(source,{'onload':function(){options.onProgress.call(this,counter);counter++;if(counter==sources.length)options.onComplete();}});images.push(img);});return new Elements(images);}});var Hash=new Class({length:0,initialize:function(object){this.obj=object||{};this.setLength();},get:function(key){return(this.hasKey(key))?this.obj[key]:null;},hasKey:function(key){return(key in this.obj);},set:function(key,value){if(!this.hasKey(key))this.length++;this.obj[key]=value;return this;},setLength:function(){this.length=0;for(var p in this.obj)this.length++;return this;},remove:function(key){if(this.hasKey(key)){delete this.obj[key];this.length--;}
return this;},each:function(fn,bind){$each(this.obj,fn,bind);},extend:function(obj){$extend(this.obj,obj);return this.setLength();},merge:function(){this.obj=$merge.apply(null,[this.obj].extend(arguments));return this.setLength();},empty:function(){this.obj={};this.length=0;return this;},keys:function(){var keys=[];for(var property in this.obj)keys.push(property);return keys;},values:function(){var values=[];for(var property in this.obj)values.push(this.obj[property]);return values;}});function $H(obj){return new Hash(obj);};Hash.Cookie=Hash.extend({initialize:function(name,options){this.name=name;this.options=$extend({'autoSave':true},options||{});this.load();},save:function(){if(this.length==0){Cookie.remove(this.name,this.options);return true;}
var str=Json.toString(this.obj);if(str.length>4096)return false;Cookie.set(this.name,str,this.options);return true;},load:function(){this.obj=Json.evaluate(Cookie.get(this.name),true)||{};this.setLength();}});Hash.Cookie.Methods={};['extend','set','merge','empty','remove'].each(function(method){Hash.Cookie.Methods[method]=function(){Hash.prototype[method].apply(this,arguments);if(this.options.autoSave)this.save();return this;};});Hash.Cookie.implement(Hash.Cookie.Methods);var Color=new Class({initialize:function(color,type){type=type||(color.push?'rgb':'hex');var rgb,hsb;switch(type){case'rgb':rgb=color;hsb=rgb.rgbToHsb();break;case'hsb':rgb=color.hsbToRgb();hsb=color;break;default:rgb=color.hexToRgb(true);hsb=rgb.rgbToHsb();}
rgb.hsb=hsb;rgb.hex=rgb.rgbToHex();return $extend(rgb,Color.prototype);},mix:function(){var colors=$A(arguments);var alpha=($type(colors[colors.length-1])=='number')?colors.pop():50;var rgb=this.copy();colors.each(function(color){color=new Color(color);for(var i=0;i<3;i++)rgb[i]=Math.round((rgb[i]/100*(100-alpha))+(color[i]/100*alpha));});return new Color(rgb,'rgb');},invert:function(){return new Color(this.map(function(value){return 255-value;}));},setHue:function(value){return new Color([value,this.hsb[1],this.hsb[2]],'hsb');},setSaturation:function(percent){return new Color([this.hsb[0],percent,this.hsb[2]],'hsb');},setBrightness:function(percent){return new Color([this.hsb[0],this.hsb[1],percent],'hsb');}});function $RGB(r,g,b){return new Color([r,g,b],'rgb');};function $HSB(h,s,b){return new Color([h,s,b],'hsb');};Array.extend({rgbToHsb:function(){var red=this[0],green=this[1],blue=this[2];var hue,saturation,brightness;var max=Math.max(red,green,blue),min=Math.min(red,green,blue);var delta=max-min;brightness=max/255;saturation=(max!=0)?delta/max:0;if(saturation==0){hue=0;}else{var rr=(max-red)/delta;var gr=(max-green)/delta;var br=(max-blue)/delta;if(red==max)hue=br-gr;else if(green==max)hue=2+rr-br;else hue=4+gr-rr;hue/=6;if(hue<0)hue++;}
return[Math.round(hue*360),Math.round(saturation*100),Math.round(brightness*100)];},hsbToRgb:function(){var br=Math.round(this[2]/100*255);if(this[1]==0){return[br,br,br];}else{var hue=this[0]%360;var f=hue%60;var p=Math.round((this[2]*(100-this[1]))/10000*255);var q=Math.round((this[2]*(6000-this[1]*f))/600000*255);var t=Math.round((this[2]*(6000-this[1]*(60-f)))/600000*255);switch(Math.floor(hue/60)){case 0:return[br,t,p];case 1:return[q,br,p];case 2:return[p,br,t];case 3:return[p,q,br];case 4:return[t,p,br];case 5:return[br,p,q];}}
return false;}});var Scroller=new Class({options:{area:20,velocity:1,onChange:function(x,y){this.element.scrollTo(x,y);}},initialize:function(element,options){this.setOptions(options);this.element=$(element);this.mousemover=([window,document].contains(element))?$(document.body):this.element;},start:function(){this.coord=this.getCoords.bindWithEvent(this);this.mousemover.addListener('mousemove',this.coord);},stop:function(){this.mousemover.removeListener('mousemove',this.coord);this.timer=$clear(this.timer);},getCoords:function(event){this.page=(this.element==window)?event.client:event.page;if(!this.timer)this.timer=this.scroll.periodical(50,this);},scroll:function(){var el=this.element.getSize();var pos=this.element.getPosition();var change={'x':0,'y':0};for(var z in this.page){if(this.page[z]<(this.options.area+pos[z])&&el.scroll[z]!=0)
change[z]=(this.page[z]-this.options.area-pos[z])*this.options.velocity;else if(this.page[z]+this.options.area>(el.size[z]+pos[z])&&el.scroll[z]+el.size[z]!=el.scrollSize[z])
change[z]=(this.page[z]-el.size[z]+this.options.area-pos[z])*this.options.velocity;}
if(change.y||change.x)this.fireEvent('onChange',[el.scroll.x+change.x,el.scroll.y+change.y]);}});Scroller.implement(new Events,new Options);var Slider=new Class({options:{onChange:Class.empty,onComplete:Class.empty,onTick:function(pos){this.knob.setStyle(this.p,pos);},mode:'horizontal',steps:100,offset:0},initialize:function(el,knob,options){this.element=$(el);this.knob=$(knob);this.setOptions(options);this.previousChange=-1;this.previousEnd=-1;this.step=-1;this.element.addEvent('mousedown',this.clickedElement.bindWithEvent(this));var mod,offset;switch(this.options.mode){case'horizontal':this.z='x';this.p='left';mod={'x':'left','y':false};offset='offsetWidth';break;case'vertical':this.z='y';this.p='top';mod={'x':false,'y':'top'};offset='offsetHeight';}
this.max=this.element[offset]-this.knob[offset]+(this.options.offset*2);this.half=this.knob[offset]/2;this.getPos=this.element['get'+this.p.capitalize()].bind(this.element);this.knob.setStyle('position','relative').setStyle(this.p,-this.options.offset);var lim={};lim[this.z]=[-this.options.offset,this.max-this.options.offset];this.drag=new Drag.Base(this.knob,{limit:lim,modifiers:mod,snap:0,onStart:function(){this.draggedKnob();}.bind(this),onDrag:function(){this.draggedKnob();}.bind(this),onComplete:function(){this.draggedKnob();this.end();}.bind(this)});if(this.options.initialize)this.options.initialize.call(this);},set:function(step){this.step=step.limit(0,this.options.steps);this.checkStep();this.end();this.fireEvent('onTick',this.toPosition(this.step));return this;},clickedElement:function(event){var position=event.page[this.z]-this.getPos()-this.half;position=position.limit(-this.options.offset,this.max-this.options.offset);this.step=this.toStep(position);this.checkStep();this.end();this.fireEvent('onTick',position);},draggedKnob:function(){this.step=this.toStep(this.drag.value.now[this.z]);this.checkStep();},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step;this.fireEvent('onChange',this.step);}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent('onComplete',this.step+'');}},toStep:function(position){return Math.round((position+this.options.offset)/this.max*this.options.steps);},toPosition:function(step){return this.max*step/this.options.steps;}});Slider.implement(new Events);Slider.implement(new Options);var SmoothScroll=Fx.Scroll.extend({initialize:function(options){this.parent(window,options);this.links=(this.options.links)?$$(this.options.links):$$(document.links);var location=window.location.href.match(/^[^#]*/)[0]+'#';this.links.each(function(link){if(link.href.indexOf(location)!=0)return;var anchor=link.href.substr(location.length);if(anchor&&$(anchor))this.useLink(link,anchor);},this);if(!window.webkit419)this.addEvent('onComplete',function(){window.location.hash=this.anchor;});},useLink:function(link,anchor){link.addEvent('click',function(event){this.anchor=anchor;this.toElement(anchor);event.stop();}.bindWithEvent(this));}});var Sortables=new Class({options:{handles:false,onStart:Class.empty,onComplete:Class.empty,ghost:true,snap:3,onDragStart:function(element,ghost){ghost.setStyle('opacity',0.7);element.setStyle('opacity',0.7);},onDragComplete:function(element,ghost){element.setStyle('opacity',1);ghost.remove();this.trash.remove();}},initialize:function(list,options){this.setOptions(options);this.list=$(list);this.elements=this.list.getChildren();this.handles=(this.options.handles)?$$(this.options.handles):this.elements;this.bound={'start':[],'moveGhost':this.moveGhost.bindWithEvent(this)};for(var i=0,l=this.handles.length;i<l;i++){this.bound.start[i]=this.start.bindWithEvent(this,this.elements[i]);}
this.attach();if(this.options.initialize)this.options.initialize.call(this);this.bound.move=this.move.bindWithEvent(this);this.bound.end=this.end.bind(this);},attach:function(){this.handles.each(function(handle,i){handle.addEvent('mousedown',this.bound.start[i]);},this);},detach:function(){this.handles.each(function(handle,i){handle.removeEvent('mousedown',this.bound.start[i]);},this);},start:function(event,el){this.active=el;this.coordinates=this.list.getCoordinates();if(this.options.ghost){var position=el.getPosition();this.offset=event.page.y-position.y;this.trash=new Element('div').inject(document.body);this.ghost=el.clone().inject(this.trash).setStyles({'position':'absolute','left':position.x,'top':event.page.y-this.offset});document.addListener('mousemove',this.bound.moveGhost);this.fireEvent('onDragStart',[el,this.ghost]);}
document.addListener('mousemove',this.bound.move);document.addListener('mouseup',this.bound.end);this.fireEvent('onStart',el);event.stop();},moveGhost:function(event){var value=event.page.y-this.offset;value=value.limit(this.coordinates.top,this.coordinates.bottom-this.ghost.offsetHeight);this.ghost.setStyle('top',value);event.stop();},move:function(event){var now=event.page.y;this.previous=this.previous||now;var up=((this.previous-now)>0);var prev=this.active.getPrevious();var next=this.active.getNext();if(prev&&up&&now<prev.getCoordinates().bottom)this.active.injectBefore(prev);if(next&&!up&&now>next.getCoordinates().top)this.active.injectAfter(next);this.previous=now;},serialize:function(converter){return this.list.getChildren().map(converter||function(el){return this.elements.indexOf(el);},this);},end:function(){this.previous=null;document.removeListener('mousemove',this.bound.move);document.removeListener('mouseup',this.bound.end);if(this.options.ghost){document.removeListener('mousemove',this.bound.moveGhost);this.fireEvent('onDragComplete',[this.active,this.ghost]);}
this.fireEvent('onComplete',this.active);}});Sortables.implement(new Events,new Options);var Tips=new Class({options:{onShow:function(tip){tip.setStyle('visibility','visible');},onHide:function(tip){tip.setStyle('visibility','hidden');},maxTitleChars:30,showDelay:100,hideDelay:100,className:'tool',offsets:{'x':16,'y':16},fixed:false},initialize:function(elements,options){this.setOptions(options);this.toolTip=new Element('div',{'class':this.options.className+'-tip','styles':{'position':'absolute','top':'0','left':'0','visibility':'hidden'}}).inject(document.body);this.wrapper=new Element('div').inject(this.toolTip);$$(elements).each(this.build,this);if(this.options.initialize)this.options.initialize.call(this);},build:function(el){el.$tmp.myTitle=(el.href&&el.getTag()=='a')?el.href.replace('http://',''):(el.rel||false);if(el.title){var dual=el.title.split('::');if(dual.length>1){el.$tmp.myTitle=dual[0].trim();el.$tmp.myText=dual[1].trim();}else{el.$tmp.myText=el.title;}
el.removeAttribute('title');}else{el.$tmp.myText=false;}
if(el.$tmp.myTitle&&el.$tmp.myTitle.length>this.options.maxTitleChars)el.$tmp.myTitle=el.$tmp.myTitle.substr(0,this.options.maxTitleChars-1)+"&hellip;";el.addEvent('mouseenter',function(event){this.start(el);if(!this.options.fixed)this.locate(event);else this.position(el);}.bind(this));if(!this.options.fixed)el.addEvent('mousemove',this.locate.bindWithEvent(this));var end=this.end.bind(this);el.addEvent('mouseleave',end);el.addEvent('trash',end);},start:function(el){this.wrapper.empty();if(el.$tmp.myTitle){this.title=new Element('span').inject(new Element('div',{'class':this.options.className+'-title'}).inject(this.wrapper)).setHTML(el.$tmp.myTitle);}
if(el.$tmp.myText){this.text=new Element('span').inject(new Element('div',{'class':this.options.className+'-text'}).inject(this.wrapper)).setHTML(el.$tmp.myText);}
$clear(this.timer);this.timer=this.show.delay(this.options.showDelay,this);},end:function(event){$clear(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this);},position:function(element){var pos=element.getPosition();this.toolTip.setStyles({'left':pos.x+this.options.offsets.x,'top':pos.y+this.options.offsets.y});},locate:function(event){var win={'x':window.getWidth(),'y':window.getHeight()};var scroll={'x':window.getScrollLeft(),'y':window.getScrollTop()};var tip={'x':this.toolTip.offsetWidth,'y':this.toolTip.offsetHeight};var prop={'x':'left','y':'top'};for(var z in prop){var pos=event.page[z]+this.options.offsets[z];if((pos+tip[z]-scroll[z])>win[z])pos=event.page[z]-this.options.offsets[z]-tip[z];this.toolTip.setStyle(prop[z],pos);};},show:function(){if(this.options.timeout)this.timer=this.hide.delay(this.options.timeout,this);this.fireEvent('onShow',[this.toolTip]);},hide:function(){this.fireEvent('onHide',[this.toolTip]);}});Tips.implement(new Events,new Options);var Group=new Class({initialize:function(){this.instances=$A(arguments);this.events={};this.checker={};},addEvent:function(type,fn){this.checker[type]=this.checker[type]||{};this.events[type]=this.events[type]||[];if(this.events[type].contains(fn))return false;else this.events[type].push(fn);this.instances.each(function(instance,i){instance.addEvent(type,this.check.bind(this,[type,instance,i]));},this);return this;},check:function(type,instance,i){this.checker[type][i]=true;var every=this.instances.every(function(current,j){return this.checker[type][j]||false;},this);if(!every)return;this.checker[type]={};this.events[type].each(function(event){event.call(this,this.instances,instance);},this);}});var Accordion=Fx.Elements.extend({options:{onActive:Class.empty,onBackground:Class.empty,display:0,show:false,height:true,width:false,opacity:true,fixedHeight:false,fixedWidth:false,wait:false,alwaysHide:false},initialize:function(){var options,togglers,elements,container;$each(arguments,function(argument,i){switch($type(argument)){case'object':options=argument;break;case'element':container=$(argument);break;default:var temp=$$(argument);if(!togglers)togglers=temp;else elements=temp;}});this.togglers=togglers||[];this.elements=elements||[];this.container=$(container);this.setOptions(options);this.previous=-1;if(this.options.alwaysHide)this.options.wait=true;if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show;}
if(this.options.start){this.options.display=false;this.options.show=false;}
this.effects={};if(this.options.opacity)this.effects.opacity='fullOpacity';if(this.options.width)this.effects.width=this.options.fixedWidth?'fullWidth':'offsetWidth';if(this.options.height)this.effects.height=this.options.fixedHeight?'fullHeight':'scrollHeight';for(var i=0,l=this.togglers.length;i<l;i++)this.addSection(this.togglers[i],this.elements[i]);this.elements.each(function(el,i){if(this.options.show===i){this.fireEvent('onActive',[this.togglers[i],el]);}else{for(var fx in this.effects)el.setStyle(fx,0);}},this);this.parent(this.elements);if($chk(this.options.display))this.display(this.options.display);},addSection:function(toggler,element,pos){toggler=$(toggler);element=$(element);var test=this.togglers.contains(toggler);var len=this.togglers.length;this.togglers.include(toggler);this.elements.include(element);if(len&&(!test||pos)){pos=$pick(pos,len-1);toggler.injectBefore(this.togglers[pos]);element.injectAfter(toggler);}else if(this.container&&!test){toggler.inject(this.container);element.inject(this.container);}
var idx=this.togglers.indexOf(toggler);toggler.addEvent('click',this.display.bind(this,idx));if(this.options.height)element.setStyles({'padding-top':0,'border-top':'none','padding-bottom':0,'border-bottom':'none'});if(this.options.width)element.setStyles({'padding-left':0,'border-left':'none','padding-right':0,'border-right':'none'});element.fullOpacity=1;if(this.options.fixedWidth)element.fullWidth=this.options.fixedWidth;if(this.options.fixedHeight)element.fullHeight=this.options.fixedHeight;element.setStyle('overflow','hidden');if(!test){for(var fx in this.effects)element.setStyle(fx,0);}
return this;},display:function(index){index=($type(index)=='element')?this.elements.indexOf(index):index;if((this.timer&&this.options.wait)||(index===this.previous&&!this.options.alwaysHide))return this;this.previous=index;var obj={};this.elements.each(function(el,i){obj[i]={};var hide=(i!=index)||(this.options.alwaysHide&&(el.offsetHeight>0));this.fireEvent(hide?'onBackground':'onActive',[this.togglers[i],el]);for(var fx in this.effects)obj[i][fx]=hide?0:el[this.effects[fx]];},this);return this.start(obj);},showThisHideOpen:function(index){return this.display(index);}});Fx.Accordion=Accordion;

/* FILE: /plugins/system/jat3/base-themes/default/js/core.js */
/*
# ------------------------------------------------------------------------
# JA T3v2 Plugin - Template framework for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details 
# on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

function switchFontSize (ckname,val){
	var bd = document.getElementsByTagName('body');
	if (!bd || !bd.length) return;
	bd = bd[0];
	var oldclass = 'fs'+CurrentFontSize;
	switch (val) {
		case 'inc':
			if (CurrentFontSize+1 < 7) {
				CurrentFontSize++;
			}		
		break;
		case 'dec':
			if (CurrentFontSize-1 > 0) {
				CurrentFontSize--;
			}		
		break;
		case 'reset':
		default:
			CurrentFontSize = DefaultFontSize;			
	}
	var newclass = 'fs'+CurrentFontSize;
	bd.className = bd.className.replace(new RegExp('fs.?', 'g'), '');
	bd.className = trim(bd.className);
	bd.className += (bd.className?' ':'') + newclass;
	createCookie(ckname, CurrentFontSize, 365);
}

function switchTool (ckname, val) {
	createCookie(ckname, val, 365);
	window.location.reload();
}

function cpanel_reset () {	
	var matches = document.cookie.match('(?:^|;)\\s*' + tmpl_name.escapeRegExp() + '_([^=]*)=([^;]*)', 'g');
	if (!matches) return;
	for (i=0;i<matches.length;i++) {
		var ck = matches[i].match('(?:^|;)\\s*' + tmpl_name.escapeRegExp() + '_([^=]*)=([^;]*)');
		if (ck) {
			createCookie (tmpl_name+'_'+ck[1], '', -1);
		}
	}
	
	if (window.location.href.indexOf ('?')>-1) window.location.href = window.location.href.substr(0,window.location.href.indexOf ('?'));
	else window.location.reload();
}

function cpanel_apply () {
	var elems = document.getElementById('ja-cpanel-main').getElementsByTagName ('*');
	
	var usersetting = {};
	for (i=0;i<elems.length;i++) {
		var el = elems[i]; 
	    if (el.name && (match=el.name.match(/^user_(.*)$/))) {
	        var name = match[1];	        
	        var value = '';
	        if (el.tagName.toLowerCase() == 'input' && (el.type.toLowerCase()=='radio' || el.type.toLowerCase()=='checkbox')) {
	        	if (el.checked) value = el.value;
	        } else {
	        	value = el.value;
	        }
	        if (usersetting[name]) {
	        	if (value) usersetting[name] = value + ',' + usersetting[name];
	        } else {
	        	usersetting[name] = value;
	        }
	    }
	}
	
	for (var k in usersetting) {
		name = tmpl_name + '_' + k;
		value = usersetting[k];
		createCookie(name, value, 365);
	}
	
	if (window.location.href.indexOf ('?')>-1) window.location.href = window.location.href.substr(0,window.location.href.indexOf ('?'));
	else window.location.reload();
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function trim(str, chars) {
	return ltrim(rtrim(str, chars), chars);
}
 
function ltrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
 
function rtrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}

function getScreenWidth () {
    var x = 0;
    if (self.innerHeight) {
            x = self.innerWidth;
    } else if (document.documentElement && document.documentElement.clientHeight) {
            x = document.documentElement.clientWidth;
    } else if (document.body) {
            x = document.body.clientWidth;
    }
    return x;		
}

function equalHeight (els) {
	els = $$_(els);	
	if (!els || els.length < 2) return;
	var maxh = 0;
	var els_ = [];
	els.each(function(el, i){
		if (!el) return;
		//els_[i] = getDeepestWrapper (el); 
		els_[i] = el;
		var ch = els_[i].getCoordinates().height;
		maxh = (maxh < ch) ? ch : maxh;		
	},this);
	
	els_.each(function(el, i){
		if (!el) return;
		el.setStyle('min-height', maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());		
	},this);	
}

function getDeepestWrapper (el) {
	while (el.getChildren().length==1)
	{
		el = el.getChildren()[0];
	}
	return el;
}

function fixHeight (els, group1, group2) {
	els = $$_(els);
	group1 = $$_(group1);
	group2 = $$_(group2);
	if (!els || !group1) return;
	var height = 0;
	group1.each (function (el){
		if (!el) return;
		height += el.getCoordinates().height;
	});
	if (group2) {
		group2.each (function (el){
			if (!el) return;
			height -= el.getCoordinates().height;
		});
	}
	els.each(function(el, i){
		if (!el) return;
		el.setStyle('min-height', height-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());
	});
}

function addFirstLastItem (el) {
	el = $(el);
	if (!el || !el.getChildren() || !el.getChildren().length) return;
	el.getChildren ()[0].addClass ('first-item');
	el.getChildren ()[el.getChildren ().length-1].addClass ('last-item');
}

function $$_ (els) {
	if ($type(els)=='string') return $$(els);
	var els_ = [];
	els.each (function (el){
		el = $(el);
		if (el) els_.push (el);
	});
	return els_;
}

/* FILE: /plugins/system/jat3/base-themes/default/js/menu/mega.js */
/*
# ------------------------------------------------------------------------
# JA T3v2 Plugin - Template framework for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details 
# on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

var jaMegaMenuMoo = new Class({

	initialize: function(menu, options){
		this.options = $extend({
			slide:	true, //enable slide
			duration: 300, //slide speed. lower for slower, bigger for faster
			fading: false, //Enable fading
			bgopacity: 0.9, //set the transparent background. 0 to disable, 0<bgopacity<1: the opacity of the background
			delayHide: 500,
			direction: 'down',
			action: 'mouseenter', //mouseenter or click
			hidestyle: 'normal'
		}, options || {});
		this.menu = menu;
		this.childopen = new Array();
		/*
		if (typeof(window.loaded) == 'undefined' || window.loaded) {
			this.imageloaded = false;
			this.start();
		} else {*/
			this.imageloaded = false;
			//window.addEvent('load', this.start.bind(this));
			this.start();
		//}
	},
	
	start: function () {
		this.menu = $(this.menu);
		//preload images
		var images = this.menu.getElements ('img');
		if (images && images.length && !this.imageloaded) {
			var imgs = [];
			images.each (function (image) {imgs.push(image.src)});
			if (imgs.length) {
				new Asset.images(imgs, {			
					onComplete: function(){
						this.imageloaded = true;
						this.start();
					}.bind(this)
				});
				return ;
			}
		}
		this.items = this.menu.getElements ('li.mega');
		//this.items.setStyle ('position', 'relative');
		this.items.each (function(li) {
			//link item
			if ((a = li.getElement('a.mega')) && this.isChild (a, li)) li.a = a;
			else li.a = null;
			//parent
			li._parent = this.getParent (li);
			//child content
			if ((childcontent = li.getElement('.childcontent')) && this.isChild (childcontent, li)) {
				li.childcontent = childcontent;
				li.childcontent_inner = li.childcontent.getElement ('.childcontent-inner-wrap');
				var coor = li.childcontent_inner.getCoordinates ();
				li._w = li.getElement('.childcontent-inner').offsetWidth;
				li._h = li.getElement('.childcontent-inner').offsetHeight;

				li.level0 = li.getParent().hasClass('level0');
				//
				li.childcontent.setStyles ({'width':li._w+50, 'height':li._h});
				li.childcontent_inner.setStyles ({'width':li._w});
				//fix for overflow
				li.childcontent_inner1 = li.childcontent.getElement ('.childcontent-inner');
				li.childcontent_inner1.ol = false;
				if (li.childcontent_inner1.getStyle ('overflow') == 'auto' || li.childcontent_inner1.getStyle ('overflow') == 'scroll') {
					li.childcontent_inner1.ol = true;
					//fix for ie6/7
					if (window.ie6 || window.ie7) {
						li.childcontent_inner1.setStyle ('position', 'relative');
					}
					
					if (window.ie6) {
						li.childcontent_inner1.setStyle ('height', li.childcontent_inner1.getStyle ('max-height') || 400);
					}
				}

				//show direction
				if (this.options.direction == 'up') {
					if (li.level0) {
						li.childcontent.setStyle ('top', -li.childcontent.offsetHeight); //ajust top position
					} else {
						li.childcontent.setStyle ('bottom', 0);
					}
				}
	
				if (li.level0) {
					var pos = li.getPosition();
					var win = {'x': window.getWidth(), 'y': window.getHeight()};
					var scroll = {'x': window.getScrollLeft(), 'y': window.getScrollTop()};
					if (pos['x'] + li.childcontent.offsetWidth > win['x'] + scroll ['x']) li.childcontent.setStyle ('right', 0);
				}
			}
			else li.childcontent = null;
			
			if (li.childcontent && this.options.bgopacity) {
				//Make transparent background
				var bg = new Element ('div', {'class':'childcontent-bg'});
				bg.injectTop (li.childcontent_inner);
				bg.setStyles ({'width':'100%', 'height':li._h, 'opacity':this.options.bgopacity,
								'position': 'absolute', 'top': 0, 'left': 0, 'z-index': 1
								});
				if (li.childcontent.getStyle('background')) bg.setStyle ('background', li.childcontent.getStyle('background'));
				if (li.childcontent.getStyle('background-image')) bg.setStyle ('background-image', li.childcontent.getStyle('background-image'));
				if (li.childcontent.getStyle('background-repeat')) bg.setStyle ('background-repeat', li.childcontent.getStyle('background-repeat'));
				if (li.childcontent.getStyle('background-color')) bg.setStyle ('background-color', li.childcontent.getStyle('background-color'));
				li.childcontent.setStyle ('background', 'none');
				li.childcontent_inner.setStyles ({'position':'relative', 'z-index': 2});
			}
			
			if (li.childcontent && (this.options.slide || this.options.fading)) {
				//li.childcontent.setStyles ({'width': li._w});
				li.childcontent.setStyles ({'left':'auto'});
				if (li.childcontent.hasClass ('right')) li.childcontent.setStyle ('right', 0);
				if (this.options.slide) {
					li.childcontent.setStyles ({'left':'auto', 'overflow':'hidden'});
					if (li.level0) {
						if (this.options.direction == 'up') {
							li.childcontent_inner.setStyle ('bottom', -li._h-20);
						} else {
							li.childcontent_inner.setStyle ('margin-top', -li._h-20);
						}
						
					} else {					
						li.childcontent_inner.setStyle ('margin-left', -li._w-20);
					}
				}
				if (this.options.fading) {
					li.childcontent_inner.setStyle ('opacity', 0);
				}
				//Init Fx.Styles for childcontent
				li.fx = new Fx.Styles(li.childcontent_inner, {duration: this.options.duration, transition: Fx.Transitions.linear, onComplete: this.itemAnimDone.bind(this, li)});
				//effect
				li.eff_on = {};
				li.eff_off = {};
				if (this.options.slide) {
					if (li.level0) {
						if (this.options.direction == 'up') {
							li.eff_on ['bottom'] = 0;
							li.eff_off ['bottom'] = -li._h;
						} else {
							li.eff_on ['margin-top'] = 0;
							li.eff_off ['margin-top'] = -li._h;
						}
					} else {
						li.eff_on['margin-left'] = 0;
						li.eff_off['margin-left'] = -li._w;
					}
				}
				if (this.options.fading) {
					li.eff_on['opacity'] = 1;
					li.eff_off['opacity'] = 0;
					//li.eff_off['margin-top'] = -li._h;
				}
			}
			
			if (this.options.action=='click' && li.childcontent) {
				li.addEvent('click', function(e) {
					var event = new Event (e);
					if (li.hasClass ('group')) return;
					if (li.childcontent) {
						if (li.status == 'open') {
							if (this.cursorIn (li, event)) {
								this.itemHide (li);
							} else {
								this.itemHideOthers(li);
							}
						} else {
							this.itemShow (li);
						}
					} else {
						if (li.a) location.href = li.a.href;
					}
					event.stop();
				}.bind (this));
			
				//If action is click, click on windows will close all submenus
				this.windowClickFn = function (e) {		
					this.itemHideOthers(null);
				}.bind (this);				
			}

			if (this.options.action == 'mouseover' || this.options.action == 'mouseenter') {
				li.addEvent('mouseenter', function(e) {
					if (li.hasClass ('group')) return;
					$clear (li.timer);
					this.itemShow (li);
					e.stop();
				}.bind (this));
				
				li.addEvent('mouseleave', function(e) {
					if (li.hasClass ('group')) return;
					$clear (li.timer);
					if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, [li, e]), this.options.delayHide);
					else this.itemHide (li, e);
					e.stop();
				}.bind (this));
				
				//if has childcontent, don't goto link before open childcontent - fix for touch screen
				if (li.a && li.childcontent) {
					li.clickable = false;
					li.a.addEvent ('click',function (e){
						if (!li.clickable) {
							new Event(e).stop();
						}
					}.bind (this));
				}
				
			}
			
			//when click on a link - close all open childcontent
			if (li.a && !li.childcontent) {
				li.a.addEvent ('click',function (e){
					this.itemHideOthers (null);
					//Remove current class
					this.menu.getElements ('.active').removeClass ('active');
					//Add current class
					var p = li;
					while (p) {
						p.addClass ('active');
						p.a.addClass ('active');
						p = p._parent;
					}
					//new Event (e).stop();
				}.bind (this));
			}			
		},this);
		
		if (this.options.slide || this.options.fading) {
			//hide all content child
			this.menu.getElements('.childcontent').setStyle ('display', 'none');
		}
		
	}, 
	
	getParent: function (li) { 
		var p = li;
		while ((p=p.getParent())) {
			if (this.items.contains (p) && !p.hasClass ('group')) return p;
			if (!p || p == this.menu) return null;
		}
	},
	
	cursorIn: function (el, event) {
		if (!el || !event) return false;
		var pos = $merge (el.getPosition(), {'w':el.offsetWidth, 'h': el.offsetHeight});;
		var cursor = {'x': event.page.x, 'y': event.page.y};
	
		if (cursor.x>pos.x && cursor.x<pos.x+el.offsetWidth
				&& cursor.y>pos.y && cursor.y<pos.y+el.offsetHeight) return true;			
		return false;
	},
	
	isChild: function (child, parent) {
		return !!parent.getChildren().contains (child);
	},
	
	itemOver: function (li) {
		if (li.hasClass ('haschild')) 
			li.removeClass ('haschild').addClass ('haschild-over');
		li.addClass ('over');
		if (li.a) {
			li.a.addClass ('over');
		}
	},
	
	itemOut: function (li) {
		if (li.hasClass ('haschild-over'))
			li.removeClass ('haschild-over').addClass ('haschild');
		li.removeClass ('over');
		if (li.a) {
			li.a.removeClass ('over');
		}
	},

	itemShow: function (li) {		
		clearTimeout(li.timer);
		if (li.status == 'open') return; //don't need do anything
		//Setup the class
		this.itemOver (li);
		//push to show queue
		li.status = 'open';
		this.enableclick.delay (100, this, li);
		this.childopen.push (li);
		//hide other
		this.itemHideOthers (li);
		if (li.childcontent) {
			if (this.options.action=='click' && this.childopen.length && !this.windowClickEventAdded) {
				//addEvent click for window
				$(document.body).addEvent ('click', this.windowClickFn);
				this.windowClickEventAdded = true;
			}
		}
		
		if (!$defined(li.fx) || !$defined(li.childcontent)) return;
		
		li.childcontent.setStyle ('display', 'block');

		li.childcontent.setStyles ({'overflow': 'hidden'});		
		if (li.childcontent_inner1.ol) li.childcontent_inner1.setStyles ({'overflow': 'hidden'});
		li.fx.stop();
		li.fx.start (li.eff_on);
		//if (li._parent) this.itemShow (li._parent);
	},
	
	itemHide: function (li, e) {
		if (e && e.page) { //if event
			if (this.cursorIn (li, e) || this.cursorIn (li.childcontent, e)) {
				return;
			} //cursor in li
			var p=li._parent;
			if (p && !this.cursorIn (p, e) && !this.cursorIn(p.childcontent, e)) {
				p.fireEvent ('mouseleave', e); //fire mouseleave event
			}
		}
		clearTimeout(li.timer);
		this.itemOut(li);
		li.status = 'close';
		this.childopen.remove (li);
		if (li.childcontent) {
			if (this.options.action=='click' && !this.childopen.length && this.windowClickEventAdded) {
				//removeEvent click for window
				$(document.body).removeEvent ('click', this.windowClickFn);
				this.windowClickEventAdded = false;
			}
		}
		
		if (!$defined(li.fx) || !$defined(li.childcontent)) return;
		
		if (li.childcontent.getStyle ('opacity') == 0) return;
		li.childcontent.setStyles ({'overflow': 'hidden'});
		if (li.childcontent_inner1.ol) li.childcontent_inner1.setStyles ({'overflow': 'hidden'});
		li.fx.stop();
		switch (this.options.hidestyle) {
		case 'fast': 
			li.fx.options.duration = 100;
			li.fx.start ($merge(li.eff_off,{'opacity':0}));
			break;
		case 'fastwhenshow': //when other show
			if (!e) { //force hide, not because of event => hide fast
				li.fx.options.duration = 100;
				li.fx.start ($merge(li.eff_off,{'opacity':0}));
			} else {	//hide as normal
				li.fx.start (li.eff_off);
			}
			break;
		case 'normal':
		default:
			li.fx.start (li.eff_off);
			break;
		}
		//li.fx.start (li.eff_off);		
	},
	
	itemAnimDone: function (li) {
		//hide done
		if (li.status == 'close'){
			//reset duration and enable opacity if not fading
			if (this.options.hidestyle.test (/fast/)) {
				li.fx.options.duration = this.options.duration;
				if (!this.options.fading) li.childcontent_inner.setStyle ('opacity', 1);
			}
			//hide
			li.childcontent.setStyles ({'display': 'none'});
			this.disableclick.delay (100, this, li);
		}
		
		//show done
		if (li.status == 'open'){
			li.childcontent.setStyles ({'overflow': ''});
			if (li.childcontent_inner1.ol) li.childcontent_inner1.setStyles ({'overflow-y': 'auto'});
		}
	},
	
	itemHideOthers: function (el) {
		var fakeevent = null
		if (el && !el.childcontent) fakeevent = {};
		var curopen = this.childopen.copy();
		curopen.each (function(li) {
			if (li && typeof (li.status) != 'undefined' && (!el || (li != el && !li.hasChild (el)))) {
				this.itemHide(li, fakeevent);
			}
		},this);
	},

	enableclick: function (li) {
		if (li.a && li.childcontent) li.clickable = true;
	},
	disableclick: function (li) {
		if (li.a && li.childcontent) li.clickable = false;
	}
});


/* FILE: /components/com_community/assets/validate-1.5.pack.js */
function cValidate(){this.message="";this.REM="info is required. Make sure it contains a valid value!";this.noticeTitle="Notice";this.errorField=new Array();this.init=function(){joms.jQuery("#community-wrap form.community-form-validate :input.required").blur(function(){if(!joms.jQuery(this).hasClass("validate-custom-date")&&!joms.jQuery(this).hasClass("validate-country")){if(cvalidate.validateElement(this)){cvalidate.markValid(this)}else{cvalidate.markInvalid(this)}}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-profile-email").blur(function(){if((joms.jQuery.trim(joms.jQuery(this).val())!="")){if(cvalidate.validateElement(this)){cvalidate.markValid(this)}else{cvalidate.markInvalid(this)}}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-profile-url").blur(function(){if((joms.jQuery.trim(joms.jQuery(this).val())!="")){if(cvalidate.validateElement(this)){cvalidate.markValid(this)}else{cvalidate.markInvalid(this)}}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-country").change(function(){if(joms.jQuery(this).hasClass("required")){if(cvalidate.validateElement(this)){cvalidate.markValid(this)}else{cvalidate.markInvalid(this)}}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-custom-date").blur(function(){if(cvalidate.validateElement(this)){cvalidate.markValid(this)}else{cvalidate.markInvalid(this)}});joms.jQuery("#community-wrap form.community-form-validate :input.validateSubmit").click(function(){if(cvalidate.validateForm()){return true}else{var message=(cvalidate.REM=="undefined"||cvalidate.REM=="")?"info is required. Make sure it contains a valid value!":cvalidate.REM;if(cvalidate.errorField.length>1){lastField=cvalidate.errorField.pop();var joinText=cvalidate.JOINTEXT=="undefined"||cvalidate.JOINTEXT==""?" and ":cvalidate.JOINTEXT;strErrField=cvalidate.errorField.join(", ")+" "+joinText+" "+lastField}else{strErrField=cvalidate.errorField}message=strErrField+" "+message;message=message.replace(/\n/g,"");cWindowShow("joms.jQuery('#cWindowContent').html(\""+message+'")',cvalidate.noticeTitle,450,70,"warning");joms.jQuery("#community-wrap form.community-form-validate :input.required[value='']").each(function(i){cvalidate.markInvalid(this)});return false}})};this.setMaxLength=function(element,maxChar){joms.jQuery(element).keyup(function(){var max=parseInt(maxChar);if(joms.jQuery(this).val().length>max){joms.jQuery(this).val(joms.jQuery(this).val().substr(0,maxChar))}})};this.markInvalid=function(el){var fieldName=el.name;if(joms.jQuery(el).hasClass("validate-custom-date")){joms.jQuery("#community-wrap form.community-form-validate input[name='"+fieldName+"']").addClass("invalid");joms.jQuery("#community-wrap form.community-form-validate select[name='"+fieldName+"']").addClass("invalid")}else{joms.jQuery(el).addClass("invalid")}};this.markValid=function(el){var fieldName=el.name;if(joms.jQuery(el).hasClass("validate-custom-date")){joms.jQuery("#community-wrap form.community-form-validate input[name='"+fieldName+"']").removeClass("invalid");joms.jQuery("#community-wrap form.community-form-validate select[name='"+fieldName+"']").removeClass("invalid")}else{joms.jQuery(el).removeClass("invalid")}if(fieldName!=null){fieldName=fieldName.replace("[]","");joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp")}};this.validateElement=function(el){var isValid=true;var fieldName=el.name;if(joms.jQuery(el).attr("type")=="text"||joms.jQuery(el).attr("type")=="password"||joms.jQuery(el).attr("type")=="textarea"){if(joms.jQuery.trim(joms.jQuery(el).val())==""){isValid=false;fieldName=fieldName.replace("[]","");lblName=joms.jQuery("#lbl"+fieldName).html();if(lblName==null){lblName="Field"}else{lblName=lblName.replace("*","")}this.setMessage(fieldName,lblName,"CC INVALID VALUE")}else{if(joms.jQuery(el).hasClass("validate-name")){if(joms.jQuery(el).val().length<3){this.setMessage(fieldName,"","CC NAME TOO SHORT");isValid=false}else{joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp");isValid=true}}if(joms.jQuery(el).hasClass("validate-username")){if(joms.jQuery("#usernamepass").val()!=joms.jQuery(el).val()){isValid=cvalidate.ajaxValidateUserName(joms.jQuery(el))}}if(joms.jQuery(el).hasClass("validate-email")){regex=/^([*+!.&#$¦\'\\%\/0-9a-z^_`{}=?~:-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i;isValid=regex.test(joms.jQuery(el).val());if(isValid==false){this.setMessage(fieldName,"","CC INVALID EMAIL")}else{joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp");if(joms.jQuery("#emailpass").val()!=joms.jQuery(el).val()){isValid=cvalidate.ajaxValidateEmail(joms.jQuery(el))}}}if(joms.jQuery(el).hasClass("validate-profile-email")){regex=/^([*+!.&#$¦\'\\%\/0-9a-z^_`{}=?~:-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,6})$/i;isValid=regex.test(joms.jQuery(el).val());if(isValid==false){this.setMessage(fieldName,"","CC INVALID EMAIL")}else{joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp")}}if(joms.jQuery(el).hasClass("validate-profile-url")){fieldName=fieldName.replace("[]","");regex=/^(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,6}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;isValid=regex.test(joms.jQuery(el).val());if(isValid==false){this.setMessage(fieldName,"","CC INVALID URL")}else{joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp")}}if(joms.jQuery(el).hasClass("validate-password")&&el.name=="jspassword"){if(joms.jQuery(el).val().length<6){this.setMessage(fieldName,"","CC PASSWORD TOO SHORT");isValid=false}else{joms.jQuery("#err"+fieldName+"msg").hide();joms.jQuery("#err"+fieldName+"msg").html("&nbsp");isValid=true}}if(joms.jQuery(el).hasClass("validate-passverify")&&el.name=="jspassword2"){isValid=(joms.jQuery("#jspassword").val()==joms.jQuery(el).val());if(isValid==false){this.setMessage("jspassword2","","CC PASSWORD NOT SAME")}else{joms.jQuery("#errjspassword2msg").hide();joms.jQuery("#errjspassword2msg").html("&nbsp")}}if(joms.jQuery(el).hasClass("validate-custom-date")){isValid=this.checkCustomDate(el)}}}else{if(joms.jQuery(el).attr("type")=="checkbox"){if(joms.jQuery(el).hasClass("validate-custom-checkbox")){if(joms.jQuery("#community-wrap form.community-form-validate input[name='"+fieldName+"']:checked").size()==0){isValid=false}if(isValid==false){fieldName=fieldName.replace("[]","");lblName=joms.jQuery("#lbl"+fieldName).html();if(lblName==null){lblName="Field"}else{lblName=lblName.replace("*","")}this.setMessage(fieldName,lblName,"CC INVALID VALUE")}}else{if(!joms.jQuery(el).attr("checked")){isValid=false}}}else{if(joms.jQuery(el).attr("type")=="radio"){if(joms.jQuery(el).hasClass("validate-custom-radio")){if(joms.jQuery("#community-wrap form.community-form-validate input[name='"+fieldName+"']:checked").size()==0){isValid=false}if(isValid==false){lblName=joms.jQuery("#lbl"+fieldName).html();if(lblName==null){lblName="Field"}else{lblName=lblName.replace("*","")}this.setMessage(fieldName,lblName,"CC INVALID VALUE")}}else{if(!joms.jQuery(el).attr("checked")){isValid=false}}}else{if(joms.jQuery(el).attr("type")=="select-one"){if(joms.jQuery(el).children(":selected").length==0){isValid=false}else{joms.jQuery(el).children(":selected").each(function(){if(joms.jQuery(el).val()==""){isValid=false}})}if(joms.jQuery(el).hasClass("validate-country")){if(joms.jQuery(el).val()=="selectcountry"){isValid=false}}if(joms.jQuery(el).hasClass("validate-custom-date")){isValid=this.checkCustomDate(el)}else{if(isValid==false){fieldName=fieldName.replace("[]","");lblName=joms.jQuery("#lbl"+fieldName).html();if(lblName==null){lblName="Field"}else{lblName=lblName.replace("*","")}this.setMessage(fieldName,lblName,"CC INVALID VALUE")}}}else{if(joms.jQuery(el).attr("type")=="select-multiple"){if(joms.jQuery(el).children(":selected").length==0){isValid=false}if(isValid==false){fieldName=fieldName.replace("[]","");lblName=joms.jQuery("#lbl"+fieldName).html();if(lblName==null){lblName="Field"}else{lblName=lblName.replace("*","")}this.setMessage(fieldName,lblName,"CC INVALID VALUE")}}}}}}return isValid};this.validateForm=function(){var isValid=true;this.errorField=new Array();joms.jQuery("#community-wrap form.community-form-validate :input.required").each(function(i){if(!cvalidate.validateElement(this)){isValid=false}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-profile-email").each(function(){if((joms.jQuery.trim(joms.jQuery(this).val())!="")){if(!cvalidate.validateElement(this)){isValid=false}}});joms.jQuery("#community-wrap form.community-form-validate :input.validate-profile-url").each(function(){if((joms.jQuery.trim(joms.jQuery(this).val())!="")){if(!cvalidate.validateElement(this)){isValid=false}}});return isValid};this.ajaxValidateUserName=function(el){jax.call("community","register,ajaxCheckUserName",joms.jQuery(el).val())};this.ajaxValidateEmail=function(el){jax.call("community","register,ajaxCheckEmail",joms.jQuery(el).val())};this.checkCustomDate=function(el){var isValid=true;var fieldName=el.name;if(joms.jQuery(el).hasClass("validate-custom-date")){fieldId=fieldName.replace("[]","");var dateObj=joms.jQuery("#community-wrap form.community-form-validate input[name='"+fieldName+"']");for(var i=0;i<dateObj.length;i++){if(!/^-?\d+$/.test(dateObj[i].value)){isValid=false}}var dateObj2=joms.jQuery("#community-wrap form.community-form-validate select[name='"+fieldName+"']");var dd=dateObj[0].value;var mm=dateObj2[0].value;var yy=dateObj[1].value;var dayobj=new Date(yy,eval(mm-1),dd);if((dayobj.getMonth()+1!=mm)||(dayobj.getDate()!=dd)||(dayobj.getFullYear()!=yy)){isValid=false}if(isValid==false){this.setMessage(fieldId,"","CC INVALID DATE")}else{joms.jQuery("#err"+fieldId+"msg").hide();joms.jQuery("#err"+fieldId+"msg").html("&nbsp")}}return isValid};this.setMessage=function(fieldName,txtLabel,msgStr){errorLabel=joms.jQuery('label[for="'+fieldName+'"]').html().replace("*","");if(joms.jQuery.inArray(errorLabel,this.errorField)==-1){this.errorField.push(errorLabel)}jax.call("community","register,ajaxSetMessage",fieldName,txtLabel,msgStr)};this.setSystemText=function(key,text){eval("cvalidate."+key+' = "'+text+'"')}}var cvalidate=new cValidate();

/* FILE: /components/com_community/assets/joms.jquery.pack.js */
/*
 * jomsQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var k=this,g,w=k.joms={extend:function(D){this.jQuery.extend(this,D)}},o=k.jomsQuery=w.jQuery=function(D,E){return new o.fn.init(D,E)},C=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(D,G){D=D||document;if(D.nodeType){this[0]=D;this.length=1;this.context=D;return this}if(typeof D==="string"){var F=C.exec(D);if(F&&(F[1]||!G)){if(F[1]){D=o.clean([F[1]],G)}else{var H=document.getElementById(F[3]);if(H&&H.id!=F[3]){return o().find(D)}var E=o(H||[]);E.context=document;E.selector=D;return E}}else{return o(G).find(D)}}else{if(o.isFunction(D)){return o(document).ready(D)}}if(D.selector&&D.context){this.selector=D.selector;this.context=D.context}return this.setArray(o.isArray(D)?D:o.makeArray(D))},selector:"",jquery:"1.3.2",jomsquery:"1.0.0",size:function(){return this.length},get:function(D){return D===g?Array.prototype.slice.call(this):this[D]},pushStack:function(E,G,D){var F=o(E);F.prevObject=this;F.context=this.context;if(G==="find"){F.selector=this.selector+(this.selector?" ":"")+D}else{if(G){F.selector=this.selector+"."+G+"("+D+")"}}return F},setArray:function(D){this.length=0;Array.prototype.push.apply(this,D);return this},each:function(E,D){return o.each(this,E,D)},index:function(D){return o.inArray(D&&D.jquery?D[0]:D,this)},attr:function(E,G,F){var D=E;if(typeof E==="string"){if(G===g){return this[0]&&o[F||"attr"](this[0],E)}else{D={};D[E]=G}}return this.each(function(H){for(E in D){o.attr(F?this.style:this,E,o.prop(this,D[E],F,H,E))}})},css:function(D,E){if((D=="width"||D=="height")&&parseFloat(E)<0){E=g}return this.attr(D,E,"curCSS")},text:function(E){if(typeof E!=="object"&&E!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(E))}var D="";o.each(E||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){D+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return D},wrapAll:function(D){if(this[0]){var E=o(D,this[0].ownerDocument).clone();if(this[0].parentNode){E.insertBefore(this[0])}E.map(function(){var F=this;while(F.firstChild){F=F.firstChild}return F}).append(this)}return this},wrapInner:function(D){return this.each(function(){o(this).contents().wrapAll(D)})},wrap:function(D){return this.each(function(){o(this).wrapAll(D)})},append:function(){return this.domManip(arguments,true,function(D){if(this.nodeType==1){this.appendChild(D)}})},prepend:function(){return this.domManip(arguments,true,function(D){if(this.nodeType==1){this.insertBefore(D,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(D){this.parentNode.insertBefore(D,this)})},after:function(){return this.domManip(arguments,false,function(D){this.parentNode.insertBefore(D,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(D){if(this.length===1){var E=this.pushStack([],"find",D);E.length=0;o.find(D,this[0],E);return E}else{return this.pushStack(o.unique(o.map(this,function(F){return o.find(D,F)})),"find",D)}},clone:function(F){var D=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var H=this.outerHTML;if(!H){var I=this.ownerDocument.createElement("div");I.appendChild(this.cloneNode(true));H=I.innerHTML}return o.clean([H.replace(/ jomsQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(F===true){var G=this.find("*").andSelf(),E=0;D.find("*").andSelf().each(function(){if(this.nodeName!==G[E].nodeName){return}var H=o.data(G[E],"events");for(var J in H){for(var I in H[J]){o.event.add(this,J,H[J][I],H[J][I].data)}}E++})}return D},filter:function(D){return this.pushStack(o.isFunction(D)&&o.grep(this,function(F,E){return D.call(F,E)})||o.multiFilter(D,o.grep(this,function(E){return E.nodeType===1})),"filter",D)},closest:function(D){var F=o.expr.match.POS.test(D)?o(D):null,E=0;return this.map(function(){var G=this;while(G&&G.ownerDocument){if(F?F.index(G)>-1:o(G).is(D)){o.data(G,"closest",E);return G}G=G.parentNode;E++}})},not:function(D){if(typeof D==="string"){if(f.test(D)){return this.pushStack(o.multiFilter(D,this,true),"not",D)}else{D=o.multiFilter(D,this)}}var E=D.length&&D[D.length-1]!==g&&!D.nodeType;return this.filter(function(){return E?o.inArray(this,D)<0:this!=D})},add:function(D){return this.pushStack(o.unique(o.merge(this.get(),typeof D==="string"?o(D):o.makeArray(D))))},is:function(D){return !!D&&o.multiFilter(D,this).length>0},hasClass:function(D){return !!D&&this.is("."+D)},val:function(J){if(J===g){var D=this[0];if(D){if(o.nodeName(D,"option")){return(D.attributes.value||{}).specified?D.value:D.text}if(o.nodeName(D,"select")){var H=D.selectedIndex,K=[],L=D.options,G=D.type=="select-one";if(H<0){return null}for(var E=G?H:0,I=G?H+1:L.length;E<I;E++){var F=L[E];if(F.selected){J=o(F).val();if(G){return J}K.push(J)}}return K}return(D.value||"").replace(/\r/g,"")}return g}if(typeof J==="number"){J+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(J)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,J)>=0||o.inArray(this.name,J)>=0)}else{if(o.nodeName(this,"select")){var M=o.makeArray(J);o("option",this).each(function(){this.selected=(o.inArray(this.value,M)>=0||o.inArray(this.text,M)>=0)});if(!M.length){this.selectedIndex=-1}}else{this.value=J}}})},html:function(D){return D===g?(this[0]?this[0].innerHTML.replace(/ jomsQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(D)},replaceWith:function(D){return this.after(D).remove()},eq:function(D){return this.slice(D,+D+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(D){return this.pushStack(o.map(this,function(F,E){return D.call(F,E,F)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(I,L,K){if(this[0]){var H=(this[0].ownerDocument||this[0]).createDocumentFragment(),E=o.clean(I,(this[0].ownerDocument||this[0]),H),G=H.firstChild;if(G){for(var F=0,D=this.length;F<D;F++){K.call(J(this[F],G),this.length>1||F>0?H.cloneNode(true):H)}}if(E){o.each(E,y)}}return this;function J(M,N){return L&&o.nodeName(M,"table")&&o.nodeName(N,"tr")?(M.getElementsByTagName("tbody")[0]||M.appendChild(M.ownerDocument.createElement("tbody"))):M}}};o.fn.init.prototype=o.fn;function y(D,E){if(E.src){o.ajax({url:E.src,async:false,dataType:"script"})}else{o.globalEval(E.text||E.textContent||E.innerHTML||"")}if(E.parentNode){E.parentNode.removeChild(E)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var I=arguments[0]||{},G=1,H=arguments.length,D=false,F;if(typeof I==="boolean"){D=I;I=arguments[1]||{};G=2}if(typeof I!=="object"&&!o.isFunction(I)){I={}}if(H==G){I=this;--G}for(;G<H;G++){if((F=arguments[G])!=null){for(var E in F){var J=I[E],K=F[E];if(I===K){continue}if(D&&K&&typeof K==="object"&&!K.nodeType){I[E]=o.extend(D,J||(K.length!=null?[]:{}),K)}else{if(K!==g){I[E]=K}}}}}return I};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,p=document.defaultView||{},r=Object.prototype.toString;o.extend({noConflict:function(){if(typeof(_$)!="undefined"){k.$=_$}return o},restorejQuery:function(){k.jQuery=_jQuery;return o.noConflict()},replacejQuery:function(){if(k.jQuery!=g){o.readyList.concat(k.jQuery.readyList);k.jQuery.readyList=null}k.jQuery=o;o(document).ready(function(){if(jQuery.fn.jomsquery==g){if(!jQuery.isReady||jQuery.readyList!=null){jQuery.ready()}_jQuery=jQuery;k.jQuery=o}})},includejQuery:function(){if(k.jQuery==g){k.jQuery=o}o(document).ready(function(){if(jQuery.fn.jomsquery==g){if(!o.isReady||o.readyList!=null){o.ready()}}})},isFunction:function(D){return r.call(D)==="[object Function]"},isArray:function(D){return r.call(D)==="[object Array]"},isXMLDoc:function(D){return D.nodeType===9&&D.documentElement.nodeName!=="HTML"||!!D.ownerDocument&&o.isXMLDoc(D.ownerDocument)},globalEval:function(F){if(F&&/\S/.test(F)){var E=document.getElementsByTagName("head")[0]||document.documentElement,D=document.createElement("script");D.type="text/javascript";if(o.support.scriptEval){D.appendChild(document.createTextNode(F))}else{D.text=F}E.insertBefore(D,E.firstChild);E.removeChild(D)}},nodeName:function(E,D){return E.nodeName&&E.nodeName.toUpperCase()==D.toUpperCase()},each:function(F,J,E){var D,G=0,H=F.length;if(E){if(H===g){for(D in F){if(J.apply(F[D],E)===false){break}}}else{for(;G<H;){if(J.apply(F[G++],E)===false){break}}}}else{if(H===g){for(D in F){if(J.call(F[D],D,F[D])===false){break}}}else{for(var I=F[0];G<H&&J.call(I,G,I)!==false;I=F[++G]){}}}return F},prop:function(G,H,F,E,D){if(o.isFunction(H)){H=H.call(G,E)}return typeof H==="number"&&F=="curCSS"&&!b.test(D)?H+"px":H},className:{add:function(D,E){o.each((E||"").split(/\s+/),function(F,G){if(D.nodeType==1&&!o.className.has(D.className,G)){D.className+=(D.className?" ":"")+G}})},remove:function(D,E){if(D.nodeType==1){D.className=E!==g?o.grep(D.className.split(/\s+/),function(F){return !o.className.has(E,F)}).join(" "):""}},has:function(E,D){return E&&o.inArray(D,(E.className||E).toString().split(/\s+/))>-1}},swap:function(G,F,H){var D={};for(var E in F){D[E]=G.style[E];G.style[E]=F[E]}H.call(G);for(var E in F){G.style[E]=D[E]}},css:function(G,E,I,D){if(E=="width"||E=="height"){var K,F={position:"absolute",visibility:"hidden",display:"block"},J=E=="width"?["Left","Right"]:["Top","Bottom"];function H(){K=E=="width"?G.offsetWidth:G.offsetHeight;if(D==="border"){return}o.each(J,function(){if(!D){K-=parseFloat(o.curCSS(G,"padding"+this,true))||0}if(D==="margin"){K+=parseFloat(o.curCSS(G,"margin"+this,true))||0}else{K-=parseFloat(o.curCSS(G,"border"+this+"Width",true))||0}})}if(G.offsetWidth!==0){H()}else{o.swap(G,F,H)}return Math.max(0,Math.round(K))}return o.curCSS(G,E,I)},curCSS:function(H,E,F){var K,D=H.style;if(E=="opacity"&&!o.support.opacity){K=o.attr(D,"opacity");return K==""?"1":K}if(E.match(/float/i)){E=v}if(!F&&D&&D[E]){K=D[E]}else{if(p.getComputedStyle){if(E.match(/float/i)){E="float"}E=E.replace(/([A-Z])/g,"-$1").toLowerCase();var L=p.getComputedStyle(H,null);if(L){K=L.getPropertyValue(E)}if(E=="opacity"&&K==""){K="1"}}else{if(H.currentStyle){var I=E.replace(/\-(\w)/g,function(M,N){return N.toUpperCase()});K=H.currentStyle[E]||H.currentStyle[I];if(!/^\d+(px)?$/i.test(K)&&/^\d/.test(K)){var G=D.left,J=H.runtimeStyle.left;H.runtimeStyle.left=H.currentStyle.left;D.left=K||0;K=D.pixelLeft+"px";D.left=G;H.runtimeStyle.left=J}}}}return K},clean:function(E,J,H){J=J||document;if(typeof J.createElement==="undefined"){J=J.ownerDocument||J[0]&&J[0].ownerDocument||document}if(!H&&E.length===1&&typeof E[0]==="string"){var G=/^<(\w+)\s*\/?>$/.exec(E[0]);if(G){return[J.createElement(G[1])]}}var F=[],D=[],K=J.createElement("div");o.each(E,function(O,R){if(typeof R==="number"){R+=""}if(!R){return}if(typeof R==="string"){R=R.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+"></"+S+">"});var N=R.replace(/^\s+/,"").substring(0,10).toLowerCase();var P=!N.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!N.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||N.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!N.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!N.indexOf("<td")||!N.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!N.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];K.innerHTML=P[1]+R+P[2];while(P[0]--){K=K.lastChild}if(!o.support.tbody){var Q=/<tbody/i.test(R),M=!N.indexOf("<table")&&!Q?K.firstChild&&K.firstChild.childNodes:P[1]=="<table>"&&!Q?K.childNodes:[];for(var L=M.length-1;L>=0;--L){if(o.nodeName(M[L],"tbody")&&!M[L].childNodes.length){M[L].parentNode.removeChild(M[L])}}}if(!o.support.leadingWhitespace&&/^\s/.test(R)){K.insertBefore(J.createTextNode(R.match(/^\s*/)[0]),K.firstChild)}R=o.makeArray(K.childNodes)}if(R.nodeType){F.push(R)}else{F=o.merge(F,R)}});if(H){for(var I=0;F[I];I++){if(o.nodeName(F[I],"script")&&(!F[I].type||F[I].type.toLowerCase()==="text/javascript")){D.push(F[I].parentNode?F[I].parentNode.removeChild(F[I]):F[I])}else{if(F[I].nodeType===1){F.splice.apply(F,[I+1,0].concat(o.makeArray(F[I].getElementsByTagName("script"))))}H.appendChild(F[I])}}return D}return F},attr:function(I,F,J){if(!I||I.nodeType==3||I.nodeType==8){return g}var G=!o.isXMLDoc(I),K=J!==g;F=G&&o.props[F]||F;if(I.tagName){var E=/href|src|style/.test(F);if(F=="selected"&&I.parentNode){I.parentNode.selectedIndex}if(F in I&&G&&!E){if(K){if(F=="type"&&o.nodeName(I,"input")&&I.parentNode){throw"type property can't be changed"}I[F]=J}if(o.nodeName(I,"form")&&I.getAttributeNode(F)){return I.getAttributeNode(F).nodeValue}if(F=="tabIndex"){var H=I.getAttributeNode("tabIndex");return H&&H.specified?H.value:I.nodeName.match(/(button|input|object|select|textarea)/i)?0:I.nodeName.match(/^(a|area)$/i)&&I.href?0:g}return I[F]}if(!o.support.style&&G&&F=="style"){return o.attr(I.style,"cssText",J)}if(K){I.setAttribute(F,""+J)}var D=!o.support.hrefNormalized&&G&&E?I.getAttribute(F,2):I.getAttribute(F);return D===null?g:D}if(!o.support.opacity&&F=="opacity"){if(K){I.zoom=1;I.filter=(I.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(J)+""=="NaN"?"":"alpha(opacity="+J*100+")")}return I.filter&&I.filter.indexOf("opacity=")>=0?(parseFloat(I.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}F=F.replace(/-([a-z])/ig,function(L,M){return M.toUpperCase()});if(K){I[F]=J}return I[F]},trim:function(D){return(D||"").replace(/^\s+|\s+$/g,"")},makeArray:function(F){var D=[];if(F!=null){var E=F.length;if(E==null||typeof F==="string"||o.isFunction(F)||F.setInterval){D[0]=F}else{while(E){D[--E]=F[E]}}}return D},inArray:function(F,G){for(var D=0,E=G.length;D<E;D++){if(G[D]===F){return D}}return -1},merge:function(G,D){var E=0,F,H=G.length;if(!o.support.getAll){while((F=D[E++])!=null){if(F.nodeType!=8){G[H++]=F}}}else{while((F=D[E++])!=null){G[H++]=F}}return G},unique:function(J){var E=[],D={};try{for(var F=0,G=J.length;F<G;F++){var I=o.data(J[F]);if(!D[I]){D[I]=true;E.push(J[F])}}}catch(H){E=J}return E},grep:function(E,I,D){var F=[];for(var G=0,H=E.length;G<H;G++){if(!D!=!I(E[G],G)){F.push(E[G])}}return F},map:function(D,I){var E=[];for(var F=0,G=D.length;F<G;F++){var H=I(D[F],F);if(H!=null){E[E.length]=H}}return E.concat.apply([],E)}});var B=navigator.userAgent.toLowerCase();o.browser={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)};o.each({parent:function(D){return D.parentNode},parents:function(D){return o.dir(D,"parentNode")},next:function(D){return o.nth(D,2,"nextSibling")},prev:function(D){return o.nth(D,2,"previousSibling")},nextAll:function(D){return o.dir(D,"nextSibling")},prevAll:function(D){return o.dir(D,"previousSibling")},siblings:function(D){return o.sibling(D.parentNode.firstChild,D)},children:function(D){return o.sibling(D.firstChild)},contents:function(D){return o.nodeName(D,"iframe")?D.contentDocument||D.contentWindow.document:o.makeArray(D.childNodes)}},function(D,E){o.fn[D]=function(F){var G=o.map(this,E);if(F&&typeof F=="string"){G=o.multiFilter(F,G)}return this.pushStack(o.unique(G),D,F)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(D,E){o.fn[D]=function(F){var I=[],K=o(F);for(var J=0,G=K.length;J<G;J++){var H=(J>0?this.clone(true):this).get();o.fn[E].apply(o(K[J]),H);I=I.concat(H)}return this.pushStack(I,D,F)}});o.each({removeAttr:function(D){o.attr(this,D,"");if(this.nodeType==1){this.removeAttribute(D)}},addClass:function(D){o.className.add(this,D)},removeClass:function(D){o.className.remove(this,D)},toggleClass:function(E,D){if(typeof D!=="boolean"){D=!o.className.has(this,E)}o.className[D?"add":"remove"](this,E)},remove:function(D){if(!D||o.filter(D,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(D,E){o.fn[D]=function(){return this.each(E,arguments)}});function j(D,E){return D[0]&&parseInt(o.curCSS(D[0],E,true),10)||0}var h="jomsQuery"+e(),u=0,z={};o.extend({cache:{},data:function(E,D,F){E=E==k?z:E;var G=E[h];if(!G){G=E[h]=++u}if(D&&!o.cache[G]){o.cache[G]={}}if(F!==g){o.cache[G][D]=F}return D?o.cache[G][D]:G},removeData:function(E,D){E=E==k?z:E;var G=E[h];if(D){if(o.cache[G]){delete o.cache[G][D];D="";for(D in o.cache[G]){break}if(!D){o.removeData(E)}}}else{try{delete E[h]}catch(F){if(E.removeAttribute){E.removeAttribute(h)}}delete o.cache[G]}},queue:function(E,D,G){if(E){D=(D||"fx")+"queue";var F=o.data(E,D);if(!F||o.isArray(G)){F=o.data(E,D,o.makeArray(G))}else{if(G){F.push(G)}}}return F},dequeue:function(G,F){var D=o.queue(G,F),E=D.shift();if(!F||F==="fx"){E=D[0]}if(E!==g){E.call(G)}}});o.fn.extend({data:function(D,F){var G=D.split(".");G[1]=G[1]?"."+G[1]:"";if(F===g){var E=this.triggerHandler("getData"+G[1]+"!",[G[0]]);if(E===g&&this.length){E=o.data(this[0],D)}return E===g&&G[1]?this.data(G[0]):E}else{return this.trigger("setData"+G[1]+"!",[G[0],F]).each(function(){o.data(this,D,F)})}},removeData:function(D){return this.each(function(){o.removeData(this,D)})},queue:function(D,E){if(typeof D!=="string"){E=D;D="fx"}if(E===g){return o.queue(this[0],D)}return this.each(function(){var F=o.queue(this,D,E);if(D=="fx"&&F.length==1){F[0].call(this)}})},dequeue:function(D){return this.each(function(){o.dequeue(this,D)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,K=0,G=Object.prototype.toString;var E=function(X,T,aa,ab){aa=aa||[];T=T||document;if(T.nodeType!==1&&T.nodeType!==9){return[]}if(!X||typeof X!=="string"){return aa}var Y=[],V,ae,ah,S,ac,U,W=true;Q.lastIndex=0;while((V=Q.exec(X))!==null){Y.push(V[1]);if(V[2]){U=RegExp.rightContext;break}}if(Y.length>1&&L.exec(X)){if(Y.length===2&&H.relative[Y[0]]){ae=I(Y[0]+Y[1],T)}else{ae=H.relative[Y[0]]?[T]:E(Y.shift(),T);while(Y.length){X=Y.shift();if(H.relative[X]){X+=Y.shift()}ae=I(X,ae)}}}else{var ad=ab?{expr:Y.pop(),set:D(ab)}:E.find(Y.pop(),Y.length===1&&T.parentNode?T.parentNode:T,P(T));ae=E.filter(ad.expr,ad.set);if(Y.length>0){ah=D(ae)}else{W=false}while(Y.length){var ag=Y.pop(),af=ag;if(!H.relative[ag]){ag=""}else{af=Y.pop()}if(af==null){af=T}H.relative[ag](ah,af,P(T))}}if(!ah){ah=ae}if(!ah){throw"Syntax error, unrecognized expression: "+(ag||X)}if(G.call(ah)==="[object Array]"){if(!W){aa.push.apply(aa,ah)}else{if(T.nodeType===1){for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&(ah[Z]===true||ah[Z].nodeType===1&&J(T,ah[Z]))){aa.push(ae[Z])}}}else{for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&ah[Z].nodeType===1){aa.push(ae[Z])}}}}}else{D(ah,aa)}if(U){E(U,T,aa,ab);if(F){hasDuplicate=false;aa.sort(F);if(hasDuplicate){for(var Z=1;Z<aa.length;Z++){if(aa[Z]===aa[Z-1]){aa.splice(Z--,1)}}}}}return aa};E.matches=function(S,T){return E(S,null,null,T)};E.find=function(Z,S,aa){var Y,W;if(!Z){return[]}for(var V=0,U=H.order.length;V<U;V++){var X=H.order[V],W;if((W=H.match[X].exec(Z))){var T=RegExp.leftContext;if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");Y=H.find[X](W,S,aa);if(Y!=null){Z=Z.replace(H.match[X],"");break}}}}if(!Y){Y=S.getElementsByTagName("*")}return{set:Y,expr:Z}};E.filter=function(ac,ab,af,V){var U=ac,ah=[],Z=ab,X,S,Y=ab&&ab[0]&&P(ab[0]);while(ac&&ab.length){for(var aa in H.filter){if((X=H.match[aa].exec(ac))!=null){var T=H.filter[aa],ag,ae;S=false;if(Z==ah){ah=[]}if(H.preFilter[aa]){X=H.preFilter[aa](X,Z,af,ah,V,Y);if(!X){S=ag=true}else{if(X===true){continue}}}if(X){for(var W=0;(ae=Z[W])!=null;W++){if(ae){ag=T(ae,X,W,Z);var ad=V^!!ag;if(af&&ag!=null){if(ad){S=true}else{Z[W]=false}}else{if(ad){ah.push(ae);S=true}}}}}if(ag!==g){if(!af){Z=ah}ac=ac.replace(H.match[aa],"");if(!S){return[]}break}}}if(ac==U){if(S==null){throw"Syntax error, unrecognized expression: "+ac}else{break}}U=ac}return Z};var H=E.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(S){return S.getAttribute("href")}},relative:{"+":function(Z,S,Y){var W=typeof S==="string",aa=W&&!/\W/.test(S),X=W&&!aa;if(aa&&!Y){S=S.toUpperCase()}for(var V=0,U=Z.length,T;V<U;V++){if((T=Z[V])){while((T=T.previousSibling)&&T.nodeType!==1){}Z[V]=X||T&&T.nodeName===S?T||false:T===S}}if(X){E.filter(S,Z,true)}},">":function(Y,T,Z){var W=typeof T==="string";if(W&&!/\W/.test(T)){T=Z?T:T.toUpperCase();for(var U=0,S=Y.length;U<S;U++){var X=Y[U];if(X){var V=X.parentNode;Y[U]=V.nodeName===T?V:false}}}else{for(var U=0,S=Y.length;U<S;U++){var X=Y[U];if(X){Y[U]=W?X.parentNode:X.parentNode===T}}if(W){E.filter(T,Y,true)}}},"":function(V,T,X){var U=K++,S=R;if(!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("parentNode",T,U,V,W,X)},"~":function(V,T,X){var U=K++,S=R;if(typeof T==="string"&&!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("previousSibling",T,U,V,W,X)}},find:{ID:function(T,U,V){if(typeof U.getElementById!=="undefined"&&!V){var S=U.getElementById(T[1]);return S?[S]:[]}},NAME:function(U,X,Y){if(typeof X.getElementsByName!=="undefined"){var T=[],W=X.getElementsByName(U[1]);for(var V=0,S=W.length;V<S;V++){if(W[V].getAttribute("name")===U[1]){T.push(W[V])}}return T.length===0?null:T}},TAG:function(S,T){return T.getElementsByTagName(S[1])}},preFilter:{CLASS:function(V,T,U,S,Y,Z){V=" "+V[1].replace(/\\/g,"")+" ";if(Z){return V}for(var W=0,X;(X=T[W])!=null;W++){if(X){if(Y^(X.className&&(" "+X.className+" ").indexOf(V)>=0)){if(!U){S.push(X)}}else{if(U){T[W]=false}}}}return false},ID:function(S){return S[1].replace(/\\/g,"")},TAG:function(T,S){for(var U=0;S[U]===false;U++){}return S[U]&&P(S[U])?T[1]:T[1].toUpperCase()},CHILD:function(S){if(S[1]=="nth"){var T=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(S[2]=="even"&&"2n"||S[2]=="odd"&&"2n+1"||!/\D/.test(S[2])&&"0n+"+S[2]||S[2]);S[2]=(T[1]+(T[2]||1))-0;S[3]=T[3]-0}S[0]=K++;return S},ATTR:function(W,T,U,S,X,Y){var V=W[1].replace(/\\/g,"");if(!Y&&H.attrMap[V]){W[1]=H.attrMap[V]}if(W[2]==="~="){W[4]=" "+W[4]+" "}return W},PSEUDO:function(W,T,U,S,X){if(W[1]==="not"){if(W[3].match(Q).length>1||/^\w/.test(W[3])){W[3]=E(W[3],null,null,T)}else{var V=E.filter(W[3],T,U,true^X);if(!U){S.push.apply(S,V)}return false}}else{if(H.match.POS.test(W[0])||H.match.CHILD.test(W[0])){return true}}return W},POS:function(S){S.unshift(true);return S}},filters:{enabled:function(S){return S.disabled===false&&S.type!=="hidden"},disabled:function(S){return S.disabled===true},checked:function(S){return S.checked===true},selected:function(S){S.parentNode.selectedIndex;return S.selected===true},parent:function(S){return !!S.firstChild},empty:function(S){return !S.firstChild},has:function(U,T,S){return !!E(S[3],U).length},header:function(S){return/h\d/i.test(S.nodeName)},text:function(S){return"text"===S.type},radio:function(S){return"radio"===S.type},checkbox:function(S){return"checkbox"===S.type},file:function(S){return"file"===S.type},password:function(S){return"password"===S.type},submit:function(S){return"submit"===S.type},image:function(S){return"image"===S.type},reset:function(S){return"reset"===S.type},button:function(S){return"button"===S.type||S.nodeName.toUpperCase()==="BUTTON"},input:function(S){return/input|select|textarea|button/i.test(S.nodeName)}},setFilters:{first:function(T,S){return S===0},last:function(U,T,S,V){return T===V.length-1},even:function(T,S){return S%2===0},odd:function(T,S){return S%2===1},lt:function(U,T,S){return T<S[3]-0},gt:function(U,T,S){return T>S[3]-0},nth:function(U,T,S){return S[3]-0==T},eq:function(U,T,S){return S[3]-0==T}},filter:{PSEUDO:function(Y,U,V,Z){var T=U[1],W=H.filters[T];if(W){return W(Y,V,U,Z)}else{if(T==="contains"){return(Y.textContent||Y.innerText||"").indexOf(U[3])>=0}else{if(T==="not"){var X=U[3];for(var V=0,S=X.length;V<S;V++){if(X[V]===Y){return false}}return true}}}},CHILD:function(S,V){var Y=V[1],T=S;switch(Y){case"only":case"first":while(T=T.previousSibling){if(T.nodeType===1){return false}}if(Y=="first"){return true}T=S;case"last":while(T=T.nextSibling){if(T.nodeType===1){return false}}return true;case"nth":var U=V[2],ab=V[3];if(U==1&&ab==0){return true}var X=V[0],aa=S.parentNode;if(aa&&(aa.sizcache!==X||!S.nodeIndex)){var W=0;for(T=aa.firstChild;T;T=T.nextSibling){if(T.nodeType===1){T.nodeIndex=++W}}aa.sizcache=X}var Z=S.nodeIndex-ab;if(U==0){return Z==0}else{return(Z%U==0&&Z/U>=0)}}},ID:function(T,S){return T.nodeType===1&&T.getAttribute("id")===S},TAG:function(T,S){return(S==="*"&&T.nodeType===1)||T.nodeName===S},CLASS:function(T,S){return(" "+(T.className||T.getAttribute("class"))+" ").indexOf(S)>-1},ATTR:function(X,V){var U=V[1],S=H.attrHandle[U]?H.attrHandle[U](X):X[U]!=null?X[U]:X.getAttribute(U),Y=S+"",W=V[2],T=V[4];return S==null?W==="!=":W==="="?Y===T:W==="*="?Y.indexOf(T)>=0:W==="~="?(" "+Y+" ").indexOf(T)>=0:!T?Y&&S!==false:W==="!="?Y!=T:W==="^="?Y.indexOf(T)===0:W==="$="?Y.substr(Y.length-T.length)===T:W==="|="?Y===T||Y.substr(0,T.length+1)===T+"-":false},POS:function(W,T,U,X){var S=T[2],V=H.setFilters[S];if(V){return V(W,U,T,X)}}}};var L=H.match.POS;for(var N in H.match){H.match[N]=RegExp(H.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var D=function(T,S){T=Array.prototype.slice.call(T);if(S){S.push.apply(S,T);return S}return T};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(M){D=function(W,V){var T=V||[];if(G.call(W)==="[object Array]"){Array.prototype.push.apply(T,W)}else{if(typeof W.length==="number"){for(var U=0,S=W.length;U<S;U++){T.push(W[U])}}else{for(var U=0;W[U];U++){T.push(W[U])}}}return T}}var F;if(document.documentElement.compareDocumentPosition){F=function(T,S){var U=T.compareDocumentPosition(S)&4?-1:T===S?0:1;if(U===0){hasDuplicate=true}return U}}else{if("sourceIndex" in document.documentElement){F=function(T,S){var U=T.sourceIndex-S.sourceIndex;if(U===0){hasDuplicate=true}return U}}else{if(document.createRange){F=function(V,T){var U=V.ownerDocument.createRange(),S=T.ownerDocument.createRange();U.selectNode(V);U.collapse(true);S.selectNode(T);S.collapse(true);var W=U.compareBoundaryPoints(Range.START_TO_END,S);if(W===0){hasDuplicate=true}return W}}}}(function(){var T=document.createElement("form"),U="script"+(new Date).getTime();T.innerHTML="<input name='"+U+"'/>";var S=document.documentElement;S.insertBefore(T,S.firstChild);if(!!document.getElementById(U)){H.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?V.id===W[1]||typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id").nodeValue===W[1]?[V]:g:[]}};H.filter.ID=function(X,V){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&W&&W.nodeValue===V}}S.removeChild(T)})();(function(){var S=document.createElement("div");S.appendChild(document.createComment(""));if(S.getElementsByTagName("*").length>0){H.find.TAG=function(T,X){var W=X.getElementsByTagName(T[1]);if(T[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}return W}}S.innerHTML="<a href='#'></a>";if(S.firstChild&&typeof S.firstChild.getAttribute!=="undefined"&&S.firstChild.getAttribute("href")!=="#"){H.attrHandle.href=function(T){return T.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var S=E,T=document.createElement("div");T.innerHTML="<p class='TEST'></p>";if(T.querySelectorAll&&T.querySelectorAll(".TEST").length===0){return}E=function(X,W,U,V){W=W||document;if(!V&&W.nodeType===9&&!P(W)){try{return D(W.querySelectorAll(X),U)}catch(Y){}}return S(X,W,U,V)};E.find=S.find;E.filter=S.filter;E.selectors=S.selectors;E.matches=S.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var S=document.createElement("div");S.innerHTML="<div class='test e'></div><div class='test'></div>";if(S.getElementsByClassName("e").length===0){return}S.lastChild.className="e";if(S.getElementsByClassName("e").length===1){return}H.order.splice(1,0,"CLASS");H.find.CLASS=function(T,U,V){if(typeof U.getElementsByClassName!=="undefined"&&!V){return U.getElementsByClassName(T[1])}}})()}function O(T,Y,X,ac,Z,ab){var aa=T=="previousSibling"&&!ab;for(var V=0,U=ac.length;V<U;V++){var S=ac[V];if(S){if(aa&&S.nodeType===1){S.sizcache=X;S.sizset=V}S=S[T];var W=false;while(S){if(S.sizcache===X){W=ac[S.sizset];break}if(S.nodeType===1&&!ab){S.sizcache=X;S.sizset=V}if(S.nodeName===Y){W=S;break}S=S[T]}ac[V]=W}}}function R(T,Y,X,ac,Z,ab){var aa=T=="previousSibling"&&!ab;for(var V=0,U=ac.length;V<U;V++){var S=ac[V];if(S){if(aa&&S.nodeType===1){S.sizcache=X;S.sizset=V}S=S[T];var W=false;while(S){if(S.sizcache===X){W=ac[S.sizset];break}if(S.nodeType===1){if(!ab){S.sizcache=X;S.sizset=V}if(typeof Y!=="string"){if(S===Y){W=true;break}}else{if(E.filter(Y,[S]).length>0){W=S;break}}}S=S[T]}ac[V]=W}}}var J=document.compareDocumentPosition?function(T,S){return T.compareDocumentPosition(S)&16}:function(T,S){return T!==S&&(T.contains?T.contains(S):true)};var P=function(S){return S.nodeType===9&&S.documentElement.nodeName!=="HTML"||!!S.ownerDocument&&P(S.ownerDocument)};var I=function(S,Z){var V=[],W="",X,U=Z.nodeType?[Z]:Z;while((X=H.match.PSEUDO.exec(S))){W+=X[0];S=S.replace(H.match.PSEUDO,"")}S=H.relative[S]?S+"*":S;for(var Y=0,T=U.length;Y<T;Y++){E(S,U[Y],V)}return E.filter(W,V)};o.find=E;o.filter=E.filter;o.expr=E.selectors;o.expr[":"]=o.expr.filters;E.selectors.filters.hidden=function(S){return S.offsetWidth===0||S.offsetHeight===0};E.selectors.filters.visible=function(S){return S.offsetWidth>0||S.offsetHeight>0};E.selectors.filters.animated=function(S){return o.grep(o.timers,function(T){return S===T.elem}).length};o.multiFilter=function(U,S,T){if(T){U=":not("+U+")"}return E.matches(U,S)};o.dir=function(U,T){var S=[],V=U[T];while(V&&V!=document){if(V.nodeType==1){S.push(V)}V=V[T]}return S};o.nth=function(W,S,U,V){S=S||1;var T=0;for(;W;W=W[U]){if(W.nodeType==1&&++T==S){break}}return W};o.sibling=function(U,T){var S=[];for(;U;U=U.nextSibling){if(U.nodeType==1&&U!=T){S.push(U)}}return S};return;k.Sizzle=E})();o.event={add:function(H,E,G,J){if(H.nodeType==3||H.nodeType==8){return}if(H.setInterval&&H!=k){H=k}if(!G.guid){G.guid=this.guid++}if(J!==g){var F=G;G=this.proxy(F);G.data=J}var D=o.data(H,"events")||o.data(H,"events",{}),I=o.data(H,"handle")||o.data(H,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});I.elem=H;o.each(E.split(/\s+/),function(L,M){var N=M.split(".");M=N.shift();G.type=N.slice().sort().join(".");var K=D[M];if(o.event.specialAll[M]){o.event.specialAll[M].setup.call(H,J,N)}if(!K){K=D[M]={};if(!o.event.special[M]||o.event.special[M].setup.call(H,J,N)===false){if(H.addEventListener){H.addEventListener(M,I,false)}else{if(H.attachEvent){H.attachEvent("on"+M,I)}}}}K[G.guid]=G;o.event.global[M]=true});H=null},guid:1,global:{},remove:function(J,G,I){if(J.nodeType==3||J.nodeType==8){return}var F=o.data(J,"events"),E,D;if(F){if(G===g||(typeof G==="string"&&G.charAt(0)==".")){for(var H in F){this.remove(J,H+(G||""))}}else{if(G.type){I=G.handler;G=G.type}o.each(G.split(/\s+/),function(L,N){var P=N.split(".");N=P.shift();var M=RegExp("(^|\\.)"+P.slice().sort().join(".*\\.")+"(\\.|$)");if(F[N]){if(I){delete F[N][I.guid]}else{for(var O in F[N]){if(M.test(F[N][O].type)){delete F[N][O]}}}if(o.event.specialAll[N]){o.event.specialAll[N].teardown.call(J,P)}for(E in F[N]){break}if(!E){if(!o.event.special[N]||o.event.special[N].teardown.call(J,P)===false){if(J.removeEventListener){J.removeEventListener(N,o.data(J,"handle"),false)}else{if(J.detachEvent){J.detachEvent("on"+N,o.data(J,"handle"))}}}E=null;delete F[N]}}})}for(E in F){break}if(!E){var K=o.data(J,"handle");if(K){K.elem=null}o.removeData(J,"events");o.removeData(J,"handle")}}},trigger:function(H,J,G,D){var F=H.type||H;if(!D){H=typeof H==="object"?H[h]?H:o.extend(o.Event(F),H):o.Event(F);if(F.indexOf("!")>=0){H.type=F=F.slice(0,-1);H.exclusive=true}if(!G){H.stopPropagation();if(this.global[F]){o.each(o.cache,function(){if(this.events&&this.events[F]){o.event.trigger(H,J,this.handle.elem)}})}}if(!G||G.nodeType==3||G.nodeType==8){return g}H.result=g;H.target=G;J=o.makeArray(J);J.unshift(H)}H.currentTarget=G;var I=o.data(G,"handle");if(I){I.apply(G,J)}if((!G[F]||(o.nodeName(G,"a")&&F=="click"))&&G["on"+F]&&G["on"+F].apply(G,J)===false){H.result=false}if(!D&&G[F]&&!H.isDefaultPrevented()&&!(o.nodeName(G,"a")&&F=="click")){this.triggered=true;try{G[F]()}catch(K){}}this.triggered=false;if(!H.isPropagationStopped()){var E=G.parentNode||G.ownerDocument;if(E){o.event.trigger(H,J,E,true)}}},handle:function(J){var I,D;J=arguments[0]=o.event.fix(J||k.event);J.currentTarget=this;var K=J.type.split(".");J.type=K.shift();I=!K.length&&!J.exclusive;var H=RegExp("(^|\\.)"+K.slice().sort().join(".*\\.")+"(\\.|$)");D=(o.data(this,"events")||{})[J.type];for(var F in D){var G=D[F];if(I||H.test(G.type)){J.handler=G;J.data=G.data;var E=G.apply(this,arguments);if(E!==g){J.result=E;if(E===false){J.preventDefault();J.stopPropagation()}}if(J.isImmediatePropagationStopped()){break}}}},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 toElement view wheelDelta which".split(" "),fix:function(G){if(G[h]){return G}var E=G;G=o.Event(E);for(var F=this.props.length,I;F;){I=this.props[--F];G[I]=E[I]}if(!G.target){G.target=G.srcElement||document}if(G.target.nodeType==3){G.target=G.target.parentNode}if(!G.relatedTarget&&G.fromElement){G.relatedTarget=G.fromElement==G.target?G.toElement:G.fromElement}if(G.pageX==null&&G.clientX!=null){var H=document.documentElement,D=document.body;G.pageX=G.clientX+(H&&H.scrollLeft||D&&D.scrollLeft||0)-(H.clientLeft||0);G.pageY=G.clientY+(H&&H.scrollTop||D&&D.scrollTop||0)-(H.clientTop||0)}if(!G.which&&((G.charCode||G.charCode===0)?G.charCode:G.keyCode)){G.which=G.charCode||G.keyCode}if(!G.metaKey&&G.ctrlKey){G.metaKey=G.ctrlKey}if(!G.which&&G.button){G.which=(G.button&1?1:(G.button&2?3:(G.button&4?2:0)))}return G},proxy:function(E,D){D=D||function(){return E.apply(this,arguments)};D.guid=E.guid=E.guid||D.guid||this.guid++;return D},special:{ready:{setup:A,teardown:function(){}}},specialAll:{live:{setup:function(D,E){o.event.add(this,E[0],c)},teardown:function(F){if(F.length){var D=0,E=RegExp("(^|\\.)"+F[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(E.test(this.type)){D++}});if(D<1){o.event.remove(this,F[0],c)}}}}}};o.Event=function(D){if(!this.preventDefault){return new o.Event(D)}if(D&&D.type){this.originalEvent=D;this.type=D.type}else{this.type=D}this.timeStamp=e();this[h]=true};function l(){return false}function t(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=t;var D=this.originalEvent;if(!D){return}if(D.preventDefault){D.preventDefault()}D.returnValue=false},stopPropagation:function(){this.isPropagationStopped=t;var D=this.originalEvent;if(!D){return}if(D.stopPropagation){D.stopPropagation()}D.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=t;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var a=function(E){var D=E.relatedTarget;while(D&&D!=this){try{D=D.parentNode}catch(F){D=this}}if(D!=this){E.type=E.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(E,D){o.event.special[D]={setup:function(){o.event.add(this,E,a,D)},teardown:function(){o.event.remove(this,E,a)}}});o.fn.extend({bind:function(E,F,D){return E=="unload"?this.one(E,F,D):this.each(function(){o.event.add(this,E,D||F,D&&F)})},one:function(F,G,E){var D=o.event.proxy(E||G,function(H){o(this).unbind(H,D);return(E||G).apply(this,arguments)});return this.each(function(){o.event.add(this,F,D,E&&G)})},unbind:function(E,D){return this.each(function(){o.event.remove(this,E,D)})},trigger:function(D,E){return this.each(function(){o.event.trigger(D,E,this)})},triggerHandler:function(D,F){if(this[0]){var E=o.Event(D);E.preventDefault();E.stopPropagation();o.event.trigger(E,F,this[0]);return E.result}},toggle:function(F){var D=arguments,E=1;while(E<D.length){o.event.proxy(F,D[E++])}return this.click(o.event.proxy(F,function(G){this.lastToggle=(this.lastToggle||0)%E;G.preventDefault();return D[this.lastToggle++].apply(this,arguments)||false}))},hover:function(D,E){return this.mouseenter(D).mouseleave(E)},ready:function(D){A();if(o.isReady){D.call(document,o)}else{o.readyList.push(D)}return this},live:function(F,E){var D=o.event.proxy(E);D.guid+=this.selector+F;o(document).bind(i(F,this.selector),this.selector,D);return this},die:function(E,D){o(document).unbind(i(E,this.selector),D?{guid:D.guid+this.selector+E}:null);return this}});function c(G){var D=RegExp("(^|\\.)"+G.type+"(\\.|$)"),F=true,E=[];o.each(o.data(this,"events").live||[],function(H,I){if(D.test(I.type)){var J=o(G.target).closest(I.data)[0];if(J){E.push({elem:J,fn:I})}}});E.sort(function(I,H){return o.data(I.elem,"closest")-o.data(H.elem,"closest")});o.each(E,function(){if(this.fn.call(this.elem,G,this.fn.data)===false){return(F=false)}});return F}function i(E,D){return["live",E,D.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function A(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&k==k.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(D){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(k,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(E,D){o.fn[D]=function(F){return F?this.bind(D,F):this.trigger(D)}});o(k).bind("unload",function(){for(var D in o.cache){if(D!=1&&o.cache[D].handle){o.event.remove(o.cache[D].handle.elem)}}});(function(){o.support={};var E=document.documentElement,F=document.createElement("script"),J=document.createElement("div"),I="script"+(new Date).getTime();J.style.display="none";J.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var G=J.getElementsByTagName("*"),D=J.getElementsByTagName("a")[0];if(!G||!G.length||!D){return}o.support={leadingWhitespace:J.firstChild.nodeType==3,tbody:!J.getElementsByTagName("tbody").length,objectAll:!!J.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!J.getElementsByTagName("link").length,style:/red/.test(D.getAttribute("style")),hrefNormalized:D.getAttribute("href")==="/a",opacity:D.style.opacity==="0.5",cssFloat:!!D.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};F.type="text/javascript";try{F.appendChild(document.createTextNode("window."+I+"=1;"))}catch(H){}E.insertBefore(F,E.firstChild);if(k[I]){o.support.scriptEval=true;delete k[I]}E.removeChild(F);if(J.attachEvent&&J.fireEvent){J.attachEvent("onclick",function(){o.support.noCloneEvent=false;J.detachEvent("onclick",arguments.callee)});J.cloneNode(true).fireEvent("onclick")}o(function(){var K=document.createElement("div");K.style.width=K.style.paddingLeft="1px";document.body.appendChild(K);o.boxModel=o.support.boxModel=K.offsetWidth===2;document.body.removeChild(K).style.display="none"})})();var v=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":v,cssFloat:v,styleFloat:v,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(F,I,J){if(typeof F!=="string"){return this._load(F)}var H=F.indexOf(" ");if(H>=0){var D=F.slice(H,F.length);F=F.slice(0,H)}var G="GET";if(I){if(o.isFunction(I)){J=I;I=null}else{if(typeof I==="object"){I=o.param(I);G="POST"}}}var E=this;o.ajax({url:F,type:G,dataType:"html",data:I,complete:function(L,K){if(K=="success"||K=="notmodified"){E.html(D?o("<div/>").append(L.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(D):L.responseText)}if(J){E.each(J,[L.responseText,K,L])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(D,E){var F=o(this).val();return F==null?null:o.isArray(F)?o.map(F,function(H,G){return{name:E.name,value:H}}):{name:E.name,value:F}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(D,E){o.fn[E]=function(F){return this.bind(E,F)}});var q=e();o.extend({get:function(D,F,G,E){if(o.isFunction(F)){G=F;F=null}return o.ajax({type:"GET",url:D,data:F,success:G,dataType:E})},getScript:function(D,E){return o.get(D,null,E,"script")},getJSON:function(D,E,F){return o.get(D,E,F,"json")},post:function(D,F,G,E){if(o.isFunction(F)){G=F;F={}}return o.ajax({type:"POST",url:D,data:F,success:G,dataType:E})},ajaxSetup:function(D){o.extend(o.ajaxSettings,D)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return k.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},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(L){L=o.extend(true,L,o.extend(true,{},o.ajaxSettings,L));var V,E=/=\?(&|$)/g,Q,U,F=L.type.toUpperCase();if(L.data&&L.processData&&typeof L.data!=="string"){L.data=o.param(L.data)}if(L.dataType=="jsonp"){if(F=="GET"){if(!L.url.match(E)){L.url+=(L.url.match(/\?/)?"&":"?")+(L.jsonp||"callback")+"=?"}}else{if(!L.data||!L.data.match(E)){L.data=(L.data?L.data+"&":"")+(L.jsonp||"callback")+"=?"}}L.dataType="json"}if(L.dataType=="json"&&(L.data&&L.data.match(E)||L.url.match(E))){V="jsonp"+q++;if(L.data){L.data=(L.data+"").replace(E,"="+V+"$1")}L.url=L.url.replace(E,"="+V+"$1");L.dataType="script";k[V]=function(W){U=W;H();K();k[V]=g;try{delete k[V]}catch(X){}if(G){G.removeChild(S)}}}if(L.dataType=="script"&&L.cache==null){L.cache=false}if(L.cache===false&&F=="GET"){var D=e();var T=L.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+D+"$2");L.url=T+((T==L.url)?(L.url.match(/\?/)?"&":"?")+"_="+D:"")}if(L.data&&F=="GET"){L.url+=(L.url.match(/\?/)?"&":"?")+L.data;L.data=null}if(L.global&&!o.active++){o.event.trigger("ajaxStart")}var P=/^(\w+:)?\/\/([^\/?#]+)/.exec(L.url);if(L.dataType=="script"&&F=="GET"&&P&&(P[1]&&P[1]!=location.protocol||P[2]!=location.host)){var G=document.getElementsByTagName("head")[0];var S=document.createElement("script");S.src=L.url;if(L.scriptCharset){S.charset=L.scriptCharset}if(!V){var N=false;S.onload=S.onreadystatechange=function(){if(!N&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){N=true;H();K();S.onload=S.onreadystatechange=null;G.removeChild(S)}}}G.appendChild(S);return g}var J=false;var I=L.xhr();if(L.username){I.open(F,L.url,L.async,L.username,L.password)}else{I.open(F,L.url,L.async)}try{if(L.data){I.setRequestHeader("Content-Type",L.contentType)}if(L.ifModified){I.setRequestHeader("If-Modified-Since",o.lastModified[L.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}I.setRequestHeader("X-Requested-With","XMLHttpRequest");I.setRequestHeader("Accept",L.dataType&&L.accepts[L.dataType]?L.accepts[L.dataType]+", */*":L.accepts._default)}catch(R){}if(L.beforeSend&&L.beforeSend(I,L)===false){if(L.global&&!--o.active){o.event.trigger("ajaxStop")}I.abort();return false}if(L.global){o.event.trigger("ajaxSend",[I,L])}var M=function(W){if(I.readyState==0){if(O){clearInterval(O);O=null;if(L.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!J&&I&&(I.readyState==4||W=="timeout")){J=true;if(O){clearInterval(O);O=null}Q=W=="timeout"?"timeout":!o.httpSuccess(I)?"error":L.ifModified&&o.httpNotModified(I,L.url)?"notmodified":"success";if(Q=="success"){try{U=o.httpData(I,L.dataType,L)}catch(Y){Q="parsererror"}}if(Q=="success"){var X;try{X=I.getResponseHeader("Last-Modified")}catch(Y){}if(L.ifModified&&X){o.lastModified[L.url]=X}if(!V){H()}}else{o.handleError(L,I,Q)}K();if(W){I.abort()}if(L.async){I=null}}}};if(L.async){var O=setInterval(M,13);if(L.timeout>0){setTimeout(function(){if(I&&!J){M("timeout")}},L.timeout)}}try{I.send(L.data)}catch(R){o.handleError(L,I,null,R)}if(!L.async){M()}function H(){if(L.success){L.success(U,Q)}if(L.global){o.event.trigger("ajaxSuccess",[I,L])}}function K(){if(L.complete){L.complete(I,Q)}if(L.global){o.event.trigger("ajaxComplete",[I,L])}if(L.global&&!--o.active){o.event.trigger("ajaxStop")}}return I},handleError:function(E,G,D,F){if(E.error){E.error(G,D,F)}if(E.global){o.event.trigger("ajaxError",[G,E,F])}},active:0,httpSuccess:function(E){try{return !E.status&&location.protocol=="file:"||(E.status>=200&&E.status<300)||E.status==304||E.status==1223}catch(D){}return false},httpNotModified:function(F,D){try{var G=F.getResponseHeader("Last-Modified");return F.status==304||G==o.lastModified[D]}catch(E){}return false},httpData:function(I,G,F){var E=I.getResponseHeader("content-type"),D=G=="xml"||!G&&E&&E.indexOf("xml")>=0,H=D?I.responseXML:I.responseText;if(D&&H.documentElement.tagName=="parsererror"){throw"parsererror"}if(F&&F.dataFilter){H=F.dataFilter(H,G)}if(typeof H==="string"){if(G=="script"){o.globalEval(H)}if(G=="json"){H=k["eval"]("("+H+")")}}return H},param:function(D){var F=[];function G(H,I){F[F.length]=encodeURIComponent(H)+"="+encodeURIComponent(I)}if(o.isArray(D)||D.jquery){o.each(D,function(){G(this.name,this.value)})}else{for(var E in D){if(o.isArray(D[E])){o.each(D[E],function(){G(E,this)})}else{G(E,o.isFunction(D[E])?D[E]():D[E])}}}return F.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function s(E,D){var F={};o.each(d.concat.apply([],d.slice(0,D)),function(){F[this]=E});return F}o.fn.extend({show:function(I,K){if(I){return this.animate(s("show",3),I,K)}else{for(var G=0,E=this.length;G<E;G++){var D=o.data(this[G],"olddisplay");this[G].style.display=D||"";if(o.css(this[G],"display")==="none"){var F=this[G].tagName,J;if(m[F]){J=m[F]}else{var H=o("<"+F+" />").appendTo("body");J=H.css("display");if(J==="none"){J="block"}H.remove();m[F]=J}o.data(this[G],"olddisplay",J)}}for(var G=0,E=this.length;G<E;G++){this[G].style.display=o.data(this[G],"olddisplay")||""}return this}},hide:function(G,H){if(G){return this.animate(s("hide",3),G,H)}else{for(var F=0,E=this.length;F<E;F++){var D=o.data(this[F],"olddisplay");if(!D&&D!=="none"){o.data(this[F],"olddisplay",o.css(this[F],"display"))}}for(var F=0,E=this.length;F<E;F++){this[F].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(F,E){var D=typeof F==="boolean";return o.isFunction(F)&&o.isFunction(E)?this._toggle.apply(this,arguments):F==null||D?this.each(function(){var G=D?F:o(this).is(":hidden");o(this)[G?"show":"hide"]()}):this.animate(s("toggle",3),F,E)},fadeTo:function(D,F,E){return this.animate({opacity:F},D,E)},animate:function(H,E,G,F){var D=o.speed(E,G,F);return this[D.queue===false?"each":"queue"](function(){var J=o.extend({},D),L,K=this.nodeType==1&&o(this).is(":hidden"),I=this;for(L in H){if(H[L]=="hide"&&K||H[L]=="show"&&!K){return J.complete.call(this)}if((L=="height"||L=="width")&&this.style){J.display=o.css(this,"display");J.overflow=this.style.overflow}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=o.extend({},H);o.each(H,function(N,R){var Q=new o.fx(I,J,N);if(/toggle|show|hide/.test(R)){Q[R=="toggle"?K?"show":"hide":R](H)}else{var P=R.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),S=Q.cur(true)||0;if(P){var M=parseFloat(P[2]),O=P[3]||"px";if(O!="px"){I.style[N]=(M||1)+O;S=((M||1)/Q.cur(true))*S;I.style[N]=S+O}if(P[1]){M=((P[1]=="-="?-1:1)*M)+S}Q.custom(S,M,O)}else{Q.custom(S,R,"")}}});return true})},stop:function(E,D){var F=o.timers;if(E){this.queue([])}this.each(function(){for(var G=F.length-1;G>=0;G--){if(F[G].elem==this){if(D){F[G](true)}F.splice(G,1)}}});if(!D){this.dequeue()}return this}});o.each({slideDown:s("show",1),slideUp:s("hide",1),slideToggle:s("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(D,E){o.fn[D]=function(F,G){return this.animate(E,F,G)}});o.extend({speed:function(F,G,E){var D=typeof F==="object"?F:{complete:E||!E&&G||o.isFunction(F)&&F,duration:F,easing:E&&G||G&&!o.isFunction(G)&&G};D.duration=o.fx.off?0:typeof D.duration==="number"?D.duration:o.fx.speeds[D.duration]||o.fx.speeds._default;D.old=D.complete;D.complete=function(){if(D.queue!==false){o(this).dequeue()}if(o.isFunction(D.old)){D.old.call(this)}};return D},easing:{linear:function(F,G,D,E){return D+E*F},swing:function(F,G,D,E){return((-Math.cos(F*Math.PI)/2)+0.5)*E+D}},timers:[],fx:function(E,D,F){this.options=D;this.elem=E;this.prop=F;if(!D.orig){D.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(E){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var D=parseFloat(o.css(this.elem,this.prop,E));return D&&D>-10000?D:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(H,G,F){this.startTime=e();this.start=H;this.end=G;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;var D=this;function E(I){return D.step(I)}E.elem=this.elem;if(E()&&o.timers.push(E)&&!n){n=setInterval(function(){var J=o.timers;for(var I=0;I<J.length;I++){if(!J[I]()){J.splice(I--,1)}}if(!J.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(G){var F=e();if(G||F>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var D=true;for(var E in this.options.curAnim){if(this.options.curAnim[E]!==true){D=false}}if(D){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var H in this.options.curAnim){o.attr(this.elem.style,H,this.options.orig[H])}}this.options.complete.call(this.elem)}return false}else{var I=F-this.startTime;this.state=I/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,I,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(D){o.attr(D.elem.style,"opacity",D.now)},_default:function(D){if(D.elem.style&&D.elem.style[D.prop]!=null){D.elem.style[D.prop]=D.now+D.unit}else{D.elem[D.prop]=D.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var F=this[0].getBoundingClientRect(),I=this[0].ownerDocument,E=I.body,D=I.documentElement,K=D.clientTop||E.clientTop||0,J=D.clientLeft||E.clientLeft||0,H=F.top+(self.pageYOffset||o.boxModel&&D.scrollTop||E.scrollTop)-K,G=F.left+(self.pageXOffset||o.boxModel&&D.scrollLeft||E.scrollLeft)-J;return{top:H,left:G}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var I=this[0],F=I.offsetParent,E=I,N=I.ownerDocument,L,G=N.documentElement,J=N.body,K=N.defaultView,D=K.getComputedStyle(I,null),M=I.offsetTop,H=I.offsetLeft;while((I=I.parentNode)&&I!==J&&I!==G){L=K.getComputedStyle(I,null);M-=I.scrollTop,H-=I.scrollLeft;if(I===F){M+=I.offsetTop,H+=I.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(I.tagName))){M+=parseInt(L.borderTopWidth,10)||0,H+=parseInt(L.borderLeftWidth,10)||0}E=F,F=I.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&L.overflow!=="visible"){M+=parseInt(L.borderTopWidth,10)||0,H+=parseInt(L.borderLeftWidth,10)||0}D=L}if(D.position==="relative"||D.position==="static"){M+=J.offsetTop,H+=J.offsetLeft}if(D.position==="fixed"){M+=Math.max(G.scrollTop,J.scrollTop),H+=Math.max(G.scrollLeft,J.scrollLeft)}return{top:M,left:H}}}o.offset={initialize:function(){if(this.initialized){return}var K=document.body,E=document.createElement("div"),G,F,M,H,L,D,I=K.style.marginTop,J='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';L={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(D in L){E.style[D]=L[D]}E.innerHTML=J;K.insertBefore(E,K.firstChild);G=E.firstChild,F=G.firstChild,H=G.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(F.offsetTop!==5);this.doesAddBorderForTableAndCells=(H.offsetTop===5);G.style.overflow="hidden",G.style.position="relative";this.subtractsBorderForOverflowNotVisible=(F.offsetTop===-5);K.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(K.offsetTop===0);K.style.marginTop=I;K.removeChild(E);this.initialized=true},bodyOffset:function(D){o.offset.initialized||o.offset.initialize();var F=D.offsetTop,E=D.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){F+=parseInt(o.curCSS(D,"marginTop",true),10)||0,E+=parseInt(o.curCSS(D,"marginLeft",true),10)||0}return{top:F,left:E}}};o.fn.extend({position:function(){var H=0,G=0,E;if(this[0]){var F=this.offsetParent(),I=this.offset(),D=/^body|html$/i.test(F[0].tagName)?{top:0,left:0}:F.offset();I.top-=j(this,"marginTop");I.left-=j(this,"marginLeft");D.top+=j(F,"borderTopWidth");D.left+=j(F,"borderLeftWidth");E={top:I.top-D.top,left:I.left-D.left}}return E},offsetParent:function(){var D=this[0].offsetParent||document.body;while(D&&(!/^body|html$/i.test(D.tagName)&&o.css(D,"position")=="static")){D=D.offsetParent}return o(D)}});o.each(["Left","Top"],function(E,D){var F="scroll"+D;o.fn[F]=function(G){if(!this[0]){return null}return G!==g?this.each(function(){this==k||this==document?k.scrollTo(!E?G:o(k).scrollLeft(),E?G:o(k).scrollTop()):this[F]=G}):this[0]==k||this[0]==document?self[E?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[F]||document.body[F]:this[0][F]}});o.each(["Height","Width"],function(H,F){var D=H?"Left":"Top",G=H?"Right":"Bottom",E=F.toLowerCase();o.fn["inner"+F]=function(){return this[0]?o.css(this[0],E,false,"padding"):null};o.fn["outer"+F]=function(J){return this[0]?o.css(this[0],E,false,J?"margin":"border"):null};var I=F.toLowerCase();o.fn[I]=function(J){return this[0]==k?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):J===g?(this.length?o.css(this[0],I):null):this.css(I,typeof J==="string"?J:J+"px")}})})();jomsQuery.includejQuery();

/* FILE: /components/com_community/assets/window-1.0.pack.js */
function cWindowDraw(){joms.jQuery("#cWindow").remove();var a="";a+='<div id="cWindow">';a+="	<!-- top section -->";a+='	<div id="cwin_tl"></div>';a+='	<div id="cwin_tm"></div>';a+='	<div id="cwin_tr"></div>';a+='	<div style="clear: both;"></div>';a+="	<!-- middle section -->";a+='	<div id="cwin_ml"></div>';a+='	<div id="cWindowContentOuter">';a+='		<div id="cWindowContentTop">';a+='			<a href="javascript:void(0);" onclick="cWindowHide();" id="cwin_close_btn">Close</a>';a+='			<div id="cwin_logo"></div>';a+='           <div class="clr"></div>';a+="		</div>";a+='		<div id="cWindowContentWrap"><div id="cWindowContent">';a+="		</div></div>";a+="	</div>";a+='	<div id="cwin_mr"></div>';a+='	<div style="clear: both;"></div>';a+="	<!-- bottom section -->";a+='	<div id="cwin_bl"></div>';a+='	<div id="cwin_bm"></div>';a+='	<div id="cwin_br"></div>';a+='	<div style="clear: both;"></div>';a+="</div>";var b=joms.jQuery(a).addClass("new").prependTo("body");return b}function cWindowShow(d,e,b,a,c){var g=joms.jQuery("#cWindow");if(g.length<1){g=cWindowDraw()}c=(c==""||c==null)?"dialog":c;b=parseInt(b);a=parseInt(a);if(g.hasClass("new")){var f=cWindowGetSize(b,a);cWindowResizeAddTask("#cWindow",{width:f.width(),height:f.height(),left:f.left(),"margin-top":f.top(),"z-index":cGetZIndexMax()+1},{animate:false});cWindowResizeAddTask("#cWindowContentOuter, #cwin_tm, #cwin_bm",{width:f.contentOuterWidth()},{animate:false});cWindowResizeAddTask("#cWindowContentOuter, #cwin_ml, #cwin_mr",{height:f.contentOuterHeight()},{animate:false});cWindowResizeAddTask("#cWindowContentWrap",{height:f.contentWrapHeight()},{animate:false});cWindowResizeExecuteTask(function(){g.removeClass("new")})}joms.jQuery("#cWindow").attr("class",c);joms.jQuery("#cwin_logo").html(e);joms.jQuery("#cWindowContent").empty();joms.jQuery("#cWindowAction").remove();jax.loadingFunction=function(){joms.jQuery("#cWindowContentWrap").addClass("loading").css("overflow","hidden")};jax.doneLoadingFunction=function(){joms.jQuery("#cWindowContentWrap").removeClass("loading").css("overflow","auto")};if(joms.jQuery.browser.msie&&joms.jQuery.browser.version.substr(0,1)<7&&typeof(jomsIE6)!="undefined"&&jomsIE6==true){joms.jQuery("#cwin_tm, #cwin_bm, #cwin_ml, #cwin_mr").each(function(){joms.jQuery(this)[0].filters(0).sizingMethod="crop"})}cWindowResize2(b,a,d)}function cWindowHide(){if(joms.jQuery("#cWindowAction").size()>0){joms.jQuery("#cWindowAction").animate({bottom:-30},function(){joms.jQuery("#cWindow").fadeOut("fast",function(){joms.jQuery("#cWindowAction").remove();joms.jQuery(this).addClass("new")})})}else{joms.jQuery("#cWindow").fadeOut("fast",function(){joms.jQuery(this).addClass("new")})}}function cWindowGetSize(b,a){var c={contentWrapHeight:function(){return a},contentOuterWidth:function(){return b},contentOuterHeight:function(){return a+30},width:function(){return this.contentOuterWidth()+40},height:function(){return this.contentOuterHeight()+40},left:function(){return(joms.jQuery(window).width()-this.width())/2},top:function(){return joms.jQuery(document).scrollTop()+(document.documentElement.clientHeight-this.height())/2}};return c}function cWindowResize(a,c,b){a=parseInt(a);cWindowResize2(joms.jQuery("#cWindowContentOuter").width(),a,c);if(b!=undefined){cWindowActions(b)}}function cWindowResize2(b,a,e){var d=cWindowGetSize(b,a);var c={animate:(joms.jQuery("#cWindow").width()==d.width())};joms.jQuery("#cWindowContent").addClass("resizing");cWindowResizeAddTask("#cWindow",{width:d.width(),height:d.height(),left:d.left(),marginTop:d.top()},c);cWindowResizeAddTask("#cWindowContentOuter, #cwin_tm, #cwin_bm",{width:d.contentOuterWidth()},c);cWindowResizeAddTask("#cWindowContentOuter, #cwin_ml, #cwin_mr",{height:d.contentOuterHeight()},c);cWindowResizeAddTask("#cWindowContentWrap",{height:d.contentWrapHeight()},c);if(joms.jQuery("#cWindow").width()>d.width()||joms.jQuery("#cWindow").height()>d.height()){cWindowResizeTask.reverse()}cWindowResizeExecuteTask(e)}var cWindowResizeTask=new Array();function cWindowResizeAddTask(d,c,b){var e={};joms.jQuery.extend(e,c);var a={animate:true,queue:false,duration:400,easing:"swing",complete:function(){clearTimeout(window.cWindowResizeComplete);window.cWindowResizeComplete=setTimeout(function(){joms.jQuery("#cWindowContent").removeClass("resizing")},400);joms.jQuery(this).removeClass("resizing")}};joms.jQuery.extend(a,b);if(a.animate){cWindowResizeTask.push(function(){joms.jQuery(d).addClass("resizing").animate(e,a)})}else{cWindowResizeTask.push(function(){joms.jQuery(d).css(e)})}}function cWindowResizeExecuteTask(callback){do{cWindowResizeTask[0]();cWindowResizeTask.splice(0,1)}while(cWindowResizeTask.length>0);if(callback!=undefined&&typeof(callback)=="string"){eval(callback)}if(typeof(callback)=="function"){callback()}}var cWindowActionsPoll;function cWindowActions(a){clearInterval(cWindowActionsPoll);setTimeout(function(){clearInterval(cWindowActionsPoll);cWindowActionsPoll=setInterval(function(){var b=joms.jQuery(".resizing").length;if(b<1){_cWindowActions(a);clearInterval(cWindowActionsPoll)}},300)},300)}function _cWindowActions(a){joms.jQuery("#cWindowAction").remove();cWindowAction=joms.jQuery("<div>").attr("id","cWindowAction").html(a).css("bottom","-30px").appendTo("#cWindowContentOuter");cWindowResizeAddTask("#cWindow",{height:"+=30px"},{duration:200});cWindowResizeAddTask("#cWindow",{marginTop:"-=15px"},{duration:200});cWindowResizeAddTask("#cWindowContentOuter, #cwin_mr, #cwin_ml",{height:"+=30px"},{duration:200});cWindowResizeExecuteTask();setTimeout(function(){joms.jQuery("#cWindowAction").animate({bottom:"0px"})},200);jax.loadingFunction=function(){joms.jQuery("#cWindowAction").addClass("loading");joms.jQuery("#cWindowContent").find("input, textarea, button").attr("disabled",true)};jax.doneLoadingFunction=function(){joms.jQuery("#cWindowAction").removeClass("loading");joms.jQuery("#cWindowContent").find("input, textarea, button").attr("disabled",false)}}function cGetZIndexMax(){var d=document.getElementsByTagName?document.getElementsByTagName("*"):document.all;var c=0;for(var b=0;b<d.length;b++){var f=d[b];var a=null;if(f.currentStyle){a=f.currentStyle}else{if(document.defaultView&&document.defaultView.getComputedStyle){a=document.defaultView.getComputedStyle(f,"")}}var e;if(a){e=Number(a.zIndex)}else{e=Number(f.style.zIndex)}if(!isNaN(e)){c=Math.max(c,e)}}return c};

/* FILE: /components/com_community/assets/script-1.2.pack.js */
if(typeof(joms)=="undefined"){joms={jQuery:window.jQuery,extend:function(a){this.jQuery.extend(this,a)}}}joms.extend({plugins:{extend:function(a){joms.jQuery.extend(joms.plugins,a)},initialize:function(){joms.jQuery.each(joms.plugins,function(a,c){try{c.initialize()}catch(b){}})}},activities:{getContent:function(a){jax.call("community","activities,ajaxGetContent",a)},setContent:function(a,b){joms.jQuery("#profile-newsfeed-item-content-"+a).html(b);joms.jQuery("#profile-newsfeed-item-content-"+a).removeClass("small profile-newsfeed-item-action").addClass("newsfeed-content-hidden").slideDown()},showVideo:function(a){joms.jQuery("#profile-newsfeed-item-content-"+a+" .video-object").slideDown();joms.jQuery("#profile-newsfeed-item-content-"+a+" .video-object embed").css("width",joms.jQuery("#profile-newsfeed-item-content-"+a).width())}},apps:{windowTitle:"",toggle:function(a){joms.jQuery(a).children(".app-box-actions").slideToggle("fast");joms.jQuery(a).children(".app-box-footer").slideToggle("fast");joms.jQuery(a).children(".app-box-content").slideToggle("fast",function(){joms.jQuery.cookie(a,joms.jQuery(this).css("display"));joms.jQuery(a).toggleClass("collapse",(joms.jQuery(this).css("display")=="none"))})},showAboutWindow:function(a){var b="jax.call('community', 'apps,ajaxShowAbout', '"+a+"');";cWindowShow(b,"",450,100)},showPrivacyWindow:function(a){var b="jax.call('community', 'apps,ajaxShowPrivacy', '"+a+"');";cWindowShow(b,"",450,100)},showSettingsWindow:function(c,a){var b="jax.call('community', 'apps,ajaxShowSettings', '"+c+"', '"+a+"');";cWindowShow(b,"",450,100)},savePrivacy:function(){var b=joms.jQuery("input[name=privacy]:checked").val();var a=joms.jQuery("input[name=appname]").val();jax.call("community","apps,ajaxSavePrivacy",a,b)},saveSettings:function(){jax.call("community","apps,ajaxSaveSettings",jax.getFormValues("appSetting"))},remove:function(a){var b="jax.call('community', 'apps,ajaxRemove', '"+a+"');";cWindowShow(b,this.windowTitle,450,100)},add:function(a){jax.call("community","apps,ajaxAdd",a)},initToggle:function(){joms.jQuery(".app-box").each(function(){var a="#"+joms.jQuery(this).attr("id");if(joms.jQuery.cookie(a)=="none"){joms.jQuery(a).addClass("collapse");joms.jQuery(a).children(".app-box-actions").css("display","none");joms.jQuery(a).children(".app-box-footer").css("display","none");joms.jQuery(a).children(".app-box-content").css("display","none")}})}},bookmarks:{show:function(a){var b="jax.call('community', 'bookmarks,ajaxShowBookmarks','"+a+"');";cWindowShow(b,"",450,100)},email:function(a){var d=jax.getFormValues("bookmarks-email");var c=d[1][1];var b=d[0][1];var e="jax.call('community', 'bookmarks,ajaxEmailPage','"+a+"','"+b+"',\""+c+'");';cWindowShow(e,"",450,100)}},report:{emptyMessage:"",checkReport:function(){if(joms.jQuery("#report-message").val()==""){joms.jQuery("#report-message-error").html(this.emptyMessage).css("color","red");return false}return true},showWindow:function(a,b){var c='jax.call("community" , "system,ajaxReport" , "'+a+'","'+location.href+'" ,'+b+");";cWindowShow(c,"",450,100)},submit:function(b,c,d){if(joms.report.checkReport()){var e=jax.getFormValues("report-form");var a='jax.call("community", "system,ajaxSendReport","'+b+'","'+location.href+'","'+e[1][1]+'" , '+d+")";cWindowShow(a,"",450,100)}}},featured:{add:function(c,a){var b="jax.call('community', '"+a+",ajaxAddFeatured', '"+c+"');";cWindowShow(b,"",450,100)},remove:function(c,a){var b="jax.call('community','"+a+",ajaxRemoveFeatured','"+c+"');";cWindowShow(b,"",450,100)}},flash:{enabled:function(){try{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{a.AllowScriptAccess="always"}catch(b){return"6,0,0"}}catch(b){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(b){}}return false}},notifications:{showWindow:function(){var a='jax.call("community", "notification,ajaxGetNotification", "")';cWindowShow(a,"",450,100)},updateNotifyCount:function(){var a=joms.jQuery("#toolbar-item-notify-count").text();if(joms.jQuery.trim(a)!=""&&a>0){a=a-1;joms.jQuery("#toolbar-item-notify-count").html(a);if(a==0){joms.jQuery("#toolbar-item-notify").hide()}}}},filters:{bind:function(){var a=this.loading;joms.jQuery(document).ready(function(){joms.jQuery(".newest-member").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetNewestMember",frontpageUsers)}});joms.jQuery(".active-member").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActiveMember",frontpageUsers)}});joms.jQuery(".popular-member").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetPopularMember",frontpageUsers)}});joms.jQuery(".featured-member").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetFeaturedMember",frontpageUsers)}});joms.jQuery(".all-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","all")}});joms.jQuery(".me-and-friends-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","me-and-friends")}});joms.jQuery(".active-profile-and-friends-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","active-profile-and-friends",joms.user.getActive())}});joms.jQuery(".active-profile-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","active-profile",joms.user.getActive())}});joms.jQuery(".p-active-profile-and-friends-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","active-profile-and-friends",joms.user.getActive(),"profile")}});joms.jQuery(".p-active-profile-activity").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetActivities","active-profile",joms.user.getActive(),"profile")}});joms.jQuery(".newest-videos").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetNewestVideos",frontpageVideos)}});joms.jQuery(".popular-videos").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetPopularVideos",frontpageVideos)}});joms.jQuery(".featured-videos").bind("click",function(){if(!joms.jQuery(this).hasClass("active-state")){a(joms.jQuery(this).attr("class"));jax.call("community","frontpage,ajaxGetFeaturedVideos",frontpageVideos)}});joms.jQuery(".popular-member").css("border-right","0").css("padding-right","0");joms.jQuery(".me-and-friends-activity").css("border-right","0").css("padding-right","0");joms.jQuery(".active-profile-activity").css("border-right","0").css("padding-right","0")})},loading:function(a){elParent=joms.jQuery("."+a).parent().parent().attr("id");if(elParent===""){elParent=joms.jQuery("."+a).parent().attr("id")}joms.jQuery("#"+elParent+" .loading").show();joms.jQuery("#"+elParent+" a").removeClass("active-state");joms.jQuery("."+a).addClass("active-state")},hideLoading:function(){joms.jQuery(".loading").hide();joms.jQuery(".jomTipsJax").addClass("jomTips");joms.tooltip.setup()}},groups:{invitation:{accept:function(a){jax.call("community","groups,ajaxAcceptInvitation",a)},reject:function(a){jax.call("community","groups,ajaxRejectInvitation",a)}},addInvite:function(a){var b=joms.jQuery("#"+a).parent().attr("id");if(b=="friends-list"){joms.jQuery("#friends-invited").append(joms.jQuery("#"+a)).html()}else{joms.jQuery("#friends-list").append(joms.jQuery("#"+a)).html()}},removeTopic:function(d,a,b){var c='jax.call("community","groups,ajaxShowRemoveDiscussion", "'+a+'","'+b+'");';cWindowShow(c,d,450,100)},editBulletin:function(){if(joms.jQuery("#bulletin-edit-data").css("display")=="none"){joms.jQuery("#bulletin-edit-data").show()}else{joms.jQuery("#bulletin-edit-data").hide()}},removeBulletin:function(d,a,b){var c='jax.call("community", "groups,ajaxShowRemoveBulletin", "'+a+'","'+b+'");';cWindowShow(c,d,450,100)},unpublish:function(a){jax.call("community","groups,ajaxUnpublishGroup",a)},leave:function(a){var b='jax.call("community", "groups,ajaxShowLeaveGroup", "'+a+'");';cWindowShow(b,"",450,100)},joinWindow:function(a){var b='jax.call("community", "groups,ajaxShowJoinGroup", "'+a+'", location.href );';cWindowShow(b,"",450,100)},edit:function(){joms.jQuery("#community-group-info .cdata").each(function(){if(joms.jQuery(this).next().html()&&joms.jQuery(this).css("display")!="none"){joms.jQuery(this).css("display","none")}else{joms.jQuery(this).css("display","block")}});joms.jQuery("#community-group-info .cinput").each(function(){if(joms.jQuery(this).css("display")=="none"){joms.jQuery(this).css("display","block")}else{joms.jQuery(this).css("display","none")}});if(joms.jQuery("div#community-group-info-actions").css("display")!="none"){joms.jQuery("div#community-group-info-actions").css("display","none")}else{joms.jQuery("div#community-group-info-actions").css("display","block")}},save:function(b){var d=joms.jQuery("#community-group-name").val();var f=joms.jQuery("#community-group-description").val();var c=joms.jQuery("#community-group-website").val();var e=joms.jQuery("#community-group-category").val();var a=joms.jQuery("input[@name='group-approvals']:checked").val();jax.call("community","groups,ajaxSaveGroup",b,d,f,c,e,a)},update:function(d,c,a,b){joms.jQuery("#community-group-data-name").html(d);joms.jQuery("#community-group-data-description").html(c);joms.jQuery("#community-group-data-website").html(a);joms.jQuery("#community-group-data-category").html(b);this.edit()},removeMember:function(a,b){jax.call("community","groups,ajaxRemoveMember",a,b)},deleteGroup:function(a){var b="jax.call('community', 'groups,ajaxWarnGroupDeletion', '"+a+"');";cWindowShow(b,"",450,100,"warning")}},friends:{saveTag:function(){var a=jax.getFormValues("tagsForm");jax.call("community","friends,ajaxFriendTagSave",a);return false},saveGroup:function(a){if(document.getElementById("newtag").value==""){window.alert("TPL_DB_INVALIDTAG")}else{jax.call("community","friends,ajaxAddGroup",a,joms.jQuery("#newtag").val())}},cancelRequest:function(a){var b='jax.call("community" , "friends,ajaxCancelRequest" , "'+a+'");';cWindowShow(b,"",450,100)},connect:function(a){var b='jax.call("community", "friends,ajaxConnect", '+a+")";cWindowShow(b,"",450,100)},addNow:function(){var a=jax.getFormValues("addfriend");jax.call("community","friends,ajaxSaveFriend",a);return false}},messaging:{loadComposeWindow:function(a){var b='jax.call("community", "inbox,ajaxCompose", '+a+")";cWindowShow(b,"",450,100)},send:function(){var a=jax.getFormValues("writeMessageForm");jax.call("community","inbox,ajaxSend",a);return false}},walls:{add:function(b,a){jax.loadingFunction=function(){joms.jQuery("#wall-message").attr("disabled",true);joms.jQuery("#wall-submit").attr("disabled",true)};jax.doneLoadingFunction=function(){joms.jQuery("#wall-message").attr("disabled",false);joms.jQuery("#wall-submit").attr("disabled",false)};if(typeof getCacheId=="function"){cache_id=getCacheId()}else{cache_id=""}jax.call("community",a,joms.jQuery("#wall-message").val(),b,cache_id)},insert:function(a){joms.jQuery("#wall-message").val("");joms.jQuery("#wallContent").prepend(a)},remove:function(a,b,c){if(confirm("Are you sure you want to delete this wall?")){jax.call("community",a+",ajaxRemoveWall",b,c);joms.jQuery("#wall_"+b).fadeOut("normal",function(){joms.jQuery(this).remove()})}},update:function(b,a){cWindowHide();joms.jQuery("#wall_"+b).replaceWith(a)},save:function(b,a){jax.call("community","system,ajaxUpdateWall",b,joms.jQuery("#wall-edit-"+b).val(),a)},edit:function(b,a){if(joms.jQuery("#wall-edit-"+b).val()!=null){joms.jQuery("#wall-message-"+b).show();joms.jQuery("#wall-edit-container-"+b).remove()}else{joms.jQuery("#wall-message-"+b).hide();joms.jQuery("#wall_"+b+" div.content").prepend('<span id="wall-edit-container-'+b+'"></span>').prepend('<div class="loading" style="display:block;float: left;"></div>');jax.call("community","system,ajaxEditWall",b,a);joms.utils.textAreaWidth("#wall-edit-"+b);joms.utils.autogrow("#wall-edit-"+b)}}},toolbar:{timeout:500,closetimer:0,ddmenuitem:0,open:function(a){if(joms.jQuery("#"+a).length>0){joms.toolbar.cancelclosetime();if(joms.toolbar.ddmenuitem){joms.toolbar.ddmenuitem.style.visibility="hidden"}joms.toolbar.ddmenuitem=document.getElementById(a);joms.toolbar.ddmenuitem.style.visibility="visible"}},close:function(){if(joms.toolbar.ddmenuitem){joms.toolbar.ddmenuitem.style.visibility="hidden"}},closetime:function(){joms.toolbar.closetimer=window.setTimeout(joms.toolbar.close,joms.toolbar.timeout)},cancelclosetime:function(){if(joms.toolbar.closetimer){window.clearTimeout(joms.toolbar.closetimer);joms.toolbar.closetimer=null}}},registrations:{windowTitle:"",showTermsWindow:function(){var a='jax.call("community", "register,ajaxShowTnc", "")';cWindowShow(a,this.windowTitle,600,350)},authenticate:function(){jax.call("community","register,ajaxGenerateAuthKey")},authenticateAssign:function(){jax.call("community","register,ajaxAssignAuthKey")},assignAuthKey:function(fname,lblname,authkey){eval("document.forms['"+fname+"'].elements['"+lblname+"'].value = '"+authkey+"';")},showWarning:function(a){cWindowShow("joms.jQuery('#cWindowContent').html('"+a+"')","Notice",450,200,"warning")}},comments:{add:function(b){var a=joms.jQuery("#"+b+" textarea").val();if(a!=""){joms.jQuery("#"+b+" .wall-coc-form-action.add").attr("disabled",true);if(typeof getCacheId=="function"){cache_id=getCacheId()}else{cache_id=""}jax.call("community","plugins,walls,ajaxAddComment",b,a,cache_id)}},insert:function(b,a){joms.jQuery("#"+b+" form").before(a);joms.comments.cancel(b)},remove:function(d){var c=joms.jQuery(d).parents(".wallcmt");var a=joms.jQuery(d).parents(".wallcmt").parent().children().index(c);try{console.log(a)}catch(b){}var e=joms.jQuery(d).parents(".wallcmt").parent().attr("id");try{console.log(e)}catch(b){}jax.call("community","plugins,walls,ajaxRemoveComment",e,a)},cancel:function(a){joms.jQuery("#"+a+" textarea").val("");joms.jQuery("#"+a+" form").hide();joms.jQuery("#"+a+" .show-cmt").show();joms.jQuery("#"+a+" .wall-coc-errors").hide()},show:function(c){var b=joms.jQuery("#"+c+" form").parent().width();joms.jQuery("#"+c+" .wall-coc-form-action.add").attr("disabled",false);joms.jQuery("#"+c+" form").width(b).show();joms.jQuery("#"+c+" .show-cmt").hide();var a=joms.jQuery("#"+c+" textarea");joms.utils.textAreaWidth(a);joms.utils.autogrow(a);a.blur(function(){if(joms.jQuery(this).val()==""){joms.comments.cancel(c)}})}},utils:{textAreaWidth:function(target){with(joms.jQuery(target)){css("width","100%");css("width",width()-parseInt(css("borderLeftWidth"))-parseInt(css("borderRightWidth"))-parseInt(css("padding-left"))-parseInt(css("padding-right")))}},autogrow:function(b,a){if(a==undefined){a={}}a.maxHeight=a.maxHeight||300;joms.jQuery(b).autogrow(a)}},maps:{mapsObj:null,geocoder:null,initialize:function(c,a,d,b){if(typeof google.maps=="undefined"){setTimeout("joms.maps.initialize('"+c+"', '"+a+"')",1000)}else{joms.maps.geocoder=new google.maps.Geocoder();joms.maps.geocoder.geocode({address:a},function(j,f){if(f==google.maps.GeocoderStatus.OK){if(joms.maps.mapsObj==null){joms.maps.mapsObj=new Array()}var l=new google.maps.LatLng(-34.397,150.644);var g={zoom:14,center:l,mapTypeId:google.maps.MapTypeId.ROADMAP};var h=joms.maps.mapsObj.length;joms.maps.mapsObj[h]=new google.maps.Map(document.getElementById(c),g);joms.maps.mapsObj[h].setCenter(j[0].geometry.location);var e=new google.maps.Marker({map:joms.maps.mapsObj[h],position:j[0].geometry.location,title:d});if(b.length>0){var k=new google.maps.InfoWindow({content:b});google.maps.event.addListener(e,"click",function(){var m=joms.jQuery("div#"+c).data("maps");k.open(joms.maps.mapsObj[m],e)})}joms.jQuery("div#"+c).data("maps",h)}else{alert("Geocode was not successful for the following reason: "+f)}})}},addMarker:function(e,f,g,h,a){if(joms.maps.mapsObj==null){setTimeout("joms.maps.addMarker('"+e+"', "+f+", "+g+", '"+h+"', '"+a+"')",1000)}else{var j=joms.jQuery("div#"+e).data("maps");var c=new google.maps.LatLng(f,g);var d=new google.maps.Marker({position:c,map:joms.maps.mapsObj[j],title:h});if(a.length>0){var b=new google.maps.InfoWindow({content:a});google.maps.event.addListener(d,"click",function(){var k=joms.jQuery("div#"+e).data("maps");b.open(joms.maps.mapsObj[k],d)})}}}},connect:{checkRealname:function(a){var b=jax.loadingFunction;jax.loadingFunction=function(){};jax.doneLoadingFunction=function(){jax.loadingFunction=b};jax.call("community","connect,ajaxCheckName",a)},checkEmail:function(a){var b=jax.loadingFunction;jax.loadingFunction=function(){};jax.doneLoadingFunction=function(){jax.loadingFunction=b};jax.call("community","connect,ajaxCheckEmail",a)},checkUsername:function(a){var b=jax.loadingFunction;jax.loadingFunction=function(){};jax.doneLoadingFunction=function(){jax.loadingFunction=b};jax.call("community","connect,ajaxCheckUsername",a)},update:function(){var a="jax.call('community', 'connect,ajaxUpdate' );";cWindowShow(a,"",450,200)},updateEmail:function(){joms.jQuery("#facebook-email-update").submit()},importData:function(){var b=joms.jQuery("#importstatus").is(":checked")?1:0;var a=joms.jQuery("#importavatar").is(":checked")?1:0;jax.call("community","connect,ajaxImportData",b,a)},mergeNotice:function(){var a="jax.call('community','connect,ajaxMergeNotice');";cWindowShow(a,"",450,200)},merge:function(){var a="jax.call('community','connect,ajaxMerge');";cWindowShow(a,"",450,200)},validateUser:function(){var a="jax.call('community','connect,ajaxValidateLogin','"+joms.jQuery("#existingusername").val()+"','"+joms.jQuery("#existingpassword").val()+"');";cWindowShow(a,"",450,200)},newUser:function(){var a="jax.call('community','connect,ajaxShowNewUserForm');";cWindowShow(a,"",450,200)},existingUser:function(){var a="jax.call('community','connect,ajaxShowExistingUserForm');";cWindowShow(a,"",450,200)},selectType:function(){if(joms.jQuery("[name=membertype]:checked").val()=="1"){joms.connect.newUser()}else{joms.connect.existingUser()}},validateNewAccount:function(){jax.call("community","connect,ajaxCheckEmail",joms.jQuery("#newemail").val());jax.call("community","connect,ajaxCheckUsername",joms.jQuery("#newusername").val());jax.call("community","connect,ajaxCheckName",joms.jQuery("#newname").val());var a=true;if(joms.jQuery("#newname").val()==""||joms.jQuery("#error-newname").css("display")!="none"){a=false}if(joms.jQuery("#newusername").val()==""||joms.jQuery("#error-newusername").css("display")!="none"){a=false}if(joms.jQuery("#newemail").val()==""||joms.jQuery("#error-newemail").css("display")!="none"){a=false}if(a){var b="jax.call('community', 'connect,ajaxCreateNewAccount' , '"+joms.jQuery("#newname").val()+"', '"+joms.jQuery("#newusername").val()+"','"+joms.jQuery("#newemail").val()+"');";cWindowShow(b,"",450,200)}}},videos:{playProfileVideo:function(b,a){jax.call("community","profile,ajaxPlayProfileVideo",b,a)},linkConfirmProfileVideo:function(b){var a="jax.call('community', 'profile,ajaxConfirmLinkProfileVideo', '"+b+"');";cWindowShow(a,"",450,100)},linkProfileVideo:function(b){var a="jax.call('community', 'profile,ajaxLinkProfileVideo', '"+b+"');";cWindowShow(a,"",450,100)},removeConfirmProfileVideo:function(a,b){var c="jax.call('community', 'profile,ajaxRemoveConfirmLinkProfileVideo', '"+a+"', '"+b+"');";cWindowShow(c,"",450,100)},removeLinkProfileVideo:function(a,b){var c="jax.call('community', 'profile,ajaxRemoveLinkProfileVideo', '"+a+"', '"+b+"');";cWindowShow(c,"",450,100)},showEditWindow:function(c,a){if(typeof a=="undefined"){a=""}var b="jax.call('community', 'videos,ajaxEditVideo', '"+c+"' , '"+a+"');";cWindowShow(b,"",450,400)},deleteVideo:function(a){var b="jax.call('community' , 'videos,ajaxRemoveVideo', '"+a+"','myvideos');";cWindowShow(b,"",450,150)},playerConf:{},addVideo:function(b,a){if(typeof b=="undefined"||b==""){var b="";var a=""}var c="jax.call('community', 'videos,ajaxAddVideo', '"+b+"', '"+a+"');";cWindowShow(c,"",450,100)},linkVideo:function(b,a){var c="jax.call('community', 'videos,ajaxLinkVideo', '"+b+"', '"+a+"');";cWindowShow(c,"",450,100)},uploadVideo:function(b,a){var c="jax.call('community', 'videos,ajaxUploadVideo', '"+b+"', '"+a+"');";cWindowShow(c,"",450,100)},submitLinkVideo:function(){var a=true;videoLinkUrl="#linkVideo input[name='videoLinkUrl']";if(joms.jQuery.trim(joms.jQuery(videoLinkUrl).val())==""){joms.jQuery(videoLinkUrl).addClass("invalid");a=false}else{joms.jQuery(videoLinkUrl).removeClass("invalid")}if(a){joms.jQuery("#cwin-wait").css("margin-left","20px");joms.jQuery("#cwin-wait").show();document.linkVideo.submit()}},submitUploadVideo:function(){var a=true;videoFile="#uploadVideo input[name='videoFile']";if(joms.jQuery.trim(joms.jQuery(videoFile).val())==""){joms.jQuery(videoFile).addClass("invalid");a=false}else{joms.jQuery(videoFile).removeClass("invalid")}videoTitle="#uploadVideo input[name='title']";if(joms.jQuery.trim(joms.jQuery(videoTitle).val())==""){joms.jQuery(videoTitle).addClass("invalid");a=false}else{joms.jQuery(videoTitle).removeClass("invalid")}if(a){joms.jQuery("#cwin-wait").css("margin-left","20px");joms.jQuery("#cwin-wait").show();document.uploadVideo.submit()}},fetchThumbnail:function(a){var b="jax.call('community' , 'videos,ajaxFetchThumbnail', '"+a+"','myvideos');";cWindowShow(b,"",450,150)}},users:{banUser:function(a,b){var c="jax.call('community', 'profile,ajaxBanUser', '"+a+"' , '"+b+"');";cWindowShow(c,"",450,100)},removePicture:function(a){var b="jax.call('community', 'profile,ajaxRemovePicture', '"+a+"');";cWindowShow(b,"",450,100)},uploadNewPicture:function(a){var b="jax.call('community', 'profile,ajaxUploadNewPicture', '"+a+"');";cWindowShow(b,"",450,100)},blockUser:function(a){var b='jax.call("community", "profile,ajaxBlockUser", "'+a+'");';cWindowShow(b,"",450,100)},unBlockUser:function(a,b){b=b||null;var c='jax.call("community", "profile,ajaxUnblockUser", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)}},user:{getActive:function(){return js_profileId}},events:{deleteEvent:function(a){var b="jax.call('community', 'events,ajaxWarnEventDeletion', '"+a+"');";cWindowShow(b,"",450,100,"warning")},join:function(a){var b='jax.call("community", "events,ajaxRequestInvite", "'+a+'", location.href );';cWindowShow(b,"",450,100)},leave:function(a){var b='jax.call("community", "events,ajaxIgnoreEvent", "'+a+'");';cWindowShow(b,"",450,100)},sendmail:function(a){var b='jax.call("community", "events,ajaxSendEmail", "'+a+'");';cWindowShow(b,"",450,300)},confirmBlockGuest:function(a,b){var c='jax.call("community", "events,ajaxConfirmBlockGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},blockGuest:function(a,b){var c='jax.call("community", "events,ajaxBlockGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},confirmUnblockGuest:function(a,b){var c='jax.call("community", "events,ajaxConfirmUnblockGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},unblockGuest:function(a,b){var c='jax.call("community", "events,ajaxUnblockGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},confirmRemoveGuest:function(a,b){var c='jax.call("community", "events,ajaxConfirmRemoveGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},removeGuest:function(a,b){var c='jax.call("community", "events,ajaxRemoveGuest", "'+a+'", "'+b+'");';cWindowShow(c,"",450,100)},joinNow:function(a){jax.call("community","events,ajaxJoinInvitation",a)},rejectNow:function(a){jax.call("community","events,ajaxRejectInvitation",a)}},profile:{setStatusLimit:function(a){joms.jQuery(a).keyup(function(){var b=parseInt(joms.jQuery(this).attr("maxlength"));if(joms.jQuery(this).val().length>b){joms.jQuery(this).val(joms.jQuery(this).val().substr(0,joms.jQuery(this).attr("maxlength")))}joms.jQuery("#profile-status-notice span").html((b-joms.jQuery(this).val().length))})}},tooltip:{setup:function(){joms.jQuery(".qtip-active").hide();setTimeout("joms.jQuery('.qtip-active').hide()",150);try{clearTimeout(joms.jQuery.fn.qtip.timers.show)}catch(a){}joms.jQuery(".jomTips").each(function(){var c="tipNormal";var b=220;var j={corner:{target:"topMiddle",tooltip:"bottomMiddle"}};var d=true;var g={when:{event:"mouseout"},effect:{length:10}};if(joms.jQuery(this).hasClass("tipRight")){c="tipRight";b=320;j={corner:{target:"rightMiddle",tooltip:"leftMiddle"}}}if(joms.jQuery(this).hasClass("tipWide")){b=420}if(joms.jQuery(this).hasClass("tipFullWidth")){b=joms.jQuery(this).innerWidth()-20}var h="";var f=joms.jQuery(this).attr("title");var e=f.split("::");joms.jQuery(this).attr("title","");if(e.length==2){f=e[1];h={text:e[0]}}else{h=h={text:""}}joms.jQuery(this).qtip({content:{text:f,title:h},style:{name:c,width:b},position:j,hide:g,show:{solo:true,effect:{length:50}}}).removeClass("jomTips")});return true},setStyle:function(){joms.jQuery.fn.qtip.styles.tipNormal={width:320,border:{width:7,radius:5},tip:true,name:"dark"};joms.jQuery.fn.qtip.styles.tipRight={tip:"leftMiddle",name:"tipNormal"};return true}}});joms.jQuery(document).click(function(){joms.toolbar.close()});function get_cookies_array(){var d={};if(document.cookie&&document.cookie!=""){var b=document.cookie.split(";");for(var a=0;a<b.length;a++){var c=b[a].split("=");c[0]=c[0].replace(/^ /,"");d[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}}return d}joms.jQuery(document).ready(function(){joms.jQuery;joms.tooltip.setStyle();joms.tooltip.setup();joms.apps.initToggle();joms.plugins.initialize()});joms.jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=joms.jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};(function(a){joms.jQuery.fn.autogrow=function(b){this.filter("textarea").each(function(){var c=joms.jQuery(this);c.css("overflow","hidden");b.minHeight=b.minHeight||c.height();b.maxHeight=b.maxHeight||0;c.siblings(".textarea-shadow").remove();var g=joms.jQuery('<div class="textarea-shadow">').css({position:"absolute",visibility:"hidden","font-size":(c[0].currentStyle==undefined)?c.css("font-size"):c[0].currentStyle.fontSize,"font-family":c.css("font-family"),"line-height":c.css("line-height"),width:c.width()}).insertBefore(c);var f;var e=function(){var k=function(l,o){var n="";for(var m=0;m<o;m++){n=n+l}return n};var j=c[0].value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\njQuery/,"<br/>&nbsp;").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(l){return k("&nbsp;",l.length-1)+" "});g.html(j);var h=Math.max(g.height()+20,b.minHeight);if(h<b.maxHeight||b.maxHeight==0){c.css({height:h,overflow:"hidden"})}else{c.css("overflow","auto")}clearTimeout(f)};var d=function(){f=setTimeout(e,100)};c.change(d).keydown(d).keyup(d);e.apply(this)});return this}})(joms.jQuery);
/*
 * jquery.qtip. The jQuery tooltip plugin
 *
 * Copyright (c) 2009 Craig Thompson
 * http://craigsworks.com
 *
 * Licensed under MIT
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Launch  : February 2009
 * Version : 1.0.0-rc3
 * Released: Tuesday 12th May, 2009 - 00:00
 * Debug: jquery.qtip.debug.js
 */
(function(r){r.fn.qtip=function(B,u){var y,t,A,s,x,w,v,z;if(typeof B=="string"){if(typeof joms.jQuery(this).data("qtip")!=="object"){r.fn.qtip.log.error.call(self,1,r.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(B=="api"){return joms.jQuery(this).data("qtip").interfaces[r(this).data("qtip").current]}else{if(B=="interfaces"){return joms.jQuery(this).data("qtip").interfaces}}}else{if(!B){B={}}if(typeof B.content!=="object"||(B.content.jquery&&B.content.length>0)){B.content={text:B.content}}if(typeof B.content.title!=="object"){B.content.title={text:B.content.title}}if(typeof B.position!=="object"){B.position={corner:B.position}}if(typeof B.position.corner!=="object"){B.position.corner={target:B.position.corner,tooltip:B.position.corner}}if(typeof B.show!=="object"){B.show={when:B.show}}if(typeof B.show.when!=="object"){B.show.when={event:B.show.when}}if(typeof B.show.effect!=="object"){B.show.effect={type:B.show.effect}}if(typeof B.hide!=="object"){B.hide={when:B.hide}}if(typeof B.hide.when!=="object"){B.hide.when={event:B.hide.when}}if(typeof B.hide.effect!=="object"){B.hide.effect={type:B.hide.effect}}if(typeof B.style!=="object"){B.style={name:B.style}}B.style=c(B.style);s=r.extend(true,{},r.fn.qtip.defaults,B);s.style=a.call({options:s},s.style);s.user=r.extend(true,{},B)}return joms.jQuery(this).each(function(){if(typeof B=="string"){w=B.toLowerCase();A=r(this).qtip("interfaces");if(typeof A=="object"){if(u===true&&w=="destroy"){while(A.length>0){A[A.length-1].destroy()}}else{if(u!==true){A=[r(this).qtip("api")]}for(y=0;y<A.length;y++){if(w=="destroy"){A[y].destroy()}else{if(A[y].status.rendered===true){if(w=="show"){A[y].show()}else{if(w=="hide"){A[y].hide()}else{if(w=="focus"){A[y].focus()}else{if(w=="disable"){A[y].disable(true)}else{if(w=="enable"){A[y].disable(false)}}}}}}}}}}}else{v=r.extend(true,{},s);v.hide.effect.length=s.hide.effect.length;v.show.effect.length=s.show.effect.length;if(v.position.container===false){v.position.container=r(document.body)}if(v.position.target===false){v.position.target=r(this)}if(v.show.when.target===false){v.show.when.target=r(this)}if(v.hide.when.target===false){v.hide.when.target=r(this)}t=r.fn.qtip.interfaces.length;for(y=0;y<t;y++){if(typeof joms.jQuery.fn.qtip.interfaces[y]=="undefined"){t=y;break}}x=new d(r(this),v,t);r.fn.qtip.interfaces[t]=x;if(r(this).data("qtip")!==null&&typeof r(this).data("qtip")=="object"){if(typeof joms.jQuery(this).attr("qtip")==="undefined"){r(this).data("qtip").current=r(this).data("qtip").interfaces.length}r(this).data("qtip").interfaces.push(x)}else{joms.jQuery(this).data("qtip",{current:0,interfaces:[x]})}if(v.content.prerender===false&&v.show.when.event!==false&&v.show.ready!==true){v.show.when.target.bind(v.show.when.event+".qtip-"+t+"-create",{qtip:t},function(C){z=r.fn.qtip.interfaces[C.data.qtip];z.options.show.when.target.unbind(z.options.show.when.event+".qtip-"+C.data.qtip+"-create");z.cache.mouse={x:C.pageX,y:C.pageY};o.call(z);z.options.show.when.target.trigger(z.options.show.when.event)})}else{x.cache.mouse={x:v.show.when.target.offset().left,y:v.show.when.target.offset().top};o.call(x)}}})};function d(u,t,v){var s=this;s.id=v;s.options=t;s.status={animated:false,rendered:false,disabled:false,focused:false};s.elements={target:u.addClass(s.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};s.cache={mouse:{},position:{},toggle:0};s.timers={};r.extend(s,s.options.api,{show:function(y){var x,z;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(s.elements.tooltip.css("display")!=="none"){return s}s.elements.tooltip.stop(true,false);x=s.beforeShow.call(s,y);if(x===false){return s}function w(){if(s.options.position.type!=="static"){s.focus()}s.onShow.call(s,y);if(r.browser.msie){s.elements.tooltip.get(0).style.removeAttribute("filter")}}s.cache.toggle=1;if(s.options.position.type!=="static"){s.updatePosition(y,(s.options.show.effect.length>0))}if(typeof s.options.show.solo=="object"){z=r(s.options.show.solo)}else{if(s.options.show.solo===true){z=r("div.qtip").not(s.elements.tooltip)}}if(z){z.each(function(){if(r(this).qtip("api").status.rendered===true){r(this).qtip("api").hide()}})}if(typeof s.options.show.effect.type=="function"){s.options.show.effect.type.call(s.elements.tooltip,s.options.show.effect.length);s.elements.tooltip.queue(function(){w();r(this).dequeue()})}else{switch(s.options.show.effect.type.toLowerCase()){case"fade":s.elements.tooltip.fadeIn(s.options.show.effect.length,w);break;case"slide":s.elements.tooltip.slideDown(s.options.show.effect.length,function(){w();if(s.options.position.type!=="static"){s.updatePosition(y,true)}});break;case"grow":s.elements.tooltip.show(s.options.show.effect.length,w);break;default:s.elements.tooltip.show(null,w);break}s.elements.tooltip.addClass(s.options.style.classes.active)}return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(y){var x;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(s.elements.tooltip.css("display")==="none"){return s}}clearTimeout(s.timers.show);s.elements.tooltip.stop(true,false);x=s.beforeHide.call(s,y);if(x===false){return s}function w(){s.onHide.call(s,y)}s.cache.toggle=0;if(typeof s.options.hide.effect.type=="function"){s.options.hide.effect.type.call(s.elements.tooltip,s.options.hide.effect.length);s.elements.tooltip.queue(function(){w();r(this).dequeue()})}else{switch(s.options.hide.effect.type.toLowerCase()){case"fade":s.elements.tooltip.fadeOut(s.options.hide.effect.length,w);break;case"slide":s.elements.tooltip.slideUp(s.options.hide.effect.length,w);break;case"grow":s.elements.tooltip.hide(s.options.hide.effect.length,w);break;default:s.elements.tooltip.hide(null,w);break}s.elements.tooltip.removeClass(s.options.style.classes.active)}return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(w,x){var C,G,L,J,H,E,y,I,B,D,K,A,F,z;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(s.options.position.type=="static"){return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}G={position:{left:0,top:0},dimensions:{height:0,width:0},corner:s.options.position.corner.target};L={position:s.getPosition(),dimensions:s.getDimensions(),corner:s.options.position.corner.tooltip};if(s.options.position.target!=="mouse"){if(s.options.position.target.get(0).nodeName.toLowerCase()=="area"){J=s.options.position.target.attr("coords").split(",");for(C=0;C<J.length;C++){J[C]=parseInt(J[C])}H=s.options.position.target.parent("map").attr("name");E=r('img[usemap="#'+H+'"]:first').offset();G.position={left:Math.floor(E.left+J[0]),top:Math.floor(E.top+J[1])};switch(s.options.position.target.attr("shape").toLowerCase()){case"rect":G.dimensions={width:Math.ceil(Math.abs(J[2]-J[0])),height:Math.ceil(Math.abs(J[3]-J[1]))};break;case"circle":G.dimensions={width:J[2]+1,height:J[2]+1};break;case"poly":G.dimensions={width:J[0],height:J[1]};for(C=0;C<J.length;C++){if(C%2==0){if(J[C]>G.dimensions.width){G.dimensions.width=J[C]}if(J[C]<J[0]){G.position.left=Math.floor(E.left+J[C])}}else{if(J[C]>G.dimensions.height){G.dimensions.height=J[C]}if(J[C]<J[1]){G.position.top=Math.floor(E.top+J[C])}}}G.dimensions.width=G.dimensions.width-(G.position.left-E.left);G.dimensions.height=G.dimensions.height-(G.position.top-E.top);break;default:return joms.jQuery.fn.qtip.log.error.call(s,4,r.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}G.dimensions.width-=2;G.dimensions.height-=2}else{if(s.options.position.target.add(document.body).length===1){G.position={left:r(document).scrollLeft(),top:r(document).scrollTop()};G.dimensions={height:r(window).height(),width:r(window).width()}}else{if(typeof s.options.position.target.attr("qtip")!=="undefined"){G.position=s.options.position.target.qtip("api").cache.position}else{G.position=s.options.position.target.offset()}G.dimensions={height:s.options.position.target.outerHeight(),width:s.options.position.target.outerWidth()}}}y=r.extend({},G.position);if(G.corner.search(/right/i)!==-1){y.left+=G.dimensions.width}if(G.corner.search(/bottom/i)!==-1){y.top+=G.dimensions.height}if(G.corner.search(/((top|bottom)Middle)|center/)!==-1){y.left+=(G.dimensions.width/2)}if(G.corner.search(/((left|right)Middle)|center/)!==-1){y.top+=(G.dimensions.height/2)}}else{G.position=y={left:s.cache.mouse.x,top:s.cache.mouse.y};G.dimensions={height:1,width:1}}if(L.corner.search(/right/i)!==-1){y.left-=L.dimensions.width}if(L.corner.search(/bottom/i)!==-1){y.top-=L.dimensions.height}if(L.corner.search(/((top|bottom)Middle)|center/)!==-1){y.left-=(L.dimensions.width/2)}if(L.corner.search(/((left|right)Middle)|center/)!==-1){y.top-=(L.dimensions.height/2)}I=(r.browser.msie)?1:0;B=(r.browser.msie&&parseInt(r.browser.version.charAt(0))===6)?1:0;if(s.options.style.border.radius>0){if(L.corner.search(/Left/)!==-1){y.left-=s.options.style.border.radius}else{if(L.corner.search(/Right/)!==-1){y.left+=s.options.style.border.radius}}if(L.corner.search(/Top/)!==-1){y.top-=s.options.style.border.radius}else{if(L.corner.search(/Bottom/)!==-1){y.top+=s.options.style.border.radius}}}if(I){if(L.corner.search(/top/)!==-1){y.top-=I}else{if(L.corner.search(/bottom/)!==-1){y.top+=I}}if(L.corner.search(/left/)!==-1){y.left-=I}else{if(L.corner.search(/right/)!==-1){y.left+=I}}if(L.corner.search(/leftMiddle|rightMiddle/)!==-1){y.top-=1}}if(s.options.position.adjust.screen===true){y=n.call(s,y,G,L)}if(s.options.position.target==="mouse"&&s.options.position.adjust.mouse===true){if(s.options.position.adjust.screen===true&&s.elements.tip){K=s.elements.tip.attr("rel")}else{K=s.options.position.corner.tooltip}y.left+=(K.search(/right/i)!==-1)?-6:6;y.top+=(K.search(/bottom/i)!==-1)?-6:6}if(!s.elements.bgiframe&&r.browser.msie&&parseInt(r.browser.version.charAt(0))==6){r("select, object").each(function(){A=r(this).offset();A.bottom=A.top+r(this).height();A.right=A.left+r(this).width();if(y.top+L.dimensions.height>=A.top&&y.left+L.dimensions.width>=A.left){j.call(s)}})}y.left+=s.options.position.adjust.x;y.top+=s.options.position.adjust.y;F=s.getPosition();if(y.left!=F.left||y.top!=F.top){z=s.beforePositionUpdate.call(s,w);if(z===false){return s}s.cache.position=y;if(x===true){s.status.animated=true;s.elements.tooltip.animate(y,200,"swing",function(){s.status.animated=false})}else{s.elements.tooltip.css(y)}s.onPositionUpdate.call(s,w);if(typeof w!=="undefined"&&w.type&&w.type!=="mousemove"){r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return s},updateWidth:function(w){var x;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(w&&typeof w!=="number"){return joms.jQuery.fn.qtip.log.error.call(s,2,"newWidth must be of type number","updateWidth")}}x=s.elements.contentWrapper.siblings().add(s.elements.tip).add(s.elements.button);if(!w){if(typeof s.options.style.width.value=="number"){w=s.options.style.width.value}else{s.elements.tooltip.css({width:"auto"});x.hide();if(r.browser.msie){s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"normal"})}w=s.getDimensions().width+1;if(!s.options.style.width.value){if(w>s.options.style.width.max){w=s.options.style.width.max}if(w<s.options.style.width.min){w=s.options.style.width.min}}}}if(w%2!==0){w-=1}s.elements.tooltip.width(w);x.show();if(s.options.style.border.radius){s.elements.tooltip.find(".qtip-betweenCorners").each(function(y){r(this).width(w-(s.options.style.border.radius*2))})}if(r.browser.msie){s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"1"});s.elements.wrapper.width(w);if(s.elements.bgiframe){s.elements.bgiframe.width(w).height(s.getDimensions.height)}}return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(w){var z,A,x,y,B;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof w!=="string"||!r.fn.qtip.styles[w]){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}s.options.style=a.call(s,r.fn.qtip.styles[w],s.options.user.style);s.elements.content.css(p(s.options.style));if(s.options.content.title.text!==false){s.elements.title.css(p(s.options.style.title,true))}s.elements.contentWrapper.css({borderColor:s.options.style.border.color});if(s.options.style.tip.corner!==false){if(r("<canvas>").get(0).getContext){z=s.elements.tooltip.find(".qtip-tip canvas:first");x=z.get(0).getContext("2d");x.clearRect(0,0,300,300);y=z.parent("div[rel]:first").attr("rel");B=b(y,s.options.style.tip.size.width,s.options.style.tip.size.height);g.call(s,z,B,s.options.style.tip.color||s.options.style.border.color)}else{if(r.browser.msie){z=s.elements.tooltip.find('.qtip-tip [nodeName="shape"]');z.attr("fillcolor",s.options.style.tip.color||s.options.style.border.color)}}}if(s.options.style.border.radius>0){s.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:s.options.style.border.color});if(r("<canvas>").get(0).getContext){A=f(s.options.style.border.radius);s.elements.tooltip.find(".qtip-wrapper canvas").each(function(){x=r(this).get(0).getContext("2d");x.clearRect(0,0,300,300);y=r(this).parent("div[rel]:first").attr("rel");q.call(s,r(this),A[y],s.options.style.border.radius,s.options.style.border.color)})}else{if(r.browser.msie){s.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){r(this).attr("fillcolor",s.options.style.border.color)})}}}return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(A,y){var z,x,w;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!A){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}z=s.beforeContentUpdate.call(s,A);if(typeof z=="string"){A=z}else{if(z===false){return}}if(r.browser.msie){s.elements.contentWrapper.children().css({zoom:"normal"})}if(A.jquery&&A.length>0){A.clone(true).appendTo(s.elements.content).show()}else{s.elements.content.html(A)}x=s.elements.content.find("img[complete=false]");if(x.length>0){w=0;x.each(function(C){r('<img src="'+r(this).attr("src")+'" />').load(function(){if(++w==x.length){B()}})})}else{B()}function B(){s.updateWidth();if(y!==false){if(s.options.position.type!=="static"){s.updatePosition(s.elements.tooltip.is(":visible"),true)}if(s.options.style.tip.corner!==false){m.call(s)}}}s.onContentUpdate.call(s);return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(w,z,A){var y;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}y=s.beforeContentLoad.call(s);if(y===false){return s}if(A=="post"){r.post(w,z,x)}else{r.get(w,z,x)}function x(B){s.onContentLoad.call(s);r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");s.updateContent(B)}return s},updateTitle:function(w){if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!w){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=s.beforeTitleUpdate.call(s);if(returned===false){return s}if(s.elements.button){s.elements.button=s.elements.button.clone(true)}s.elements.title.html(w);if(s.elements.button){s.elements.title.prepend(s.elements.button)}s.onTitleUpdate.call(s);return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(A){var y,x,w,z;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(s.options.position.type=="static"){return joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}y=parseInt(s.elements.tooltip.css("z-index"));x=7000+r("div.qtip[qtip]").length-1;if(!s.status.focused&&y!==x){z=s.beforeFocus.call(s,A);if(z===false){return s}r("div.qtip[qtip]").not(s.elements.tooltip).each(function(){if(r(this).qtip("api").status.rendered===true){w=parseInt(r(this).css("z-index"));if(typeof w=="number"&&w>-1){r(this).css({zIndex:parseInt(r(this).css("z-index"))-1})}r(this).qtip("api").status.focused=false}});s.elements.tooltip.css({zIndex:x});s.status.focused=true;s.onFocus.call(s,A);r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_FOCUSED,"focus")}return s},disable:function(w){if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(w){if(!s.status.disabled){s.status.disabled=true;r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_DISABLED,"disable")}else{joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(s.status.disabled){s.status.disabled=false;r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_ENABLED,"disable")}else{joms.jQuery.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return s},destroy:function(){var w,x,y;x=s.beforeDestroy.call(s);if(x===false){return s}if(s.status.rendered){s.options.show.when.target.unbind("mousemove.qtip",s.updatePosition);s.options.show.when.target.unbind("mouseout.qtip",s.hide);s.options.show.when.target.unbind(s.options.show.when.event+".qtip");s.options.hide.when.target.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind("mouseover.qtip",s.focus);s.elements.tooltip.remove()}else{s.options.show.when.target.unbind(s.options.show.when.event+".qtip-create")}if(typeof s.elements.target.data("qtip")=="object"){y=s.elements.target.data("qtip").interfaces;if(typeof y=="object"&&y.length>0){for(w=0;w<y.length-1;w++){if(y[w].id==s.id){y.splice(w,1)}}}}delete joms.jQuery.fn.qtip.interfaces[s.id];if(typeof y=="object"&&y.length>0){s.elements.target.data("qtip").current=y.length-1}else{s.elements.target.removeData("qtip")}s.onDestroy.call(s);r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_DESTROYED,"destroy");return s.elements.target},getPosition:function(){var w,x;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}w=(s.elements.tooltip.css("display")!=="none")?false:true;if(w){s.elements.tooltip.css({visiblity:"hidden"}).show()}x=s.elements.tooltip.offset();if(w){s.elements.tooltip.css({visiblity:"visible"}).hide()}return x},getDimensions:function(){var w,x;if(!s.status.rendered){return joms.jQuery.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}w=(!s.elements.tooltip.is(":visible"))?true:false;if(w){s.elements.tooltip.css({visiblity:"hidden"}).show()}x={height:s.elements.tooltip.outerHeight(),width:s.elements.tooltip.outerWidth()};if(w){s.elements.tooltip.css({visiblity:"visible"}).hide()}return x}})}function o(){var s,w,u,t,v,y,x;s=this;s.beforeRender.call(s);s.status.rendered=true;s.elements.tooltip='<div qtip="'+s.id+'" class="qtip '+(s.options.style.classes.tooltip||s.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+s.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+s.options.style.classes.content+'"></div></div></div></div>';s.elements.tooltip=r(s.elements.tooltip);s.elements.tooltip.appendTo(s.options.position.container);s.elements.tooltip.data("qtip",{current:0,interfaces:[s]});s.elements.wrapper=s.elements.tooltip.children("div:first");s.elements.contentWrapper=s.elements.wrapper.children("div:first").css({background:s.options.style.background});s.elements.content=s.elements.contentWrapper.children("div:first").css(p(s.options.style));if(r.browser.msie){s.elements.wrapper.add(s.elements.content).css({zoom:1})}if(s.options.hide.when.event=="unfocus"){s.elements.tooltip.attr("unfocus",true)}if(typeof s.options.style.width.value=="number"){s.updateWidth()}if(r("<canvas>").get(0).getContext||r.browser.msie){if(s.options.style.border.radius>0){l.call(s)}else{s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color})}if(s.options.style.tip.corner!==false){e.call(s)}}else{s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color});s.options.style.border.radius=0;s.options.style.tip.corner=false;r.fn.qtip.log.error.call(s,2,r.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof s.options.content.text=="string"&&s.options.content.text.length>0)||(s.options.content.text.jquery&&s.options.content.text.length>0)){u=s.options.content.text}else{if(typeof s.elements.target.attr("title")=="string"&&s.elements.target.attr("title").length>0){u=s.elements.target.attr("title").replace("\\n","<br />");s.elements.target.attr("title","")}else{if(typeof s.elements.target.attr("alt")=="string"&&s.elements.target.attr("alt").length>0){u=s.elements.target.attr("alt").replace("\\n","<br />");s.elements.target.attr("alt","")}else{u=" ";r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(s.options.content.title.text!==false){h.call(s)}s.updateContent(u);k.call(s);if(s.options.show.ready===true){s.show()}if(s.options.content.url!==false){t=s.options.content.url;v=s.options.content.data;y=s.options.content.method||"get";s.loadContent(t,v,y)}s.onRender.call(s);r.fn.qtip.log.error.call(s,1,r.fn.qtip.constants.EVENT_RENDERED,"render")}function l(){var F,z,t,B,x,E,u,G,D,y,w,C,A,s,v;F=this;F.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();t=F.options.style.border.width;B=F.options.style.border.radius;x=F.options.style.border.color||F.options.style.tip.color;E=f(B);u={};for(z in E){u[z]='<div rel="'+z+'" style="'+((z.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+B+"px; width:"+B+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(r("<canvas>").get(0).getContext){u[z]+='<canvas height="'+B+'" width="'+B+'" style="vertical-align: top"></canvas>'}else{if(r.browser.msie){G=B*2+3;u[z]+='<v:arc stroked="false" fillcolor="'+x+'" startangle="'+E[z][0]+'" endangle="'+E[z][1]+'" style="width:'+G+"px; height:"+G+"px; margin-top:"+((z.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((z.search(/Right/)!==-1)?E[z][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}u[z]+="</div>"}D=F.getDimensions().width-(Math.max(t,B)*2);y='<div class="qtip-betweenCorners" style="height:'+B+"px; width:"+D+"px; overflow:hidden; background-color:"+x+'; line-height:0.1px; font-size:1px;">';w='<div class="qtip-borderTop" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.topLeft+u.topRight+y;F.elements.wrapper.prepend(w);C='<div class="qtip-borderBottom" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.bottomLeft+u.bottomRight+y;F.elements.wrapper.append(C);if(r("<canvas>").get(0).getContext){F.elements.wrapper.find("canvas").each(function(){A=E[r(this).parent("[rel]:first").attr("rel")];q.call(F,r(this),A,B,x)})}else{if(r.browser.msie){F.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}s=Math.max(B,(B+(t-B)));v=Math.max(t-B,0);F.elements.contentWrapper.css({border:"0px solid "+x,borderWidth:v+"px "+s+"px"})}function q(u,w,s,t){var v=u.get(0).getContext("2d");v.fillStyle=t;v.beginPath();v.arc(w[0],w[1],s,0,Math.PI*2,false);v.fill()}function e(v){var t,s,x,u,w;t=this;if(t.elements.tip!==null){t.elements.tip.remove()}s=t.options.style.tip.color||t.options.style.border.color;if(t.options.style.tip.corner===false){return}else{if(!v){v=t.options.style.tip.corner}}x=b(v,t.options.style.tip.size.width,t.options.style.tip.size.height);t.elements.tip='<div class="'+t.options.style.classes.tip+'" dir="ltr" rel="'+v+'" style="position:absolute; height:'+t.options.style.tip.size.height+"px; width:"+t.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(r("<canvas>").get(0).getContext){t.elements.tip+='<canvas height="'+t.options.style.tip.size.height+'" width="'+t.options.style.tip.size.width+'"></canvas>'}else{if(r.browser.msie){u=t.options.style.tip.size.width+","+t.options.style.tip.size.height;w="m"+x[0][0]+","+x[0][1];w+=" l"+x[1][0]+","+x[1][1];w+=" "+x[2][0]+","+x[2][1];w+=" xe";t.elements.tip+='<v:shape fillcolor="'+s+'" stroked="false" filled="true" path="'+w+'" coordsize="'+u+'" style="width:'+t.options.style.tip.size.width+"px; height:"+t.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((v.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';t.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';t.elements.contentWrapper.css("position","relative")}}t.elements.tooltip.prepend(t.elements.tip+"</div>");t.elements.tip=t.elements.tooltip.find("."+t.options.style.classes.tip).eq(0);if(r("<canvas>").get(0).getContext){g.call(t,t.elements.tip.find("canvas:first"),x,s)}if(v.search(/top/)!==-1&&r.browser.msie&&parseInt(r.browser.version.charAt(0))===6){t.elements.tip.css({marginTop:-4})}m.call(t,v)}function g(t,v,s){var u=t.get(0).getContext("2d");u.fillStyle=s;u.beginPath();u.moveTo(v[0][0],v[0][1]);u.lineTo(v[1][0],v[1][1]);u.lineTo(v[2][0],v[2][1]);u.fill()}function m(u){var t,w,s,x,v;t=this;if(t.options.style.tip.corner===false||!t.elements.tip){return}if(!u){u=t.elements.tip.attr("rel")}w=positionAdjust=(r.browser.msie)?1:0;t.elements.tip.css(u.match(/left|right|top|bottom/)[0],0);if(u.search(/top|bottom/)!==-1){if(r.browser.msie){if(parseInt(r.browser.version.charAt(0))===6){positionAdjust=(u.search(/top/)!==-1)?-3:1}else{positionAdjust=(u.search(/top/)!==-1)?1:2}}if(u.search(/Middle/)!==-1){t.elements.tip.css({left:"50%",marginLeft:-(t.options.style.tip.size.width/2)})}else{if(u.search(/Left/)!==-1){t.elements.tip.css({left:t.options.style.border.radius-w})}else{if(u.search(/Right/)!==-1){t.elements.tip.css({right:t.options.style.border.radius+w})}}}if(u.search(/top/)!==-1){t.elements.tip.css({top:-positionAdjust})}else{t.elements.tip.css({bottom:positionAdjust})}}else{if(u.search(/left|right/)!==-1){if(r.browser.msie){positionAdjust=(parseInt(r.browser.version.charAt(0))===6)?1:((u.search(/left/)!==-1)?1:2)}if(u.search(/Middle/)!==-1){t.elements.tip.css({top:"50%",marginTop:-(t.options.style.tip.size.height/2)})}else{if(u.search(/Top/)!==-1){t.elements.tip.css({top:t.options.style.border.radius-w})}else{if(u.search(/Bottom/)!==-1){t.elements.tip.css({bottom:t.options.style.border.radius+w})}}}if(u.search(/left/)!==-1){t.elements.tip.css({left:-positionAdjust})}else{t.elements.tip.css({right:positionAdjust})}}}s="padding-"+u.match(/left|right|top|bottom/)[0];x=t.options.style.tip.size[(s.search(/left|right/)!==-1)?"width":"height"];t.elements.tooltip.css("padding",0);t.elements.tooltip.css(s,x);if(r.browser.msie&&parseInt(r.browser.version.charAt(0))==6){v=parseInt(t.elements.tip.css("margin-top"))||0;v+=parseInt(t.elements.content.css("margin-top"))||0;t.elements.tip.css({marginTop:v})}}function h(){var s=this;if(s.elements.title!==null){s.elements.title.remove()}s.elements.title=r('<div class="'+s.options.style.classes.title+'">').css(p(s.options.style.title,true)).css({zoom:(r.browser.msie)?1:0}).prependTo(s.elements.contentWrapper);if(s.options.content.title.text){s.updateTitle.call(s,s.options.content.title.text)}if(s.options.content.title.button!==false&&typeof s.options.content.title.button=="string"){s.elements.button=r('<a class="'+s.options.style.classes.button+'" style="float:right; position: relative"></a>').css(p(s.options.style.button,true)).html(s.options.content.title.button).prependTo(s.elements.title).click(function(t){if(!s.status.disabled){s.hide(t)}})}}function k(){var t,v,u,s;t=this;v=t.options.show.when.target;u=t.options.hide.when.target;if(t.options.hide.fixed){u=u.add(t.elements.tooltip)}if(t.options.hide.when.event=="inactive"){s=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function y(z){if(t.status.disabled===true){return}clearTimeout(t.timers.inactive);t.timers.inactive=setTimeout(function(){r(s).each(function(){u.unbind(this+".qtip-inactive");t.elements.content.unbind(this+".qtip-inactive")});t.hide(z)},t.options.hide.delay)}}else{if(t.options.hide.fixed===true){t.elements.tooltip.bind("mouseover.qtip",function(){if(t.status.disabled===true){return}clearTimeout(t.timers.hide)})}}function x(z){if(t.status.disabled===true){return}if(t.options.hide.when.event=="inactive"){r(s).each(function(){u.bind(this+".qtip-inactive",y);t.elements.content.bind(this+".qtip-inactive",y)});y()}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.timers.show=setTimeout(function(){t.show(z)},t.options.show.delay)}function w(z){if(t.status.disabled===true){return}if(t.options.hide.fixed===true&&t.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&r(z.relatedTarget).parents("div.qtip[qtip]").length>0){z.stopPropagation();z.preventDefault();clearTimeout(t.timers.hide);return false}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.elements.tooltip.stop(true,true);t.timers.hide=setTimeout(function(){t.hide(z)},t.options.hide.delay)}if((t.options.show.when.target.add(t.options.hide.when.target).length===1&&t.options.show.when.event==t.options.hide.when.event&&t.options.hide.when.event!=="inactive")||t.options.hide.when.event=="unfocus"){t.cache.toggle=0;v.bind(t.options.show.when.event+".qtip",function(z){if(t.cache.toggle==0){x(z)}else{w(z)}})}else{v.bind(t.options.show.when.event+".qtip",x);if(t.options.hide.when.event!=="inactive"){u.bind(t.options.hide.when.event+".qtip",w)}}if(t.options.position.type.search(/(fixed|absolute)/)!==-1){t.elements.tooltip.bind("mouseover.qtip",t.focus)}if(t.options.position.target==="mouse"&&t.options.position.type!=="static"){v.bind("mousemove.qtip",function(z){t.cache.mouse={x:z.pageX,y:z.pageY};if(t.status.disabled===false&&t.options.position.adjust.mouse===true&&t.options.position.type!=="static"&&t.elements.tooltip.css("display")!=="none"){t.updatePosition(z)}})}}function n(u,v,A){var z,s,x,y,t,w;z=this;if(A.corner=="center"){return v.position}s=r.extend({},u);y={x:false,y:false};t={left:(s.left<r.fn.qtip.cache.screen.scroll.left),right:(s.left+A.dimensions.width+2>=r.fn.qtip.cache.screen.width+r.fn.qtip.cache.screen.scroll.left),top:(s.top<r.fn.qtip.cache.screen.scroll.top),bottom:(s.top+A.dimensions.height+2>=r.fn.qtip.cache.screen.height+r.fn.qtip.cache.screen.scroll.top)};x={left:(t.left&&(A.corner.search(/right/i)!=-1||(A.corner.search(/right/i)==-1&&!t.right))),right:(t.right&&(A.corner.search(/left/i)!=-1||(A.corner.search(/left/i)==-1&&!t.left))),top:(t.top&&A.corner.search(/top/i)==-1),bottom:(t.bottom&&A.corner.search(/bottom/i)==-1)};if(x.left){if(z.options.position.target!=="mouse"){s.left=v.position.left+v.dimensions.width}else{s.left=z.cache.mouse.x}y.x="Left"}else{if(x.right){if(z.options.position.target!=="mouse"){s.left=v.position.left-A.dimensions.width}else{s.left=z.cache.mouse.x-A.dimensions.width}y.x="Right"}}if(x.top){if(z.options.position.target!=="mouse"){s.top=v.position.top+v.dimensions.height}else{s.top=z.cache.mouse.y}y.y="top"}else{if(x.bottom){if(z.options.position.target!=="mouse"){s.top=v.position.top-A.dimensions.height}else{s.top=z.cache.mouse.y-A.dimensions.height}y.y="bottom"}}if(s.left<0){s.left=u.left;y.x=false}if(s.top<0){s.top=u.top;y.y=false}if(z.options.style.tip.corner!==false){s.corner=new String(A.corner);if(y.x!==false){s.corner=s.corner.replace(/Left|Right|Middle/,y.x)}if(y.y!==false){s.corner=s.corner.replace(/top|bottom/,y.y)}if(s.corner!==z.elements.tip.attr("rel")){e.call(z,s.corner)}}return s}function p(u,t){var v,s;v=r.extend(true,{},u);for(s in v){if(t===true&&s.search(/(tip|classes)/i)!==-1){delete v[s]}else{if(!t&&s.search(/(width|border|tip|title|classes|user)/i)!==-1){delete v[s]}}}return v}function c(s){if(typeof s.tip!=="object"){s.tip={corner:s.tip}}if(typeof s.tip.size!=="object"){s.tip.size={width:s.tip.size,height:s.tip.size}}if(typeof s.border!=="object"){s.border={width:s.border}}if(typeof s.width!=="object"){s.width={value:s.width}}if(typeof s.width.max=="string"){s.width.max=parseInt(s.width.max.replace(/([0-9]+)/i,"jQuery1"))}if(typeof s.width.min=="string"){s.width.min=parseInt(s.width.min.replace(/([0-9]+)/i,"jQuery1"))}if(typeof s.tip.size.x=="number"){s.tip.size.width=s.tip.size.x;delete s.tip.size.x}if(typeof s.tip.size.y=="number"){s.tip.size.height=s.tip.size.y;delete s.tip.size.y}return s}function a(){var s,t,u,x,v,w;s=this;u=[true,{}];for(t=0;t<arguments.length;t++){u.push(arguments[t])}x=[r.extend.apply(r,u)];while(typeof x[0].name=="string"){x.unshift(c(r.fn.qtip.styles[x[0].name]))}x.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},r.fn.qtip.styles.defaults);v=r.extend.apply(r,x);w=(r.browser.msie)?1:0;v.tip.size.width+=w;v.tip.size.height+=w;if(v.tip.size.width%2>0){v.tip.size.width+=1}if(v.tip.size.height%2>0){v.tip.size.height+=1}if(v.tip.corner===true){v.tip.corner=(s.options.position.corner.tooltip==="center")?false:s.options.position.corner.tooltip}return v}function b(v,u,t){var s={bottomRight:[[0,0],[u,t],[u,0]],bottomLeft:[[0,0],[u,0],[0,t]],topRight:[[0,t],[u,0],[u,t]],topLeft:[[0,0],[0,t],[u,t]],topMiddle:[[0,t],[u/2,0],[u,t]],bottomMiddle:[[0,0],[u,0],[u/2,t]],rightMiddle:[[0,0],[u,t/2],[0,t]],leftMiddle:[[u,0],[u,t],[0,t/2]]};s.leftTop=s.bottomRight;s.rightTop=s.bottomLeft;s.leftBottom=s.topRight;s.rightBottom=s.topLeft;return s[v]}function f(s){var t;if(r("<canvas>").get(0).getContext){t={topLeft:[s,s],topRight:[0,s],bottomLeft:[s,0],bottomRight:[0,0]}}else{if(r.browser.msie){t={topLeft:[-90,90,0],topRight:[-90,90,-s],bottomLeft:[90,270,0],bottomRight:[90,270,-s]}}}return t}function j(){var s,t,u;s=this;u=s.getDimensions();t='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+u.height+"px; width:"+u.width+'px" />';s.elements.bgiframe=s.elements.wrapper.prepend(t).children(".qtip-bgiframe:first")}r(document).ready(function(){r.fn.qtip.cache={screen:{scroll:{left:r(window).scrollLeft(),top:r(window).scrollTop()},width:r(window).width(),height:r(window).height()}};var s;r(window).bind("resize scroll",function(t){clearTimeout(s);s=setTimeout(function(){if(t.type==="scroll"){r.fn.qtip.cache.screen.scroll={left:r(window).scrollLeft(),top:r(window).scrollTop()}}else{r.fn.qtip.cache.screen.width=r(window).width();r.fn.qtip.cache.screen.height=r(window).height()}for(i=0;i<r.fn.qtip.interfaces.length;i++){var u=r.fn.qtip.interfaces[i];if(u.status.rendered===true&&(u.options.position.type!=="static"||u.options.position.adjust.scroll&&t.type==="scroll"||u.options.position.adjust.resize&&t.type==="resize")){u.updatePosition(t,true)}}},100)});r(document).bind("mousedown.qtip",function(t){if(r(t.target).parents("div.qtip").length===0){r(".qtip[unfocus]").each(function(){var u=r(this).qtip("api");if(r(this).is(":visible")&&!u.status.disabled&&r(t.target).add(u.elements.target).length>1){u.hide(t)}})}})});r.fn.qtip.interfaces=[];r.fn.qtip.log={error:function(){return this}};r.fn.qtip.constants={};r.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};r.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(joms.jQuery);


