(function(){if(typeof jQuery!="undefined"){var _jQuery=jQuery}var jQuery=window.jQuery=function(a,c){if(window==this||!this.init){return new jQuery(a,c)}return this.init(a,c)};if(typeof $!="undefined"){var _$=$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;jQuery.fn=jQuery.prototype={init:function(a,c){a=a||document;if(typeof a=="string"){var m=quickExpr.exec(a);if(m&&(m[1]||!c)){if(m[1]){a=jQuery.clean([m[1]])}else{var tmp=document.getElementById(m[3]);if(tmp){if(tmp.id!=m[3]){return jQuery().find(a)}else{this[0]=tmp;this.length=1;return this}}else{a=[]}}}else{return new jQuery(c).find(a)}}else{if(jQuery.isFunction(a)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](a)}}return this.setArray(a.constructor==Array&&a||(a.jquery||a.length&&a!=window&&!a.nodeType&&a[0]!=undefined&&a[0].nodeType)&&jQuery.makeArray(a)||[a])},jquery:"1.1.4",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(fn,args){return jQuery.each(this,fn,args)},index:function(obj){var pos=-1;this.each(function(i){if(this==obj){pos=i}});return pos},attr:function(key,value,type){var obj=key;if(key.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],key)||undefined}else{obj={};obj[key]=value}}return this.each(function(index){for(var prop in obj){jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop))}})},css:function(key,value){return this.attr(key,value,"curCSS")},text:function(e){if(typeof e!="object"&&e!=null){return this.empty().append(document.createTextNode(e))}var t="";jQuery.each(e||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return t},wrap:function(){var a,args=arguments;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument)}var b=a[0].cloneNode(true);this.parentNode.insertBefore(b,this);while(b.firstChild){b=b.firstChild}b.appendChild(this)})},append:function(){return this.domManip(arguments,true,1,function(a){this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,-1,function(a){this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,-1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(t){var data=jQuery.map(this,function(a){return jQuery.find(t,a)});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data)},clone:function(deep){deep=deep!=undefined?deep:true;var $this=this.add(this.find("*"));if(jQuery.browser.msie){$this.each(function(){this._$events={};for(var type in this.$events){this._$events[type]=jQuery.extend({},this.$events[type])}}).unbind()}var r=this.pushStack(jQuery.map(this,function(a){return a.cloneNode(deep)}));if(jQuery.browser.msie){$this.each(function(){var events=this._$events;for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data)}}this._$events=null})}if(deep){var inputs=r.add(r.find("*")).filter("select,input[@type=checkbox]");$this.filter("select,input[@type=checkbox]").each(function(i){if(this.selectedIndex){inputs[i].selectedIndex=this.selectedIndex}if(this.checked){inputs[i].checked=true}})}return r},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||jQuery.multiFilter(t,this))},not:function(t){return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){return(t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t}))},add:function(t){return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||t.nodeName=="FORM")?t:[t]))},is:function(expr){return expr?jQuery.multiFilter(expr,this).length>0:false},val:function(val){return val==undefined?(this.length?this[0].value:null):this.attr("value",val)},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0){a.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"))}jQuery.each(a,function(){if(jQuery.nodeName(this,"script")){if(this.src){jQuery.ajax({url:this.src,async:false,dataType:"script"})}else{jQuery.globalEval(this.text||this.textContent||this.innerHTML||"")}}else{fn.apply(obj,[clone?this.cloneNode(true):this])}})})}};jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},a=1,al=arguments.length,deep=false;if(target.constructor==Boolean){deep=target;target=arguments[1]||{}}if(al==1){target=this;a=0}var prop;for(;a<al;a++){if((prop=arguments[a])!=null){for(var i in prop){if(target==prop[i]){continue}if(deep&&typeof prop[i]=="object"&&target[i]){jQuery.extend(target[i],prop[i])}else{if(prop[i]!=undefined){target[i]=prop[i]}}}}}return target};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&&/function/i.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){if(window.execScript){window.execScript(data)}else{if(jQuery.browser.safari){window.setTimeout(data,0)}else{eval.call(window,data)}}}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},each:function(obj,fn,args){if(args){if(obj.length==undefined){for(var i in obj){fn.apply(obj[i],args)}}else{for(var i=0,ol=obj.length;i<ol;i++){if(fn.apply(obj[i],args)===false){break}}}}else{if(obj.length==undefined){for(var i in obj){fn.call(obj[i],i,obj[i])}}else{for(var i=0,ol=obj.length,val=obj[0];i<ol&&fn.call(val,i,val)!==false;val=obj[++i]){}}}return obj},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value)){value=value.call(elem,[index])}var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur)){elem.className+=(elem.className?" ":"")+cur}})},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.className.split(/\s+/),function(cur){return !jQuery.className.has(c,cur)}).join(" "):""},has:function(t,c){return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1}},swap:function(e,o,f){for(var i in o){e.style["old"+i]=e.style[i];e.style[i]=o[i]}f.apply(e,[]);for(var i in o){e.style[i]=e.style["old"+i]}},css:function(e,p){if(p=="height"||p=="width"){var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];jQuery.each(d,function(){old["padding"+this]=0;old["border"+this+"Width"]=0});jQuery.swap(e,old,function(){if(jQuery(e).is(":visible")){oHeight=e.offsetHeight;oWidth=e.offsetWidth}else{e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];var parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static"){e.parentNode.style.position="relative"}oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static"){e.parentNode.style.position="static"}e.parentNode.removeChild(e)}});return p=="height"?oHeight:oWidth}return jQuery.curCSS(e,p)},curCSS:function(elem,prop,force){var ret,stack=[],swap=[];function color(a){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(a,null);return !ret||ret.getPropertyValue("color")==""}if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(prop.match(/float/i)){prop=styleFloat}if(!force&&elem.style[prop]){ret=elem.style[prop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i)){prop="float"}prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur&&!color(elem)){ret=cur.getPropertyValue(prop)}else{for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(a=0;a<stack.length;a++){if(color(stack[a])){swap[a]=stack[a].style.display;stack[a].style.display="block"}}ret=prop=="display"&&swap[stack.length-1]!=null?"none":document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)||"";for(a=0;a<swap.length;a++){if(swap[a]!=null){stack[a].style.display=swap[a]}}}if(prop=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});ret=elem.currentStyle[prop]||elem.currentStyle[newProp]}}}return ret},clean:function(a,doc){var r=[];doc=doc||document;jQuery.each(a,function(i,arg){if(!arg){return }if(arg.constructor==Number){arg=arg.toString()}if(typeof arg=="string"){var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){tb=div.firstChild&&div.firstChild.childNodes}else{if(wrap[1]=="<table>"&&s.indexOf("<tbody")<0){tb=div.childNodes}}for(var n=tb.length-1;n>=0;--n){if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){tb[n].parentNode.removeChild(tb[n])}}if(/^\s/.test(arg)){div.insertBefore(doc.createTextNode(arg.match(/^\s*/)[0]),div.firstChild)}}arg=jQuery.makeArray(div.childNodes)}if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){return }if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){r.push(arg)}else{r=jQuery.merge(r,arg)}});return r},attr:function(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){elem.setAttribute(name,value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(t){return(t||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var r=[];if(typeof a!="array"){for(var i=0,al=a.length;i<al;i++){r.push(a[i])}}else{r=a.slice(0)}return r},inArray:function(b,a){for(var i=0,al=a.length;i<al;i++){if(a[i]==b){return i}}return -1},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(first){var r=[],num=jQuery.mergeNum++;try{for(var i=0,fl=first.length;i<fl;i++){if(num!=first[i].mergeNum){first[i].mergeNum=num;r.push(first[i])}}}catch(e){r=first}return r},mergeNum:0,grep:function(elems,fn,inv){if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i)){result.push(elems[i])}}return result},map:function(elems,fn){if(typeof fn=="string"){fn=eval("false||function(a){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array){val=[val]}result=result.concat(val)}}return result}});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",styleFloat:jQuery.browser.msie?"styleFloat":"cssFloat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"}});jQuery.each({parent:"a.parentNode",parents:"jQuery.parents(a)",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)"},function(i,n){jQuery.fn[i]=function(a){var ret=jQuery.map(this,n);if(a&&typeof a=="string"){ret=jQuery.multiFilter(a,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(i,n){jQuery.fn[i]=function(){var a=arguments;return this.each(function(){for(var j=0,al=a.length;j<al;j++){jQuery(a[j])[n](this)}})}});jQuery.each({removeAttr:function(key){jQuery.attr(this,key,"");this.removeAttribute(key)},addClass:function(c){jQuery.className.add(this,c)},removeClass:function(c){jQuery.className.remove(this,c)},toggleClass:function(c){jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c)},remove:function(a){if(!a||jQuery.filter(a,[this]).r.length){this.parentNode.removeChild(this)}},empty:function(){while(this.firstChild){this.removeChild(this.firstChild)}}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments)}});jQuery.each(["eq","lt","gt","contains"],function(i,n){jQuery.fn[n]=function(num,fn){return this.filter(":"+n+"("+num+")",fn)}});jQuery.each(["height","width"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w?-?*_-]|\\\\.)",quickChild=new RegExp("^[/>]\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||'').indexOf(m[3])>=0",visible:"\"hidden\"!=a.type&&jQuery.css(a,\"display\")!=\"none\"&&jQuery.css(a,\"visibility\")!=\"hidden\"",hidden:"\"hidden\"==a.type||jQuery.css(a,\"display\")==\"none\"||jQuery.css(a,\"visibility\")==\"hidden\"",enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:"\"button\"==a.type||jQuery.nodeName(a,\"button\")",input:"/input|select|textarea|button/i.test(a.nodeName)",has:"jQuery.find(m[3],a).length"},"[":"jQuery.find(m[2],a).length"},parse:[/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,/^(:)([\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){context=null}context=context||document;if(!t.indexOf("//")){t=t.substr(2,t.length)}else{if(!t.indexOf("/")&&!context.ownerDocument){context=context.documentElement;t=t.substr(1,t.length);if(t.indexOf("/")>=1){t=t.substr(t.indexOf("/"),t.length)}}}var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t).replace(/^\/\//,"");var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){var 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.toUpperCase())){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 nodeName=m[4],mergeNum=jQuery.mergeNum++;m=m[1];for(var j=0,rl=ret.length;j<rl;j++){if(m.indexOf("..")<0){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){if(m=="~"&&n.mergeNum==mergeNum){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~"){n.mergeNum=mergeNum}r.push(n)}if(m=="+"){break}}}}else{r.push(ret[j].parentNode)}}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[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=jQuery.filter(m[3],r,true).r}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 num=jQuery.mergeNum++,tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode;if(num!=parentNode.mergeNum){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}parentNode.mergeNum=num}var add=false;if(first==1){if(last==0||node.nodeIndex==last){add=true}}else{if((node.nodeIndex+last)%first==0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var f=jQuery.expr[m[1]];if(typeof f!="string"){f=jQuery.expr[m[1]][m[2]]}f=eval("false||function(a,i){return "+f+"}");r=jQuery.grep(r,f,not)}}}}}return{r:r,t:t}},parents:function(elem){var matched=[];var cur=elem.parentNode;while(cur&&cur!=document){matched.push(cur);cur=cur.parentNode}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&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined){element=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}if(!element.$events){element.$events={}}if(!element.$handle){element.$handle=function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(element,arguments);return val}}var handlers=element.$events[type];if(!handlers){handlers=element.$events[type]={};if(element.addEventListener){element.addEventListener(type,element.$handle,false)}else{element.attachEvent("on"+type,element.$handle)}}handlers[handler.guid]=handler;this.global[type]=true},guid:1,global:{},remove:function(element,type,handler){var events=element.$events,ret,index;if(events){if(type&&type.type){handler=type.handler;type=type.type}if(!type){for(type in events){this.remove(element,type)}}else{if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in element.$events[type]){delete events[type][handler]}}for(ret in events[type]){break}if(!ret){if(element.removeEventListener){element.removeEventListener(type,element.$handle,false)}else{element.detachEvent("on"+type,element.$handle)}ret=null;delete events[type]}}}for(ret in events){break}if(!ret){element.$handle=element.$events=null}}},trigger:function(type,data,element){data=jQuery.makeArray(data||[]);if(!element){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{var val,ret,fn=jQuery.isFunction(element[type]||null);data.unshift(this.fix({type:type,target:element}));if(jQuery.isFunction(element.$handle)){val=element.$handle.apply(element,data)}if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false){val=false}if(fn&&val!==false&&!(jQuery.nodeName(element,"a")&&type=="click")&&!(type=="focus"&&element.offsetHeight==0)){this.triggered=true;element[type]()}this.triggered=false}},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var c=this.$events&&this.$events[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(c[j].apply(this,args)===false){event.preventDefault();event.stopPropagation();val=false}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target&&event.srcElement){event.target=event.srcElement}if(jQuery.browser.safari&&event.target.nodeType==3){event.target=originalEvent.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 e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0)}if(!event.which&&(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}};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){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},toggle:function(){var a=arguments;return this.click(function(e){this.lastToggle=0==this.lastToggle?1:0;e.preventDefault();return a[this.lastToggle].apply(this,[e])||false})},hover:function(f,g){function handleHover(e){var p=e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}return(e.type=="mouseover"?f:g).apply(this,[e])}return this.mouseover(handleHover).mouseout(handleHover)},ready:function(f){bindReady();if(jQuery.isReady){f.apply(document,[jQuery])}else{jQuery.readyList.push(function(){return f.apply(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.apply(document)});jQuery.readyList=null}if(jQuery.browser.mozilla||jQuery.browser.opera){document.removeEventListener("DOMContentLoaded",jQuery.ready,false)}if(!window.frames.length){jQuery(window).load(function(){jQuery("#__ie_init").remove()})}}}});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,o){jQuery.fn[o]=function(f){return f?this.bind(o,f):this.trigger(o)}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(jQuery.browser.mozilla||jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}else{if(jQuery.browser.msie){document.write("<script id=__ie_init defer=true src=//:></script>");var script=document.getElementById("__ie_init");if(script){script.onreadystatechange=function(){if(document.readyState!="complete"){return }jQuery.ready()}}script=null}else{if(jQuery.browser.safari){jQuery.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(jQuery.safariTimer);jQuery.safariTimer=null;jQuery.ready()}},10)}}}jQuery.event.add(window,"load",jQuery.ready)}jQuery.fn.extend({loadIfModified:function(url,params,callback){this.load(url,params,callback,1)},load:function(url,params,callback,ifModified){if(jQuery.isFunction(url)){return this.bind("load",url)}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,data:params,ifModified:ifModified,complete:function(res,status){if(status=="success"||!ifModified&&status=="notmodified"){self.html(res.responseText)}setTimeout(function(){self.each(callback,[res.responseText,status,res])},13)}});return this},serialize:function(){return jQuery.param(this)},evalScripts:function(){}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});jQuery.extend({get:function(url,data,callback,type,ifModified){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type,ifModified:ifModified})},getIfModified:function(url,data,callback,type){return jQuery.get(url,data,callback,type,1)},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})},ajaxTimeout:function(timeout){jQuery.ajaxSettings.timeout=timeout},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data){if(s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.type.toLowerCase()=="get"){s.url+=(s.url.indexOf("?")>-1?"&":"?")+s.data;s.data=null}}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async);if(s.data){xml.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");if(s.beforeSend){s.beforeSend(xml)}if(s.global){jQuery.event.trigger("ajaxSend",[xml,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}var status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{var data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}else{jQuery.handleError(s,xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(s.complete){s.complete(xml,status)}if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}return xml},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xml,s,e])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined}catch(e){}return false},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}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(a[j]))}}}return s.join("&")}});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?this.oldblock:"";if(jQuery.css(this,"display")=="none"){this.style.display="block"}}).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");if(this.oldblock=="none"){this.oldblock="block"}this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):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){return this.queue(function(){var hidden=jQuery(this).is(":hidden"),opt=jQuery.speed(speed,easing,callback),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return jQuery.isFunction(opt.complete)&&opt.complete.apply(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"}this.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(val.constructor==Number){e.custom(e.cur()||0,val)}else{e[val=="toggle"?hidden?"show":"hide":val](prop)}});return true})},queue:function(type,fn){if(!fn){fn=type;type="fx"}return this.each(function(){if(!this.queue){this.queue={}}if(!this.queue[type]){this.queue[type]=[]}this.queue[type].push(fn);if(this.queue[type].length==1){fn.apply(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:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){jQuery.dequeue(this,"fx");if(jQuery.isFunction(opt.old)){opt.old.apply(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}},queue:{},dequeue:function(elem,type){type=type||"fx";if(elem.queue&&elem.queue[type]){elem.queue[type].shift();var f=elem.queue[type][0];if(f){f.apply(elem)}}},timers:[],fx:function(elem,options,prop){var z=this;var y=elem.style;z.a=function(){if(options.step){options.step.apply(elem,[z.now])}if(prop=="opacity"){jQuery.attr(y,"opacity",z.now)}else{y[prop]=parseInt(z.now)+"px";if(prop=="height"||prop=="width"){y.display="block"}}};z.max=function(){return parseFloat(jQuery.css(elem,prop))};z.cur=function(){var r=parseFloat(jQuery.curCSS(elem,prop));return r&&r>-10000?r:z.max()};z.custom=function(from,to){z.startTime=(new Date()).getTime();z.now=from;z.a();jQuery.timers.push(function(){return z.step(from,to)});if(jQuery.timers.length==1){var timer=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(timer)}},13)}};z.show=function(){if(!elem.orig){elem.orig={}}elem.orig[prop]=jQuery.attr(elem.style,prop);options.show=true;z.custom(0,this.cur());if(prop!="opacity"){y[prop]="1px"}jQuery(elem).show()};z.hide=function(){if(!elem.orig){elem.orig={}}elem.orig[prop]=jQuery.attr(elem.style,prop);options.hide=true;z.custom(this.cur(),0)};z.step=function(firstNum,lastNum){var t=(new Date()).getTime();if(t>options.duration+z.startTime){z.now=lastNum;z.a();if(elem.curAnim){elem.curAnim[prop]=true}var done=true;for(var i in elem.curAnim){if(elem.curAnim[i]!==true){done=false}}if(done){if(options.display!=null){y.overflow=options.overflow;y.display=options.display;if(jQuery.css(elem,"display")=="none"){y.display="block"}}if(options.hide){y.display="none"}if(options.hide||options.show){for(var p in elem.curAnim){jQuery.attr(y,p,elem.orig[p])}}}if(done&&jQuery.isFunction(options.complete)){options.complete.apply(elem)}return false}else{var n=t-this.startTime;var p=n/options.duration;z.now=jQuery.easing[options.easing||(jQuery.easing.swing?"swing":"linear")](p,n,firstNum,(lastNum-firstNum),options.duration);z.a()}return true}}})})();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(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);var jQBrowser2=function(){var A=true;var M={"browser":"Unknown","version":{"number":undefined,"string":"Unknown"},"OS":"Unknown","aol":false,"camino":false,"firefox":false,"flock":false,"icab":false,"konqueror":false,"mozilla":false,"msie":false,"netscape":false,"opera":false,"safari":false,"iphone":false,"ipod":false,"linux":false,"mac":false,"win":false};for(var G=0,B=navigator.userAgent,I=navigator.vendor,F=[{"name":"Safari","browser":/Apple/.test(I)},{"name":"Opera","browser":window.opera!=undefined},{"name":"iCab","browser":/iCab/.test(I)},{"name":"Konqueror","browser":/KDE/.test(I)},{"identifier":"aol","name":"AOL Explorer","browser":/America Online Browser/.test(B),"version":B.match(/rev(\d+(?:\.\d+)+)/)},{"name":"Flock","browser":/Flock/.test(B)},{"name":"Camino","browser":/Camino/.test(I)},{"name":"Firefox","browser":/Firefox/.test(B)},{"name":"Netscape","browser":/Netscape/.test(B)},{"identifier":"msie","name":"Internet Explorer","browser":/MSIE/.test(B),"version":B.match(/MSIE (\d+(?:\.\d+)+(?:b\d*)?)/)},{"name":"Mozilla","browser":/Gecko|Mozilla/.test(B),"version":B.match(/rv:(\d+(?:\.\d+)+)/)}];G<F.length;G++){if(F[G].browser){var J=F[G].identifier?F[G].identifier:F[G].name.toLowerCase();M[J]=true;M.browser=F[G].name;var O;if(F[G].version!=undefined&&(O=F[G].version)){M.version.string=O[1];M.version.number=parseFloat(O[1])}else{var N=new RegExp(F[G].name+"(?:\\s|\\/)(\\d+(?:\\.\\d+)+(?:(?:a|b)\\d*)?)");O=B.match(N);if(O!=undefined){M.version.string=O[1];M.version.number=parseFloat(O[1])}}if(/firefox|camino|flock|netscape/i.test(M.browser)){M.mozilla=true}break}}for(var G=0,D=navigator.platform,F=[{"identifier":"win","name":"Windows","OS":/Win/.test(D)},{"name":"Mac","OS":/Mac/.test(D)},{"name":"Linux","OS":/Linux/.test(D)},{"name":"iPhone","OS":/iPhone/.test(D)},{"name":"iPod","OS":/iPod/.test(D)}];G<F.length;G++){if(F[G].OS){var J=F[G].identifier?F[G].identifier:F[G].name.toLowerCase();M[J]=true;M.OS=F[G].name;break}}var H={"browser":M.browser,"version":{"number":function(){return !arguments.length?M.version.number:Math.floor(M.version.number)},"string":function(){return !arguments.length?M.version.string:this.number("round").toString()}},"OS":M.OS,"aol":M.aol,"camino":M.camino,"firefox":M.firefox,"flock":M.flock,"icab":M.icab,"konqueror":M.konqueror,"mozilla":M.mozilla,"msie":M.msie,"netscape":M.netscape,"opera":M.opera,"safari":M.safari,"iphone":M.iphone,"ipod":M.ipod,"linux":M.linux,"mac":M.mac,"win":M.win};jQuery.browser=H;if(!A){return }var C=jQuery.browser.browser.toLowerCase();var L=jQuery.browser.version.string("round");var K=jQuery.browser.msie?"ie ie"+jQuery.browser.version.string("round"):(jQuery.browser.mozilla)?"gecko "+C+L+" "+C:(jQuery.browser.opera)?"opera "+C+L:(jQuery.browser.safari)?"safari "+C+L:jQuery.browser.konqueror?"konqueror "+C+L:jQuery.browser.icab?"icab "+C+L:jQuery.browser.aol?"aol "+C+L:"",E=jQuery.browser.linux?"linux":jQuery.browser.iphone?"iphone":jQuery.browser.ipod?"ipod":jQuery.browser.mac?"mac":jQuery.browser.win?"win":"";jQuery("html").addClass(K).addClass(E).addClass("js")}();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{}}();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({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_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_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.string(true)}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(){jQuery(this).addClass("focus");if(this.createTextRange){var E=this.value;var D=this.createTextRange();D.moveStart("character",E.length);D.select()}});A.blur(function(){jQuery(this).removeClass("focus")})},addInputType:function(A){var B;if(jQuery.browser.msie&&jQuery.browser.version.number()<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(D){var A=[];for(var B=0;B<D.length;B++){A[B]=[D[B].value,D[B].text]}A.sort(Liferay.Util.sortByAscending);var C=jQuery(D);C.find("option").remove();jQuery.each(A,function(E,F){C.append("<option value=\""+F[0]+"\">"+F[1]+"</option>")});if(Liferay.Browser.is_ie){C.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()})},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};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(jQuery.browser.msie&&jQuery.browser.version.number()<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?"<img class='popup-close' src='"+themeDisplay.getPathThemeImages()+"/portlet/close.png'/>":("<div class='popup-header'><span class='popup-title'>"+(M||"&nbsp;")+"</span><img class='popup-close' src='"+themeDisplay.getPathThemeImages()+"/portlet/close.png'/></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(jQuery.browser.msie?"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:"none",opacity:0})}}if(jQuery.browser.msie&&jQuery.browser.version.number("round")<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 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}