(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return }return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})();jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toGMTString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toGMTString()}var K=L.path?"; path="+L.path:"";var G=L.domain?"; domain="+L.domain:"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};(function(G){var A=G.fn.height,E=G.fn.width;G.fn.extend({height:function(){if(!this[0]){D()}if(this[0]==window){if((G.browser.mozilla||G.browser.opera)&&G(document).width()>self.innerWidth){return self.innerHeight-B()}else{return self.innerHeight||G.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}}if(this[0]==document){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}return A.apply(this,arguments)},width:function(){if(!this[0]){D()}if(this[0]==window){if((G.browser.mozilla||G.browser.opera)&&G(document).height()>self.innerHeight){return self.innerWidth-B()}else{return self.innerWidth||G.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}}if(this[0]==document){if(G.browser.mozilla){var J=self.pageXOffset;self.scrollTo(99999999,self.pageYOffset);var I=self.pageXOffset;self.scrollTo(J,self.pageYOffset);return document.body.offsetWidth+I}else{return Math.max(document.body.scrollWidth,document.body.offsetWidth)}}return E.apply(this,arguments)},innerHeight:function(){if(!this[0]){D()}return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-C(this,"borderTopWidth")-C(this,"borderBottomWidth"):this.height()+C(this,"paddingTop")+C(this,"paddingBottom")},innerWidth:function(){if(!this[0]){D()}return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-C(this,"borderLeftWidth")-C(this,"borderRightWidth"):this.width()+C(this,"paddingLeft")+C(this,"paddingRight")},outerHeight:function(I){if(!this[0]){D()}I=G.extend({margin:false},I||{});return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight+(I.margin?(C(this,"marginTop")+C(this,"marginBottom")):0):this.height()+C(this,"borderTopWidth")+C(this,"borderBottomWidth")+C(this,"paddingTop")+C(this,"paddingBottom")+(I.margin?(C(this,"marginTop")+C(this,"marginBottom")):0)},outerWidth:function(I){if(!this[0]){D()}I=G.extend({margin:false},I||{});return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth+(I.margin?(C(this,"marginLeft")+C(this,"marginRight")):0):this.width()+C(this,"borderLeftWidth")+C(this,"borderRightWidth")+C(this,"paddingLeft")+C(this,"paddingRight")+(I.margin?(C(this,"marginLeft")+C(this,"marginRight")):0)},scrollLeft:function(I){if(!this[0]){D()}if(I!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(I,G(window).scrollTop())}else{this.scrollLeft=I}})}if(this[0]==window||this[0]==document){return self.pageXOffset||G.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(I){if(!this[0]){D()}if(I!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(G(window).scrollLeft(),I)}else{this.scrollTop=I}})}if(this[0]==window||this[0]==document){return self.pageYOffset||G.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(I){return this.offset({margin:false,scroll:false,relativeTo:this.offsetParent()},I)},offset:function(J,P){if(!this[0]){D()}var O=0,N=0,X=0,S=0,Y=this[0],M=this[0],L,I,W=G.css(Y,"position"),V=G.browser.mozilla,Q=G.browser.msie,U=G.browser.opera,a=G.browser.safari,K=G.browser.safari&&parseInt(G.browser.version)>520,R=false,T=false,J=G.extend({margin:true,border:false,padding:false,scroll:true,lite:false,relativeTo:document.body},J||{});if(J.lite){return this.offsetLite(J,P)}if(J.relativeTo.jquery){J.relativeTo=J.relativeTo[0]}if(Y.tagName=="BODY"){O=Y.offsetLeft;N=Y.offsetTop;if(V){O+=C(Y,"marginLeft")+(C(Y,"borderLeftWidth")*2);N+=C(Y,"marginTop")+(C(Y,"borderTopWidth")*2)}else{if(U){O+=C(Y,"marginLeft");N+=C(Y,"marginTop")}else{if((Q&&jQuery.boxModel)){O+=C(Y,"borderLeftWidth");N+=C(Y,"borderTopWidth")}else{if(K){O+=C(Y,"marginLeft")+C(Y,"borderLeftWidth");N+=C(Y,"marginTop")+C(Y,"borderTopWidth")}}}}}else{do{I=G.css(M,"position");O+=M.offsetLeft;N+=M.offsetTop;if(V||Q||K){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth");if(V&&I=="absolute"){R=true}if(Q&&I=="relative"){T=true}}L=M.offsetParent||document.body;if(J.scroll||V){do{if(J.scroll){X+=M.scrollLeft;S+=M.scrollTop}if(U&&(G.css(M,"display")||"").match(/table-row|inline/)){X=X-((M.scrollLeft==M.offsetLeft)?M.scrollLeft:0);S=S-((M.scrollTop==M.offsetTop)?M.scrollTop:0)}if(V&&M!=Y&&G.css(M,"overflow")!="visible"){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}M=M.parentNode}while(M!=L)}M=L;if(M==J.relativeTo&&!(M.tagName=="BODY"||M.tagName=="HTML")){if(V&&M!=Y&&G.css(M,"overflow")!="visible"){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}if(((a&&!K)||U)&&I!="static"){O-=C(L,"borderLeftWidth");N-=C(L,"borderTopWidth")}break}if(M.tagName=="BODY"||M.tagName=="HTML"){if(((a&&!K)||(Q&&G.boxModel))&&W!="absolute"&&W!="fixed"){O+=C(M,"marginLeft");N+=C(M,"marginTop")}if(K||(V&&!R&&W!="fixed")||(Q&&W=="static"&&!T)){O+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}break}}while(M)}var Z=H(Y,J,O,N,X,S);if(P){G.extend(P,Z);return this}else{return Z}},offsetLite:function(Q,L){if(!this[0]){D()}var N=0,M=0,K=0,P=0,O=this[0],J,Q=G.extend({margin:true,border:false,padding:false,scroll:true,relativeTo:document.body},Q||{});if(Q.relativeTo.jquery){Q.relativeTo=Q.relativeTo[0]}do{N+=O.offsetLeft;M+=O.offsetTop;J=O.offsetParent||document.body;if(Q.scroll){do{K+=O.scrollLeft;P+=O.scrollTop;O=O.parentNode}while(O!=J)}O=J}while(O&&O.tagName!="BODY"&&O.tagName!="HTML"&&O!=Q.relativeTo);var I=H(this[0],Q,N,M,K,P);if(L){G.extend(L,I);return this}else{return I}},offsetParent:function(){if(!this[0]){D()}var I=this[0].offsetParent;while(I&&(I.tagName!="BODY"&&G.css(I,"position")=="static")){I=I.offsetParent}return G(I)}});var D=function(){throw"Dimensions: jQuery collection is empty"};var C=function(I,J){return parseInt(G.css(I.jquery?I[0]:I,J))||0};var H=function(M,L,J,N,I,K){if(!L.margin){J-=C(M,"marginLeft");N-=C(M,"marginTop")}if(L.border&&((G.browser.safari&&parseInt(G.browser.version)<520)||G.browser.opera)){J+=C(M,"borderLeftWidth");N+=C(M,"borderTopWidth")}else{if(!L.border&&!((G.browser.safari&&parseInt(G.browser.version)<520)||G.browser.opera)){J-=C(M,"borderLeftWidth");N-=C(M,"borderTopWidth")}}if(L.padding){J+=C(M,"paddingLeft");N+=C(M,"paddingTop")}if(L.scroll&&(!G.browser.opera||M.offsetLeft!=M.scrollLeft&&M.offsetTop!=M.scrollLeft)){I-=M.scrollLeft;K-=M.scrollTop}return L.scroll?{top:N-K,left:J-I,scrollTop:K,scrollLeft:I}:{top:N,left:J}};var F=0;var B=function(){if(!F){var I=G("<div>").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).appendTo("body");F=100-I.append("<div>").find("div").css({width:"100%",height:200}).width();I.remove()}return F}})(jQuery);(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);(function(E){var C=true;var F=navigator.platform;var B=navigator.userAgent;var A=/(Firefox|Opera|Safari|KDE|iCab|Flock|IE)/.exec(B);var D=/(Win|Mac|Linux|iPhone|Sun|Solaris)/.exec(F);var H=[0,0];A=(!A||!A.length)?(/(Mozilla)/.exec(B)||[""]):A;D=(!D||!D.length)?[""]:D;var G=jQuery.extend(E.browser,{gecko:/Gecko/.test(B)&&!/like Gecko/.test(B),webkit:/WebKit/.test(B),aol:/America Online Browser/.test(B),camino:/Camino/.test(B),firefox:/Firefox/.test(B),flock:/Flock/.test(B),icab:/iCab/.test(B),konqueror:/KDE/.test(B),mozilla:/mozilla/.test(B),ie:/MSIE/.test(B),netscape:/Netscape/.test(B),opera:/Opera/.test(B),safari:/Safari/.test(B),browser:A[0].toLowerCase(),win:/Win/.test(F),mac:/Mac/.test(F),linux:/Linux/.test(F),iphone:/iPhone/.test(F),sun:/Solaris|SunOS/.test(F),os:D[0].toLowerCase(),platform:F,agent:B,addSelectors:function(I){jQuery(I||"html").addClass(G.selectors)},removeSelectors:function(I){jQuery(I||"html").addClass(G.selectors)}});G.version={string:(G.msie)?(/MSIE ([^;]+)/.exec(B)||H)[1]:(G.firefox)?(/Firefox\/(.+)/.exec(B)||H)[1]:(G.safari)?(/Version\/([^\s]+)/.exec(B)||H)[1]:(G.opera)?(/Opera\/([^\s]+)/.exec(B)||H)[1]:"undefined"};G.version.number=parseFloat(G.version.string)||H[0];G.version.major=/([^\.]+)/.exec(G.version.string)[1];G[G.browser+G.version.major]=true;G.renderer=(G.gecko)?"gecko":(G.webkit)?"webkit":"";G.selectors=[G.renderer,G.browser,G.browser+G.version.major,G.os,"js"].join(" ");if(C){G.addSelectors()}}(jQuery));(function($){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={"array":function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a[a.length]=v;b=true}}}a[a.length]="]";return a.join("")},"boolean":function(x){return String(x)},"null":function(x){return"null"},"number":function(x){return isFinite(x)?String(x):"null"},"object":function(x){if(x){if(x instanceof Array){return s.array(x)}var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=","}a.push(s.string(i),":",v);b=true}}}a[a.length]="}";return a.join("")}return"null"},"string":function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+x+'"'}};$.toJSON=function(v){var f=isNaN(v)?s[typeof v]:s["number"];if(f){return f(v)}};$.parseJSON=function(v,safe){if(safe===undefined){safe=$.parseJSON.safe}if(safe&&!/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v)){return undefined}return eval("("+v+")")};$.parseJSON.safe=false})(jQuery);var Class=function(B){var A=function(){for(var C in this){if(this[C]){this[C]._proto_=this}}if(arguments[0]!="noinit"&&this.initialize){return this.initialize.apply(this,arguments)}};A.extend=this.extend;A.implement=this.implement;A.prototype=B;return A};Class.empty=function(){};Class.create=function(A){return new Class(A)};Class.prototype={extend:function(B){var A=new this("noinit");for(var D in B){var C=A[D];var E=B[D];if(C&&C!=E){E=C.parentize(E)||E}A[D]=E}return new Class(A)},implement:function(A){for(var B in A){this.prototype[B]=A[B]}}};Object.Native=function(){for(var A=0;A<arguments.length;A++){arguments[A].extend=Class.prototype.implement}};new Object.Native(Function,Array,String,Number);Function.extend({parentize:function(B){var A=this;return function(){this.parent=A;return B.apply(this,arguments)}}});if(typeof deconcept=="undefined"){var deconcept={}}if(typeof deconcept.util=="undefined"){deconcept.util={}}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil={}}deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return }this.DETECT_KEY=D?D:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(E){this.setAttribute("swf",E)}if(C){this.setAttribute("id",C)}if(K){this.setAttribute("width",K)}if(F){this.setAttribute("height",F)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(J){this.addParam("bgcolor",J)}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]||""},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var A=[];var B;var C=this.getVariables();for(B in C){A[A.length]=B+"="+C[B]}return A},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var C=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var D=1;var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new deconcept.PlayerVersion([B,0,0])}catch(E){D=null}}}else{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!=null){C=new deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","))}}}return C};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(D==null){return C}if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;$=null;Function.prototype.extendNativeFunctionObject=jQuery.extend;jQuery.getOne=function(C,B){var A;if(typeof C=="object"){A=C}else{if(typeof C=="string"){if(C.search(/^[#.]/)==-1){C="#"+C}if(B==null){A=jQuery(C)}else{A=jQuery(C,B)}if(A.length>0){A=A.get(0)}else{A=null}}}return A};Liferay=function(){var A=jQuery;return{}}();Liferay.Editor={};jQuery.fn.getOne=function(A){return jQuery.getOne(A,this)};if(!Liferay._ajaxOld){Liferay._ajaxOld=jQuery.ajax}if(Liferay._ajaxOld){jQuery.ajax=function(A){if(Liferay.Util){A.url=Liferay.Util.getURLWithSessionId(A.url)}return Liferay._ajaxOld(A)}}jQuery.ajaxSetup({data:{},type:"POST"});Liferay.Service={actionUrl:themeDisplay.getPathMain()+"/portal/json_service",tunnelUrl:themeDisplay.getPathContext()+"/tunnel-web/secure/json",classNameSuffix:"ServiceJSON",ajax:function(params,callback){var instance=this;var serviceUrl=instance.actionUrl;if(Liferay.ServiceAuth.header){serviceUrl=instance.tunnelUrl}params.serviceParameters=Liferay.Service.getParameters(params);if(callback){jQuery.ajax({type:"GET",url:serviceUrl,data:params,dataType:"json",beforeSend:function(xHR){if(Liferay.ServiceAuth.header){xHR.setRequestHeader("Authorization",Liferay.ServiceAuth.header)}},success:callback})}else{var xHR=jQuery.ajax({url:serviceUrl,data:params,dataType:"json",async:false});return eval("("+xHR.responseText+")")}},getParameters:function(C){var B="";for(var A in C){if((A!="serviceClassName")&&(A!="serviceMethodName")&&(A!="serviceParameterTypes")){B+=A+","}}if(Liferay.Util.endsWith(B,",")){B=B.substring(0,B.length-1)}return B}};Liferay.ServiceAuth={header:null,setHeader:function(C,B){var A=this;A.header="Basic "+Liferay.Base64.encode(C+":"+B)}};Liferay.Base64={encode:function(C){var E=this;var A="";var K,I,G,J,H,F,D;var B=0;C=E._utf8Encode(C);while(B<C.length){K=C.charCodeAt(B++);I=C.charCodeAt(B++);G=C.charCodeAt(B++);J=K>>2;H=((K&3)<<4)|(I>>4);F=((I&15)<<2)|(G>>6);D=G&63;if(isNaN(I)){F=D=64}else{if(isNaN(G)){D=64}}A=A+this._keyStr.charAt(J)+this._keyStr.charAt(H)+this._keyStr.charAt(F)+this._keyStr.charAt(D)}return A},decode:function(C){var E=this;var A="";var K,I,G;var J,H,F,D;var B=0;C=C.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(B<C.length){J=this._keyStr.indexOf(C.charAt(B++));H=this._keyStr.indexOf(C.charAt(B++));F=this._keyStr.indexOf(C.charAt(B++));D=this._keyStr.indexOf(C.charAt(B++));K=(J<<2)|(H>>4);I=((H&15)<<4)|(F>>2);G=((F&3)<<6)|D;A=A+String.fromCharCode(K);if(F!=64){A=A+String.fromCharCode(I)}if(D!=64){A=A+String.fromCharCode(G)}}A=E._utf8Decode(A);return A},_utf8Encode:function(B){B=B.replace(/\r\n/g,"\n");var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C)}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128)}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128)}}}return A},_utf8Decode:function(A){var B="";var C=0;var D=c1=c2=0;while(C<A.length){D=A.charCodeAt(C);if(D<128){B+=String.fromCharCode(D);C++}else{if((D>191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3}}}return B},_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};jQuery.fn.exactHeight=jQuery.fn.height;jQuery.fn.exactWidth=jQuery.fn.width;jQuery.each(["height","width"],function(A,B){jQuery.fn[B]=function(C){return C==undefined?(this.length?(B=="height"?this[0].offsetHeight:this[0].offsetWidth):null):this.css(B,C.constructor==String?C:C+"px")}});Liferay.Browser={init:function(){var B=this;var C=B.version();var A=B.version(true);B._browserVars={agent:"",is_firefox:false,is_ie:false,is_ie_4:false,is_ie_5:false,is_ie_5_5:false,is_ie_5_up:false,is_ie_6:false,is_ie_7:false,is_mozilla:false,is_mozilla_1_3_up:false,is_ns_4:false,is_rtf:false,is_safari:false,is_opera:false};B._browserVars.agent=B.browser().toLowerCase();B._browserVars.is_firefox=jQuery.browser.firefox;B._browserVars.is_ie=jQuery.browser.msie;B._browserVars.is_ie_4=(B.is_ie&&C==4);B._browserVars.is_ie_5=(B.is_ie&&C==5);B._browserVars.is_ie_5_5=(B.is_ie&&A==5.5);B._browserVars.is_ie_5_up=(B.is_ie&&C>=5);B._browserVars.is_ie_6=(B.is_ie&&C==6);B._browserVars.is_ie_7=(B.is_ie&&C==7);B._browserVars.is_mozilla=(jQuery.browser.mozilla);B._browserVars.is_mozilla_1_3_up=(B.is_mozilla&&A>1.3);B._browserVars.is_ns_4=(jQuery.browser.netscape&&C==4);B._browserVars.is_rtf=(B.is_ie_5_5_up||B.is_mozilla_1_3_up);B._browserVars.is_safari=jQuery.browser.safari;B._browserVars.is_opera=jQuery.browser.opera;jQuery.extend(B,B._browserVars)},browser:function(){var A=this;return jQuery.browser.browser},compat:function(){var A=this;for(var B in A._browserVars){if(!window[B]){window[B]=A._browserVars[B]}}},version:function(B){var A=this;if(!B){return jQuery.browser.version.major}else{return jQuery.browser.version.string}},_browserVars:{}};jQuery(function(){Liferay.Browser.init()});Liferay.Util={submitCountdown:0,actsAsAspect:function(object){object.yield=null;object.rv={};object.before=function(method,f){var original=eval("this."+method);this[method]=function(){f.apply(this,arguments);return original.apply(this,arguments)}};object.after=function(method,f){var original=eval("this."+method);this[method]=function(){this.rv[method]=original.apply(this,arguments);return f.apply(this,arguments)}};object.around=function(method,f){var original=eval("this."+method);this[method]=function(){this.yield=original;return f.apply(this,arguments)}}},addInputFocus:function(B){var C=null;if(B){if(typeof B=="object"){C=jQuery(B)}else{C=jQuery("#"+B)}}else{C=document.body}var A=jQuery("input[@type=text], input[@type=password], textarea",C);A.focus(function(E){jQuery(this).addClass("focus");if(this.createTextRange&&(this.nodeName.toLowerCase()!=="textarea")){var F=this.value;var D=this.createTextRange();D.moveStart("character",F.length);D.select()}});A.blur(function(){jQuery(this).removeClass("focus")})},addInputType:function(A){var B;if(Liferay.Browser.is_ie&&Liferay.Browser.version()<7){if(A){if(typeof A=="object"){B=jQuery(A)}else{B=jQuery("#"+A)}}else{B=document.body}jQuery("input",B).each(function(){var D=jQuery(this);var C=this.type||"text";D.addClass(C)})}},addParams:function(G,C){var B=this;if(typeof G=="object"){G=jQuery.param(G)}else{G=jQuery.trim(G)}if(G!=""){var F=C||location.href;var D,A;if(F.indexOf("#")>-1){var E=F.split("#");F=E[0];D=E[1]}if(F.indexOf("?")==-1){G="?"+G}else{G="&"+G}if(F.indexOf(G)==-1){A=F+G;if(D){A+="#"+D}if(!C){location.href=A}return A}}},check:function(C,A,B){jQuery("input[@name="+A+"]:checkbox",C).attr("checked",B)},checkAll:function(D,C,A){var B;if(Liferay.Util.isArray(C)){var E="input[@name="+C.join("]:checkbox,input[@name=")+"]:checkbox";B=jQuery(E,D)}else{B=jQuery("input[@name="+C+"]:checkbox",D)}B.attr("checked",A.checked)},checkAllBox:function(D,C,A){var G=0;var F=0;var B;if(Liferay.Util.isArray(C)){var E="input[@name="+C.join("]:checkbox,input[@name=")+"]:checkbox";B=jQuery(E,D)}else{B=jQuery("input[@name="+C+"]:checkbox",D)}B=B.not(A);G=B.length;F=B.filter(":checked").length;A.checked=(G==F)},checkMaxLength:function(B,A){if((B.value.length)>=A){B.value=B.value.substring(0,A-1)}},checkTab:function(A){if((document.all)&&(event.keyCode==9)){A.selection=document.selection.createRange();setTimeout('Liferay.Util.processTab("'+A.id+'")',0)}},createFlyouts:function(E){var A=this;E=E||{};var C,F;var B=function(){return(jQuery("ul",this).length!=0)};if(!E.container){C=jQuery(".lfr-flyout");F=C.find("li").filter(B)}else{C=jQuery("li",E.container);F=C.filter(B)}F.addClass("lfr-flyout");F.addClass("has-children");if(!E.container){F=F.add(C)}var G=function(H){jQuery("> ul",this).show();if(E.mouseOver){E.mouseOver.apply(this,[H])}};var D=function(H){jQuery("> ul",this).hide();if(E.mouseOut){E.mouseOut.apply(this,[H])}};F.hoverIntent({interval:0,out:D,over:G,sensitivity:2,timeout:300})},disableEsc:function(){if((document.all)&&(event.keyCode==27)){event.returnValue=false}},endsWith:function(B,A){return(B.lastIndexOf(A)===(B.length-A.length))},evalScripts:function(B){var A=this;jQuery(B).find("script").each(function(){if(this.src){jQuery.getScript(this.src)}else{jQuery.globalEval(this.text||this.textContent||this.innerHTML||"")}})},focusFormField:function(A){var B=false;jQuery(document).one("click",function(){B=true});jQuery(function(){if(A&&(A.offsetHeight!=0)&&!B){var C=jQuery(A);jQuery("input").trigger("blur");C.trigger("focus")}})},getSelectedIndex:function(A){for(var B=0;B<A.length;B++){if(A[B].checked==true){return B}}return -1},getSelectedRadioValue:function(B){var C=Liferay.Util.getSelectedIndex(B);if(C==-1){var A=B.value;if(A==null){A=""}return A}else{return B[C].value}},getURLWithSessionId:function(B){if(document.cookie&&(document.cookie.length>0)){return B}var A=B.indexOf(";");if(A!=-1){return B}A=B.indexOf("?");if(A!=-1){return B.substring(0,A)+";jsessionid="+themeDisplay.getSessionId()+B.substring(A)}A=B.indexOf("//");if(A!=-1){var C=B.lastIndexOf("/");if(A+1==C){return B+"/;jsessionid="+themeDisplay.getSessionId()}}return B+";jsessionid="+themeDisplay.getSessionId()},inlineEditor:function(I){var G=this;if(I.url&&I.button){var A=I.url;var D=I.button;var C=I.width||680;var H=I.height||640;var F=I.textarea;var E=false;var B=jQuery(D);B.click(function(M){if(!E){var K=Liferay.Popup({height:640,width:680,noCenter:true,title:"",onClose:function(){jQuery(document).unbind("popupResize");E=false}});var L=jQuery(K);var J='<div class="portlet-resize-handle"></div>';jQuery.ajax({url:A+"&rt="+Liferay.Util.randomInt(),success:function(P){L.find(".loading-animation").remove();L.append(P);L.after(J);var O=L.find("form");O.css({height:340,width:680});if(F){var N=L.find(".lfr-textarea").length;Liferay.Util.resizeTextarea(F,!N,true)}var R=jQuery(".portlet-resize-handle")[0];var Q=L.parents(".popup:first");Q.lResize({direction:"horizontal",handle:R,mode:"add",onMove:function(S){O.css({height:S.browserEvent.clientY-130,width:S.browserEvent.clientX-30});jQuery(document).trigger("popupResize")}});Q.lResize({handle:R,direction:"vertical",mode:"add"})}});E=true}})}},isArray:function(A){if(!window.Array){return false}else{return A.constructor==window.Array}},listChecked:function(C){var B=[];var A=jQuery("input[@value!=]:checked:checkbox",C);A.each(function(){B.push(this.value)});return B.join(",")},listCheckedExcept:function(D,C){var B=[];var A=jQuery('input[@value!=][@name!="'+C+'"]:checked:checkbox',D);A.each(function(){B.push(this.value)});return B.join(",")},listSelect:function(D,A){var B=[];A=A||",";if(D==null){return""}var C=jQuery(D).find("option[@value!=]");C.each(function(){B.push(this.value)});if(B[0]==".none"){return""}else{return B.join(",")}},listUncheckedExcept:function(D,C){var B=[];var A=jQuery('input[@value!=][@name!="'+C+'"]:checkbox:not(:checked)',D);A.each(function(){B.push(this.value)});return B.join(",")},moveItem:function(A,B,C){if(A.selectedIndex>=0){var E=jQuery(B);var D=jQuery(A).find("option:selected");E.append(D)}if(D.text()!=""&&C==true){Liferay.Util.sortBox(B)}},portletTitleEdit:function(E){var B=this;var G=E.obj;var C=E.plid;var A=E.doAsUserId;var F=E.portletId;var D=E.url;var H=G.find(".portlet-title");if(!H.is(".not-editable")){H.editable(function(K,J){var I=J._LFR_.cruft||[];I=I.join("");if(K!=J._LFR_.oldText){Liferay.Util.savePortletTitle({plid:C,doAsUserId:A,portletId:F,title:K})}G[0]._LFR_noDrag=null;return I+K},{cssclass:"text",data:function(M,L){var I=jQuery(this);var K=new RegExp("</?[^>]+>|\n|\r|\t","gim");var J=M.match(K);L._LFR_={};L._LFR_.oldText=M;L._LFR_.cruft=J;M=M.replace(K,"");L._LFR_.oldText=M;G[0]._LFR_noDrag=true;return M},height:"",width:"",onblur:"submit",type:"text",select:false,style:"",submit:""})}},processTab:function(A){document.all[A].selection.text=String.fromCharCode(9);document.all[A].focus()},randomInt:function(){return(Math.ceil(Math.random()*(new Date).getTime()))},randomMinMax:function(B,A){return(Math.round(Math.random()*(A-B)))+B},removeItem:function(A,B){var C=jQuery(A);if(!B){C.find("option:selected").remove()}else{C.find("option[@value="+B+"]:selected").remove()}},reorder:function(D,E){var B=D.selectedIndex;if(B==-1){D.selectedIndex=0}else{sText=D.options[B].text;sValue=D.options[B].value;if((D.options[B].value>"")&&(B>0)&&(E==0)){D.options[B].text=D.options[B-1].text;D.options[B].value=D.options[B-1].value;D.options[B-1].text=sText;D.options[B-1].value=sValue;D.selectedIndex--}else{if((B<D.length-1)&&(D.options[B+1].value>"")&&(E==1)){D.options[B].text=D.options[B+1].text;D.options[B].value=D.options[B+1].value;D.options[B+1].text=sText;D.options[B+1].value=sValue;D.selectedIndex++}else{if(B==0){for(var C=0;C<(D.length-1);C++){D.options[C].text=D.options[C+1].text;D.options[C].value=D.options[C+1].value}D.options[D.length-1].text=sText;D.options[D.length-1].value=sValue;D.selectedIndex=D.length-1}else{if(B==(D.length-1)){for(var A=(D.length-1);A>0;A--){D.options[A].text=D.options[A-1].text;D.options[A].value=D.options[A-1].value}D.options[0].text=sText;D.options[0].value=sValue;D.selectedIndex=0}}}}}},resizeTextarea:function(elString,usingRichEditor,resizeToInlinePopup){var init=function(){var el=jQuery("#"+elString);if(!el.length){el=jQuery("textarea[@name="+elString+"]")}if(el.length){var pageBody;if(resizeToInlinePopup){pageBody=el.parents(".popup:first")}else{pageBody=jQuery("body")}var resize=function(){var pageBodyHeight=pageBody.height();if(usingRichEditor){try{if(!el.is("iframe")){el=eval(elString);if(!el.jquery){el=jQuery(el)}}}catch(e){}}var diff=150;if(!resizeToInlinePopup){diff=100}el.css({height:(pageBodyHeight-diff)+"px",width:"98%"})};resize();if(resizeToInlinePopup){jQuery(document).bind("popupResize",resize)}else{jQuery(window).resize(resize)}}};jQuery(init)},resubmitCountdown:function(B){if(Liferay.Util.submitCountdown>0){Liferay.Util.submitCountdown--;setTimeout("Liferay.Util.resubmitCountdown('"+B+"')",1000)}else{Liferay.Util.submitCountdown=0;if(!Liferay.Browser.is_ns_4){document.body.style.cursor="auto"}var C=document.forms[B];for(var A=0;A<C.length;A++){var D=C.elements[A];if(D.type&&(D.type.toLowerCase()=="button"||D.type.toLowerCase()=="reset"||D.type.toLowerCase()=="submit")){D.disabled=false}}}},savePortletTitle:function(C){var B={plid:0,doAsUserId:0,portletId:0,title:"",url:themeDisplay.getPathMain()+"/portlet_configuration/update_title"};var A=jQuery.extend(B,C);jQuery.ajax({url:A.url,data:{p_l_id:A.plid,doAsUserId:A.doAsUserId,portletId:A.portletId,title:A.title}})},selectAndCopy:function(A){A.focus();A.select();if(document.all){var B=A.createTextRange();B.execCommand("copy")}},setBox:function(C,A){for(var B=C.length-1;B>-1;B--){C.options[B]=null}for(var B=0;B<A.length;B++){C.options[B]=new Option(A[B].value,B)}C.options[0].selected=true},setSelectedValue:function(A,B){jQuery("option[@value="+B+"]",A).attr("selected",true)},showCapsLock:function(C,B){var D=C.keyCode?C.keyCode:C.which;var A=C.shiftKey?C.shiftKey:((D==16)?true:false);if(((D>=65&&D<=90)&&!A)||((D>=97&&D<=122)&&A)){document.getElementById(B).style.display=""}else{document.getElementById(B).style.display="none"}},sortBox:function(E){var A=[];for(var C=0;C<E.length;C++){A[C]=[E[C].value,E[C].text]}A.sort(Liferay.Util.sortByAscending);var D=jQuery(E);D.find("option").remove();jQuery.each(A,function(F,G){D.append('<option value="'+G[0]+'">'+G[1]+"</option>")});if(Liferay.Browser.is_ie){var B=D.css("width");if(B=="auto"){D.css("width","auto")}}},sortByAscending:function(B,A){if(B[1].toLowerCase()>A[1].toLowerCase()){return 1}else{if(B[1].toLowerCase()<A[1].toLowerCase()){return -1}else{return 0}}},startsWith:function(B,A){return(B.indexOf(A)===0)},switchEditor:function(F){var A=this;if(F.url&&F.popup){var E=F.url;var D=F.popup;var C=F.textarea;if(!D.jquery){D=jQuery(D)}var B=D.find(".popup-message");jQuery.ajax({url:E,beforeSend:function(){B.empty();B.append('<div class="loading-animation"><div>')},success:function(H){B.empty();B.append(H);if(C){var G=D.find(".lfr-textarea").length;Liferay.Util.resizeTextarea(C,!G,true)}}})}},toggleByIdSpan:function(B,C){jQuery("#"+C).toggle();var A=jQuery(B).find("span");A.toggle()},toggle:function(E,C,A){if(typeof E=="string"){E="#"+E}var B=jQuery(E);var D=B.toggle().is(":visible");if(A){B.css("display",A);D=B.is(":visible")}if(C){return D}},toggleBoxes:function(C,B){var A=jQuery("#"+C);var D=jQuery("#"+B);if(!A.is(":checked")){D.hide()}A.click(function(){D.toggle()})},toggleControls:function(){var A=this;var B=jQuery(".toggle-controls");var E=jQuery(document.head);var F="controls-hidden";var D="controls-visible";var C=D;if(Liferay._editControlsState!="visible"){C=F}E.addClass(C);B.click(function(G){E.toggleClass(D).toggleClass(F);Liferay._editControlsState=(E.is("."+D)?"visible":"hidden");loadPage(mainPath+"/portal/session_click","liferay_toggle_controls="+Liferay._editControlsState)})},toJSONObject:function(A){return jQuery.parseJSON(A)},toJSONString:function(C){var B=C;var A={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};if(/["\\\x00-\x1f]/.test(C)){B=C.replace(/([\x00-\x1f\\"])/g,function(E,D){var F=A[D];if(F){return F}F=D.charCodeAt();return"\\u00"+Math.floor(F/16).toString(16)+(F%16).toString(16)})}return B}};Element={};Element.disable=function(C){C=jQuery.getOne(C);var A=C.getElementsByTagName("*");for(var B=0;B<A.length;B++){var D=A[B];var E=D.nodeName.toLowerCase();D.onclick=function(){};D.onmouseover=function(){};D.onmouseout=function(){};if(Liferay.Browser.is_ie){D.onmouseenter=function(){};D.onmouseleave=function(){}}if(E=="a"){D.href="javascript: void(0)"}else{if(E=="input"||E=="select"||E=="script"){D.disabled="true"}else{if(E=="form"){D.action="";D.onsubmit=function(){return false}}}}D.style.cursor="default"}};Element.remove=function(B){var A=jQuery.getOne(B);A.parentNode.removeChild(A)};function LinkedList(){this.head=null;this.tail=null}LinkedList.prototype.add=function(C){C.listInfo={};var A=this.tail;var B=this.head;if(this.head==null){this.head=C;this.tail=C}else{this.tail.listInfo.next=C;C.listInfo.prev=this.tail;this.tail=C}C.listInfo.listObj=this};LinkedList.prototype.remove=function(C){if(C.listInfo.listObj==this&&this.head){var A=C.listInfo.next;var B=C.listInfo.prev;if(A){A.listInfo.prev=B}if(B){B.listInfo.next=A}if(this.head==C){this.head=A}if(this.tail==C){this.tail=B}}};LinkedList.prototype.each=function(C){var D=this.head;var B=0;while(D){B++;var A=D.listInfo.next;if(C){C(D)}D=A}return B};LinkedList.prototype.size=function(){return this.each()};function submitForm(C,D,B){if(Liferay.Util.submitCountdown==0){Liferay.Util.submitCountdown=10;setTimeout("Liferay.Util.resubmitCountdown('"+C.name+"')",1000);if(B==null||B){Liferay.Util.submitCountdown++;var A=jQuery("input[@type=button], input[@type=reset], input[@type=submit]",C);A.each(function(F,G){var E=jQuery(this);E.attr("disabled",true);E.fadeTo(50,0.5)})}if(D!=null){C.action=D}if(!Liferay.Browser.is_ns_4){document.body.style.cursor="wait"}C.submit()}}var Viewport={frame:function(){var A,B;if(self.innerHeight){A=self.innerWidth;B=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth;B=document.documentElement.clientHeight}else{if(document.body){A=document.body.clientWidth;B=document.body.clientHeight}}}return(new Coordinate(A,B))},scroll:function(){var A,B;if(self.pageYOffset){A=self.pageXOffset;B=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollLeft;B=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollLeft;B=document.body.scrollTop}}}return(new Coordinate(A,B))},page:function(){var A,D;var C=document.body.scrollHeight;var B=document.body.offsetHeight;if(C>B){A=document.body.scrollWidth;D=document.body.scrollHeight}else{A=document.body.offsetWidth;D=document.body.offsetHeight}return(new Coordinate(A,D))}};String.prototype.trim=jQuery.trim;Liferay.zIndex={DOCK:10,DOCK_PARENT:20,ALERT:430,DROP_AREA:440,DROP_POSITION:450,DRAG_ITEM:460,TOOLTIP:470};Liferay.Language={get:function(C,F){var A=this;var B=themeDisplay.getPathContext()+"/language/"+themeDisplay.getLanguageId()+"/"+C+"/";if(F){if(typeof F=="string"){B+=F}else{if(Liferay.Util.isArray(F)){B+=F.join("/")}}}var D=A._cache[B];if(D!=null){return D}var E=jQuery.ajax({async:false,type:"GET",url:B});D=E.responseText;A._cache[B]=D;return D},_cache:{}};function AjaxRequest(B,A){var E;var D=A;if(window.XMLHttpRequest){E=new XMLHttpRequest();if(E.overrideMimeType){E.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{E=new ActiveXObject("Msxml2.XMLHTTP")}catch(G){try{E=new ActiveXObject("Microsoft.XMLHTTP")}catch(G){try{E=new XMLHttpRequest()}catch(G){}}}}}var C=function(){if(E.readyState==4){try{if(E.status==200){if(D.update){var H=jQuery.getOne(D.update);H.innerHTML=E.responseText;executeLoadedScript(H)}if(D.onComplete){D.onComplete(E,D.returnArgs)}AjaxUtil.remove(D.ajaxId)}}catch(I){}}};var F=function(I){I=Liferay.Util.getURLWithSessionId(I);var H=I.split("?");var L=H[0];var J=H[1];try{if(D.method=="get"){E.open("GET",I,true);E.onreadystatechange=C;E.send("")}else{E.open("POST",L,true);E.setRequestHeader("Method","POST "+L+" HTTP/1.1");E.setRequestHeader("Content-Type","application/x-www-form-urlencoded");E.onreadystatechange=C;E.send(J)}}catch(K){}};F(B);this.resend=function(I,H){D=H;F(I)};this.getId=function(){return ajaxId};this.cleanUp=function(){E.onreadystatechange=function(){};C=null;returnArgs=null;E=null}}var AjaxUtil={counter:1,requests:[],request:function(C,B){var E=B||{};var A=(E.reverseAjax)?0:AjaxUtil.getNextId();E.ajaxId=A;var D;if(A==0&&AjaxUtil.requests[0]){D=AjaxUtil.requests[0];D.resend(C,E)}else{D=new AjaxRequest(C,E);AjaxUtil.requests[A]=D}if(!E.onComplete&&!E.update){AjaxUtil.remove(A)}},submit:function(E,C){var B=E.action;var A=jQuery("input, textarea, select",E);var D=C||{};var F=A.serialize();if(B.indexOf("?")==-1){B=B+"?"+F}if(B.lastIndexOf("?")==B.length-1){B=B+F}else{B=B+"&"+F}if(D.disable){A.attr("disabled",true)}AjaxUtil.request(B,D)},update:function(B,D,A){var C=A||{};C.update=D;AjaxUtil.request(B,C)},getNextId:function(){var A=AjaxUtil.counter++;if(AjaxUtil.counter>20){AjaxUtil.counter=1}return A},remove:function(B){if(B){var A=AjaxUtil.requests[B];if(A){A.cleanUp();A=null}}}};var ReverseAjax={initialize:function(){jQuery(window).bind("unload",ReverseAjax.release);ReverseAjax.request()},request:function(){AjaxUtil.request(themeDisplay.getPathMain()+"/portal/reverse_ajax",{onComplete:ReverseAjax.response,reverseAjax:true})},response:function(C){var B=Liferay.Util.toJSONObject(C.responseText);var A=B.status;if(A&&A!="failure"){if(A=="success"){if(B.chatMessages){Messaging.getChatsReturn(B.chatMessages)}if(B.chatRoster){MessagingRoster.getEntriesReturn(B.chatRoster)}}ReverseAjax.request()}},release:function(){AjaxUtil.request(themeDisplay.getPathMain()+"/portal/reverse_ajax?release=1",{reverseAjax:true})}};function executeLoadedScript(el){var scripts=el.getElementsByTagName("script");for(var i=0;i<scripts.length;i++){if(scripts[i].src){var head=document.getElementsByTagName("head")[0];var scriptObj=document.createElement("script");scriptObj.setAttribute("type","text/javascript");scriptObj.setAttribute("src",scripts[i].src);head.appendChild(scriptObj)}else{try{if(Liferay.Browser.is_safari){eval(scripts[i].innerHTML)}else{if(Liferay.Browser.is_mozilla){eval(scripts[i].textContent)}else{eval(scripts[i].text)}}}catch(e){}}}}function loadPage(C,D,B,A){AjaxUtil.request(C+"?"+D,{onComplete:B,returnArgs:A})}function printJSON(A){if(A&&A.id){var B=document.getElementById(A.id);if(B){B.innerHTML=A.toString()}}}var Coordinates={ORIGIN:new Coordinate(0,0),coordinatesData:function(A,B){var C={};C.recurse=B;C.size=new Coordinate(A.offsetWidth,A.offsetHeight);C.nwOffset=Coordinates.northwestOffset(A,B);C.seOffset=C.nwOffset.plus(C.size);C.midPoint=C.nwOffset.plus(new Coordinate(Math.round(C.size.x/2),Math.round(C.size.y/2)));return C},northwestPosition:function(B){var A=parseInt(B.style.left);var C=parseInt(B.style.top);return new Coordinate(isNaN(A)?0:A,isNaN(C)?0:C)},southeastPosition:function(A){return Coordinates.northwestPosition(A).plus(new Coordinate(A.offsetWidth,A.offsetHeight))},northwestOffset:function(A,C){var D=new Coordinate(A.offsetLeft,A.offsetTop);if(!C){return D}var B=A.offsetParent;while(B){D=D.plus(new Coordinate(B.offsetLeft,B.offsetTop));B=B.offsetParent}return D},southeastOffset:function(A,B){return Coordinates.northwestOffset(A,B).plus(new Coordinate(A.offsetWidth,A.offsetHeight))}};function Coordinate(A,B){this.x=A||0;this.y=B||0}Coordinate.prototype.toString=function(){return"("+this.x+","+this.y+")"};Coordinate.prototype.plus=function(A){return new Coordinate(this.x+A.x,this.y+A.y)};Coordinate.prototype.minus=function(A){return new Coordinate(this.x-A.x,this.y-A.y)};Coordinate.prototype.distance=function(C){var B=this.x-C.x;var A=this.y-C.y;return Math.sqrt(Math.pow(B,2)+Math.pow(A,2))};Coordinate.prototype.max=function(B){var A=Math.max(this.x,B.x);var C=Math.max(this.y,B.y);return new Coordinate(A,C)};Coordinate.prototype.constrain=function(C,B){if(C.x>B.x||C.y>B.y){return this}var A=this.x;var D=this.y;if(C.x!=null){A=Math.max(A,C.x)}if(B.x!=null){A=Math.min(A,B.x)}if(C.y!=null){D=Math.max(D,C.y)}if(B.y!=null){D=Math.min(D,B.y)}return new Coordinate(A,D)};Coordinate.prototype.reposition=function(A){A.style["top"]=this.y+"px";A.style["left"]=this.x+"px"};Coordinate.prototype.equals=function(A){if(this==A){return true}if(!A||A==null){return false}return this.x==A.x&&this.y==A.y};Coordinate.prototype.inside=function(B,A){if((this.x>=B.x)&&(this.x<=A.x)&&(this.y>=B.y)&&(this.y<=A.y)){return true}else{return false}};Coordinate.prototype.insideObject=function(C,A){var B=Coordinates.coordinatesData(C);B.recurse=A;B.quadrant=this.insideObjectData(B);return B.quadrant?B:null};Coordinate.prototype.insideObjectData=function(D){var C=D.nwOffset;var E=D.seOffset;var A=0;if(this.inside(C,E)){var B=D.midPoint;if(this.x<=B.x&&this.y<=B.y){A=1}else{if(this.x>=B.x&&this.y<=B.y){A=2}else{if(this.x>=B.x&&this.y>=B.y){A=3}else{if(this.x<=B.x&&this.y>=B.y){A=4}}}}}return A};function MousePos(){}MousePos.prototype=new Coordinate();MousePos.prototype.update=function(C){if(typeof C=="undefined"){C=window.event}var A=new Coordinate(C.clientX,C.clientY);var B=Viewport.scroll();this.x=A.x+B.x;this.y=A.y+B.y;if(this.x<0){this.x=0}if(this.y<0){this.y=0}return C};var mousePos=new MousePos(0,0);jQuery.each(["coordinatesData","northwestPosition","southeastPosition","northwestOffset","southeastOffset"],function(A,B){jQuery.fn[B]=function(C){return this.length>0?Coordinates[B](this[0],C):null}});jQuery.fn.xySize=function(){return new Coordinate(this.width(),this.height())};(function(A){A.fn.lDrag=function(B){this.each(function(){A.lDrag.create(this,B)})};A.fn.lDragBind=function(C,B){this.each(function(){A.lDrag.bind(this,C,B)})};A.fn.lDragUnbind=function(C,B){this.each(function(){A.lDrag.unbind(this,C,B)})};A.lDrag=function(B,C){A.lDrag.create(B,C)};A.lDrag.extendNativeFunctionObject({container:null,isDragging:false,scrollDirection:"",scrollTimer:0,bind:function(B,D,C){if(B.dragSettings&&D&&C){if(D=="start"){B.dragSettings.onDragStart.push(C)}else{if(D=="move"){B.dragSettings.onDrag.push(C)}else{if(D=="complete"){B.dragSettings.onDragEnd.push(C)}}}}},unbind:function(B,F,E){if(B.dragSettings&&F&&E){var D=B.dragSettings;var G="";if(F=="start"){G="onDragStart"}else{if(F=="move"){G="onDrag"}else{if(F=="complete"){G="onDragEnd"}}}for(var C=0;C<D[G].length;C++){if(D[G][C]==E){D[G].splice(C,1)}}}},create:function(B,C){C=C||{};C.container=B;if(C.handle==null){C.handle=B}else{if(typeof C.handle=="string"){C.handle=A(C.handle)[0]}C.handle.dragSettings=C}B.dragSettings=C;C.onDragStart=[];C.onDrag=[];C.onDragEnd=[];if(C.onStart){A.lDrag.bind(B,"start",C.onStart)}if(C.onMove){A.lDrag.bind(B,"move",C.onMove)}if(C.onComplete){A.lDrag.bind(B,"complete",C.onComplete)}jQuery(C.handle).mousedown(A.lDrag.onMouseDown)},scroll:function(){Liferay.Animate("layoutDragScroll",A.lDrag.scrollStart)},scrollStart:function(){var G;var D=A.lDrag.container;var C=A(A.lDrag.container);var B=false;var E=20;var F=Viewport.scroll().y;if(A.lDrag.scrollDirection=="down"){G=C.northwestPosition();G.y+=E;G.reposition(D);window.scrollTo(0,F+E);B=true}else{if(A.lDrag.scrollDirection=="up"&&F>0){G=C.northwestPosition();G.y-=E;G.reposition(D);window.scrollTo(0,F-E);B=true}else{B=false}}if(!B){A.lDrag.scrollDirection="";A.lDrag.scrollTimer=0;return false}},onMouseDown:function(F){mousePos.update(F);var E=this.dragSettings;var C=E.container;var B=A(E.container);if(!C._LFR_noDrag){A.lDrag.container=C;var D=B.northwestOffset(true);var G=D.plus(B.xySize());E.originalZIndex=C.style.zIndex;E.mouseNwOffset=mousePos.minus(D);E.mouseSeOffset=mousePos.minus(G);E.mouseStart=new Coordinate(mousePos.x,mousePos.y);E.browserEvent=F;A.lDrag._processListeners(E,"start");A.lDrag._setConstraint(E);jQuery(document).mousemove(A.lDrag.onMouseMove);jQuery(document).mouseup(A.lDrag.onMouseUp);return false}else{return }},onMouseMove:function(D){mousePos.update(D);var E=A.lDrag.container;var G=E.dragSettings;if(!A.lDrag._isAboveThreshold(G)){return false}else{A.lDrag.isDragging=true}E=G.clone?A.lDrag._createClone(G):G.container;var M=A(E);var H=M.northwestOffset(true);var K=M.northwestPosition();var L=M.xySize();var J=H.plus(L);var C=K.plus(L);A.lDrag._setScrolling(G);K=K.plus(mousePos.minus(H).minus(G.mouseNwOffset));var B=G.autoCorrect?M.northwestOffset(true):null;if(!G.noDrag){K.reposition(E)}G.browserEvent=D;A.lDrag._processListeners(G,"move");if(G.autoCorrect){var I=M.northwestOffset(true);if(!B.equals(I)){var F=B.minus(I);K=M.northwestPosition().plus(F);K.reposition(E)}}return false},onMouseUp:function(D){D=mousePos.update(D);var B=A.lDrag.container;var C=B.dragSettings;if(C.clone){A.lDrag._destroyClone(C)}jQuery(document).unbind("mousemove",A.lDrag.onMouseMove);jQuery(document).unbind("mouseup",A.lDrag.onMouseUp);C.browserEvent=D;A.lDrag._processListeners(C,"complete");A.lDrag.container=null;A.lDrag.isDragging=false},_createClone:function(D){if(!D.clonedNode){var B=A("<div></div>");var C=A(D.container);var E=C.northwestOffset(true);B.css({height:C.height()+"px",left:E.x+"px",position:"absolute",top:E.y+"px",width:C.width()+"px",zIndex:Liferay.zIndex.DRAG_ITEM});if(D.opacity){B.css("opacity",D.opacity)}if(D.dragClass){B.addClass(D.dragClass)}B[0].dragSettings=D;D.clonedNode=B[0];A("body").append(B)}return D.clonedNode},_destroyClone:function(E){if(E.clonedNode){var B=A(E.clonedNode);var C=A(E.container);var F=C.northwestPosition();var D=F.plus(mousePos.minus(E.mouseStart));D.reposition(E.container);B.remove();E.clonedNode=null}},_isAboveThreshold:function(C){var B=true;if(!A.lDrag.isDragging&&C.threshold){var D=C.mouseStart.distance(mousePos);if(D<C.threshold){B=false}}return B},_processListeners:function(D,C){var E="";if(C=="start"){E="onDragStart"}else{if(C=="move"){E="onDrag"}else{if(C=="complete"){E="onDragEnd"}}}for(var B=0;B<D[E].length;B++){D[E][B](D)}},_setConstraint:function(D){var C;var B;var F;var E;if(D.minX!=null){C=D.minX+D.mouseNwOffset.x}if(D.minY!=null){B=D.minY+D.mouseNwOffset.y}if(D.maxX!=null){F=D.maxX+D.mouseSeOffset.x}if(D.maxY!=null){E=D.maxY+D.mouseSeOffset.y}if(C&&F&&C>F){F=C}if(B&&E&&B>E){E=B}D.mouseMin=new Coordinate(C,B);D.mouseMax=new Coordinate(F,E)},_setScrolling:function(E){if(E.scroll){var C=30;var D=5;var G=Viewport.scroll().y;var F=Viewport.page().y;var B=Viewport.frame().y;if((G+B+2*C)<F&&mousePos.y>(G+B-C)){if(A.lDrag.scrollDirection!="down"){A.lDrag.scrollDirection="down";A.lDrag.scroll()}}else{if(G>0&&mousePos.y<(G+C)){if(A.lDrag.scrollDirection!="up"){A.lDrag.scrollDirection="up";A.lDrag.scroll()}}else{A.lDrag.scrollDirection=""}}}}})})(jQuery);(function(A){A.Popup=function(B){return A.Popup.open(B)};A.Popup.extendNativeFunctionObject({close:function(D){var C=this;if(C.options.onBeforeClose){C.options.onBeforeClose()}jQuery(D).parents(".popup:first").remove();var E=jQuery("#alert-messages .modal:last");if(E.length){E.before(jQuery("#alert-messages .alert-background"))}else{var B=jQuery("#alert-messages .alert-background");B.fadeTo("normal",0,function(){B.remove()});jQuery(window).unbind("resize",A.Popup.center);jQuery(window).unbind("resize",A.Popup.resize);jQuery(window).unbind("scroll",A.Popup.center)}if(Liferay.Browser.is_ie&&Liferay.Browser.version()<7&&A.Popup.count()==0){jQuery("select").css("visibility","visible")}if(C.options.onClose){C.options.onClose()}},count:function(){return jQuery("#alert-messages .popup").length},open:function(R){var P=this;R=R||{};P.options=R;var O=R.modal;var Q=R.message;var N=R.messageId;var G=R.height;var E=R.width;var L=R.noCenter;var C=R.noDraggable||false;var H=R.noTitleBar||false;var M=R.title;var K=R.onClose;var B=jQuery("#alert-messages");if(!B.length){jQuery("body").append("<div id='alert-messages' style='position:absolute; top:0; left:0; z-index:"+Liferay.zIndex.ALERT+"'></div>");B=jQuery("#alert-messages")}B.append("<div class='popup "+(O?"modal":"")+"' style='position:absolute; top:0; left:0;'><div class='popup-inner'>"+(H?"<table width='"+E+"'><tr><td align='right'><img class='popup-close' src='"+themeDisplay.getPathThemeImages()+"/portlet/close.png'/></td></tr></table>":("<div class='popup-header'><table width='"+E+"'><tr><td><span class='popup-title'>"+(M||"&nbsp;")+"</span></td><td align='right'><img class='popup-close' src='"+themeDisplay.getPathThemeImages()+"/portlet/close.png'/></td></tr></table></div>"))+"<div class='popup-message'></div></div></div>");var F=B.find(".popup:last");var J=F.find(".popup-message");if(N){J.attr("id",N)}if(H){var D=F.find(".popup-close");D.hide();F.find(".popup-inner").hover(function(){D.fadeIn("normal")},function(){D.fadeOut("normal")})}F.find(".popup-close").click(function(){A.Popup.close(this)});if(K!=null){F.find(".popup-close").click(K)}F[0].alertOptions=R;J.append(Q||'<div class="loading-animation"></div>');if(G){J.css(Liferay.Browser.is_ie&&Liferay.Browser.version()<7?"height":"min-height",G+"px")}if(E){F.css("width",E+"px")}F.mousedown(function(){if(this!=jQuery("#alert-messages .popup:last")[0]){jQuery("#alert-messages").append(this)}});var I=B.find(".alert-background");if(O){if(I.length){F.before(I[0])}else{F.before("<div class='alert-background' style='position:absolute; top:0; left:0'></div>");I=B.find(".alert-background");I.css({display:"block",opacity:0})}}if(Liferay.Browser.is_ie&&Liferay.Browser.version()<7&&A.Popup.count()==1){jQuery("select").css("visibility","hidden");F.find("select").css("visibility","visible")}if(B.find(".popup").length==1){jQuery(window).resize(A.Popup.center);jQuery(window).resize(A.Popup.resize);jQuery(window).scroll(A.Popup.center)}A.Popup.resize();I.fadeTo("normal",0.5);if(!C){if(false){F.Draggable({handle:F.find(".popup-header")[0],zIndex:Liferay.zIndex.ALERT+1})}else{F.lDrag({handle:F.find(".popup-header")[0],threshold:2,dragClass:"drag-indicator"})}}if(L){A.Popup.center()}else{A.Popup.center(G,E)}Liferay.Util.addInputType(F[0]);Liferay.Util.addInputFocus(F[0]);window.focus();return J[0]},iframe:function(C,B){var G=B.height;var F=B.width;var E=A.Popup.open(B);var D=document.createElement("iframe");E.height="";D.src=C;D.frameBorder=0;if(F){D.style.width="100%"}E.appendChild(D);if(!B.noCenter){A.Popup.center(G,F)}return E},center:function(C,E){var D=jQuery("#alert-messages .popup:last");var B=jQuery(".alert-background");B.css({top:(Viewport.scroll().y)});if(!D[0].alertOptions.noCenter){D.css({top:(Viewport.scroll().y+(Viewport.frame().y/2-D.height()/2))+"px",left:(Viewport.scroll().x+(Viewport.frame().x/2-D.width()/2))+"px"})}},resize:function(){jQuery("#alert-messages .alert-background").css({height:Viewport.page().y+"px",width:Viewport.page().x+"px"})},resizeIframe:function(B){if(A.Popup.message&&B){var C=A.Popup.message.getElementsByTagName("iframe")[0];var D=jQuery.getOne(".loading-animation",A.Popup.message);if(D){D.parentNode.removeChild(D)}if(C){if(B.height){C.height=B.height}if(B.width){C.width=B.width}}}A.Popup.resize()},update:function(D,C){var B=jQuery(D);B.empty();B.append('<div class="loading-animation"></div>');AjaxUtil.update(C,B[0])}})})(Liferay);var DragLink={create:function(B,A){B.dragId=jQuery.getOne(A);B.clickLink=B.href;B.href="javascript:void(0)";B.onclick=DragLink.onLinkClick},onLinkClick:function(){if(this.dragId.wasClicked){if(Liferay.Browser.is_ie){setTimeout('window.location = "'+this.clickLink+'";',0)}else{window.location=this.clickLink}}}};var NavFlyout={zIndex:1,initialize:function(B){var B=jQuery.getOne(B);var A=jQuery("portlet-nav-map-list",B);A.not(".portlet-nav-map-level_1, .portlet-nav-map-level_2").css({position:"absolute",display:"none"});jQuery(".portlet-nav-map-list a",B).each(function(){var C=jQuery(this.parentNode.parentNode);if(C.is(".portlet-nav-map-level_1")){C.mouseover(function(){NavFlyout.hide(this.parentNode)})}else{C.mouseover(NavFlyout.onHoverOver)}})},initToggle:function(C,A){var C=jQuery.getOne(C);var B=jQuery(".portlet-nav-map-level_1 > li",C);B.click(NavFlyout.onToggle);B.css({backgroundImage:"url("+A+")"})},hide:function(A){NavFlyout.initialize(A.parentNode)},onHoverOver:function(){var A=this.parentNode;if(jQuery(A.parentNode).is(".portlet-nav-map-level_2")){NavFlyout.hide(A.parentNode.parentNode.parentNode)}else{NavFlyout.hide(A)}jQuery(A.childNodes).filter("ul").css({display:"block",top:"5px",left:"100px"});zItem=A;while(zItem.nodeName.toLowerCase()!="div"){if(zItem.nodeName.toLowerCase()=="li"){zItem.style.zIndex=NavFlyout.zIndex}zItem=zItem.parentNode}NavFlyout.zIndex++},onToggle:function(){var A=jQuery("ul:first",this).get(0);if(this.isShowing){A.style.display="none";this.style.backgroundImage=this.style.backgroundImage.replace(/02_minus/,"02_plus");this.isShowing=false}else{A.style.display="block";A.style.backgroundImage="none";this.style.backgroundImage=this.style.backgroundImage.replace(/02_plus/,"02_minus");this.isShowing=true}}};var PortletHeaderBar={mode:{},fade:function(C){var B=C.count;var E=C.id;var D=false;var A=jQuery("#portlet-header-bar_"+E+" .portlet-small-icon-bar");if(PortletHeaderBar.mode[E]=="in"){if(B<=10){if(B>=0){A.css({"opacity":(B/10),"display":""})}D=true;C.count++}}else{if(PortletHeaderBar.mode[E]=="out"){if(B>=0){if(B<=10){A.css("opacity",(B/10))}C.count--;D=true}else{A.css("display","none")}}}return D},hide:function(A){this.mode[A]="out";Liferay.Animate("header-icon-fade_"+A,PortletHeaderBar.fade,{count:15,id:A})},show:function(A){this.mode[A]="in";Liferay.Animate("header-icon-fade_"+A,PortletHeaderBar.fade,{count:-5,id:A})}};var PhotoSlider=Class.create();PhotoSlider.prototype={initialize:function(C,A,E,B,D){this.TOTAL_FRAMES=20;this.count=0;this.page=0;this.timer=0;this.start=0;this.photos=jQuery.getOne(E);this.photos.style.position="relative";this.photos.style.left="0px";this.slidingWindow=_J$.getOne(C);this.windowWidth=A;this.totalPages=B;this.varName=D},animate:function(){if(this.count<=this.TOTAL_FRAMES){var B=this.count/this.TOTAL_FRAMES;var A=Math.sin(B*(Math.PI/2));var C=-(this.page*this.windowWidth)-this.start;this.photos.style.left=this.start+(C*A);this.count++;this.timer=setTimeout(this.varName+".animate()",30)}else{this.timer=0}},left:function(){this.start=parseInt(this.photos.style.left);if(this.page>0){this.page--;this.count=0;if(!this.timer){this.timer=setTimeout(this.varName+".animate()",30)}}},right:function(){this.start=parseInt(this.photos.style.left);if(this.page<(this.totalPages-1)){this.page++;this.count=0;if(!this.timer){this.timer=setTimeout(this.varName+".animate()",30)}}}};var Tabs={show:function(C,D,E){var B=document.getElementById(C+E+"TabsId");if(B){B.className="current"}B=document.getElementById(C+E+"TabsSection");if(B){B.style.display="block"}for(var A=0;(D.length>1)&&(A<D.length);A++){if(E!=D[A]){B=document.getElementById(C+D[A]+"TabsId");if(B){B.className="none"}B=document.getElementById(C+D[A]+"TabsSection");if(B){B.style.display="none"}}}}};var StarRating=new Class({initialize:function(D,B){this.options=B||{};this.rating=this.options.rating||0;var C=jQuery("#"+D);this.stars=C.find("img");var A=this;if(!this.options.displayOnly){C.bind("mouseout",{self:this},this.onHoverOut);this.stars.each(function(E){this.index=E+1;jQuery(this).bind("click",{self:A},A.onClick).bind("mouseover",{self:A},A.onHoverOver)})}this.display(this.rating,"rating")}});StarRating.implement({display:function(C,E){var A=this;C=C==null?this.rating:C;var D=Math.floor(C);var B=C-D;this.stars.each(function(F){image=this;if(F<D){if(E=="hover"){image.src=image.src.replace(/\bstar_.*\./,"star_hover.")}else{image.src=image.src.replace(/\bstar_.*\./,"star_on.")}}else{if(B<0.25){image.src=image.src.replace(/\bstar_.*\./,"star_off.")}else{if(B<0.5){image.src=image.src.replace(/\bstar_.*\./,"star_on_quarter.")}else{if(B<0.75){image.src=image.src.replace(/\bstar_.*\./,"star_on_half.")}else{if(B<1){image.src=image.src.replace(/\bstar_.*\./,"star_on_threequarters.")}}}}B=0}})},onHoverOver:function(A){A.data.self.display(this.index,"hover")},onHoverOut:function(A){A.data.self.display()},onClick:function(C){var D=this;var B=D.index;var A=C.data.self;A.rating=B;if(A.options.onComplete){A.options.onComplete(B)}A.display(B)}});var ThumbRating=new Class({initialize:function(B){var A=this;B=B||{};A.rating=B.rating||0;var C=jQuery("#"+B.id);A.triggers=C.find(".rating");A._onComplete=B.onComplete;if(!B.displayOnly){A.triggers.click(function(D){A._click(D,this)})}},_click:function(D,E){var A=this;var B=jQuery(E);var C=B.is(".rate-up")?1:-1;if(B.is(".rated")){C=0}A.triggers.not(E).removeClass("rated");B.toggleClass("rated");if(A._onComplete){A._onComplete(C)}}});var ToolTip={container:null,show:function(B,F,N){var L=this;var C=L.container;var K=jQuery(F);var H=K.offset();var A=L._windowCalculation();if(!C){C=jQuery('<div class="portal-tool-tip"></div>').appendTo("body");L.container=C}C.html(N);C.show();var G=C.width();var D=K.width();var M=K.height();var I=C.height();var E=H.left-(G/2);var J=H.top+M+5;if(E<0){E=5}else{E+=5}if(E+G>A.right){E=(E-(G/2))+D}if(J+I>A.bottom){J=J-(M+I+5)}C.css({cursor:"default",left:E+"px",position:"absolute",top:J+"px",zIndex:Liferay.zIndex.TOOLTIP});K.one("mouseout",function(){L.hide()})},hide:function(B){var A=this;A.container.hide()},_windowCalculation:function(){var B=this;if(B._window.right==null){var C={};var A=B._body;if(!A){A=jQuery("body");B._body=A}B._window={bottom:A.height(),left:0,right:A.width(),top:0};jQuery(window).resize(function(){B._window.bottom=A.height();B._window.right=A.width()})}return B._window},_body:null,_window:{}};Liferay.Portlet={fn:{},fnAll:[],fnLast:[],ajaxList:{},list:{},isAjax:function(A){return(this.ajaxList[A]==1)},flagAjax:function(A){this.ajaxList[A]=1},process:function(D){var A=this.list[D];var C=0;this.list[D]=0;if(A==1){this.processPortlet(D);this.processAll(D)}else{if(A==0){}else{this.processPortlet(D)}}for(var B in this.list){C+=this.list[B]}if(C==0){this.processLast(D)}},processAll:function(B){for(var A=0;A<this.fnAll.length;A++){this.fnAll[A](B,jQuery("#p_p_id_"+B+"_"))}},processPortlet:function(B){if(this.fn[B]){for(var A=0;A<this.fn[B].length;A++){this.fn[B][A](B,jQuery("#p_p_id_"+B+"_"))}this.fn[B]=[]}},processLast:function(B){for(var A=0;A<this.fnLast.length;A++){this.fnLast[A](B)}this.fnLast=[]},ready:function(B,A){if(typeof B=="function"){this.fnAll.push(B)}else{if(typeof B=="string"&&typeof A=="function"){if(!this.fn[B]){this.fn[B]=[]}this.fn[B].push(A)}}},remove:function(A){this.ajaxList[A]=0;this.list[A]=1;this.fn[A]=[]},last:function(A){this.fnLast.push(A)},findIndex:function(B){var A=-1;jQuery("> .portlet-boundary",B.parentNode).each(function(C){if(this==B){A=C}});return A},move:function(D){var G=D.portlet;var F=D.neighbor;var B=D.quadrant;var A=D.container;if(F&&B){if(B==1||B==2){jQuery(F).before(G)}else{jQuery(F).after(G)}if(G&&G.originalColumn){var E=jQuery(G.originalColumn);var C=E.find(".portlet-boundary:first");if(C.length==0){E.addClass("empty")}E=G.originalColumn=null}}else{if(A){jQuery(A).append(G).removeClass("empty")}}this.savePosition(G)},savePosition:function(D){var B=D.parentNode.id.replace(/^layout-column_/,"");var A=this.findIndex(D);var C=D.id.replace(/^(p_p_id_)/,"");C=C.substring(0,C.length-1);AjaxUtil.request(themeDisplay.getPathMain()+"/portal/update_layout?p_l_id="+themeDisplay.getPlid()+"&p_p_id="+C+"&p_p_col_id="+B+"&p_p_col_pos="+A+"&doAsUserId="+themeDisplay.getDoAsUserIdEncoded()+"&cmd=move")}};jQuery.fn.last=function(A){Liferay.Portlet.last(A)};Liferay.Dock={init:function(){var C=this;var G=jQuery(".lfr-dock");if(!G.is(".interactive-mode")){return }G.addClass("lfr-component");var B=G.find(".lfr-dock-list");if(B.length>0){var F=jQuery(".my-places",G);Liferay.Util.createFlyouts({container:B[0],mouseOver:function(H){if(this.className.indexOf("my-places")>-1){jQuery(".current-community > ul",this).show()}else{if(this.parentNode.className.indexOf("taglib-my-places")>-1){jQuery("ul",this.parentNode).hide();jQuery("> ul",this).show()}}}});B.find("li:first-child, a:first-child").addClass("first");B.find("li:last-child, a:last-child").addClass("last");C._dock=G;C._dockList=B;C._myPlaces=F;B.hide();B.wrap('<div class="lfr-dock-list-container"></div>');G.css({cursor:"pointer",position:"absolute",zIndex:Liferay.zIndex.DOCK});var D=function(H){C._setCloser();C._toggle("show")};var E=function(H){C._toggle("hide")};G.hoverIntent({interval:0,out:E,over:D,timeout:500});if(Liferay.Browser.is_ie&&Liferay.Browser.version()<=6){F.find("> ul").css("zoom",1)}var A=G.parent();A.css({position:"relative",zIndex:Liferay.zIndex.DOCK_PARENT});C._handleDebug()}},_handleDebug:function(){var B=this;var C=B._dock;var A=B._dockList;var D=B._myPlaces.find("> ul");if(C.is(".debug")){C.show();A.show();A.addClass("expanded")}},_setCloser:function(){var A=this;if(!A._hovered){jQuery(document).one("click",function(D){var C=jQuery(D.target);var B=C.parents(".lfr-dock");if((B.length==0)&&!C.is(".lfr-dock")){A._toggle("hide");A._hovered=false}});A._hovered=true}},_toggle:function(D){var B=this;var C=B._dock;var A=B._dockList;if(D=="hide"){A.hide();C.removeClass("expanded")}else{if(D=="show"){A.show();C.addClass("expanded")}else{A.toggle();C.toggleClass("expanded")}}},_hovered:false};Liferay.DynamicSelect=new Class({initialize:function(B){var A=this;A.array=B;jQuery.each(B,function(E,G){var C=jQuery("#"+G.select);var D=G.selectData;var F=null;if(E>0){F=B[E-1].selectVal}D(function(H){A._updateSelect(A,E,H)},F);C.attr("name",C.attr("id"));C.bind("change",function(){A._callSelectData(A,E)})})},_callSelectData:function(B,C){var E=B.array;if((C+1)<E.length){var D=jQuery("#"+E[C].select);var A=E[C+1].selectData;A(function(F){B._updateSelect(B,C+1,F)},D.val())}},_updateSelect:function(instance,i,list){var params=instance.array[i];var select=jQuery("#"+params.select);var selectId=params.selectId;var selectDesc=params.selectDesc;var selectVal=params.selectVal;var selectNullable=params.selectNullable||true;var options="";if(selectNullable){options+='<option value="0"></option>'}jQuery.each(list,function(i,obj){eval("var key = obj."+selectId+";");eval("var value = obj."+selectDesc+";");options+='<option value="'+key+'">'+value+"</option>"});select.html(options);select.find("option[@value="+selectVal+"]").attr("selected","selected");if(Liferay.Browser.is_ie){select.css("width","auto")}}});Liferay.Menu=new Class({initialize:function(B){var A=this;A._button=jQuery(B.button,B.context||document);A._menu=A._button.find("ul:first");A._trigger=A._button.find(B.trigger);if(A._menu.length){A._run()}},_run:function(){var A=this;var D=A._trigger.find("ul:first li:last-child");D.addClass("last");var C=function(E){A._button.removeClass("visible")};var B=function(H){var E=jQuery(this);var G=E.parent();if(G.is(".visible")){G.removeClass("visible")}else{A._button.removeClass("visible");G.addClass("visible")}jQuery(document).unbind().one("click",C);var F=jQuery(H.originalTarget||H.srcElement);if(!F.is("a")&&!F.is("img")){return false}};A._trigger.unbind().click(B)}});var Messaging={checkRoster:false,currentChatBox:null,initialized:false,inputCount:1,mainDiv:null,msgQueue:[],userId:null,windowCount:0,zIndex:1,chat:function(A){if(!A&&Messaging.msgQueue.length==0){return }var F=A||Messaging.msgQueue.shift();if(!F.toId||F.toId==""){alert(F.body);return }var D=F.toId.replace(/\./g,"_");var E=jQuery("#msg-chat-box_"+D)[0];if(!E&&F.toType=="GROUP"){return }if(!E){var C="<div class='msg-chat-box' id='msg-chat-box_"+D+"'><table width='280' border='0'><tr><td>&nbsp;</td></tr></table><input class='msg-to-input-id' type=hidden value='"+F.toId+"' /><input class='msg-to-input-type' type=hidden value='"+F.toType+"' /><div class='msg-chat-area textarea'>"+(F.messages||"")+"</div><input class='msg-type-area' style='margin-top: 5px' tabIndex=1 type='text' onKeyPress='Messaging.sendChat(this, event)' /></div>";E=Liferay.Popup({title:F.toName,message:C,noCenter:false,width:300,onClose:function(){Messaging.saveCookie()}});if(F.status&&F.status=="unavailable"){}Messaging.populateChatBox(E,F);if(F.top!=null&&F.left!=null){jQuery(E).parents(".popup:first").css({top:F.top+"px",left:F.left+"px"})}else{var B=Liferay.Popup.count();jQuery(E).parents(".popup:first").css({top:(B*10)+"px",left:(B*10)+"px"})}}else{this.populateChatBox(E,F)}},populateChatBox:function(F,C){var I=jQuery.getOne(".msg-type-area",F);var H=jQuery.getOne(".msg-chat-area",F);if(C.body!=null){var B=C.toName;if(C.useInitials==null||C.useInitials){B="";var A=C.toName.split(/[ ,.-]/);for(var E=0;E<A.length;E++){B+=A[E].charAt(0)}}if(C.presence){try{var G=jQuery(".msg-presence-area",F);var J=C.fromId.replace(/\./g,"-");G.children().filter(".from-id-"+J).remove();if(C.presence=="available"){G.append("<li class='from-id-"+J+"'>"+C.fromName+"</li>")}}catch(D){alert(D)}}else{B=C.toName;H.innerHTML+="<span style='color: #FF0000'>"+B+": </span>"+C.body+"<br/>";this.saveCookie()}}if(Liferay.Browser.is_ie){chatAreaj=jQuery(H);chatAreaj.height(chatAreaj.height()-1);chatAreaj.height(chatAreaj.height()+1)}H.scrollTop=H.scrollHeight;Messaging.chat()},getChats:function(){var url=themeDisplay.getPathMain()+"/messaging/action?cmd=getChats";AjaxUtil.request(url,{onComplete:function(xmlHttpReq){var msg=eval("("+xmlHttpReq.responseText+")");Messaging.getChatsReturn(msg)}})},getChatsReturn:function(C){var A=C.status;if(A=="success"){var D=C.chat;if(D&&D.length>0){for(var B=0;B<D.length;B++){if(D[B].toType=="GROUP"){D[B].toName=D[B].fromName;D[B].useInitials=false}else{D[B].toName=D[B].fromName;D[B].toId=D[B].fromId;D[B].toType=D[B].fromType}Messaging.msgQueue.push(D[B])}Messaging.chat()}}},error:function(){alert("An undexpected error happened with the chat application.")},init:function(userId){var body=jQuery("body").get(0);this.userId=userId;var msgJSON=jQuery.cookie(this.userId+"_chats");if(msgJSON){var chatArray=eval("("+msgJSON+")");for(var i=0;i<chatArray.length;i++){Messaging.msgQueue.push(chatArray[i])}Messaging.chat()}this.initialized=true;Messaging.getChats()},maximizeChat:function(D){var C=jQuery.getOne(D);var B=jQuery.getOne(".msg-chat-box-width");var A=jQuery.getOne(".msg-chat-area");C.style.left=Viewport.scroll().x+"px";C.style.top=Viewport.scroll().y+"px";B.style.width=(Viewport.frame().x-30)+"px";A.style.height=(Viewport.frame().y-100)+"px"},minimizeChat:function(D){var C=jQuery.getOne(D);var B=jQuery.getOne(".msg-chat-box-width");var A=jQuery.getOne(".msg-chat-area");B.style.width=250+"px";A.style.height=100+"px"},removeChat:function(B){var A=jQuery.getOne(B);Element.remove(A);this.saveCookie()},saveCookie:function(){var A=jQuery(".msg-chat-box");var B="[";A.each(function(D){var E=this;var C=jQuery(E).parents(".popup:first");B+='{toName:"'+C.find(".popup-title")[0].innerHTML+'",toId:"'+jQuery(".msg-to-input-id",E)[0].value+'",toType:"'+jQuery(".msg-to-input-type",E)[0].value+'",top:'+parseInt(C.css("top"))+",left:"+parseInt(C.css("left"))+',messages:"'+Liferay.Util.toJSONString(jQuery(".msg-chat-area",E)[0].innerHTML)+'"}';if(D<A.length-1){B+=","}});B+="]";jQuery.cookie(this.userId+"_chats",B)},sendChat:function(E,H){var I;var F=E.parentNode;var G;var A;var L;var K;var J="cmd=sendChat";if(window.event){I=window.event.keyCode}else{if(H){I=H.which}else{return }}if(I==13){var C=jQuery("input",F).get();for(var D=0;D<C.length;D++){if(C[D].className){if(C[D].className.match("msg-to-input-id")){G=C[D]}if(C[D].className.match("msg-to-input-type")){A=C[D]}if(C[D].className.match("msg-type-area")){L=C[D]}}}if(L.value==""){return }var B=jQuery("div",F).get();for(var D=0;D<B.length;D++){if(B[D].className&&B[D].className.match("msg-chat-area")){K=B[D]}}J+="&text="+encodeURIComponent(L.value);J+="&toId="+G.value;J+="&toType="+A.value;loadPage(themeDisplay.getPathMain()+"/messaging/action",J,Messaging.sendChatReturn);if(A.value!="GROUP"){K.innerHTML+="<span style='color: #0000FF'>Me: </span>"+L.value+"<br/>"}K.scrollTop=K.scrollHeight;L.value="";Messaging.saveCookie()}},sendChatReturn:function(xmlHttpReq){var msg=eval("("+xmlHttpReq.responseText+")");if(msg.status=="success"){Messaging.populateChatBox(msg)}else{Messaging.error()}}};var MessagingRoster={highlightColor:"",lastSelected:null,addEntry:function(C){var B;if(C){B=themeDisplay.getPathMain()+"/chat/roster?cmd=addEntry&userId="+C}else{var A=jQuery.getOne("#portlet-chat-roster-email").value;B=themeDisplay.getPathMain()+"/chat/roster?cmd=addEntry&email="+A}AjaxUtil.request(B,{onComplete:MessagingRoster.addEntryReturn})},addEntryReturn:function(xmlHttpReq){try{var msg=eval("("+xmlHttpReq.responseText+")");if(msg.status=="failure"){alert("No such user exists")}else{var rosterDiv=jQuery.getOne("#portlet-chat-roster-list");if(rosterDiv){var entries=jQuery(".portlet-chat-roster-entry",rosterDiv);var userId=msg.user;var userExists=entries.filter(function(i){return(this.userId==userId)});if(userExists.length!=0){var entryRow=MessagingRoster.createEntryRow(msg.user,msg.name);rosterDiv.appendChild(entryRow)}MessagingRoster.toggleEmail()}}}catch(err){alert("An undexpected error happened with the chat application.")}},createEntryRow:function(C,F,A){var B=document.createElement("div");var D=document.createElement("img");var E=document.createElement("a");D.align="absmiddle";D.style.marginRight="5px";if(A){D.src=themeDisplay.getPathThemeImages()+"/chat/user_online.png"}else{D.src=themeDisplay.getPathThemeImages()+"/chat/user_offline.png"}E.innerHTML=F;E.href="javascript: void(0)";E.onclick=MessagingRoster.onEntryLinkClick;B.appendChild(D);B.appendChild(E);B.onclick=MessagingRoster.onEntryClick;B.userId=C;B.userName=F;B.style.cursor="pointer";B.className="portlet-chat-roster-entry";return B},deleteEntries:function(){if(MessagingRoster.lastSelected){var A=MessagingRoster.lastSelected.userId;var B=MessagingRoster.lastSelected;B.parentNode.removeChild(B);MessagingRoster.lastSelected=null;loadPage(themeDisplay.getPathMain()+"/chat/roster","cmd=deleteEntries&entries="+A,MessagingRoster.deleteEntriesReturn)}},deleteEntriesReturn:function(xmlHttpReq){try{var msg=eval("("+xmlHttpReq.responseText+")")}catch(err){alert("An undexpected error happened with the chat application.")}},getEntries:function(){var url=themeDisplay.getPathMain()+"/chat/roster?cmd=getEntries";AjaxUtil.request(url,{onComplete:function(xmlHttpReq){var msg=eval("("+xmlHttpReq.responseText+")");MessagingRoster.getEntriesReturn(msg)}})},getEntriesReturn:function(A){MessagingRoster.updateEntries(A.roster)},updateEntries:function(D){var E=jQuery.getOne("#portlet-chat-roster-list");if(E!=null){E.innerHTML=""}else{Messaging.checkRoster=false;return }for(var B=0;B<D.length;B++){var C=D[B];var A=MessagingRoster.createEntryRow(C.user,C.name,C.status=="available");E.appendChild(A)}},onEmailKeypress:function(C,A){var B;if(window.event){B=window.event.keyCode}else{if(A){B=A.which}else{return }}if(B==13){MessagingRoster.addEntry()}},onEntryClick:function(){if(MessagingRoster.lastSelected!=null){MessagingRoster.lastSelected.style.backgroundColor="transparent"}this.style.backgroundColor=MessagingRoster.highlightColor;MessagingRoster.lastSelected=this},onEntryLinkClick:function(){var A=this.parentNode;Messaging.chat({toId:A.userId,toType:"USER",toName:A.userName})},toggleEmail:function(){var A=jQuery.getOne("#portlet-chat-roster-email-div");if(A.style.display=="none"){A.style.display="block";emailInput=jQuery.getOne("#portlet-chat-roster-email");emailInput.value="";emailInput.focus()}else{A.style.display="none"}}};var hovertipMouseX;var hovertipMouseY;function hovertipMouseUpdate(B){var A=hovertipMouseXY(B);hovertipMouseX=A[0];hovertipMouseY=A[1]}function hovertipMouseXY(D){if(!D){if(window.event){D=window.event}else{return }}if(typeof (D.pageX)=="number"){var C=D.pageX;var A=D.pageY}else{if(typeof (D.clientX)=="number"){var C=D.clientX;var A=D.clientY;var B=(window.navigator.userAgent.indexOf("Opera")+1)||(window.ScriptEngine&&ScriptEngine().indexOf("InScript")+1)||(navigator.vendor=="KDE");if(!B){if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){C+=document.body.scrollLeft;A+=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){C+=document.documentElement.scrollLeft;A+=document.documentElement.scrollTop}}}}else{return }}return[C,A]}targetSelectById=function(C,B){var D;var A;if(D=C.getAttribute("id")){A="*[@"+B.attribute+"='"+D+"']";return jQuery(A)}};targetSelectByTargetAttribute=function(C,B){target_list=C.getAttribute("target");if(target_list){target_ids=target_list.split(" ");var A="#"+target_ids.join(",#");return jQuery(A)}};targetSelectByPrevious=function(B,A){return jQuery(B.previousSibling)};targetSelectBySiblings=function(B,A){return jQuery(B).siblings()};clicktipPrepareWithCloseLink=function(B,A){return B.append("<a class='clicktip_close'><span>close</span></a>").find("a.clicktip_close").click(function(C){B.hide();return false}).end()};hovertipPrepare=function(B,A){return B.hover(function(){hovertipHideCancel(this)},function(){hovertipHideLater(this)}).css("position","absolute").each(hovertipPosition)};hovertipPrepareNoOp=function(B,A){return B};hovertipPosition=function(A){document.body.appendChild(this)};hovertipIsVisible=function(A){return(jQuery.css(A,"display")!="none")};hovertipShowUnderMouse=function(A){hovertipHideCancel(A);if(!hovertipIsVisible(A)){A.ht.showing=window.setTimeout(function(){A.ht.tip.css({"position":"absolute","top":hovertipMouseY+"px","left":hovertipMouseX+"px"}).show()},A.ht.config.showDelay)}};hovertipHideCancel=function(A){if(A.ht.hiding){window.clearTimeout(A.ht.hiding);A.ht.hiding=null}};hovertipHideLater=function(A){if(A.ht.showing){window.clearTimeout(A.ht.showing);A.ht.showing=null}if(A.ht.hiding){window.clearTimeout(A.ht.hiding);A.ht.hiding=null}A.ht.hiding=window.setTimeout(function(){if(A.ht.hiding){A.ht.tip.hide()}},A.ht.config.hideDelay)};clicktipTargetPrepare=function(C,B,A){return C.addClass(A.attribute+"_target").click(function(){B.ht.tip.toggle();return false})};hovertipTargetPrepare=function(C,B,A){return C.addClass(A.attribute+"_target").hover(function(){hovertipShowUnderMouse(B)},function(){hovertipHideLater(B)})};jQuery.fn.hovertipActivate=function(C,A,D,B){return this.css("display","block").hide().each(function(){if(!this.ht){this.ht=new Object()}this.ht.config=C;var E=A(this,C);if(E&&E.size()){if(!this.ht.targets){this.ht.targets=B(E,this,C)}else{this.ht.targets.add(B(E,this,C))}E.mousemove(hovertipMouseUpdate);if(!this.ht.tip){this.ht.tip=D(jQuery(this),C)}}})};function hovertipInit(){var A={"attribute":"clicktip"};var C={"attribute":"hovertip","showDelay":300,"hideDelay":300};var B="div.hovertip";window.setTimeout(function(){jQuery(B).hovertipActivate(C,targetSelectById,hovertipPrepare,hovertipTargetPrepare)},0);var D="span.hovertip";window.setTimeout(function(){jQuery(D).hovertipActivate(C,targetSelectByPrevious,hovertipPrepare,hovertipTargetPrepare)},0)}jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D)},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A}return E/2*((C-=2)*C*C+2)+A},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A}return -E/2*((C-=2)*C*C*C-2)+A},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A}return E/2*((C-=2)*C*C*C*C+2)+A},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A}if(C==D){return A+E}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A}return E/2*(-Math.pow(2,-10*--C)+2)+A},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A},easeOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A},easeInOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G/2)==2){return A+H}if(!F){F=G*(0.3*1.5)}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A},easeInBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*(C/=E)*C*((D+1)*C-D)+A},easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A},easeInOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A},easeInBounce:function(B,C,A,E,D){return E-jQuery.easing.easeOutBounce(B,D-C,0,E,D)+A},easeOutBounce:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A}}}},easeInOutBounce:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.easeInBounce(B,C*2,0,E,D)*0.5+A}return jQuery.easing.easeOutBounce(B,C*2-D,0,E,D)*0.5+E*0.5+A}});jQuery.fn.wkCarrusel=function(A){this.carrusel=jQuery(this);jQuery(this.carrusel).addClass("floating");defaults={btnWidth:50,scroll:1,animation:"",animationSpeed:"slow",background:"#ffffff"};this.opts=jQuery.extend(defaults,A);this.items=jQuery("li",this.carrusel);this.opts.height=parseInt(this.items.css("height"));this.draw=jQuery.fn.wkCarrusel.draw;this.draw()};jQuery.fn.wkCarrusel.draw=function(){contCarrusel=document.createElement("div");contCarrusel.id=jQuery(this.carrusel).attr("id");jQuery(contCarrusel).addClass("contCarrusel");contCarrusel.scroll=this.opts.scroll;contCarrusel.animationSpeed=this.opts.animationSpeed;contCarrusel.animation=this.opts.animation;jQuery(contCarrusel).css({width:this.opts.width,height:parseInt(this.items.css("height")),background:this.opts.background});btnLeft=document.createElement("div");jQuery(btnLeft).addClass("btnLeft");btnRigth=document.createElement("div");jQuery(btnRigth).addClass("btnRigth");jQuery(btnRigth).css({background:"url("+this.opts.prevImage+")"});jQuery(btnLeft).css({backgroundImage:"url("+this.opts.nextImage+")"});jQuery(btnLeft).hover(function(){jQuery(this).css({backgroundPosition:"-"+jQuery(this).width()+"px 0px"})},function(){jQuery(this).css({backgroundPosition:"0px 0px"})});jQuery(btnRigth).hover(function(){jQuery(this).css({backgroundPosition:"-"+jQuery(this).width()+"px 0px"})},function(){jQuery(this).css({backgroundPosition:"0px 0px"})});visible=document.createElement("div");jQuery(visible).addClass("areaVisible");jQuery(visible).css({width:this.opts.width-(this.opts.btnWidth*2),"float":"left",height:this.opts.height,position:"relative",overflow:"hidden"});this.carrusel.css({width:this.items.width()*this.items.length,listStyle:"none",position:"absolute",left:0});this.items.css({"float":"left"});jQuery(this.carrusel).replaceWith(contCarrusel);jQuery(btnLeft).appendTo(contCarrusel);jQuery(visible).appendTo(contCarrusel);jQuery(btnRigth).appendTo(contCarrusel);this.carrusel.appendTo(visible);jQuery(".btnRigth , .btnLeft",contCarrusel).css({width:this.opts.btnWidth,height:this.opts.height,"float":"left",cursor:"pointer"});jQuery(this.carrusel).attr("id","wk"+jQuery(this.carrusel).attr("id"));jQuery(this.carrusel)[0].desplazamiento=jQuery(this.carrusel).width()-(jQuery(visible).width()+(jQuery(btnLeft).width()*2));jQuery(this.carrusel)[0].itemWidth=jQuery("li",this.carrusel).width();jQuery(btnRigth).bind("click",function(){if(Math.abs(jQuery(".floating",this.parentNode).position().left)<jQuery(".floating",this.parentNode)[0].desplazamiento&&jQuery(".floating",this.parentNode).position().left%jQuery(".floating",this.parentNode)[0].itemWidth==0){jQuery(".floating",this.parentNode).animate({left:"-="+jQuery("li",this.parentNode).width()*this.parentNode.scroll+"px"},this.parentNode.animationSpeed,this.parentNode.animation)}});jQuery(btnLeft).bind("click",function(){if(parseInt(jQuery(".floating",this.parentNode).position().left)<0&&jQuery(".floating",this.parentNode).position().left%jQuery("li",this.parentNode).width()==0){jQuery(".floating",this.parentNode).animate({left:"+="+jQuery("li",this.parentNode).width()*this.parentNode.scroll+"px"},this.parentNode.animationSpeed,this.parentNode.animation)}})};jQuery.fn.corner=function(F){function K(N){var N=parseInt(N).toString(16);return(N.length<2)?"0"+N:N}function D(O){for(;O&&O.nodeName.toLowerCase()!="html";O=O.parentNode){var N=jQuery.css(O,"backgroundColor");if(N.indexOf("rgb")>=0){rgb=N.match(/\d+/g);return"#"+K(rgb[0])+K(rgb[1])+K(rgb[2])}if(N&&N!="transparent"){return N}}return"#ffffff"}function M(N){switch(H){case"round":return Math.round(E*(1-Math.cos(Math.asin(N/E))));case"cool":return Math.round(E*(1+Math.cos(Math.asin(N/E))));case"sharp":return Math.round(E*(1-Math.cos(Math.acos(N/E))));case"bite":return Math.round(E*(Math.cos(Math.asin((E-N-1)/E))));case"slide":return Math.round(E*(Math.atan2(N,E/N)));case"jut":return Math.round(E*(Math.atan2(E,(E-N-1))));case"curl":return Math.round(E*(Math.atan(N)));case"tear":return Math.round(E*(Math.cos(N)));case"wicked":return Math.round(E*(Math.tan(N)));case"long":return Math.round(E*(Math.sqrt(N)));case"sculpt":return Math.round(E*(Math.log((E-N-1),E)));case"dog":return(N&1)?(N+1):E;case"dog2":return(N&2)?(N+1):E;case"dog3":return(N&3)?(N+1):E;case"fray":return(N%2)*E;case"notch":return E;case"bevel":return N+1}}F=(F||"").toLowerCase();var B=/keep/.test(F);var G=((F.match(/cc:(#[0-9a-f]+)/)||[])[1]);var J=((F.match(/sc:(#[0-9a-f]+)/)||[])[1]);var E=parseInt((F.match(/(\d+)px/)||[])[1])||10;var L=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var H=((F.match(L)||["round"])[0]);var I={T:0,B:1};var A={TL:/top|tl/.test(F),TR:/top|tr/.test(F),BL:/bottom|bl/.test(F),BR:/bottom|br/.test(F)};if(!A.TL&&!A.TR&&!A.BL&&!A.BR){A={TL:1,TR:1,BL:1,BR:1}}var C=document.createElement("div");C.style.overflow="hidden";C.style.height="1px";C.style.backgroundColor=J||"transparent";C.style.borderStyle="solid";return this.each(function(T){var O={T:parseInt(jQuery.css(this,"paddingTop"))||0,R:parseInt(jQuery.css(this,"paddingRight"))||0,B:parseInt(jQuery.css(this,"paddingBottom"))||0,L:parseInt(jQuery.css(this,"paddingLeft"))||0};if(jQuery.browser.msie){this.style.zoom=1}if(!B){this.style.border="none"}C.style.borderColor=G||D(this.parentNode);var V=jQuery.curCSS(this,"height");for(var Q in I){var W=I[Q];C.style.borderStyle="none "+(A[Q+"R"]?"solid":"none")+" none "+(A[Q+"L"]?"solid":"none");var X=document.createElement("div");jQuery(X).addClass("jquery-corner");var N=X.style;W?this.appendChild(X):this.insertBefore(X,this.firstChild);if(W&&V!="auto"){if(jQuery.css(this,"position")=="static"){this.style.position="relative"}N.position="absolute";N.bottom=N.left=N.padding=N.margin="0";if(jQuery.browser.msie){N.setExpression("width","this.parentNode.offsetWidth")}else{N.width="100%"}}else{N.margin=!W?"-"+O.T+"px -"+O.R+"px "+(O.T-E)+"px -"+O.L+"px":(O.B-E)+"px -"+O.R+"px -"+O.B+"px -"+O.L+"px"}var S="";var P=0;for(var R=0;R<E;R++){var Z=Math.max(0,M(R));var Y="0 "+(A[Q+"R"]?Z:0)+"px 0 "+(A[Q+"L"]?Z:0)+"px";if(Y!=S){if(0<P){var U=C.cloneNode(false);U.style.borderWidth=S;U.style.height=P+"px";W?X.appendChild(U):X.insertBefore(U,X.firstChild);P=0}S=Y}++P}if(0<P){var U=C.cloneNode(false);U.style.borderWidth=S;U.style.height=P+"px";W?X.appendChild(U):X.insertBefore(U,X.firstChild)}}})};(function(B){B.ifixpng=function(C){B.ifixpng.pixel=C};B.ifixpng.getPixel=function(){return B.ifixpng.pixel||"images/pixel.gif"};var A={ltie7:B.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),filter:function(C){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+C+"')"}};B.fn.ifixpng=A.ltie7?function(){return this.each(function(){var C=B(this);var E=B("base").attr("href");if(C.is("img")||C.is("input")){if(C.attr("src").match(/.*\.png([?].*)?$/i)){var D=(E&&C.attr("src").substring(0,1)!="/")?E+C.attr("src"):C.attr("src");C.css({filter:A.filter(D),width:C.width(),height:C.height()}).attr({src:B.ifixpng.getPixel()}).positionFix()}}else{var F=C.css("backgroundImage");if(F.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){F=RegExp.$1;C.css({backgroundImage:"none",filter:A.filter(F)}).positionFix()}}})}:function(){return this};B.fn.iunfixpng=A.ltie7?function(){return this.each(function(){var C=B(this);var D=C.css("filter");if(D.match(/src=["']?(.*\.png([?].*)?)["']?/i)){D=RegExp.$1;if(C.is("img")||C.is("input")){C.attr({src:D}).css({filter:""})}else{C.css({filter:"",background:"url("+D+")"})}}})}:function(){return this};B.fn.positionFix=function(){return this.each(function(){var D=B(this);var C=D.css("position");if(C!="absolute"&&C!="relative"){D.css({position:"relative"})}})}})(jQuery);(function(D){var A="2.01";D.fn.cycle=function(F){return this.each(function(){if(F&&F.constructor==String){switch(F){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;return ;case"pause":this.cyclePause=1;return ;case"resume":this.cyclePause=0;return ;default:F={fx:F}}}var M=D(this),J=M.children(),H=J.get();if(H.length<2){return }var G=D.extend({},D.fn.cycle.defaults,F||{},D.meta?M.data():{});if(G.autostop){G.countdown=G.autostopCount||H.length}G.before=G.before?[G.before]:[];G.after=G.after?[G.after]:[];G.after.unshift(function(){G.busy=0});var O=this.className;var L=parseInt((O.match(/w:(\d+)/)||[])[1])||G.width;var I=parseInt((O.match(/h:(\d+)/)||[])[1])||G.height;G.timeout=parseInt((O.match(/t:(\d+)/)||[])[1])||G.timeout;if(M.css("position")=="static"){M.css("position","relative")}if(L){M.width(L)}if(I&&I!="auto"){M.height(I)}J.each(function(P){D(this).css("z-index",H.length-P)}).css("position","absolute").hide();D(H[0]).show();if(G.fit&&L){J.width(L)}if(G.fit&&I&&I!="auto"){J.height(I)}if(G.pause){M.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var N=D.fn.cycle.transitions[G.fx];if(D.isFunction(N)){N(M,J,G)}J.each(function(){var P=D(this);this.cycleH=(G.fit&&I)?I:P.height();this.cycleW=(G.fit&&L)?L:P.width()});G.cssBefore=G.cssBefore||{};G.animIn=G.animIn||{};G.animOut=G.animOut||{};J.not(":eq(0)").css(G.cssBefore);if(G.cssFirst){D(J[0]).css(G.cssFirst)}if(G.timeout){if(G.speed.constructor==String){G.speed={slow:600,fast:200}[G.speed]||400}if(!G.sync){G.speed=G.speed/2}while((G.timeout-G.speed)<250){G.timeout+=G.speed}}if(G.easing){G.easeIn=G.easeOut=G.easing}if(!G.speedIn){G.speedIn=G.speed}if(!G.speedOut){G.speedOut=G.speed}G.nextSlide=G.random?(Math.floor(Math.random()*(H.length-1)))+1:1;G.currSlide=0;G.slideCount=H.length;var K=J[0];if(G.before.length){G.before[0].apply(K,[K,K,G,true])}if(G.after.length>1){G.after[1].apply(K,[K,K,G,true])}if(G.click&&!G.next){G.next=G.click}if(G.next){D(G.next).bind("click",function(){return C(H,G,G.rev?-1:1)})}if(G.prev){D(G.prev).bind("click",function(){return C(H,G,G.rev?1:-1)})}if(G.pager){E(H,G)}if(G.timeout){this.cycleTimeout=setTimeout(function(){B(H,G,0,!G.rev)},G.timeout+(G.delay||0))}})};function B(K,F,J,L){if(F.busy){return }var I=K[0].parentNode,N=K[F.currSlide],M=K[F.nextSlide];if(I.cycleTimeout===0&&!J){return }if(!J&&!I.cyclePause&&F.autostop&&(--F.countdown<=0)){return }if(J||!I.cyclePause){if(F.before.length){D.each(F.before,function(O,P){P.apply(M,[N,M,F,L])})}var G=function(){D.each(F.after,function(O,P){P.apply(M,[N,M,F,L])})};if(F.nextSlide!=F.currSlide){F.busy=1;if(F.fxFn){F.fxFn(N,M,F,G)}else{if(D.isFunction(D.fn.cycle[F.fx])){D.fn.cycle[F.fx](N,M,F,G)}else{D.fn.cycle.custom(N,M,F,G)}}}if(F.random){F.currSlide=F.nextSlide;while(F.nextSlide==F.currSlide){F.nextSlide=Math.floor(Math.random()*K.length)}}else{var H=(F.nextSlide+1)==K.length;F.nextSlide=H?0:F.nextSlide+1;F.currSlide=H?K.length-1:F.nextSlide-1}if(F.pager){D(F.pager).find("a").removeClass("activeSlide").filter("a:eq("+F.currSlide+")").addClass("activeSlide")}}if(F.timeout){I.cycleTimeout=setTimeout(function(){B(K,F,0,!F.rev)},F.timeout)}}function C(F,G,J){var I=F[0].parentNode,H=I.cycleTimeout;if(H){clearTimeout(H);I.cycleTimeout=0}G.nextSlide=G.currSlide+J;if(G.nextSlide<0){G.nextSlide=F.length-1}else{if(G.nextSlide>=F.length){G.nextSlide=0}}if(G.prevNextClick&&typeof G.prevNextClick=="function"){G.prevNextClick(J>0,G.nextSlide,F[G.nextSlide])}B(F,G,1,J>=0);return false}function E(G,H){var F=D(H.pager);D.each(G,function(I,K){var J=(typeof H.pagerAnchorBuilder=="function")?D(H.pagerAnchorBuilder(I,K)):D('<a href="#">'+(I+1)+"</a>");if(J.parents("body").length==0){J.appendTo(F)}J.bind("click",function(){H.nextSlide=I;var M=G[0].parentNode,L=M.cycleTimeout;if(L){clearTimeout(L);M.cycleTimeout=0}if(typeof H.pagerClick=="function"){H.pagerClick(H.nextSlide,G[H.nextSlide])}B(G,H,1,!H.rev);return false})});F.find("a").filter("a:eq(0)").addClass("activeSlide")}D.fn.cycle.custom=function(L,I,J,F){var K=D(L),H=D(I);H.css(J.cssBefore);var G=function(){H.animate(J.animIn,J.speedIn,J.easeIn,F)};K.animate(J.animOut,J.speedOut,J.easeOut,function(){if(J.cssAfter){K.css(J.cssAfter)}if(!J.sync){G()}});if(J.sync){G()}};D.fn.cycle.transitions={fade:function(G,H,F){H.not(":eq(0)").css("opacity",0);F.before.push(function(){D(this).show()});F.animIn={opacity:1};F.animOut={opacity:0};F.cssAfter={display:"none"}}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={fx:"fade",timeout:4000,speed:1000,speedIn:null,speedOut:null,click:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerAnchorBuilder:null,before:null,after:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",sync:1,random:0,fit:0,pause:0,autostop:0,delay:0}})(jQuery);jQuery.fn.cycle.transitions.scrollUp=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.top=D.offsetHeight;E.animOut.top=0-F.offsetHeight});A.cssFirst={top:0};A.animIn={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollDown=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.top=0-D.offsetHeight;E.animOut.top=F.offsetHeight});A.cssFirst={top:0};A.animIn={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollLeft=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.left=D.offsetWidth;E.animOut.left=0-F.offsetWidth});A.cssFirst={left:0};A.animIn={left:0}};jQuery.fn.cycle.transitions.scrollRight=function(B,C,A){B.css("overflow","hidden");A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.left=0-D.offsetWidth;E.animOut.left=F.offsetWidth});A.cssFirst={left:0};A.animIn={left:0}};jQuery.fn.cycle.transitions.scrollHorz=function(B,C,A){B.css("overflow","hidden").width();A.before.push(function(H,F,G,E){jQuery(this).show();var D=H.offsetWidth,I=F.offsetWidth;G.cssBefore=E?{left:I}:{left:-I};G.animIn.left=0;G.animOut.left=E?-D:D;C.not(H).css(G.cssBefore)});A.cssFirst={left:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollVert=function(B,C,A){B.css("overflow","hidden");A.before.push(function(I,F,G,E){jQuery(this).show();var H=I.offsetHeight,D=F.offsetHeight;G.cssBefore=E?{top:-D}:{top:D};G.animIn.top=0;G.animOut.top=E?H:-H;C.not(I).css(G.cssBefore)});A.cssFirst={top:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.slideX=function(B,C,A){A.animIn={width:"show"};A.animOut={width:"hide"}};jQuery.fn.cycle.transitions.slideY=function(B,C,A){A.animIn={height:"show"};A.animOut={height:"hide"}};jQuery.fn.cycle.transitions.shuffle=function(D,E,C){var A=D.css("overflow","visible").width();E.css({left:0,top:0});C.before.push(function(){jQuery(this).show()});C.speed=C.speed/2;C.random=0;C.shuffle=C.shuffle||{left:-A,top:15};C.els=[];for(var B=0;B<E.length;B++){C.els.push(E[B])}C.fxFn=function(J,H,I,F){var G=jQuery(J);G.animate(I.shuffle,I.speedIn,I.easeIn,function(){I.els.push(I.els.shift());for(var L=0,K=I.els.length;L<K;L++){jQuery(I.els[L]).css("z-index",K-L)}G.animate({left:0,top:0},I.speedOut,I.easeOut,function(){jQuery(this).hide();if(F){F()}})})}};jQuery.fn.cycle.transitions.turnUp=function(B,C,A){A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.top=D.cycleH;E.animIn.height=D.cycleH});A.cssFirst={top:0};A.cssBefore={height:0};A.animIn={top:0};A.animOut={height:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnDown=function(B,C,A){A.before.push(function(F,D,E){jQuery(this).show();E.animIn.height=D.cycleH;E.animOut.top=F.cycleH});A.cssFirst={top:0};A.cssBefore={top:0,height:0};A.animOut={height:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnLeft=function(B,C,A){A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore.left=D.cycleW;E.animIn.width=D.cycleW});A.cssBefore={width:0};A.animIn={left:0};A.animOut={width:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnRight=function(B,C,A){A.before.push(function(F,D,E){jQuery(this).show();E.animIn.width=D.cycleW;E.animOut.left=F.cycleW});A.cssBefore={left:0,width:0};A.animIn={left:0};A.animOut={width:0};A.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.zoom=function(B,C,A){A.cssFirst={top:0,left:0};A.cssAfter={display:"none"};A.before.push(function(F,D,E){jQuery(this).show();E.cssBefore={width:0,height:0,top:D.cycleH/2,left:D.cycleW/2};E.animIn={top:0,left:0,width:D.cycleW,height:D.cycleH};E.animOut={width:0,height:0,top:F.cycleH/2,left:F.cycleW/2}})};(function(D){D.fn.jCarouselLite=function(E){E=D.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},E||{});return this.each(function(){var R=E.start,M=false,K=E.vertical?"top":"left",G=E.vertical?"height":"width";var F=D(this),O=F.find("ul"),Q=F.find("li"),N=Q.size();F.css("visibility","visible");Q.css("overflow","hidden").css("float",E.vertical?"none":"left").children().css("overflow","hidden");O.css("margin","0").css("padding","0").css("position","relative").css("list-style-type","none").css("z-index","1");F.css("overflow","hidden").css("position","relative").css("z-index","2").css("left","0px");var J=E.vertical?A(Q):C(Q);var P=J*N;var L=J*E.visible;Q.css("width",Q.width()).css("height",Q.height());O.css(G,P+"px").css(K,-(R*J));F.css(G,L+"px");if(E.btnPrev){D(E.btnPrev).click(function(){return I(R-E.scroll)})}if(E.btnNext){D(E.btnNext).click(function(){return I(R+E.scroll)})}if(E.btnGo){D.each(E.btnGo,function(S,T){D(T).click(function(){return I(S)})})}if(E.mouseWheel&&F.mousewheel){F.mousewheel(function(S,T){return T>0?I(R-E.scroll):I(R+E.scroll)})}if(E.auto){setInterval(function(){I(R+1)},E.auto+E.speed)}function H(){return Q.gt(R-1).lt(E.visible)}function I(S){if(!M){M=true;if(E.beforeStart){E.beforeStart.call(this,H())}if(S<0&&R==0){if(E.circular){R=N-E.visible}else{return }}else{if(S>=N-E.visible&&R+E.visible>=N){if(E.circular){R=0}else{return }}else{R=S}}O.animate(K=="left"?{left:-(R*J)}:{top:-(R*J)},E.speed,E.easing,function(){O.css(K,-(R*J)+"px");if(E.afterEnd){E.afterEnd.call(this,H())}M=false})}return false}})};function B(E,F){return parseInt(D.css(E.jquery?E[0]:E,F))||0}function C(E){return E[0].offsetWidth+B(E,"marginLeft")+B(E,"marginRight")}function A(E){return E[0].offsetHeight+B(E,"marginTop")+B(E,"marginBottom")}})(jQuery);(function(A){A.extend(A.fn,{validate:function(B){if(!this.length){B&&B.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return }var C=A.data(this[0],"validator");if(C){return C}C=new A.validator(B,this[0]);A.data(this[0],"validator",C);if(C.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){C.cancelSubmit=true});this.submit(function(D){if(C.settings.debug){D.preventDefault()}function E(){if(C.settings.submitHandler){C.settings.submitHandler.call(C,C.currentForm);return false}return true}if(C.cancelSubmit){C.cancelSubmit=false;return E()}if(C.form()){if(C.pendingRequest){C.formSubmitted=true;return false}return E()}else{C.focusInvalid();return false}})}return C},valid:function(){if(A(this[0]).is("form")){return this.validate().form()}else{var C=false;var B=A(this[0].form).validate();this.each(function(){C|=B.element(this)});return C}},removeAttrs:function(D){var B={},C=this;A.each(D.split(/\s/),function(){B[this]=C.attr(this);C.removeAttr(this)});return B},rules:function(H,D){var C=this[0];if(H){var I=A.data(C.form,"validator").settings.rules;var F=A.validator.staticRules(C);switch(H){case"add":A.extend(F,A.validator.normalizeRule(D));I[C.name]=F;break;case"remove":if(!D){delete I[C.name];return F}var B={};A.each(D.split(/\s/),function(J,K){B[K]=F[K];delete F[K]});return B}}var E=A.validator.normalizeRules(A.extend({},A.validator.metadataRules(C),A.validator.classRules(C),A.validator.attributeRules(C),A.validator.staticRules(C)),C);if(E.required){var G=E.required;delete E.required;E=A.extend({required:G},E)}return E},push:function(B){return this.setArray(this.add(B).get())}});A.extend(A.expr[":"],{blank:function(B){return !A.trim(B.value)},filled:function(B){return !!A.trim(B.value)},unchecked:function(B){return !B.checked}});A.format=function(B,C){if(arguments.length==1){return function(){var D=A.makeArray(arguments);D.unshift(B);return A.format.apply(this,D)}}if(arguments.length>2&&C.constructor!=Array){C=A.makeArray(arguments).slice(1)}if(C.constructor!=Array){C=[C]}A.each(C,function(D,E){B=B.replace(new RegExp("\\{"+D+"\\}","g"),E)});return B};A.validator=function(B,C){this.settings=A.extend({},A.validator.defaults,B);this.currentForm=C;this.init()};A.extend(A.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:A([]),errorLabelContainer:A([]),onsubmit:true,ignore:[],onfocusin:function(B){this.lastActive=B;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,B,this.settings.errorClass);this.errorsFor(B).hide()}},onfocusout:function(B){if(!this.checkable(B)&&(B.name in this.submitted||!this.optional(B))){this.element(B)}},onkeyup:function(B){if(B.name in this.submitted||B==this.lastElement){this.element(B)}},onclick:function(B){if(B.name in this.submitted){this.element(B)}},highlight:function(C,B){A(C).addClass(B)},unhighlight:function(C,B){A(C).removeClass(B)}},setDefaults:function(B){A.extend(A.validator.defaults,B)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein g�ltiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:A.format("Please enter no more than {0} characters."),minlength:A.format("Please enter at least {0} characters."),rangelength:A.format("Please enter a value between {0} and {1} characters long."),range:A.format("Please enter a value between {0} and {1}."),max:A.format("Please enter a value less than or equal to {0}."),min:A.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=A(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||A(this.currentForm);this.containers=A(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var B=(this.groups={});A.each(this.settings.groups,function(E,F){A.each(F.split(/\s/),function(H,G){B[G]=E})});var D=this.settings.rules;A.each(D,function(E,F){D[E]=A.validator.normalizeRule(F)});function C(F){var E=A.data(this[0].form,"validator");E.settings["on"+F.type]&&E.settings["on"+F.type].call(E,this[0])}A(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",C).delegate("click",":radio, :checkbox",C)},form:function(){this.checkForm();A.extend(this.submitted,this.errorMap);this.invalid=A.extend({},this.errorMap);if(!this.valid()){A(this.currentForm).triggerHandler("invalid-form.validate",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var B=0,C=(this.currentElements=this.elements());C[B];B++){this.check(C[B])}return this.valid()},element:function(C){C=this.clean(C);this.lastElement=C;this.prepareElement(C);this.currentElements=A(C);var B=this.check(C);if(B){delete this.invalid[C.name]}else{this.invalid[C.name]=true}if(!this.numberOfInvalids()){this.toHide.push(this.containers)}this.showErrors();return B},showErrors:function(C){if(C){A.extend(this.errorMap,C);this.errorList=[];for(var B in C){this.errorList.push({message:C[B],element:this.findByName(B)[0]})}this.successList=A.grep(this.successList,function(D){return !(D.name in C)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(A.fn.resetForm){A(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(D){var C=0;for(var B in D){C++}return C},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{A(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(B){}}},findLastActive:function(){var B=this.lastActive;return B&&A.grep(this.errorList,function(C){return C.element.name==B.name}).length==1&&B},elements:function(){var C=this,B={};return A([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&C.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in B||!C.objectLength(A(this).rules())){return false}B[this.name]=true;return true})},clean:function(B){return A(B)[0]},errors:function(){return A(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=A([]);this.toHide=A([]);this.formSubmitted=false;this.currentElements=A([])},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers)},prepareElement:function(B){this.reset();this.toHide=this.errorsFor(B)},check:function(C){C=this.clean(C);if(this.checkable(C)){C=this.findByName(C.name)[0]}var G=A(C).rules();var D=false;for(method in G){var F={method:method,parameters:G[method]};try{var B=A.validator.methods[method].call(this,A.trim(C.value),C,F.parameters);if(B=="dependency-mismatch"){D=true;continue}D=false;if(B=="pending"){this.toHide=this.toHide.not(this.errorsFor(C));return }if(!B){this.formatAndAdd(C,F);return false}}catch(E){this.settings.debug&&window.console&&console.log("exception occured when checking element "+C.id+", check the '"+F.method+"' method");throw E}}if(D){return }if(this.objectLength(G)){this.successList.push(C)}return true},customMetaMessage:function(B,D){if(!A.metadata){return }var C=this.settings.meta?A(B).metadata()[this.settings.meta]:A(B).metadata();return C.messages&&C.messages[D]},customMessage:function(C,D){var B=this.settings.messages[C];return B&&(B.constructor==String?B:B[D])},findDefined:function(){for(var B=0;B<arguments.length;B++){if(arguments[B]!==undefined){return arguments[B]}}return undefined},defaultMessage:function(B,C){return this.findDefined(this.customMessage(B.name,C),this.customMetaMessage(B,C),B.title||undefined,A.validator.messages[C],"<strong>Warning: No message defined for "+B.name+"</strong>")},formatAndAdd:function(B,D){var C=this.defaultMessage(B,D.method);if(typeof C=="function"){C=C.call(this,D.parameters,B)}this.errorList.push({message:C,element:B});this.errorMap[B.name]=C;this.submitted[B.name]=C},addWrapper:function(B){if(this.settings.wrapper){B.push(B.parents(this.settings.wrapper))}return B},defaultShowErrors:function(){for(var C=0;this.errorList[C];C++){var B=this.errorList[C];this.settings.highlight&&this.settings.highlight.call(this,B.element,this.settings.errorClass);this.showLabel(B.element,B.message)}if(this.errorList.length){this.toShow.push(this.containers)}if(this.settings.success){for(var C=0;this.successList[C];C++){this.showLabel(this.successList[C])}}if(this.settings.unhighlight){for(var C=0,D=this.validElements();D[C];C++){this.settings.unhighlight.call(this,D[C],this.settings.errorClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return A(this.errorList).map(function(){return this.element})},showLabel:function(C,D){var B=this.errorsFor(C);if(B.length){B.removeClass().addClass(this.settings.errorClass);B.attr("generated")&&B.html(D)}else{B=A("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(C),generated:true}).addClass(this.settings.errorClass).html(D||"");if(this.settings.wrapper){B=B.hide().show().wrap("<"+this.settings.wrapper+">").parent()}if(!this.labelContainer.append(B).length){this.settings.errorPlacement?this.settings.errorPlacement(B,A(C)):B.insertAfter(C)}}if(!D&&this.settings.success){B.text("");typeof this.settings.success=="string"?B.addClass(this.settings.success):this.settings.success(B)}this.toShow.push(B)},errorsFor:function(B){return this.errors().filter("[@for='"+this.idOrName(B)+"']")},idOrName:function(B){return this.groups[B.name]||(this.checkable(B)?B.name:B.id||B.name)},checkable:function(B){return/radio|checkbox/i.test(B.type)},findByName:function(B){var C=this.currentForm;return A(document.getElementsByName(B)).map(function(D,E){return E.form==C&&E.name==B&&E||null})},getLength:function(C,B){switch(B.nodeName.toLowerCase()){case"select":return A("option:selected",B).length;case"input":if(this.checkable(B)){return this.findByName(B.name).filter(":checked").length}}return C.length},depend:function(C,B){return this.dependTypes[typeof C]?this.dependTypes[typeof C](C,B):true},dependTypes:{"boolean":function(C,B){return C},"string":function(C,B){return !!A(C,B.form).length},"function":function(C,B){return C(B)}},optional:function(B){return !A.validator.methods.required.call(this,A.trim(B.value),B)&&"dependency-mismatch"},startRequest:function(B){if(!this.pending[B.name]){this.pendingRequest++;this.pending[B.name]=true}},stopRequest:function(B,C){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[B.name];if(C&&this.pendingRequest==0&&this.formSubmitted&&this.form()){A(this.currentForm).submit()}},previousValue:function(B){return A.data(B,"previousValue")||A.data(B,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(B,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(B,C){B.constructor==String?this.classRuleSettings[B]=C:A.extend(this.classRuleSettings,B)},classRules:function(C){var D={};var B=A(C).attr("class");B&&A.each(B.split(" "),function(){if(this in A.validator.classRuleSettings){A.extend(D,A.validator.classRuleSettings[this])}});return D},attributeRules:function(C){var E={};var B=A(C);for(method in A.validator.methods){var D=B.attr(method);if(D){E[method]=D}}if(E.maxlength&&/-1|2147483647|524288/.test(E.maxlength)){delete E.maxlength}return E},metadataRules:function(B){if(!A.metadata){return{}}var C=A.data(B.form,"validator").settings.meta;return C?A(B).metadata()[C]:A(B).metadata()},staticRules:function(C){var D={};var B=A.data(C.form,"validator");if(B.settings.rules){D=A.validator.normalizeRule(B.settings.rules[C.name])||{}}return D},normalizeRules:function(C,B){A.each(C,function(F,E){if(E===false){delete C[F];return }if(E.param||E.depends){var D=true;switch(typeof E.depends){case"string":D=!!A(E.depends,B.form).length;break;case"function":D=E.depends.call(B,B);break}if(D){C[F]=E.param!==undefined?E.param:true}else{delete C[F]}}});A.each(C,function(D,E){C[D]=A.isFunction(E)?E(B):E});A.each(["minlength","maxlength","min","max"],function(){if(C[this]){C[this]=Number(C[this])}});A.each(["rangelength","range"],function(){if(C[this]){C[this]=[Number(C[this][0]),Number(C[this][1])]}});if(A.validator.autoCreateRanges){if(C.min&&C.max){C.range=[C.min,C.max];delete C.min;delete C.max}if(C.minlength&&C.maxlength){C.rangelength=[C.minlength,C.maxlength];delete C.minlength;delete C.maxlength}}if(C.messages){delete C.messages}return C},normalizeRule:function(C){if(typeof C=="string"){var B={};A.each(C.split(/\s/),function(){B[this]=true});C=B}return C},addMethod:function(B,D,C){A.validator.methods[B]=D;A.validator.messages[B]=C;if(D.length<3){A.validator.addClassRules(B,A.validator.normalizeRule(B))}},methods:{required:function(D,C,E){if(!this.depend(E,C)){return"dependency-mismatch"}switch(C.nodeName.toLowerCase()){case"select":var B=A("option:selected",C);return B.length>0&&(C.type=="select-multiple"||(A.browser.msie&&!(B[0].attributes["value"].specified)?B[0].text:B[0].value).length>0);case"input":if(this.checkable(C)){return this.getLength(D,C)>0}default:return D.length>0}},remote:function(F,C,G){if(this.optional(C)){return"dependency-mismatch"}var D=this.previousValue(C);if(!this.settings.messages[C.name]){this.settings.messages[C.name]={}}this.settings.messages[C.name].remote=typeof D.message=="function"?D.message(F):D.message;if(D.old!==F){D.old=F;var B=this;this.startRequest(C);var E={};E[C.name]=F;A.ajax({url:G,mode:"abort",port:"validate"+C.name,dataType:"json",data:E,success:function(I){if(!I){var J={};J[C.name]=I||B.defaultMessage(C,"remote");B.showErrors(J)}else{var H=B.formSubmitted;B.prepareElement(C);B.formSubmitted=H;B.successList.push(C);B.showErrors()}D.valid=I;B.stopRequest(C,I)}});return"pending"}else{if(this.pending[C.name]){return"pending"}}return D.valid},minlength:function(C,B,D){return this.optional(B)||this.getLength(C,B)>=D},maxlength:function(C,B,D){return this.optional(B)||this.getLength(C,B)<=D},rangelength:function(D,B,E){var C=this.getLength(D,B);return this.optional(B)||(C>=E[0]&&C<=E[1])},min:function(C,B,D){return this.optional(B)||C>=D},max:function(C,B,D){return this.optional(B)||C<=D},range:function(C,B,D){return this.optional(B)||(C>=D[0]&&C<=D[1])},email:function(C,B){return this.optional(B)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(B.value)},url:function(C,B){return this.optional(B)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(B.value)},date:function(C,B){return this.optional(B)||!/Invalid|NaN/.test(new Date(C))},dateISO:function(C,B){return this.optional(B)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(C)},dateDE:function(C,B){return this.optional(B)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(C)},number:function(C,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(C)},numberDE:function(C,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(C)},digits:function(C,B){return this.optional(B)||/^\d+$/.test(C)},creditcard:function(F,C){if(this.optional(C)){return"dependency-mismatch"}if(/[^0-9-]+/.test(F)){return false}var G=0,E=0,B=false;F=F.replace(/\D/g,"");for(n=F.length-1;n>=0;n--){var D=F.charAt(n);var E=parseInt(D,10);if(B){if((E*=2)>9){E-=9}}G+=E;B=!B}return(G%10)==0},accept:function(C,B,D){D=typeof D=="string"?D:"png|jpe?g|gif";return this.optional(B)||C.match(new RegExp(".("+D+")$","i"))},equalTo:function(C,B,D){return C==A(D).val()}}})})(jQuery);(function(C){var B=C.ajax;var A={};C.ajax=function(E){E=C.extend(E,C.extend({},C.ajaxSettings,E));var D=E.port;if(E.mode=="abort"){if(A[D]){A[D].abort()}return(A[D]=B.apply(this,arguments))}return B.apply(this,arguments)}})(jQuery);(function(A){A.each({focus:"focusin",blur:"focusout"},function(C,B){A.event.special[B]={setup:function(){if(A.browser.msie){return false}this.addEventListener(C,A.event.special[B].handler,true)},teardown:function(){if(A.browser.msie){return false}this.removeEventListener(C,A.event.special[B].handler,true)},handler:function(D){arguments[0]=A.event.fix(D);arguments[0].type=B;return A.event.handle.apply(this,arguments)}}});A.extend(A.fn,{delegate:function(D,C,B){return this.bind(D,function(E){var F=A(E.target);if(F.is(C)){return B.apply(F,arguments)}})},triggerEvent:function(B,C){return this.triggerHandler(B,[A.event.fix({type:B,target:C})])}})})(jQuery);(function(){var B;B=jQuery.fn.flash=function(G,F,D,I){var H=D||B.replace;F=B.copy(B.pluginOptions,F);if(!B.hasFlash(F.version)){if(F.expressInstall&&B.hasFlash(6,0,65)){var E={flashvars:{MMredirectURL:location,MMplayerType:"PlugIn",MMdoctitle:jQuery("title").text()}}}else{if(F.update){H=I||B.update}else{return this}}}G=B.copy(B.htmlOptions,E,G);return this.each(function(){H.call(this,B.copy(G))})};B.copy=function(){var F={},E={};for(var G=0;G<arguments.length;G++){var D=arguments[G];if(D==undefined){continue}jQuery.extend(F,D);if(D.flashvars==undefined){continue}jQuery.extend(E,D.flashvars)}F.flashvars=E;return F};B.hasFlash=function(){if(/hasFlash\=true/.test(location)){return true}if(/hasFlash\=false/.test(location)){return false}var E=B.hasFlash.playerVersion().match(/\d+/g);var F=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String(B.pluginOptions.version).match(/\d+/g);for(var D=0;D<3;D++){E[D]=parseInt(E[D]||0);F[D]=parseInt(F[D]||0);if(E[D]<F[D]){return false}if(E[D]>F[D]){return true}}return true};B.hasFlash.playerVersion=function(){try{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{D.AllowScriptAccess="always"}catch(E){return"6,0,0"}}catch(E){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(E){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(E){}}return"0,0,0"};B.htmlOptions={flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash"};B.pluginOptions={expressInstall:false,update:true,version:"6.0.65"};B.replace=function(D){this.innerHTML='<div class="alt">'+this.innerHTML+"</div>";jQuery(this).addClass("flash-replaced").prepend(B.transform(D))};B.update=function(E){var D=String(location).split("?");D.splice(1,0,"?hasFlash=true&");D=D.join("");var F='<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+D+'">Click here.</a></p>';this.innerHTML='<span class="alt">'+this.innerHTML+"</span>";jQuery(this).addClass("flash-update").prepend(F)};function A(){var E="";for(var D in this){if(typeof this[D]!="function"){E+=D+'="'+this[D]+'" '}}return E}function C(){var E="";for(var D in this){if(typeof this[D]!="function"){E+=D+"="+encodeURIComponent(this[D])+"&"}}return E.replace(/&$/,"")}B.transform=function(D){D.toString=A;if(D.flashvars){D.flashvars.toString=C}return"<embed "+String(D)+"/>"};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}})();(function(A){A.fn.sifr=function(C){var D=true,B=undefined,E,F;E=arguments.callee.prefs=arguments.callee.prefs||{asHex:function(G){var H=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return isNaN(G)?"00":H[(G-G%16)/16]+H[G%16]},colors:{aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},toHex:function(G){var H;if(!G){return B}return(H=G.match(/rgb\(([0-9]+),\s([0-9]+),\s([0-9]+)\)/))?"#"+this.asHex(H[1])+this.asHex(H[2])+this.asHex(H[3]):(H=this.colors[G])?"#"+this.asHex(H[0])+this.asHex(H[1])+this.asHex(H[2]):(G.length===4)?G.replace(/\#([0-9a-z])([0-9a-z])([0-9a-z])/,"#$1$1$2$2$3$3"):G}};F=A.extend({},E,(C===false)?{unsifr:true}:C);if(F.save===D){arguments.callee.prefs=A.extend(F,{save:false})}if(this[0]===document){return }if(!F.unsifr&&typeof F.before==="function"){F.before.apply(this,[F])}this.each(function(){var L=A(this),G,M,K,J;K=L.children(".sIFR-alternate");if(K){L.html(K.html());if(F.unsifr){return }}if(typeof F.beforeEach==="function"){F.beforeEach.apply(this,[D,F])}K=L.addClass("sIFR-replaced").wrapInner('<span class="sIFR-alternate" style="position: absolute; "></span>').children(".sIFR-alternate");M=L.append('<span class="sIFR-jquery" style="position: absolute; ">'+A.trim(K.text())+"</span>").children(".sIFR-jquery");G=A.trim(K.html()).replace(/(>)\s+|\s+(<)/g,"$1$2").replace(/(id|name)=[A-Za-z0-9]+/g,"");if(F.textTransform){F.textTransform=F.textTransform.toLowerCase();if(F.textTransform==="uppercase"){G=G.toUpperCase()}if(F.textTransform==="lowercase"){G=G.html().toLowerCase()}if(F.textTransform==="capitalize"){var I=G.split(/(\s|\>)/);G="";for(var H in I){G+=I[H].charAt(0).toUpperCase()+I[H].substr(1)}}}G=L.attr("href")?'<a href="'+L.attr("href")+'">'+G+"</a>":G;J={flashvars:A.extend({h:M.height()*(F.zoom||1),offsetLeft:F.offsetLeft||B,offsetTop:F.offsetTop||B,textAlign:F.textAlign||L.css("textAlign").match(/left|center|right/)||"center",textColor:F.toHex(F.color||L.css("color"))||B,txt:F.content||G,underline:(F.underline===D||L.css("textDecoration")==="underline")?D:B,w:M.width()*(F.zoom||1)},F.flashvars),height:F.height||M.height(),src:(F.path||"").replace(/([^\/])$/,"$1/")+(F.font||L.css("fontFamily").replace(/^\s+|\s+$|,[\S|\s]+|'|"|(,)\s+/g,"$1")).replace(/([^\.][^s][^w][^f])$/,"$1.swf"),style:"margin: 1px 0 0; position: absolute; vertical-align: text-top;",width:F.width||M.width(),wmode:"transparent"};J.flashvars.linkColor=F.toHex(F.link||L.find("a").css("color"))||J.flashvars.textColor;J.flashvars.hoverColor=F.toHex(F.hover)||J.flashvars.linkColor;if(F.zoom){J.flashvars.offsetTop=((F.offsetTop||0)+((M.height()-(M.height()*F.zoom))/2))*(F.zoomTop||1);J.flashvars.offsetLeft=((F.offsetLeft||0)+((M.width()-(M.width()*F.zoom))/2))*(F.zoomLeft||1)}A().flash(A.extend(J,F.embedOptions),A.extend({expressInstall:F.expressInstall||false,version:F.version||7,update:F.update||false},F.pluginOptions),function(N){K.attr("style","visibility: hidden;");M.remove();L.prepend(A.fn.flash.transform(N))});if(typeof F.afterEach==="function"){F.afterEach.apply(this,[D,F])}});if(!F.unsifr&&typeof F.after==="function"){F.after.apply(this,[F])}};A.fn.unsifr=function(){return this.each(function(){A(this).sifr(false)})};A.sifr=function(B){A(document).sifr(A.extend({save:true},B))};A.sifr()})(jQuery);MWJ_img_cache_init=function(){var C=new Object();for(var E=0;E<2;E++){var D=E?(document.getElementsByTagName?document.getElementsByTagName("input"):(document.all?document.all.tags("INPUT"):[])):document.images;for(var A=0;D[A];A++){var B=D[A];if(B.id&&B.id==layoutMenuImageClass&&layoutMenuImageClass.length!=0){B.src=B.getAttribute("hoversrc")}else{if(B.getAttribute){B.hoversrc=B.getAttribute("hoversrc");B.activesrc=B.getAttribute("activesrc")}if(B.hoversrc||B.activesrc){if(!C[B.src]){C[B.src]=new Image();C[B.src].src=B.src}B.rootsrc=B.src;B.onmouseout=function(){this.src=this.rootsrc}}if(B.hoversrc){if(!C[B.hoversrc]){C[B.hoversrc]=new Image();C[B.hoversrc].src=B.hoversrc}B.onmouseover=function(){this.src=this.hoversrc}}if(B.activesrc){if(!C[B.activesrc]){C[B.activesrc]=new Image();C[B.activesrc].src=B.activesrc}B.onmousedown=function(F){F=F?F:window.event;if(F.button>1||F.which>1){return }this.src=this.activesrc};B.onmouseup=function(F){F=F?F:window.event;if(F.button>1||F.which>1){return }this.src=this.hoversrc?this.hoversrc:this.rootsrc}}}}}};jQuery(document).ready(MWJ_img_cache_init);var Reflection={defaultHeight:0.5,defaultOpacity:0.5,add:function(D,O){Reflection.remove(D);doptions={"height":Reflection.defaultHeight,"opacity":Reflection.defaultOpacity};if(O){for(var I in doptions){if(!O[I]){O[I]=doptions[I]}}}else{O=doptions}try{var L=document.createElement("div");var B=D;var E=B.className.split(" ");var H="";for(j=0;j<E.length;j++){if(E[j]!="reflect"){if(H){H+=" "}H+=E[j]}}var J=Math.floor(B.height*O["height"]);var G=Math.floor(B.height*(1+O["height"]));var N=B.width;if(document.all&&!window.opera){if(B.parentElement.tagName=="A"){var L=document.createElement("a");L.href=B.parentElement.href}L.className=H;B.className="reflected";L.style.cssText=B.style.cssText;B.style.cssText="vertical-align: bottom";var F=document.createElement("img");F.src=B.src;F.style.width=N+"px";F.style.marginBottom="-"+(B.height-J)+"px";F.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(O["opacity"]*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(O["height"]*100)+")";L.style.width=N+"px";L.style.height=G+"px";B.parentNode.replaceChild(L,B);L.appendChild(B);L.appendChild(F)}else{var C=document.createElement("canvas");if(C.getContext){L.className=H;B.className="reflected";L.style.cssText=B.style.cssText;B.style.cssText="vertical-align: bottom";var A=C.getContext("2d");C.style.height=J+"px";C.style.width=N+"px";C.height=J;C.width=N;L.style.width=N+"px";L.style.height=G+"px";B.parentNode.replaceChild(L,B);L.appendChild(B);L.appendChild(C);A.save();A.translate(0,D.height-1);A.scale(1,-1);A.drawImage(D,0,0,N,D.height);A.restore();A.globalCompositeOperation="destination-out";var M=A.createLinearGradient(0,0,0,J);M.addColorStop(1,"rgba(255, 255, 255, 1.0)");M.addColorStop(0,"rgba(255, 255, 255, "+(1-O["opacity"])+")");A.fillStyle=M;if(navigator.appVersion.indexOf("WebKit")!=-1){A.fill()}else{A.fillRect(0,0,N,J*2)}}}}catch(K){}},remove:function(A){if(A.className=="reflected"){A.className=A.parentNode.className;A.parentNode.parentNode.replaceChild(A,A.parentNode)}}};function addReflections(){var C=jQuery(".reflect");for(i=0;i<C.length;i++){var B=null;var A=null;var D=C[i].className.split(" ");for(j=0;j<D.length;j++){if(D[j].indexOf("rheight")==0){var B=D[j].substring(7)/100}else{if(D[j].indexOf("ropacity")==0){var A=D[j].substring(8)/100}}}Reflection.add(C[i],{height:B,opacity:A})}}jQuery(document).ready(function(){addReflections()});function createPageSnapshot(D){jQuery("*[href]").each(function(){this.href=jQuery.trim(this.href);if(this.href==null||this.href==""){return }if(this.href.indexOf("javascript")>=0){jQuery(this).remove();return }if(this.href.indexOf("/")==0){this.host=location.host;this.hostname=location.hostname}});jQuery("img").each(function(){this.src=jQuery.trim(this.src);if(this.src==null||this.src==""){return }if(this.src.indexOf("/")==0){this.host=location.host;this.hostname=location.hostname}});var F=jQuery("link[rel=stylesheet]");var A=0;for(A=F.length;A>0;A--){if(F[A-1].href){var C=jQuery.ajax({url:F[A-1].href,async:false}).responseText;jQuery("body").prepend('<style type="text/css">'+C+"</style>")}}jQuery("link[rel=stylesheet]").remove();jQuery("body").prepend(jQuery("head style").remove());jQuery("script").remove();jQuery("*[onmousemove]").remove();jQuery("*[onclick]").remove();jQuery("#layout-user-menu").remove();jQuery("#layout-my-places").remove();jQuery(".jquery-corner").remove();jQuery(".icon-edit").remove();jQuery(".icon-permissions").remove();jQuery(".icon-deactivate").remove();jQuery(".icon-add_article").remove();jQuery(".portlet-small-icon-bar").remove();var E=document.createElement("form");E.style.display="none";E.setAttribute("name","savePageForEmailForm");E.setAttribute("action",D);E.setAttribute("method","post");var B=document.createElement("input");B.setAttribute("type","hidden");B.setAttribute("name","_748_content");B.setAttribute("value","<html>"+document.documentElement.innerHTML+"</html>");E.appendChild(B);document.body.appendChild(E);submitForm(E)}LiveEl=function(){return{}}();LiveEl.NameValueList=new Class({initialize:function(A,B,C,D){this.parentElement=A;this.currentId=0;this.namespace=B;this.nameLabel=(C==null)?"Name":C;this.valueLabel=(D==null)?"Value":D},addNameValueField:function(B,A){B=(B==null)?"":B;A=(A==null)?"":A;this.currentId++;jQuery(this.parentElement).append('<div id="'+this.currentId+this.namespace+'"><table><tr><td>'+this.nameLabel+'</td><td><input type="text" class="form-text" name="'+this.namespace+'fieldName" value="'+unescape(B)+'" /></td><td>&nbsp;'+this.valueLabel+'</td><td><input type="text" class="form-text" name="'+this.namespace+'fieldValue" value="'+A+'" /></td><td><div onclick="jQuery(\'#'+this.currentId+this.namespace+'\').remove()" class="portlet-form-button">Remove Link</div></td></table></div>')},deleteNameValueField:function(A){}});LiveEl.HiddenValueList=new Class({initialize:function(A,B,C){this.parentElement=A;this.currentId=0;this.namespace=B;this.fieldName=C},addNameValueField:function(B,A){B=(B==null)?"":B;A=(A==null)?"":A;this.currentId++;jQuery(this.parentElement).append('<div id="'+this.currentId+this.namespace+'">'+B+' <a href="#" onclick="jQuery(\'#'+this.currentId+this.namespace+'\').remove()">remove</a><input type="hidden" name="'+this.fieldName+'" value="'+A+'" /></div>')},deleteNameValueField:function(A){}});LiveEl.createInputElement=function(A){if(jQuery.browser.msie){var B=document.createElement("<input name='"+A+"'></input>")}else{var B=document.createElement("input");B.name=A}return B};function autofocus(D,A,B,C){if(!C){C=event}if((((C.charCode)?C.charCode:((C.keyCode)?C.keyCode:((C.which)?C.which:0)))>31)&&(D.value.length==A)){D.form.elements[B].focus()}}function numericOnly(E,A,C,D){if(!D){D=event}var B=((D.charCode)?D.charCode:((D.keyCode)?D.keyCode:((D.which)?D.which:0)));if((B>31)&&((B<48)||(B>57))){return false}return true}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(D){for(var A=0;A<D.length;A++){var B=D[A].string;var C=D[A].prop;this.versionSearchString=D[A].versionSearch||D[A].identity;if(B){if(B.indexOf(D[A].subString)!=-1){return D[A].identity}}else{if(C){return D[A].identity}}}},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function eraseCookie(A){createCookie(A,"",-1)}