(function(){if(window.jQuery){var _jQuery=window.jQuery}var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context)};if(window.$){var _$=window.$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}else{if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}else{this[0]=elem;this.length=1;return this}}else{selector=[]}}}else{return new jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}}return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector])},jquery:"1.2.3",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;this.each(function(i){if(this==elem){ret=i}});return ret},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],name)||undefined}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return !selector?this:this.pushStack(jQuery.merge(this.get(),selector.constructor==String?jQuery(selector).get():selector.length!=undefined&&(!selector.nodeName||jQuery.nodeName(selector,"form"))?selector:[selector]))},is:function(selector){return selector?jQuery.multiFilter(selector,this).length>0:false},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=value.constructor==Array?value:[value];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this.length?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value==null){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data==undefined&&this.length){data=jQuery.data(this[0],key)}return data==null&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.prototype.init.prototype=jQuery.prototype;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==1){target=this;i=0}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){if(target===options[name]){continue}if(deep&&options[name]&&typeof options[name]=="object"&&target[name]&&!options[name].nodeType){target[name]=jQuery.extend(target[name],options[name])}else{if(options[name]!=undefined){target[name]=options[name]}}}}}return target};var expando="jQuery"+(new Date()).getTime(),uuid=0,windowData={};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;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){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.appendChild(script);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!=undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){if(args){if(object.length==undefined){for(var name in object){if(callback.apply(object[name],args)===false){break}}}else{for(var i=0,length=object.length;i<length;i++){if(callback.apply(object[i],args)===false){break}}}}else{if(object.length==undefined){for(var name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var i=0,length=object.length,value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret;function color(elem){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=elem.style.outline;elem.style.outline="0 solid black";elem.style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&elem.style&&elem.style[name]){ret=elem.style[name]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var getComputedStyle=document.defaultView.getComputedStyle(elem,null);if(getComputedStyle&&!color(elem)){ret=getComputedStyle.getPropertyValue(name)}else{var swap=[],stack=[];for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(var i=0;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(getComputedStyle&&getComputedStyle.getPropertyValue(name))||"";for(var i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left,runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem=elem.toString()}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var 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){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}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&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(typeof array!="array"){for(var i=0,length=array.length;i<length;i++){ret.push(array[i])}}else{ret=array.slice(0)}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]==elem){return i}}return -1},merge:function(first,second){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(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv&&callback(elems[i],i)||inv&&!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!==null&&value!=undefined){if(value.constructor!=Array){value=[value]}ret=ret.concat(value)}}return ret}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength",selectedIndex:"selectedIndex",defaultValue:"defaultValue",tagName:"tagName",nodeName:"nodeName"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval!=undefined){elem=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}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(arguments.callee.elem,arguments);return val});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data||[]);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift(this.fix({type:type,target:elem}))}data[0].type=type;if(exclusive){data[0].exclusive=true}if(jQuery.isFunction(jQuery.data(elem,"handle"))){val=jQuery.data(elem,"handle").apply(elem,data)}if(!fn&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var handlers=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in handlers){var handler=handlers[j];args[0].handler=handler;args[0].data=handler.data;if(!parts[1]&&!event.exclusive||handler.type==parts[1]){var ret=handler.apply(this,args);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}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.target=event.srcElement||document}if(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 doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}arguments[0].type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){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,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return jQuery.event.trigger(type,data,this[0],false,fn)}return undefined},toggle:function(){var args=arguments;return this.click(function(event){this.lastToggle=0==this.lastToggle?1:0;event.preventDefault();return args[this.lastToggle].apply(this,arguments)||false})},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){var jsonp,jsre=/=\?(&|$)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&s.type.toLowerCase()=="get"){var ts=(new Date()).getTime();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if((!s.url.indexOf("http")||!s.url.indexOf("//"))&&s.dataType=="script"&&s.type.toLowerCase()=="get"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async,s.username,s.password);try{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");xml.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}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}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{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(!jsonp){success()}}else{jQuery.handleError(s,xml,status)}complete();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()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}function complete(){if(s.complete){s.complete(xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}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||r.status==1223||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;var 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("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+"></"+this.tagName+">").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(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){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall);var hidden=jQuery(this).is(":hidden"),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"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(!elem){return undefined}type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[])}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].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(){if(opt.queue!==false){jQuery(this).dequeue()}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}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=(new Date()).getTime();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),fixed=jQuery.css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&jQuery.css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||jQuery.css(offsetChild,"position")=="absolute"))||(mozilla&&jQuery.css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}return results}})();(function(B){B.dimensions={version:"@VERSION"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.css("display")!="none"?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.css("display")!="none"?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(jQuery);jQuery.extend(jQuery.easing,{easein:function(B,C,A,E,D){return E*(C/=D)*C+A},easeinout:function(B,C,A,F,E){if(C<E/2){return 2*F*C*C/(E*E)+A}var D=C-E/2;return -2*F*D*D/(E*E)+2*F*D/E+F/2+A},easeout:function(B,C,A,E,D){return -E*C*C/(D*D)+2*E*C/D+A},expoin:function(B,C,A,F,E){var D=1;if(F<0){D*=-1;F*=-1}return D*(Math.exp(Math.log(F)/E*C))+A},expoout:function(B,C,A,F,E){var D=1;if(F<0){D*=-1;F*=-1}return D*(-Math.exp(-Math.log(F)/E*(C-E))+F+1)+A},expoinout:function(B,C,A,F,E){var D=1;if(F<0){D*=-1;F*=-1}if(C<E/2){return D*(Math.exp(Math.log(F/2)/(E/2)*C))+A}return D*(-Math.exp(-2*Math.log(F/2)/E*(C-E))+F+1)+A},bouncein:function(B,C,A,E,D){return E-jQuery.easing["bounceout"](B,D-C,0,E,D)+A},bounceout:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A}}}},bounceinout:function(B,C,A,E,D){if(C<D/2){return jQuery.easing["bouncein"](B,C*2,0,E,D)*0.5+A}return jQuery.easing["bounceout"](B,C*2-D,0,E,D)*0.5+E*0.5+A},elasin:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A},elasout:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A},elasinout:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G/2)==2){return A+H}if(!F){F=G*(0.3*1.5)}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A},backin:function(B,C,A,F,E){var D=1.70158;return F*(C/=E)*C*((D+1)*C-D)+A},backout:function(B,C,A,F,E){var D=1.70158;return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A},backinout:function(B,C,A,F,E){var D=1.70158;if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A}});(function($){$.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=$.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},options||{});var veto={};$.event.trigger("form.pre.serialize",[this,options,veto]);if(veto.veto){return this}var a=this.formToArray(options.semantic);if(options.data){for(var n in options.data){a.push({name:n,value:options.data[n]})}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}$.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){if(this.evalScripts){$(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,arguments)}else{$(options.target).html(data).each(oldSuccess,arguments)}})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status,$form)}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){if($.browser.safari&&options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload)}else{fileUpload()}}else{$.ajax(options)}$.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=$.extend({},$.ajaxSettings,options);var id="jqFormIO"+$.fn.ajaxSubmit.counter++;var $io=$('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;if($.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart")}if(g){$.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){var encAttr=form.encoding?"encoding":"enctype";var t=$form.attr("target");$form.attr({target:id,method:"POST",action:opts.url});form[encAttr]="multipart/form-data";if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.submit();$form.attr("target",t)},10);function cb(){if(cbInvoked++){return }io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{$.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;$.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){$.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--$.active){$.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};$.fn.ajaxSubmit.counter=0;$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++;$.fn.ajaxForm.optionHash[this.formPluginId]=options;$(":submit,input:image",this).click(clickHandler)})};$.fn.ajaxForm.counter=1;$.fn.ajaxForm.optionHash={};function clickHandler(e){var $form=this.form;$form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){$form.clk_x=e.offsetX;$form.clk_y=e.offsetY}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();$form.clk_x=e.pageX-offset.left;$form.clk_y=e.pageY-offset.top}else{$form.clk_x=e.pageX-this.offsetLeft;$form.clk_y=e.pageY-this.offsetTop}}}setTimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null},10)}function submitHandler(){var id=this.formPluginId;var options=$.fn.ajaxForm.optionHash[id];$(this).ajaxSubmit(options);return false}$.fn.ajaxFormUnbind=function(){this.unbind("submit",submitHandler);return this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler)})};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a}for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n){continue}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}continue}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v})}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}}}return a};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return }var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v})}}});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue}v.constructor==Array?$.merge(val,v):val.push(v)}return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined"){successful=true}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null}var a=[],ops=el.options;var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=$.browser.msie&&!(op.attributes["value"].specified)?op.text:op.value;if(one){return v}a.push(v)}}return a}return el.value};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea"){this.value=""}else{if(t=="checkbox"||t=="radio"){this.checked=false}else{if(tag=="select"){this.selectedIndex=-1}}}})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(b){if(b==undefined){b=true}return this.each(function(){this.disabled=!b})};$.fn.select=function(select){if(select==undefined){select=true}return this.each(function(){var t=this.type;if(t=="checkbox"||t=="radio"){this.checked=select}else{if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one"){$sel.find("option").select(false)}this.selected=select}}})}})(jQuery);(function(A){A.event.special.mousewheel={setup:function(){var B=A.event.special.mousewheel.handler;if(A.browser.mozilla){A(this).bind("mousemove.mousewheel",function(C){A.data(this,"mwcursorposdata",{pageX:C.pageX,pageY:C.pageY,clientX:C.clientX,clientY:C.clientY})})}if(this.addEventListener){this.addEventListener((A.browser.mozilla?"DOMMouseScroll":"mousewheel"),B,false)}else{this.onmousewheel=B}},teardown:function(){var B=A.event.special.mousewheel.handler;A(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((A.browser.mozilla?"DOMMouseScroll":"mousewheel"),B,false)}else{this.onmousewheel=function(){}}A.removeData(this,"mwcursorposdata")},handler:function(D){var B=Array.prototype.slice.call(arguments,1);D=A.event.fix(D||window.event);A.extend(D,A.data(this,"mwcursorposdata")||{});var E=0,C=true;if(D.wheelDelta){E=D.wheelDelta/120}if(D.detail){E=-D.detail/3}if(A.browser.opera){E=-D.wheelDelta}D.data=D.data||{};D.type="mousewheel";B.unshift(E);B.unshift(D);return A.event.handle.apply(this,B)}};A.fn.extend({mousewheel:function(B){return B?this.bind("mousewheel",B):this.trigger("mousewheel")},unmousewheel:function(B){return this.unbind("mousewheel",B)}})})(jQuery);(function(A){A.blockUI=function(D,B,C){A.blockUI.impl.install(window,D,B,C)};A.blockUI.version=1.33;A.unblockUI=function(B){A.blockUI.impl.remove(window,B)};A.fn.block=function(D,B,C){return this.each(function(){if(!this.$pos_checked){if(A.css(this,"position")=="static"){this.style.position="relative"}if(A.browser.msie){this.style.zoom=1}this.$pos_checked=1}A.blockUI.impl.install(this,D,B,C)})};A.fn.unblock=function(B){return this.each(function(){A.blockUI.impl.remove(this,B)})};A.fn.displayBox=function(K,L,I){var E=this[0];if(!E){return }var N=A(E);K=K||{};var M=N.width()||N.attr("width")||K.width||A.blockUI.defaults.displayBoxCSS.width;var J=N.height()||N.attr("height")||K.height||A.blockUI.defaults.displayBoxCSS.height;if(M[M.length-1]=="%"){var H=document.documentElement.clientWidth||document.body.clientWidth;M=parseInt(M)||100;M=(M*H)/100}if(J[J.length-1]=="%"){var F=document.documentElement.clientHeight||document.body.clientHeight;J=parseInt(J)||100;J=(J*F)/100}var G="-"+parseInt(M)/2+"px";var C="-"+parseInt(J)/2+"px";var D=navigator.userAgent.toLowerCase();var B={displayMode:L||1,noalpha:I&&/mac/.test(D)&&/firefox/.test(D)};A.blockUI.impl.install(window,E,{width:M,height:J,marginTop:C,marginLeft:G},B)};A.blockUI.defaults={pageMessage:'<img id="spinner" src="/i/alert-spinner.gif" width="32" height="32" alt="loading..." />',elementMessage:"",overlayCSS:{backgroundColor:"#555",opacity:"0.6"},pageMessageCSS:{margin:"-50px 0 0 -100px",top:"50%",left:"50%",textAlign:"center",color:"#000",backgroundColor:"#fff",width:"200px",padding:"10px",textAlign:"center",backgroundColor:"#fff","-webkit-border-radius":"5px","-moz-border-radius":"5px"},elementMessageCSS:{width:"200px",padding:"10px",textAlign:"center",backgroundColor:"#fff","-webkit-border-radius":"5px","-moz-border-radius":"5px"},displayBoxCSS:{width:"400px",height:"400px",top:"50%",left:"50%"},ie6Stretch:1,allowTabToLeave:0,closeMessage:"Click to close",fadeOut:1,fadeTime:400};A.blockUI.impl={box:null,boxCallback:null,pageBlock:null,pageBlockEls:[],op8:window.opera&&window.opera.version()<9,ie6:A.browser.msie&&/MSIE 6.0/.test(navigator.userAgent),install:function(D,E,H,B){B=B||{};this.boxCallback=typeof B.displayMode=="function"?B.displayMode:null;this.box=B.displayMode?E:null;var J=(D==window);var O=this.op8||A.browser.mozilla&&/Linux/.test(navigator.platform);if(typeof B.alphaOverride!="undefined"){O=B.alphaOverride==0?1:0}if(J&&this.pageBlock){this.remove(window,{fadeOut:0})}if(E&&typeof E=="object"&&!E.jquery&&!E.nodeType){H=E;E=null}E=E?(E.nodeType?A(E):E):J?A.blockUI.defaults.pageMessage:A.blockUI.defaults.elementMessage;if(B.displayMode){var P=jQuery.extend({},A.blockUI.defaults.displayBoxCSS)}else{var P=jQuery.extend({},J?A.blockUI.defaults.pageMessageCSS:A.blockUI.defaults.elementMessageCSS)}H=jQuery.extend(P,H||{});var I=(A.browser.msie)?A('<iframe class="blockUI" style="z-index:1000;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):A('<div class="blockUI" style="display:none"></div>');var M=A('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var F=J?A('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>'):A('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');M.css("position",J?"fixed":"absolute");if(E){F.css(H)}if(!O){M.css(A.blockUI.defaults.overlayCSS)}if(this.op8){M.css({width:""+D.clientWidth,height:""+D.clientHeight})}if(A.browser.msie){I.css("opacity","0.0")}A([I[0],M[0],F[0]]).appendTo(J?"body":D);var L=A.browser.msie&&(!A.boxModel||A("object,embed",J?null:D).length>0);if(this.ie6||L){if(J&&A.blockUI.defaults.ie6Stretch&&A.boxModel){A("html,body").css("height","100%")}if((this.ie6||!A.boxModel)&&!J){var N=this.sz(D,"borderTopWidth"),G=this.sz(D,"borderLeftWidth");var K=N?"(0 - "+N+")":0;var C=G?"(0 - "+G+")":0}A.each([I,M,F],function(Q,S){var R=S[0].style;R.position="absolute";if(Q<2){J?R.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):R.setExpression("height",'this.parentNode.offsetHeight + "px"');J?R.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):R.setExpression("width",'this.parentNode.offsetWidth + "px"');if(C){R.setExpression("left",C)}if(K){R.setExpression("top",K)}}else{if(J){R.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}R.marginTop=0}})}if(B.displayMode){M.css("cursor","default").attr("title",A.blockUI.defaults.closeMessage);F.css("cursor","default");A([I[0],M[0],F[0]]).removeClass("blockUI").addClass("displayBox");A().click(A.blockUI.impl.boxHandler).bind("keypress",A.blockUI.impl.boxHandler)}else{this.bind(1,D)}F.append(E).show();if(E.jquery){E.show()}if(B.displayMode){return }if(J){this.pageBlock=F[0];this.pageBlockEls=A(":input:enabled:visible",this.pageBlock);setTimeout(this.focus,20)}else{this.center(F[0])}},remove:function(D,E){var F=A.extend({},A.blockUI.defaults,E);this.bind(0,D);var C=D==window;var B=C?A("body").children().filter(".blockUI"):A(".blockUI",D);if(C){this.pageBlock=this.pageBlockEls=null}if(F.fadeOut){B.fadeOut(F.fadeTime,function(){if(this.parentNode){this.parentNode.removeChild(this)}})}else{B.remove()}},boxRemove:function(B){A().unbind("click",A.blockUI.impl.boxHandler).unbind("keypress",A.blockUI.impl.boxHandler);if(this.boxCallback){this.boxCallback(this.box)}A("body .displayBox").hide().remove()},handler:function(E){if(E.keyCode&&E.keyCode==9){if(A.blockUI.impl.pageBlock&&!A.blockUI.defaults.allowTabToLeave){var D=A.blockUI.impl.pageBlockEls;var C=!E.shiftKey&&E.target==D[D.length-1];var B=E.shiftKey&&E.target==D[0];if(C||B){setTimeout(function(){A.blockUI.impl.focus(B)},10);return false}}}if(A(E.target).parents("div.blockMsg").length>0){return true}return A(E.target).parents().children().filter("div.blockUI").length==0},boxHandler:function(B){if((B.keyCode&&B.keyCode==27)||(B.type=="click"&&A(B.target).parents("div.blockMsg").length==0)){A.blockUI.impl.boxRemove()}return true},bind:function(B,E){var D=E==window;if(!B&&(D&&!this.pageBlock||!D&&!E.$blocked)){return }if(!D){E.$blocked=B}var C=A(E).find("a,:input");A.each(["mousedown","mouseup","keydown","keypress","click"],function(F,G){C[B?"bind":"unbind"](G,A.blockUI.impl.handler)})},focus:function(B){if(!A.blockUI.impl.pageBlockEls){return }var C=A.blockUI.impl.pageBlockEls[B===true?A.blockUI.impl.pageBlockEls.length-1:0];if(C){C.focus()}},center:function(E){var F=E.parentNode,D=E.style;var B=((F.offsetWidth-E.offsetWidth)/2)-this.sz(F,"borderLeftWidth");var C=((F.offsetHeight-E.offsetHeight)/2)-this.sz(F,"borderTopWidth");D.left=B>0?(B+"px"):"0";D.top=C>0?(C+"px"):"0"},sz:function(B,C){return parseInt(A.css(B,C))||0}}})(jQuery);(function(A){A.extend(A.fn,{livequery:function(F,E,D){var C=this,G;if(A.isFunction(F)){D=E,E=F,F=undefined}A.each(A.livequery.queries,function(H,I){if(C.selector==I.selector&&C.context==I.context&&F==I.type&&(!E||E.$lqguid==I.fn.$lqguid)&&(!D||D.$lqguid==I.fn2.$lqguid)){return(G=I)&&false}});G=G||new A.livequery(this.selector,this.context,F,E,D);G.stopped=false;A.livequery.run(G.id);return this},expire:function(F,E,D){var C=this;if(A.isFunction(F)){D=E,E=F,F=undefined}A.each(A.livequery.queries,function(G,H){if(C.selector==H.selector&&C.context==H.context&&(!F||F==H.type)&&(!E||E.$lqguid==H.fn.$lqguid)&&(!D||D.$lqguid==H.fn2.$lqguid)&&!this.stopped){A.livequery.stop(H.id)}});return this}});A.livequery=function(C,E,G,F,D){this.selector=C;this.context=E||document;this.type=G;this.fn=F;this.fn2=D;this.elements=[];this.stopped=false;this.id=A.livequery.queries.push(this)-1;F.$lqguid=F.$lqguid||A.livequery.guid++;if(D){D.$lqguid=D.$lqguid||A.livequery.guid++}return this};A.livequery.prototype={stop:function(){var C=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(D,E){C.fn2.apply(E)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return }var E=this;var F=this.elements,D=A(this.selector,this.context),C=D.not(F);this.elements=D;if(this.type){C.bind(this.type,this.fn);if(F.length>0){A.each(F,function(G,H){if(A.inArray(H,D)<0){A.event.remove(H,E.type,E.fn)}})}}else{C.each(function(){E.fn.apply(this)});if(this.fn2&&F.length>0){A.each(F,function(G,H){if(A.inArray(H,D)<0){E.fn2.apply(H)}})}}}};A.extend(A.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(A.livequery.running&&A.livequery.queue.length){var C=A.livequery.queue.length;while(C--){A.livequery.queries[A.livequery.queue.shift()].run()}}},pause:function(){A.livequery.running=false},play:function(){A.livequery.running=true;A.livequery.run()},registerPlugin:function(){A.each(arguments,function(D,E){if(!A.fn[E]){return }var C=A.fn[E];A.fn[E]=function(){var F=C.apply(this,arguments);A.livequery.run();return F}})},run:function(C){if(C!=undefined){if(A.inArray(C,A.livequery.queue)<0){A.livequery.queue.push(C)}}else{A.each(A.livequery.queries,function(D){if(A.inArray(D,A.livequery.queue)<0){A.livequery.queue.push(D)}})}if(A.livequery.timeout){clearTimeout(A.livequery.timeout)}A.livequery.timeout=setTimeout(A.livequery.checkQueue,20)},stop:function(C){if(C!=undefined){A.livequery.queries[C].stop()}else{A.each(A.livequery.queries,function(D){A.livequery.queries[D].stop()})}}});A.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");A(function(){A.livequery.play()});var B=A.prototype.init;A.prototype.init=function(C,E){var D=B.apply(this,arguments);if(C&&C.selector){D.context=C.context,D.selector=C.selector}if(typeof C=="string"){D.context=E||document,D.selector=C}return D};A.prototype.init.prototype=A.prototype})(jQuery);jQuery.fn.initConfirmer=function(E){if(!E){E=[]}E=jQuery.extend({initialText:"",confirmText:"default",timeout:3000,onconfirm:null,ontimeout:null,onactivate:null,classInitial:"",classActivated:"",debuggering:false},E);var D=null;function A(F){if(D){D.prepend("Confirmer debug: "+F+"<br/>")}}if(E.debuggering){this.after("<div id='ConfirmerDebugDiv'>Confirmer debugging area</div>");D=jQuery("#ConfirmerDebugDiv");D.css("border","1px dashed #000");A("debugging activated.")}function B(I,H){var G=this;G.target=I;G.opts=H;G.timerID=null;var F={initial:0,waiting:1};G.state=F.initial;if(G.opts.initialText==""){G.opts.initialText=$(G.target).text()}if(G.opts.confirmText=="default"){G.opts.confirmText="Confirm: "+G.opts.initialText}G.setClasses=function(J){if(J){if(G.opts.classActivated){G.target.addClass(G.opts.classActivated)}if(G.opts.classInitial){G.target.removeClass(G.opts.classInitial)}}else{if(G.opts.classInitial){G.target.addClass(G.opts.classInitial)}if(G.opts.classActivated){G.target.removeClass(G.opts.classActivated)}}};G.setClasses(false);G.doTimeout=function(){G.timerID=null;if(G.state!=F.waiting){return }G.setClasses(false);G.state=F.initial;A("Timeout triggered.");G.target.html(G.opts.initialText);if(G.opts.ontimeout){G.opts.ontimeout(G.target)}};G.target.click(function(){switch(G.state){case (F.waiting):if(null!==G.timerID){clearTimeout(G.timerID)}G.state=F.initial;G.setClasses(false);A("Confirmed");G.target.html(G.opts.initialText);if(G.opts.onconfirm){G.opts.onconfirm(G.target)}break;case (F.initial):G.setClasses(true);G.state=F.waiting;A("Waiting "+G.opts.timeout+"ms on confirmation...");G.target.html(G.opts.confirmText);G.timerID=setTimeout(function(){G.doTimeout()},G.opts.timeout);if(G.opts.onactivate){G.opts.onactivate(G.target)}break;default:break}return false})}var C=new B(this,E);return this};jQuery.fn.confirm=function(A){A=jQuery.extend({msg:"Are you sure?",stopAfter:"never",wrapper:"<span></span>",eventType:"click",dialogShow:"show",dialogSpeed:"fast",timeout:0,spinner:false},A);A.stopAfter=A.stopAfter.toLowerCase();if(!A.stopAfter in ["never","once","ok","cancel"]){A.stopAfter="never"}A.buttons=jQuery.extend({ok:"Yes",cancel:"No",wrapper:'<a href="#"></a>',separator:"/"},A.buttons);var B=A.eventType;return this.each(function(){var H=this;var D=jQuery(H);var J;var C=function(){var L=jQuery.data(H,"events");if(!L){return }H._handlers=new Array();for(var K in L[B]){H._handlers.push(L[B][K])}};var E=jQuery(A.buttons.wrapper).append(A.buttons.ok).click(function(){if(A.timeout!=0){clearTimeout(J)}D.unbind(B,F);D.show();G.remove();for(i in H._handlers){D.click(H._handlers[i])}D.click();if(A.stopAfter!="ok"&&A.stopAfter!="once"){D.unbind(B);D.one(B,F);if(A.spinner){setTimeout(function(){content.disableButton(D)},10)}}return false});var I=jQuery(A.buttons.wrapper).append(A.buttons.cancel).click(function(){if(A.timeout!=0){clearTimeout(J)}if(A.stopAfter!="cancel"&&A.stopAfter!="once"){D.one(B,F)}D.show();G.remove();return false});if(A.buttons.cls){E.addClass(A.buttons.cls);I.addClass(A.buttons.cls)}var G=jQuery(A.wrapper).append(A.msg).append(E).append(A.buttons.separator).append(I);var F=function(){jQuery(this).hide();if(A.dialogShow!="show"){G.hide()}G.insertBefore(this);G[A.dialogShow](A.dialogSpeed);if(A.timeout!=0){clearTimeout(J);J=setTimeout(function(){I.click();D.one(B,F)},A.timeout)}return false};C();D.unbind(B);D.one(B,F)})};var _jm;_jm=jQuery.fn.jmedia=function(A,C){$(".jm_noscript").remove();if(typeof (B)=="undefined"){var B=[]}return this.each(function(K){var N=jQuery(this);var F=jQuery.extend({elemType:this.nodeName,elemClass:"jm_replaced",forceObjectTag:false,mode:"replace",version:"6,0,0",fullScreen:false,errTxt:"",sifrPaddingTop:0,sifrPaddingBottom:0,sifrPaddingLeft:0,sifrPaddingRight:0,flashXI:false,flashXIsrc:"js/XI.swf"},A||{});var G=jQuery.extend({src:N.attr("href")||N.attr("src")||"#",width:320,height:280},C||{});if(G.src=="#"){return false}var Q=_jm.getPluginName(G.src);if(Q==false){return false}if(typeof (B[Q])=="undefined"&&_jm.uaHas("w3cdom")&&!_jm.uaHas("ieMac")){B[Q]=_jm.detectPluginVersion(Q,F.forceObjectTag)}if(_jm.checkVersion(F.version,B[Q])==true){if(Q=="flash"&&F.mode=="sifr"){G=_jm.getSifrContent(N,G,F)}else{if(F.mode=="replace"){N.hide()}}var O=$("<"+F.elemType+' class="'+F.elemClass+'"></'+F.elemType+">");if(F.fullScreen==true){$(O).width("100%");$(O).height("100%");$(O).css({"position":"absolute","left":0,"top":0});$("body").css({"overflow":"hidden","height":"100%","width":"100%"});$("html").css({"overflow":"hidden","height":"100%","width":"100%"});G.width="100%";G.height="100%"}var P=_jm.writeHtml(N,Q,F,G);if(Q=="flash"&&F.mode=="sifr"){var D=document.createElement("span");$(D).addClass("sifr-alternate");$(D).append(N.html());N.html("");if((typeof (P)).toString().toLowerCase()=="string"){N.html(P)}else{N.append(P)}N.append(D)}else{if(F.mode=="onclick"){$(this).click(function(){$(O).hide();$(".jm_closebtn").remove();var S=$("<span></span>");$(S).addClass("jm_closebtn");$(S).css({width:G.width});var R=$('<a href="#">close&nbsp;</a>');$(S).append($(R));$(R).click(function(){$(O).remove();return false});$(this).after($(O));$(O).show();if((typeof (P)).toString().toLowerCase()=="string"){$(O).html(P)}else{$(O).append(P)}$(O).prepend($(S));return false})}else{if((typeof (P)).toString().toLowerCase()=="string"){O.html(P)}else{O.append(P)}N.after(O).remove()}}return true}else{if(Q=="flash"&&F.flashXI==true&&(_jm.checkVersion("6,0,65",B[Q])==true)){G.src=F.flashXIsrc;G.width="215";G.height="138";var I=_jm.type=="axo"?"ActiveX":"PlugIn";var M=typeof F.flashXIcancelURL!="undefined"?"&xiUrlCancel="+F.flashXIcancelURL:"";var J=typeof F.flashXIfailedURL!="undefined"?"&xiUrlFailed="+F.flashXIfailedURL:"";if(_jm.uaHas("xml")&&_jm.uaHas("safari")){var L=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation"}else{var L=document.title=document.title.slice(0,47)+" - Flash Player Installation"}G.flashVars="MMredirectURL="+window.location+"&MMplayerType="+I+"&MMdoctitle="+L+M+J;var P=_jm.writeHtml(N,Q,F,G);var O=jQuery('<div id="flashXI"></div>');var H=jQuery('<div id="flashXIcon"></div>');if((typeof (P)).toString().toLowerCase()=="string"){O.html(P)}else{O.append(P)}$("body").css({height:"100%",overflow:"hidden"});$("html").css({height:"100%",overflow:"hidden"});$(H).css({position:"absolute",top:0,left:0,"z-index":1000,background:"white",width:"100%",height:"100%",filter:"alpha(opacity:75)",opacity:0.75});$(O).css({position:"absolute",left:"50%",top:"50%","margin-left":parseInt(G.width/2*(-1))+"px","margin-top":parseInt(G.height/2*(-1))+"px"});$(O).css({width:G.width+"px",height:G.height+"px"});$(H).append(O);$("body").prepend($(H))}else{if(F.mode=="onclick"){var E=false;$(this).click(function(){$(".jm_onfailure").remove();if(E==false){var R=$(F.errTxt.replace(/#link/,$(this).attr("href")));$(this).after($(R));if(_jm.uaHas("w3cdom")&&!_jm.uaHas("ieMac")){$(".jm_oldbrowsers").remove()}E=true}else{E=false}return false})}else{return false}}}})};_jm.checkVersion=function(A,E){if(typeof (E)=="undefined"||E=="not installed"){return false}else{if(E=="unknown"){return true}var D=E.split(",");var C=A.toString().replace(/\./,",").split(",");for(var B=0;B<3;B++){D[B]=parseInt(D[B]||0);C[B]=parseInt(C[B]||0);if(D[B]<C[B]){return false}if(D[B]>C[B]){return true}}return true}};_jm.detectPluginVersion=function(L,H){if(typeof (L)=="undefined"){return false}var A=false;var E=navigator.plugins;if(E&&E.length){if(L=="wmedia"&&H==false){A=_jm.detectGeckoAXO()}if(A==false){_jm.type="npapi";for(_i=0;_i<E.length;_i++){var B=E[_i];var K=_jm.plugins[L].description.length;for(_ii=0;_ii<K;_ii++){if(B.name.indexOf(_jm.plugins[L].description[_ii])!=-1){var D=B.name;var G=B.description;switch(L){case"flash":return G.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").replace(/(\.)/g,",");case"director":return G.split("version ")[1].replace(/(\.)/g,",");case"mp3":return D.replace(/([a-zA-Z]|\s|-)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").replace(/(\.)/g,",");case"quicktime":return D.replace(/([a-zA-Z]|\s|-)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").replace(/(\.)/g,",");case"real":return G.replace(/(\.)/g,",");case"wmedia":return"unknown";default:return"not installed"}}}}}}if(window.ActiveXObject||A==true){_jm.type="axo";for(_i=0;_i<_jm.plugins[L].progID.length;_i++){var C=_jm.plugins[L].progID[_i];try{if(A==true){_axo=new GeckoActiveXObject(C)}else{_axo=new ActiveXObject(C)}switch(L){case"flash":var J=0;if(C=="ShockwaveFlash.ShockwaveFlash.7"){J=axo.GetVariable("$version")}else{if("ShockwaveFlash.ShockwaveFlash.6"){J="6,0,21,0";_axo.AllowScriptAccess="always";J=_axo.GetVariable("$version")}else{if("ShockwaveFlash.ShockwaveFlash.3"){J=axo.GetVariable("$version");if(J==0){J="3,0,18,0"}}else{if("ShockwaveFlash.ShockwaveFlash"){J="2,0,0,11"}}}}return J.replace(/([a-zA-Z]|\s|-)+/,"").toString();case"director":return _axo.ShockwaveVersion("").replace(/r/,",").replace(/\./g,",");case"mp3":return _axo.QuickTimeVersion.toString(16).replace(/(\d)/g,"$1,").toString().replace(/\./,",");case"quicktime":return _axo.QuickTimeVersion.toString(16).replace(/(\d)/g,"$1,").toString().replace(/\./,",");case"real":return _axo.GetVersionInfo().toString().replace(/(\.)/g,",");case"wmedia":return _axo.versionInfo.toString().replace(/(\.)/g,",");case"acrobat":var I=C.split(".")[2];if(I=="1"){I=7}return I+",0";default:return"not installed"}}catch(F){}}}};_jm.detectGeckoAXO=function(){var A=navigator.plugins;if(A&&A.length){for(_x=0;_x<A.length;_x++){if(A[_x].name.indexOf("ActiveX")!=-1&&window.GeckoActiveXObject){return true}}}return false};_jm.getPluginName=function(C){var A=C.split(".");var B=A[(A.length-1)];switch(B){case"ram":return"real";case"rm":return"real";case"swf":return"flash";case"mov":return"quicktime";case"mp3":return"mp3";case"aac":return"quicktime";case"m4a":return"quicktime";case"m4p":return"quicktime";case"avi":return"quicktime";case"mpg":return"quicktime";case"dcr":return"director";case"wmv":return"wmedia";case"asx":return"wmedia"}return false};_jm.writeHtml=function(E,O,F,G){var K=O;if(K=="flash"&&typeof (G.flashVars)!="undefined"&&G.flashVars.indexOf(/&/)==0){G.flashVars=G.flashVars.substr(1,(G.flashVars.length-1))}if(_jm.type=="axo"){var A="";for(var M in G){if(typeof G[M]!="function"&&M!="height"&&M!="width"&&M!="src"&&(K!="flash"||(M!="align"&&M!="base"&&M!="swfliveconnect"))){A+='<param name="'+M+'" value="'+G[M]+'">'}}if(K=="flash"){A+='<param name="movie" value="'+G.src+'">'}else{if(K=="wmedia"){A+='<param name="filename" value="'+G.src+'">'}else{A+='<param name="src" value="'+G.src+'">'}}var C="";if(K=="flash"&&typeof (G.align)!="undefined"){C+=' align="'+G.align+'"'}if(K=="flash"&&typeof (G.base)!="undefined"){C+=' base="'+G.base+'"'}else{if(K=="wmedia"){C+=' type="'+_jm.plugins[K].mimeType[2]+'"'}}var N="";var B=window.location.protocol=="https:"?"https:":"http:";if(_jm.plugins[K].codeBase!=undefined){N=' codebase="'+B+"//"+_jm.plugins[K].codeBase+'"'}var H='<object classid="clsid:'+_jm.plugins[K].classID+'" '+C+' width="'+G.width+'" height="'+G.height+'"'+N+">"+A+"</object>";return H}else{if(_jm.type=="npapi"){if((F.forceObjectTag==true&&_jm.uaHas("gecko"))||_jm.uaHas("xml")){var J=$("<object></object>");var L=_jm.plugins[K].mimeType[1]?_jm.plugins[K].mimeType[1]:_jm.plugins[K].mimeType[0];$(J).attr({type:L,data:G.src,width:G.width,height:G.height});var A="";for(var M in G){if(typeof G[M]!="function"&&M!="height"&&M!="width"&&M!="src"){if(K!="real"){var B=$("<param>");$(B).attr({name:M,value:G[M]});$(J).append($(B))}else{$(J).attr(M,G[M])}}}if(K=="flash"){var B=$("<param>");$(B).attr({name:"movie",value:G.src});$(J).append($(B))}else{var B=$("<param>");$(B).attr({name:"src",value:G.src});$(J).append($(B))}return J}else{var I="";for(var M in G){if(typeof G[M]!="function"&&M!="src"){I+=M+'="'+G[M]+'" '}}var D='<embed type="'+_jm.plugins[K].mimeType[0]+'" src="'+G.src+'" pluginspage="'+_jm.plugins[K].pluginsPage+'" '+I+"></embed>";return D}}}};_jm.getSifrContent=function(F,D,C){$("body").addClass("sifr-hasflash");$(F).addClass("sifr-replaced");D.width=parseInt($(F).offsetWidth-C.sifrPaddingLeft-C.sifrPaddingRight);D.height=$(F).height()-C.sifrPaddingTop-C.sifrPaddingBottom;if(isNaN(D.width)){D.width=$(F).width()-C.sifrPaddingLeft-C.sifrPaddingRight}if(typeof (D.flashVars)=="undefined"){jQuery.extend(D,{flashVars:""})}if(!D.flashVars.match(/textcolor/)){D.flashVars+="&textcolor=#000000"}var G=$(F).children();if(G.length>0){var E="";var B="";var A=0;G.each(function(){if(this.nodeName.toLowerCase()=="a"&&this.href!="undefined"){if($(this).attr("target")){B+="&sifr_url_"+nLinkCount+"_target="+$(this).attr("target")}E+='<a href="asfunction:_root.launchURL,'+A+'">'+$(this).text()+"</a>";B+="&sifr_url_"+A+"="+escapeHex(this.href).replace(/&/g,"%26");A++}else{E+=$(this).text()}});D.flashVars+="&txt="+escapeHex(E).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+"&h="+D.height+"&w="+D.width+B}else{D.flashVars+="&txt="+escapeHex(F.text()).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize()+"&h="+D.height+"&w="+D.width}D.sifr="true";return D};_jm.uaHas=function(E){var D=navigator.userAgent.toLowerCase();switch(E){case"w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case"xml":var A=document.getElementsByTagName("meta");var C=A.length;for(var B=0;B<C;B++){if(/content-type/i.test(A[B].getAttribute("http-equiv"))&&/xml/i.test(A[B].getAttribute("content"))){return true}}return false;case"ieMac":return/msie/.test(D)&&!/opera/.test(D)&&/mac/.test(D);case"ieWin":return/msie/.test(D)&&!/opera/.test(D)&&/win/.test(D);case"gecko":return/gecko/.test(D)&&!/applewebkit/.test(D);case"opera":return/opera/.test(D);case"safari":return/applewebkit/.test(D);default:return false}};_jm.plugins={"flash":{classID:"D27CDB6E-AE6D-11CF-96B8-444553540000",progID:["ShockwaveFlash.ShockwaveFlash.9","ShockwaveFlash.ShockwaveFlash.8.5","ShockwaveFlash.ShockwaveFlash.8","ShockwaveFlash.ShockwaveFlash.7","ShockwaveFlash.ShockwaveFlash.6","ShockwaveFlash.ShockwaveFlash.5","ShockwaveFlash.ShockwaveFlash.4"],description:["Shockwave Flash"],mimeType:["application/x-shockwave-flash"],pluginsPage:"http://www.macromedia.com/go/getflashplayer",codeBase:"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"},"mp3":{classID:"02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",progID:["QuickTimeCheckObject.QuickTimeCheck.1","QuickTime.QuickTime"],description:["QuickTime"],mimeType:["audio/x-mpeg","audio/mpeg","audio/mp3","audio/x-mp3","audio/mpeg3","audio/x-mpeg3"],pluginsPage:"http://www.apple.com/quicktime/download/",codeBase:"www.apple.com/qtactivex/qtplugin.cab"},"quicktime":{classID:"02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",progID:["QuickTimeCheckObject.QuickTimeCheck.1","QuickTime.QuickTime"],description:["QuickTime"],mimeType:["video/quicktime"],pluginsPage:"http://www.apple.com/quicktime/download/",codeBase:"www.apple.com/qtactivex/qtplugin.cab"},"real":{classID:"CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA",progID:["RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","rmocx.RealPlayer G2 Control"],description:["RealOne Player","RealPlayer Version"],mimeType:["audio/x-pn-realaudio-plugin"],pluginsPage:"http://www.real.com/freeplayer/?rppr=rnwk"},"wmedia":{progID:["WMPlayer.OCX","MediaPlayer.MediaPlayer.1"],classID:"22D6f312-B0F6-11D0-94AB-0080C74C7E95",description:["Windows Media"],pluginsPage:"http://www.microsoft.com/windows/windowsmedia/",codeBase:"activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab",mimeType:["application/x-mplayer2","video/x-ms-asf","application/x-oleobject"]},"director":{classID:"166B1BCA-3F9C-11CF-8075-444553540000",progID:["SWCtl.SWCtl.11","SWCtl.SWCtl.10","SWCtl.SWCtl.9","SWCtl.SWCtl.8","SWCtl.SWCtl.7","SWCtl.SWCtl.6","SWCtl.SWCtl.5","SWCtl.SWCtl.4","SWCtl.SWCtl"],description:["Shockwave for Director"],pluginsPage:"http://www.macromedia.com/shockwave/download/",codeBase:"download.macromedia.com/pub/shockwave/cabs/director/sw.cab",mimeType:["application/x-director"]}};function escapeHex(A){if(_jm.uaHas("ieWin")||_jm.uaHas("ieMac")){return A.replace(new RegExp("%\d{0}","g"),"%25")}return A.replace(new RegExp("%(?!\d)","g"),"%25")}String.prototype.normalize=function(){return this.replace(/\s+/g," ")};_jm.cleanupSWFs=function(){if(_jm.uaHas("opera")||!document.all){return }var C=document.getElementsByTagName("OBJECT");for(var B=0;B<C.length;B++){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};var prepUnload=function(){var B=function(){};var C=function(){};if(typeof window.onunload=="function"){var A=window.onunload;window.onunload=function(){_jm.cleanupSWFs();A()}}else{window.onunload=_jm.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=prepUnload}var UFO={expressInstallCallback:function(){var B=document.getElementsByTagName("body")[0];var A=document.getElementById("flashXIcon");B.removeChild(A);B.style.setAttribute("overflow","auto");B.style.setAttribute("height","auto");document.getElementsByTagName("html")[0].style.setAttribute("overflow","auto");document.getElementsByTagName("html")[0].stylesetAttribute("height","auto")}};(function(A){A.fn.bgIframe=A.fn.bgiframe=function(C){if(A.browser.msie&&/6.0/.test(navigator.userAgent)){C=A.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},C||{});var D=function(E){return E&&E.constructor==Number?E+"px":E},B='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+C.src+'"style="display:block;position:absolute;z-index:-1;'+(C.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(C.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":D(C.top))+";left:"+(C.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":D(C.left))+";width:"+(C.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":D(C.width))+";height:"+(C.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":D(C.height))+';"/>';return this.each(function(){if(A("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(B),this.firstChild)}})}return this}})(jQuery);(function(A){A.ui=A.ui||{};A.extend(A.ui,{plugin:{add:function(C,D,F){var E=A.ui[C].prototype;for(var B in F){E.plugins[B]=E.plugins[B]||[];E.plugins[B].push([D,F[B]])}},call:function(B,C,E){var H=B.plugins[C];if(!H){return }var G=B.interaction?B.interaction.options:B.options;var F=B.interaction?B.interaction.element:B.element;for(var D=0;D<H.length;D++){if(G[H[D][0]]){H[D][1].apply(F,E)}}}}});A.fn.extend({mouseInteraction:function(B){return this.each(function(){new A.ui.mouseInteraction(this,B)})},removeMouseInteraction:function(B){return this.each(function(){if(A.data(this.element,"ui-mouse")){A.data(this.element,"ui-mouse").destroy()}})}});A.ui.mouseInteraction=function(D,C){var B=this;this.element=D;A.data(this.element,"ui-mouse",this);this.options=A.extend({},C);A(D).bind("mousedown.draggable",function(){return B.click.apply(B,arguments)});if(A.browser.msie){A(D).attr("unselectable","on")}};A.extend(A.ui.mouseInteraction.prototype,{destroy:function(){this.element.unbind("mousedown.draggable")},trigger:function(){return this.click.apply(this,arguments)},click:function(D){if(D.which!=1||A.inArray(D.target.nodeName.toLowerCase(),this.options.dragPrevention)!=-1||(this.options.condition&&!this.options.condition.apply(this.options.executor||this,[D]))){return true}var C=this;var B=function(){window.focus();C._MP={left:D.pageX,top:D.pageY};A(document).bind("mouseup.draggable",function(){return C.stop.apply(C,arguments)});A(document).bind("mousemove.draggable",function(){return C.drag.apply(C,arguments)})};if(this.options.delay){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(B,this.options.delay)}else{B()}return false},stop:function(B){var C=this.options;if(!this.initialized){return A(document).unbind("mouseup.draggable").unbind("mousemove.draggable")}if(this.options.stop){this.options.stop.call(this.options.executor||this,B)}A(document).unbind("mouseup.draggable").unbind("mousemove.draggable");this.initialized=false;return false},drag:function(B){var C=this.options;if(A.browser.msie&&!B.button){return this.stop.apply(this,[B])}if(!this.initialized&&(Math.abs(this._MP.left-B.pageX)>=C.distance||Math.abs(this._MP.top-B.pageY)>=C.distance)){if(this.options.start){this.options.start.call(this.options.executor||this,B)}this.initialized=true}else{if(!this.initialized){return false}}if(C.drag){C.drag.call(this.options.executor||this,B)}return false}})})(jQuery);(function(A){A.ui=A.ui||{};A.ui.accordion={};A.extend(A.ui.accordion,{defaults:{selectedClass:"selected",navigation:false,alwaysOpen:true,animated:"slide",event:"click",header:"h3",autoheight:true,easing:"bounceslide"},animations:{slide:function(B,D){B=A.extend({easing:"swing",duration:300},B,D);if(!B.toHide.size()){B.toShow.animate({height:"show"},B);return }var C=B.toHide.height(),E=B.toShow.height(),F=E/C;B.toShow.css({height:0,overflow:"hidden"}).show();B.toHide.filter(":hidden").each(B.complete).end().filter(":visible").animate({height:"hide"},{step:function(G){B.toShow.height((C-(G))*F)},duration:B.duration,easing:B.easing,complete:function(){if(!B.autoheight){B.toShow.css("height","auto")}B.complete()}})},bounceslide:function(B){this.slide(B,{easing:B.down?"bounceout":"swing",duration:B.down?1000:200})},easeslide:function(B){this.slide(B,{easing:"easeinout",duration:700})}}});A.fn.extend({accordion:function(E){if(!this.length){return this}E=A.extend({},A.ui.accordion.defaults,E);if(E.navigation){var H=this.find("a").filter(function(){return this.href==location.href});if(H.length){if(H.filter(E.header).length){E.active=H}else{E.active=H.parent().parent().prev();H.addClass("current")}}}var C=this.find(E.header),D=B(E.active),G=0;if(E.fillSpace){var K=this.parent().height();C.each(function(){K-=A(this).outerHeight()});var J=0;C.next().each(function(){J=Math.max(J,A(this).innerHeight()-A(this).height())}).height(K-J)}else{if(E.autoheight){var K=0;C.next().each(function(){K=Math.max(K,A(this).outerHeight())}).height(K)}}C.not(D||"").next().hide();D.parent().andSelf().addClass(E.selectedClass);function B(M){return M!=undefined?typeof M=="number"?C.filter(":eq("+M+")"):C.not(C.not(M)):M===false?A([]):C.filter(":eq(0)")}function F(M,P,Q,O,R){var N=function(S){G=S?0:--G;if(G){return }if(E.clearStyle){M.add(P).css({height:"",overflow:""})}A(this).trigger("change",Q)};G=P.size()==0?M.size():P.size();if(E.animated){if(!E.alwaysOpen&&O){A.ui.accordion.animations[E.animated]({toShow:jQuery([]),toHide:P,complete:N,down:R})}else{A.ui.accordion.animations[E.animated]({toShow:M,toHide:P,complete:N,down:R})}}else{if(!E.alwaysOpen&&O){M.toggle()}else{P.hide();M.show()}N(true)}}function I(Q){if(!Q.target&&!E.alwaysOpen){D.parent().andSelf().toggleClass(E.selectedClass);var O=D.next();var M=D=A([]);F.call(this,M,O);return false}var P=A(Q.target);if(P.parents(E.header).length){while(!P.is(E.header)){P=P.parent()}}var N=P[0]==D[0];if(G||(E.alwaysOpen&&N)){return false}if(!P.is(E.header)){return }D.parent().andSelf().toggleClass(E.selectedClass);if(!N){P.parent().andSelf().addClass(E.selectedClass)}var M=P.next(),O=D.next(),R=[P,D,M,O],S=C.index(D[0])>C.index(P[0]);D=N?A([]):P;F.call(this,M,O,R,N,S);return false}function L(N,M){if(arguments.length==1){return }I({target:B(M)[0]})}return this.bind(E.event||"",I).bind("activate",L)},activate:function(B){return this.trigger("activate",[B])},unaccordion:function(){return this.find("*").andSelf().unbind().end().end()}})})(jQuery);(function(A){A.extend(A.expr[":"],{draggable:"(' '+a.className+' ').indexOf(' ui-draggable ')"});A.fn.draggable=function(B){return this.each(function(){if(!A(this).is(".ui-draggable")){new A.ui.draggable(this,B)}})};A.ui.draggable=function(D,C){var B=this;this.element=A(D);A.data(D,"ui-draggable",this);this.element.addClass("ui-draggable");this.options=A.extend({},C);var E=this.options;A.extend(E,{helper:E.ghosting==true?"clone":(E.helper||"original"),handle:E.handle?(A(E.handle,D)[0]?A(E.handle,D):this.element):this.element,appendTo:E.appendTo||"parent"});A(E.handle).mouseInteraction({executor:this,delay:E.delay,distance:E.distance||0,dragPrevention:E.prevention?E.prevention.toLowerCase().split(","):["input","textarea","button","select","option"],start:this.start,stop:this.stop,drag:this.drag,condition:function(F){return !(F.target.className.indexOf("ui-resizable-handle")!=-1||this.disabled)}});if(E.helper=="original"&&(this.element.css("position")=="static"||this.element.css("position")=="")){this.element.css("position","relative")}};A.extend(A.ui.draggable.prototype,{plugins:{},ui:function(B){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,instance:this,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="drag"?C:"drag"+C,[B,this.ui()],this.options[C])},destroy:function(){this.element.removeClass("ui-draggable ui-draggable-disabled");this.handle.removeMouseInteraction()},enable:function(){this.element.removeClass("ui-draggable-disabled");this.disabled=false},disable:function(){this.element.addClass("ui-draggable-disabled");this.disabled=true},start:function(D){var E=this.options;if(A.ui.ddmanager){A.ui.ddmanager.current=this}this.helper=typeof E.helper=="function"?A(E.helper.apply(this.element[0],[D])):(E.helper=="clone"?this.element.clone().appendTo((E.appendTo=="parent"?this.element[0].parentNode:E.appendTo)):this.element);if(this.helper[0]!=this.element[0]){this.helper.css("position","absolute")}this.offsetParent=(function(F){while(F){if(F.style&&(/(absolute|relative|fixed)/).test(A.css(F,"position"))){return A(F)}F=F.parentNode?F.parentNode:null}return A("body")})(this.helper[0].parentNode);this.elementOffset=this.element.offset();this.offsetParentOffset=this.offsetParent.offset();var C={left:this.elementOffset.left-this.offsetParentOffset.left,top:this.elementOffset.top-this.offsetParentOffset.top};this._pageX=D.pageX;this._pageY=D.pageY;this.clickOffset={left:D.pageX-this.elementOffset.left,top:D.pageY-this.elementOffset.top};var B=this.helper.css("position")=="relative";this.originalPosition={left:(B?parseInt(this.helper.css("left"))||0:C.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)),top:(B?parseInt(this.helper.css("top"))||0:C.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop))};this.offset={left:D.pageX-this.originalPosition.left,top:D.pageY-this.originalPosition.top};this.propagate("start",D);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(A.ui.ddmanager&&!E.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,D)}if(E.cursorAt){if(E.cursorAt.top!=undefined||E.cursorAt.bottom!=undefined){this.offset.top-=this.clickOffset.top-(E.cursorAt.top!=undefined?E.cursorAt.top:(this.helperProportions.height-E.cursorAt.bottom));this.clickOffset.top=(E.cursorAt.top!=undefined?E.cursorAt.top:(this.helperProportions.height-E.cursorAt.bottom))}if(E.cursorAt.left!=undefined||E.cursorAt.right!=undefined){this.offset.left-=this.clickOffset.left-(E.cursorAt.left!=undefined?E.cursorAt.left:(this.helperProportions.width-E.cursorAt.right));this.clickOffset.left=(E.cursorAt.left!=undefined?E.cursorAt.left:(this.helperProportions.width-E.cursorAt.right))}}return false},clear:function(){if(A.ui.ddmanager){A.ui.ddmanager.current=null}this.helper=null},stop:function(B){if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,B)}this.propagate("stop",B);if(this.cancelHelperRemoval){return false}if(this.options.helper!="original"){this.helper.remove()}this.clear();return false},drag:function(B){this.position={top:B.pageY-this.offset.top,left:B.pageX-this.offset.left};this.positionAbs={left:B.pageX-this.clickOffset.left,top:B.pageY-this.clickOffset.top};this.propagate("drag",B);this.helper.css({left:this.position.left+"px",top:this.position.top+"px"});if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false}})})(jQuery);(function(A){A.ui=A.ui||{};A.fn.extend({dialog:function(C,D){var B=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof C=="string"){var E=A.data(this,"ui-dialog")||A.data(A(this).parents(".ui-dialog:first").find(".ui-dialog-content")[0],"ui-dialog");if(E[C]){E[C].apply(E,B)}}else{if(!A(this).is(".ui-dialog-content")){new A.ui.dialog(this,C)}}})}});A.ui.dialog=function(D,M){if(M.titleEl){M.title=A(M.titleEl+":first",D).text()||M.title}this.options=M=A.extend({},A.ui.dialog.defaults,M);this.element=D;var L=this;A.data(this.element,"ui-dialog",this);A(D).bind("setData.dialog",function(O,N,P){M[N]=P}).bind("getData.dialog",function(O,N){return M[N]});var E=A(D).addClass("ui-dialog-content");if(!E.parent().length){E.appendTo("body")}E.wrap(document.createElement("div")).wrap(document.createElement("div")).show();var H=E.parent().addClass("ui-dialog-container").css({position:"relative"});var K=this.uiDialog=H.parent().hide().addClass("ui-dialog").css({position:"absolute",width:M.width,height:M.height});var B=E.attr("className").split(" ");A.each(B,function(N,O){if(O!="ui-dialog-content"){K.addClass(O)}});if(M.resizable&&A.fn.resizable){K.append('<div class="ui-resizable-n ui-resizable-handle"></div>').append('<div class="ui-resizable-s ui-resizable-handle"></div>').append('<div class="ui-resizable-e ui-resizable-handle"></div>').append('<div class="ui-resizable-w ui-resizable-handle"></div>').append('<div class="ui-resizable-ne ui-resizable-handle"></div>').append('<div class="ui-resizable-se ui-resizable-handle"></div>').append('<div class="ui-resizable-sw ui-resizable-handle"></div>').append('<div class="ui-resizable-nw ui-resizable-handle"></div>');K.resizable({maxWidth:M.maxWidth,maxHeight:M.maxHeight,minWidth:M.minWidth,minHeight:M.minHeight,stop:A.ui.dialog.overlay.resize})}H.prepend('<div class="ui-dialog-titlebar"></div>');var C=A(".ui-dialog-titlebar",H);var J=(M.title)?M.title:(E.attr("title"))?E.attr("title"):"";C.append('<span class="ui-dialog-title">'+J+"</span>");C.append('<a href="#" class="ui-dialog-titlebar-close"><span style="display: none;">X</span></a>');this.uiDialogTitlebarClose=A(".ui-dialog-titlebar-close",C).hover(function(){A(this).addClass("ui-dialog-titlebar-close-hover")},function(){A(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(N){N.stopPropagation()}).click(function(){L.close();return false}).keydown(function(N){var O=27;N.keyCode&&N.keyCode==O&&L.close()});if(A(D).find(".ui-dialog-buttonpane").length==0){var F=0;A.each(M.buttons,function(){F=1;return false});if(F==1){var I=new Image();I.src="/i/spinner.gif";if(E.find("form").size()){E.find("form").append('<div class="ui-dialog-buttonpane"></div>');var G=A(".ui-dialog-buttonpane",E)}else{E.append('<div class="ui-dialog-buttonpane fix-bottom"></div>');var G=A(".ui-dialog-buttonpane",E)}A.each(M.buttons,function(N,P){var O=A(document.createElement("button")).text(N).click(P).addClass("lg").filter(function(){return A(this).text()!="Cancel"}).attr("type","submit").end();if(A.browser.msie&&O.attr("type")=="submit"){O.click(function(){A(this).parents("form:first").trigger("submit")})}G.append(O)})}else{E.css({"height":M.height})}}if(M.draggable&&A.fn.draggable){K.draggable({handle:".ui-dialog-titlebar",start:function(){L.activate()},stop:A.ui.dialog.overlay.resize})}K.mousedown(function(){L.activate()});C.click(function(){L.activate()});M.bgiframe&&A.fn.bgiframe&&K.bgiframe();this.open=function(){this.overlay=M.modal?new A.ui.dialog.overlay(L):null;K.appendTo("body");var P=A(window),S=A(document),R=S.scrollTop(),Q=S.scrollLeft();if(M.position.constructor==Array){R+=M.position[1];Q+=M.position[0]}else{switch(M.position){case"center":R+=(P.height()/2)-(K.height()/2);Q+=(P.width()/2)-(K.width()/2);break;case"top":R+=0;Q+=(P.width()/2)-(K.width()/2);break;case"right":R+=(P.height()/2)-(K.height()/2);Q+=(P.width())-(K.width());break;case"bottom":R+=(P.height())-(K.height());Q+=(P.width()/2)-(K.width()/2);break;case"left":R+=(P.height()/2)-(K.height()/2);Q+=0;break;default:R+=(P.height()/2)-(K.height()/2);Q+=(P.width()/2)-(K.width()/2)}}R=R<S.scrollTop()?S.scrollTop():R;K.css({top:R,left:Q});K.show();L.moveToTop();L.activate();var N=null;var O={options:M};this.uiDialogTitlebarClose.focus();A(this.element).triggerHandler("dialogopen",[N,O],M.open)};this.activate=function(){!M.modal&&this.moveToTop()};this.moveToTop=function(){var N=M.zIndex;A(".ui-dialog:visible").each(function(){N=Math.max(N,parseInt(A(this).css("z-index"),10)||M.zIndex)});this.overlay&&this.overlay.$el.css("z-index",++N);K.css("z-index",++N)};this.close=function(){this.overlay&&this.overlay.destroy();K.hide();var O=null;var N={options:M};A(this.element).triggerHandler("dialogclose",[O,N],M.close);A.ui.dialog.overlay.resize()};this.destroy=function(){K.hide();A(D).unbind(".dialog").removeClass("ui-dialog-content").hide().appendTo("body");K.remove();A.removeData(this.element,"ui-dialog")};if(M.autoOpen){this.open()}};A.extend(A.ui.dialog,{defaults:{autoOpen:true,bgiframe:true,buttons:[],draggable:true,minHeight:100,minWidth:150,modal:true,overlay:{backgroundColor:"#333333",opacity:0.5},position:"center",resizable:false,width:300,zIndex:1000},overlay:function(B){this.$el=A.ui.dialog.overlay.create(B)}});A.extend(A.ui.dialog.overlay,{instances:[],events:A.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(B){return B+".ui-dialog-overlay"}).join(" "),create:function(C){if(this.instances.length===0){A("a, :input").bind(this.events,function(){var E=false;var G=A(this).parents(".ui-dialog");if(G.length){var D=A(".ui-dialog-overlay");if(D.length){var F=parseInt(D.css("z-index"),10);D.each(function(){F=Math.max(F,parseInt(A(this).css("z-index"),10))});E=parseInt(G.css("z-index"),10)>F}else{E=true}}return E});A(document).bind("keydown.ui-dialog-overlay",function(D){var E=27;D.keyCode&&D.keyCode==E&&C.close()});A(window).bind("resize.ui-dialog-overlay",A.ui.dialog.overlay.resize)}var B=A("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(A.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},C.options.overlay));C.options.bgiframe&&A.fn.bgiframe&&B.bgiframe();this.instances.push(B);return B},destroy:function(B){this.instances.splice(A.inArray(this.instances,B),1);if(this.instances.length===0){A("a, :input").add([document,window]).unbind(".ui-dialog-overlay")}B.remove()},height:function(){if(A.browser.msie&&A.browser.version<7){var C=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var B=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(C<B){return A(window).height()+"px"}else{return C+"px"}}else{return A(document).height()+"px"}},width:function(){if(A.browser.msie&&A.browser.version<7){var B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var C=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(B<C){return A(window).width()+"px"}else{return B+"px"}}else{return A(document).width()+"px"}},resize:function(){var B=A([]);A.each(A.ui.dialog.overlay.instances,function(){B=B.add(this)});B.css({width:0,height:0}).css({width:A.ui.dialog.overlay.width(),height:A.ui.dialog.overlay.height()})}});A.extend(A.ui.dialog.overlay.prototype,{destroy:function(){A.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){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.toUTCString()}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(B){B.fn.jcarousel=function(D){return this.each(function(){new A(this,D)})};var C={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null};B.jcarousel=function(G,E){this.options=B.extend({},C,E||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?"left":"top";var K="",I=G.className.split(" ");for(var F=0;F<I.length;F++){if(I[F].indexOf("jcarousel-skin")!=-1){B(G).removeClass(I[F]);var K=I[F];break}}if(G.nodeName=="UL"||G.nodeName=="OL"){this.list=B(G);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container")){this.container=this.container.wrap("<div></div>")}this.container=this.container.parent()}else{if(!this.container.hasClass("jcarousel-container")){this.container=this.list.wrap("<div></div>").parent()}}}else{this.container=B(G);this.list=B(G).find(">ul,>ol,div>ul,div>ol")}if(K!=""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1){this.container.wrap('<div class=" '+K+'"></div>')}this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip")){this.clip=this.list.wrap("<div></div>").parent()}this.buttonPrev=B(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null){this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev()}this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=B(".jcarousel-next",this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null){this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev()}this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip"));this.list.addClass(this.className("jcarousel-list"));this.container.addClass(this.className("jcarousel-container"));var H=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var J=this.list.children("li");var L=this;if(J.size()>0){var D=0,F=this.options.offset;J.each(function(){L.format(this,F++);D+=L.dimension(this,H)});this.list.css(this.wh,D+"px");if(!E||E.size===undefined){this.options.size=J.size()}}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){L.next()};this.funcPrev=function(){L.prev()};B(window).bind("resize",function(){L.reload()});if(this.options.initCallback!=null){this.options.initCallback(this,"init")}if(B.browser.safari){this.buttons(false,false);B(window).bind("load",function(){L.setup()})}else{this.setup()}};var A=B.jcarousel;A.fn=A.prototype={jcarousel:"0.2.3"};A.fn.extend=A.extend=B.extend;A.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked){return }this.list.css(this.lt,this.pos(this.options.offset)+"px");var D=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(D,false)},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");if(this.options.initCallback!=null){this.options.initCallback(this,"reset")}this.setup()},reload:function(){if(this.tail!=null&&this.inTail){this.list.css(this.lt,A.intval(this.list.css(this.lt))+this.tail)}this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null){this.options.reloadCallback(this)}if(this.options.visible!=null){var F=this;var G=Math.ceil(this.clipping()/this.options.visible),E=0,D=0;B("li",this.list).each(function(H){E+=F.dimension(this,G);if(H+1<F.first){D=E}});this.list.css(this.wh,E+"px");this.list.css(this.lt,-D+"px")}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(D){if(D!=undefined){this.options.size=D;if(!this.locked){this.buttons()}}return this.options.size},has:function(E,F){if(F==undefined||!F){F=E}if(this.options.size!==null&&F>this.options.size){F=this.options.size}for(var D=E;D<=F;D++){var G=this.get(D);if(!G.length||G.hasClass("jcarousel-item-placeholder")){return false}}return true},get:function(D){return B(".jcarousel-item-"+D,this.list)},add:function(G,L){var H=this.get(G),E=0,K=0;if(H.length==0){var J,H=this.create(G),F=A.intval(G);while(J=this.get(--F)){if(F<=0||J.length){F<=0?this.list.prepend(H):J.after(H);break}}}else{E=this.dimension(H)}H.removeClass(this.className("jcarousel-item-placeholder"));typeof L=="string"?H.html(L):H.empty().append(L);var I=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var D=this.dimension(H,I)-E;if(G>0&&G<this.first){this.list.css(this.lt,A.intval(this.list.css(this.lt))-D+"px")}this.list.css(this.wh,A.intval(this.list.css(this.wh))+D+"px");return H},remove:function(D){var E=this.get(D);if(!E.length||(D>=this.first&&D<=this.last)){return }var F=this.dimension(E);if(D<this.first){this.list.css(this.lt,A.intval(this.list.css(this.lt))+F+"px")}E.remove();this.list.css(this.wh,A.intval(this.list.css(this.wh))-F+"px")},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail){this.scrollTail(false)}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll)}},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail){this.scrollTail(true)}else{this.scroll(((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll)}},scrollTail:function(D){if(this.locked||this.animating||!this.tail){return }var E=A.intval(this.list.css(this.lt));!D?E-=this.tail:E+=this.tail;this.inTail=!D;this.prevFirst=this.first;this.prevLast=this.last;this.animate(E)},scroll:function(E,D){if(this.locked||this.animating){return }this.animate(this.pos(E),D)},pos:function(Q){if(this.locked||this.animating){return }if(this.options.wrap!="circular"){Q=Q<1?1:(this.options.size&&Q>this.options.size?this.options.size:Q)}var N=this.first>Q;var E=A.intval(this.list.css(this.lt));var R=this.options.wrap!="circular"&&this.first<=1?1:this.first;var U=N?this.get(R):this.get(this.last);var P=N?R:R-1;var S=null,O=0,L=false,T=0;while(N?--P>=Q:++P<Q){S=this.get(P);L=!S.length;if(S.length==0){S=this.create(P).addClass(this.className("jcarousel-item-placeholder"));U[N?"before":"after"](S)}U=S;T=this.dimension(S);if(L){O+=T}if(this.first!=null&&(this.options.wrap=="circular"||(P>=1&&(this.options.size==null||P<=this.options.size)))){E=N?E+T:E-T}}var I=this.clipping();var K=[];var D=0,P=Q,J=0;var U=this.get(Q-1);while(++D){S=this.get(P);L=!S.length;if(S.length==0){S=this.create(P).addClass(this.className("jcarousel-item-placeholder"));U.length==0?this.list.prepend(S):U[N?"before":"after"](S)}U=S;var T=this.dimension(S);if(T==0){alert("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");return 0}if(this.options.wrap!="circular"&&this.options.size!==null&&P>this.options.size){K.push(S)}else{if(L){O+=T}}J+=T;if(J>=I){break}P++}for(var H=0;H<K.length;H++){K[H].remove()}if(O>0){this.list.css(this.wh,this.dimension(this.list)+O+"px");if(N){E-=O;this.list.css(this.lt,A.intval(this.list.css(this.lt))-O+"px")}}var G=Q+D-1;if(this.options.wrap!="circular"&&this.options.size&&G>this.options.size){G=this.options.size}if(P>G){D=0,P=G,J=0;while(++D){var S=this.get(P--);if(!S.length){break}J+=this.dimension(S);if(J>=I){break}}}var F=G-D+1;if(this.options.wrap!="circular"&&F<1){F=1}if(this.inTail&&N){E+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&&G==this.options.size&&(G-D+1)>=1){var M=A.margin(this.get(G),!this.options.vertical?"marginRight":"marginBottom");if((J-M)>I){this.tail=J-I-M}}while(Q-->F){E+=this.dimension(this.get(Q))}this.prevFirst=this.first;this.prevLast=this.last;this.first=F;this.last=G;return E},animate:function(G,D){if(this.locked||this.animating){return }this.animating=true;var E=this;var F=function(){E.animating=false;if(G==0){E.list.css(E.lt,0)}if(E.options.wrap=="both"||E.options.wrap=="last"||E.options.size==null||E.last<E.options.size){E.startAuto()}E.buttons();E.notify("onAfterAnimation")};this.notify("onBeforeAnimation");if(!this.options.animation||D==false){this.list.css(this.lt,G+"px");F()}else{var H=!this.options.vertical?{"left":G}:{"top":G};this.list.animate(H,this.options.animation,this.options.easing,F)}},startAuto:function(E){if(E!=undefined){this.options.auto=E}if(this.options.auto==0){return this.stopAuto()}if(this.timer!=null){return }var D=this;this.timer=setTimeout(function(){D.next()},this.options.auto*1000)},stopAuto:function(){if(this.timer==null){return }clearTimeout(this.timer);this.timer=null},buttons:function(F,E){if(F==undefined||F==null){var F=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="first")||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!=null&&this.last>=this.options.size){F=this.tail!=null&&!this.inTail}}if(E==undefined||E==null){var E=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!="last")||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!=null&&this.first==1){E=this.tail!=null&&this.inTail}}var D=this;this.buttonNext[F?"bind":"unbind"](this.options.buttonNextEvent,this.funcNext)[F?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",F?false:true);this.buttonPrev[E?"bind":"unbind"](this.options.buttonPrevEvent,this.funcPrev)[E?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",E?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=F)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){D.options.buttonNextCallback(D,this,F)});this.buttonNext[0].jcarouselstate=F}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=E)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){D.options.buttonPrevCallback(D,this,E)});this.buttonPrev[0].jcarouselstate=E}if(B.browser.msie&&B.browser.version<7){B(this.buttonPrev).hover(function(){if(!B(this).hasClass("jcarousel-prev-disabled")){B(this).addClass("jcarousel-prev-hover")}},function(){B(this).removeClass("jcarousel-prev-hover")});B(this.buttonNext).hover(function(){if(!B(this).hasClass("jcarousel-next-disabled")){B(this).addClass("jcarousel-next-hover")}},function(){B(this).removeClass("jcarousel-next-hover")})}},notify:function(D){var E=this.prevFirst==null?"init":(this.prevFirst<this.first?"next":"prev");this.callback("itemLoadCallback",D,E);if(this.prevFirst!=this.first){this.callback("itemFirstInCallback",D,E,this.first);this.callback("itemFirstOutCallback",D,E,this.prevFirst)}if(this.prevLast!=this.last){this.callback("itemLastInCallback",D,E,this.last);this.callback("itemLastOutCallback",D,E,this.prevLast)}this.callback("itemVisibleInCallback",D,E,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",D,E,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(H,K,D,I,G,F,E){if(this.options[H]==undefined||(typeof this.options[H]!="object"&&K!="onAfterAnimation")){return }var L=typeof this.options[H]=="object"?this.options[H][K]:this.options[H];if(!B.isFunction(L)){return }var M=this;if(I===undefined){L(M,D,K)}else{if(G===undefined){this.get(I).each(function(){L(M,this,I,D,K)})}else{for(var J=I;J<=G;J++){if(!(J>=F&&J<=E)){this.get(J).each(function(){L(M,this,J,D,K)})}}}}},create:function(D){return this.format("<li></li>",D)},format:function(F,E){var D=B(F).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+E));D.attr("jcarouselindex",E);return D},className:function(D){return D+" "+D+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(G,H){var F=G.jquery!=undefined?G[0]:G;var E=!this.options.vertical?F.offsetWidth+A.margin(F,"marginLeft")+A.margin(F,"marginRight"):F.offsetHeight+A.margin(F,"marginTop")+A.margin(F,"marginBottom");if(H==undefined||E==H){return E}var D=!this.options.vertical?H-A.margin(F,"marginLeft")-A.margin(F,"marginRight"):H-A.margin(F,"marginTop")-A.margin(F,"marginBottom");B(F).css(this.wh,D+"px");return this.dimension(F)},clipping:function(){return !this.options.vertical?this.clip[0].offsetWidth-A.intval(this.clip.css("borderLeftWidth"))-A.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-A.intval(this.clip.css("borderTopWidth"))-A.intval(this.clip.css("borderBottomWidth"))},index:function(D,E){if(E==undefined){E=this.options.size}return Math.round((((D-1)/E)-Math.floor((D-1)/E))*E)+1}});A.extend({defaults:function(D){B.extend(C,D)},margin:function(H,G){if(!H){return 0}var F=H.jquery!=undefined?H[0]:H;if(G=="marginRight"&&B.browser.safari){var E={"display":"block","float":"none","width":"auto"},D,I;B.swap(F,E,function(){D=F.offsetWidth});E["marginRight"]=0;B.swap(F,E,function(){I=F.offsetWidth});return I-D}return A.intval(B.css(F,G))},intval:function(D){D=parseInt(D);return isNaN(D)?0:D}})})(jQuery);var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function LZ(A){return(A<0||A>9?"":"0")+A}function isDate(C,B){var A=getDateFromFormat(C,B);if(A==0){return false}return true}function compareDates(E,F,C,D){var B=getDateFromFormat(E,F);var A=getDateFromFormat(C,D);if(B==0||A==0){return -1}else{if(B>A){return 1}}return 0}function formatDate(f,a){a=a+"";var J="";var T=0;var e="";var D="";var I=f.getYear()+"";var F=f.getMonth()+1;var b=f.getDate();var N=f.getDay();var L=f.getHours();var V=f.getMinutes();var P=f.getSeconds();var R,S,B,Q,g,C,Z,Y,W,O,l,L,j,G,A,X;var U=new Object();if(I.length<4){I=""+(I-0+1900)}U["y"]=""+I;U["yyyy"]=I;U["yy"]=I.substring(2,4);U["M"]=F;U["MM"]=LZ(F);U["MMM"]=MONTH_NAMES[F-1];U["NNN"]=MONTH_NAMES[F+11];U["d"]=b;U["dd"]=LZ(b);U["E"]=DAY_NAMES[N+7];U["EE"]=DAY_NAMES[N];U["H"]=L;U["HH"]=LZ(L);if(L==0){U["h"]=12}else{if(L>12){U["h"]=L-12}else{U["h"]=L}}U["hh"]=LZ(U["h"]);if(L>11){U["K"]=L-12}else{U["K"]=L}U["k"]=L+1;U["KK"]=LZ(U["K"]);U["kk"]=LZ(U["k"]);if(L>11){U["a"]="PM"}else{U["a"]="AM"}U["m"]=V;U["mm"]=LZ(V);U["s"]=P;U["ss"]=LZ(P);while(T<a.length){e=a.charAt(T);D="";while((a.charAt(T)==e)&&(T<a.length)){D+=a.charAt(T++)}if(U[D]!=null){J=J+U[D]}else{J=J+D}}return J}function _isInteger(C){var B="1234567890";for(var A=0;A<C.length;A++){if(B.indexOf(C.charAt(A))==-1){return false}}return true}function _getInt(F,D,E,C){for(var A=C;A>=E;A--){var B=F.substring(D,D+A);if(B.length<E){return null}if(_isInteger(B)){return B}}return null}function getDateFromFormat(U,N){U=U+"";N=N+"";var T=0;var J=0;var P="";var E="";var S="";var G,F;var B=new Date();var H=B.getYear();var R=B.getMonth()+1;var Q=1;var C=B.getHours();var O=B.getMinutes();var L=B.getSeconds();var I="";while(J<N.length){P=N.charAt(J);E="";while((N.charAt(J)==P)&&(J<N.length)){E+=N.charAt(J++)}if(E=="yyyy"||E=="yy"||E=="y"){if(E=="yyyy"){G=4;F=4}if(E=="yy"){G=2;F=2}if(E=="y"){G=2;F=4}H=_getInt(U,T,G,F);if(H==null){return 0}T+=H.length;if(H.length==2){if(H>70){H=1900+(H-0)}else{H=2000+(H-0)}}}else{if(E=="MMM"||E=="NNN"){R=0;for(var M=0;M<MONTH_NAMES.length;M++){var D=MONTH_NAMES[M];if(U.substring(T,T+D.length).toLowerCase()==D.toLowerCase()){if(E=="MMM"||(E=="NNN"&&M>11)){R=M+1;if(R>12){R-=12}T+=D.length;break}}}if((R<1)||(R>12)){return 0}}else{if(E=="EE"||E=="E"){for(var M=0;M<DAY_NAMES.length;M++){var K=DAY_NAMES[M];if(U.substring(T,T+K.length).toLowerCase()==K.toLowerCase()){T+=K.length;break}}}else{if(E=="MM"||E=="M"){R=_getInt(U,T,E.length,2);if(R==null||(R<1)||(R>12)){return 0}T+=R.length}else{if(E=="dd"||E=="d"){Q=_getInt(U,T,E.length,2);if(Q==null||(Q<1)||(Q>31)){return 0}T+=Q.length}else{if(E=="hh"||E=="h"){C=_getInt(U,T,E.length,2);if(C==null||(C<1)||(C>12)){return 0}T+=C.length}else{if(E=="HH"||E=="H"){C=_getInt(U,T,E.length,2);if(C==null||(C<0)||(C>23)){return 0}T+=C.length}else{if(E=="KK"||E=="K"){C=_getInt(U,T,E.length,2);if(C==null||(C<0)||(C>11)){return 0}T+=C.length}else{if(E=="kk"||E=="k"){C=_getInt(U,T,E.length,2);if(C==null||(C<1)||(C>24)){return 0}T+=C.length;C--}else{if(E=="mm"||E=="m"){O=_getInt(U,T,E.length,2);if(O==null||(O<0)||(O>59)){return 0}T+=O.length}else{if(E=="ss"||E=="s"){L=_getInt(U,T,E.length,2);if(L==null||(L<0)||(L>59)){return 0}T+=L.length}else{if(E=="a"){if(U.substring(T,T+2).toLowerCase()=="am"){I="AM"}else{if(U.substring(T,T+2).toLowerCase()=="pm"){I="PM"}else{return 0}}T+=2}else{if(U.substring(T,T+E.length)!=E){return 0}else{T+=E.length}}}}}}}}}}}}}}if(T!=U.length){return 0}if(R==2){if(((H%4==0)&&(H%100!=0))||(H%400==0)){if(Q>29){return 0}}else{if(Q>28){return 0}}}if((R==4)||(R==6)||(R==9)||(R==11)){if(Q>30){return 0}}if(C<12&&I=="PM"){C=C-0+12}else{if(C>11&&I=="AM"){C-=12}}var A=new Date(H,R-1,Q,C,O,L);return A.getTime()}function parseDate(G){var E=(arguments.length==2)?arguments[1]:false;generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d");monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d");dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");var B=new Array("generalFormats",E?"dateFirst":"monthFirst",E?"monthFirst":"dateFirst");var F=null;for(var D=0;D<B.length;D++){var A=window[B[D]];for(var C=0;C<A.length;C++){F=getDateFromFormat(G,A[C]);if(F!=0){return new Date(F)}}}return null}function PopupWindow_getXYPosition(A){var B;if(this.type=="WINDOW"){B=getAnchorWindowPosition(A)}else{B=getAnchorPosition(A)}this.x=B.x;this.y=B.y}function PopupWindow_setSize(B,A){this.width=B;this.height=A}function PopupWindow_populate(A){this.contents=A;this.populated=false}function PopupWindow_setUrl(A){this.url=A}function PopupWindow_setWindowProperties(A){this.windowProperties=A}function PopupWindow_refresh(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).innerHTML=this.contents}else{if(this.use_css){document.all[this.divName].innerHTML=this.contents}else{if(this.use_layers){var A=document.layers[this.divName];A.document.open();A.document.writeln(this.contents);A.document.close()}}}}else{if(this.popupWindow!=null&&!this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close()}this.popupWindow.focus()}}}function PopupWindow_showPopup(A){this.divName=null;if(this.divName==null){this.divName="_calendarPopupAutoDiv";var D=document.createElement("DIV");D.setAttribute("id",this.divName);D.style.position="absolute";D.style.backgroundColor="white";D.style.display="none";D.style.zIndex=1000000;document.body.appendChild(D)}var C=getAbsolutePosition(CP_targetInput);this.x=C.x;this.y=C.y+CP_targetInput.offsetHeight;D.style.display="block";if(!this.populated&&(this.contents!="")){this.populated=true;this.refresh()}if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.left=this.x+"px";document.getElementById(this.divName).style.top=this.y+"px";document.getElementById(this.divName).style.visibility="visible"}else{if(this.use_css){document.all[this.divName].style.left=this.x;document.all[this.divName].style.top=this.y;document.all[this.divName].style.visibility="visible"}else{if(this.use_layers){document.layers[this.divName].left=this.x;document.layers[this.divName].top=this.y;document.layers[this.divName].visibility="visible"}}}}else{if(this.popupWindow==null||this.popupWindow.closed){if(this.x<0){this.x=0}if(this.y<0){this.y=0}if(screen&&screen.availHeight){if((this.y+this.height)>screen.availHeight){this.y=screen.availHeight-this.height}}if(screen&&screen.availWidth){if((this.x+this.width)>screen.availWidth){this.x=screen.availWidth-this.width}}var B=window.opera||(document.layers&&!navigator.mimeTypes["*"])||navigator.vendor=="KDE"||(document.childNodes&&!document.all&&!navigator.taintEnabled);this.popupWindow=window.open(B?"":"about:blank","window_"+A,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"")}this.refresh()}}function PopupWindow_hidePopup(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.visibility="hidden"}else{if(this.use_css){document.all[this.divName].style.visibility="hidden"}else{if(this.use_layers){document.layers[this.divName].visibility="hidden"}}}}else{if(this.popupWindow&&!this.popupWindow.closed){this.popupWindow.close();this.popupWindow=null}}}function PopupWindow_isClicked(C){if(this.divName!=null){if(this.use_layers){var D=C.pageX;var B=C.pageY;var A=document.layers[this.divName];if((D>A.left)&&(D<A.left+A.clip.width)&&(B>A.top)&&(B<A.top+A.clip.height)){return true}else{return false}}else{if(document.all){var A=window.event.srcElement;while(A.parentElement!=null){if(A.id==this.divName){return true}A=A.parentElement}return false}else{if(this.use_gebi&&C){var A=C.originalTarget;while(A.parentNode!=null){if(A.id==this.divName){return true}A=A.parentNode}return false}}}return false}return false}function PopupWindow_hideIfNotClicked(A){if(this.autoHideEnabled&&!this.isClicked(A)){this.hidePopup()}}function PopupWindow_autoHide(){this.autoHideEnabled=true}function PopupWindow_hidePopupWindows(C){for(var A=0;A<popupWindowObjects.length;A++){if(popupWindowObjects[A]!=null){var B=popupWindowObjects[A];B.hideIfNotClicked(C)}}}function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP)}window.popupWindowOldEventListener=document.onmouseup;if(window.popupWindowOldEventListener!=null){document.onmouseup=new Function("window.popupWindowOldEventListener();PopupWindow_hidePopupWindows();")}else{document.onmouseup=PopupWindow_hidePopupWindows}}function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex=0}if(!window.popupWindowObjects){window.popupWindowObjects=new Array()}if(!window.listenerAttached){window.listenerAttached=true;PopupWindow_attachListener()}this.index=popupWindowIndex++;popupWindowObjects[this.index]=this;this.divName=null;this.popupWindow=null;this.width=0;this.height=0;this.populated=false;this.visible=false;this.autoHideEnabled=false;this.contents="";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName=arguments[0]}else{this.type="WINDOW"}this.use_gebi=false;this.use_css=false;this.use_layers=false;if(document.getElementById){this.use_gebi=true}else{if(document.all){this.use_css=true}else{if(document.layers){this.use_layers=true}else{this.type="WINDOW"}}}this.offsetX=0;this.offsetY=0;this.getXYPosition=PopupWindow_getXYPosition;this.populate=PopupWindow_populate;this.setUrl=PopupWindow_setUrl;this.setWindowProperties=PopupWindow_setWindowProperties;this.refresh=PopupWindow_refresh;this.showPopup=PopupWindow_showPopup;this.hidePopup=PopupWindow_hidePopup;this.setSize=PopupWindow_setSize;this.isClicked=PopupWindow_isClicked;this.autoHide=PopupWindow_autoHide;this.hideIfNotClicked=PopupWindow_hideIfNotClicked}function CalendarPopup(){var A;if(arguments.length>0){A=new PopupWindow(arguments[0])}else{A=new PopupWindow();A.setSize(150,175)}A.offsetX=-152;A.offsetY=25;A.autoHide();A.monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");A.monthAbbreviations=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");A.dayHeaders=new Array("S","M","T","W","T","F","S");A.returnFunction="CP_tmpReturnFunction";A.returnMonthFunction="CP_tmpReturnMonthFunction";A.returnQuarterFunction="CP_tmpReturnQuarterFunction";A.returnYearFunction="CP_tmpReturnYearFunction";A.weekStartDay=0;A.isShowYearNavigation=false;A.displayType="date";A.disabledWeekDays=new Object();A.disabledDatesExpression="";A.yearSelectStartOffset=2;A.currentDate=null;A.todayText="Today";A.cssPrefix="";A.isShowNavigationDropdowns=false;A.isShowYearNavigationInput=false;window.CP_calendarObject=null;window.CP_targetInput=null;window.CP_dateFormat="MM/dd/yyyy";A.copyMonthNamesToWindow=CP_copyMonthNamesToWindow;A.setReturnFunction=CP_setReturnFunction;A.setReturnMonthFunction=CP_setReturnMonthFunction;A.setReturnQuarterFunction=CP_setReturnQuarterFunction;A.setReturnYearFunction=CP_setReturnYearFunction;A.setMonthNames=CP_setMonthNames;A.setMonthAbbreviations=CP_setMonthAbbreviations;A.setDayHeaders=CP_setDayHeaders;A.setWeekStartDay=CP_setWeekStartDay;A.setDisplayType=CP_setDisplayType;A.setDisabledWeekDays=CP_setDisabledWeekDays;A.addDisabledDates=CP_addDisabledDates;A.setYearSelectStartOffset=CP_setYearSelectStartOffset;A.setTodayText=CP_setTodayText;A.showYearNavigation=CP_showYearNavigation;A.showCalendar=CP_showCalendar;A.hideCalendar=CP_hideCalendar;A.getStyles=getCalendarStyles;A.refreshCalendar=CP_refreshCalendar;A.getCalendar=CP_getCalendar;A.select=CP_select;A.setCssPrefix=CP_setCssPrefix;A.showNavigationDropdowns=CP_showNavigationDropdowns;A.showYearNavigationInput=CP_showYearNavigationInput;A.copyMonthNamesToWindow();return A}function CP_copyMonthNamesToWindow(){if(typeof (window.MONTH_NAMES)!="undefined"&&window.MONTH_NAMES!=null){window.MONTH_NAMES=new Array();for(var A=0;A<this.monthNames.length;A++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthNames[A]}for(var A=0;A<this.monthAbbreviations.length;A++){window.MONTH_NAMES[window.MONTH_NAMES.length]=this.monthAbbreviations[A]}}}function CP_tmpReturnFunction(D,A,C){if(window.CP_targetInput!=null){var B=new Date(D,A-1,C,0,0,0);if(window.CP_calendarObject!=null){window.CP_calendarObject.copyMonthNamesToWindow()}window.CP_targetInput.value=formatDate(B,window.CP_dateFormat)}else{alert("Use setReturnFunction() to define which function will get the clicked results!")}}function CP_tmpReturnMonthFunction(B,A){alert("Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year="+B+" , month="+A)}function CP_tmpReturnQuarterFunction(B,A){alert("Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year="+B+" , quarter="+A)}function CP_tmpReturnYearFunction(A){alert("Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year="+A)}function CP_setReturnFunction(A){this.returnFunction=A}function CP_setReturnMonthFunction(A){this.returnMonthFunction=A}function CP_setReturnQuarterFunction(A){this.returnQuarterFunction=A}function CP_setReturnYearFunction(A){this.returnYearFunction=A}function CP_setMonthNames(){for(var A=0;A<arguments.length;A++){this.monthNames[A]=arguments[A]}this.copyMonthNamesToWindow()}function CP_setMonthAbbreviations(){for(var A=0;A<arguments.length;A++){this.monthAbbreviations[A]=arguments[A]}this.copyMonthNamesToWindow()}function CP_setDayHeaders(){for(var A=0;A<arguments.length;A++){this.dayHeaders[A]=arguments[A]}}function CP_setWeekStartDay(A){this.weekStartDay=A}function CP_showYearNavigation(){this.isShowYearNavigation=(arguments.length>0)?arguments[0]:true}function CP_setDisplayType(A){if(A!="date"&&A!="week-end"&&A!="month"&&A!="quarter"&&A!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false}this.displayType=A}function CP_setYearSelectStartOffset(A){this.yearSelectStartOffset=A}function CP_setDisabledWeekDays(){this.disabledWeekDays=new Object();for(var A=0;A<arguments.length;A++){this.disabledWeekDays[arguments[A]]=true}}function CP_addDisabledDates(B,A){if(arguments.length==1){A=B}if(B==null&&A==null){return }if(this.disabledDatesExpression!=""){this.disabledDatesExpression+="||"}if(B!=null){B=parseDate(B);B=""+B.getFullYear()+LZ(B.getMonth()+1)+LZ(B.getDate())}if(A!=null){A=parseDate(A);A=""+A.getFullYear()+LZ(A.getMonth()+1)+LZ(A.getDate())}if(B==null){this.disabledDatesExpression+="(ds<="+A+")"}else{if(A==null){this.disabledDatesExpression+="(ds>="+B+")"}else{this.disabledDatesExpression+="(ds>="+B+"&&ds<="+A+")"}}}function CP_setTodayText(A){this.todayText=A}function CP_setCssPrefix(A){this.cssPrefix=A}function CP_showNavigationDropdowns(){this.isShowNavigationDropdowns=(arguments.length>0)?arguments[0]:true}function CP_showYearNavigationInput(){this.isShowYearNavigationInput=(arguments.length>0)?arguments[0]:true}function CP_hideCalendar(){if(arguments.length>0){window.popupWindowObjects[arguments[0]].hidePopup()}else{this.hidePopup()}}function CP_refreshCalendar(A){var B=window.popupWindowObjects[A];if(arguments.length>1){B.populate(B.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]))}else{B.populate(B.getCalendar())}B.refresh()}function CP_showCalendar(A){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date()}else{this.currentDate=new Date(parseDate(arguments[1]))}}this.populate(this.getCalendar());this.showPopup(A)}function CP_select(C,A,E){var B=(arguments.length>3)?arguments[3]:null;if(!window.getDateFromFormat){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");return }if(this.displayType!="date"&&this.displayType!="week-end"){alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");return }if(C.type!="text"&&C.type!="hidden"&&C.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.CP_targetInput=null;return }if(C.disabled){return }window.CP_targetInput=C;window.CP_calendarObject=this;this.currentDate=null;var D=0;if(B!=null){D=getDateFromFormat(B,E)}else{if(C.value!=""){D=getDateFromFormat(C.value,E)}}if(B!=null||C.value!=""){if(D==0){this.currentDate=null}else{this.currentDate=new Date(D)}}window.CP_dateFormat=E;this.showCalendar(A)}function getCalendarStyles(){var A="";var B="";if(this!=null&&typeof (this.cssPrefix)!="undefined"&&this.cssPrefix!=null&&this.cssPrefix!=""){B=this.cssPrefix}A+="<STYLE>\n";A+="."+B+"cpYearNavigation,."+B+"cpMonthNavigation{background-color:#C0C0C0;text-align:center;vertical-align:center;text-decoration:none;color:#000000;font-weight:bold;}\n";A+="."+B+"cpDayColumnHeader, ."+B+"cpYearNavigation,."+B+"cpMonthNavigation,."+B+"cpCurrentMonthDate,."+B+"cpCurrentMonthDateDisabled,."+B+"cpOtherMonthDate,."+B+"cpOtherMonthDateDisabled,."+B+"cpCurrentDate,."+B+"cpCurrentDateDisabled,."+B+"cpTodayText,."+B+"cpTodayTextDisabled,."+B+"cpText{font-family:arial;font-size:8pt;}\n";A+="TD."+B+"cpDayColumnHeader{text-align:right;border:solid thin #C0C0C0;border-width:0px 0px 1px 0px;}\n";A+="."+B+"cpCurrentMonthDate, ."+B+"cpOtherMonthDate, ."+B+"cpCurrentDate{text-align:right;text-decoration:none;}\n";A+="."+B+"cpCurrentMonthDateDisabled, ."+B+"cpOtherMonthDateDisabled, ."+B+"cpCurrentDateDisabled{color:#D0D0D0;text-align:right;text-decoration:line-through;}\n";A+="."+B+"cpCurrentMonthDate, .cpCurrentDate{color:#000000;}\n";A+="."+B+"cpOtherMonthDate{color:#808080;}\n";A+="TD."+B+"cpCurrentDate{color:white;background-color: #C0C0C0;border-width:1px;border:solid thin #800000;}\n";A+="TD."+B+"cpCurrentDateDisabled{border-width:1px;border:solid thin #FFAAAA;}\n";A+="TD."+B+"cpTodayText, TD."+B+"cpTodayTextDisabled{border:solid thin #C0C0C0;border-width:1px 0px 0px 0px;}\n";A+="A."+B+"cpTodayText, SPAN."+B+"cpTodayTextDisabled{height:20px;}\n";A+="A."+B+"cpTodayText{color:black;}\n";A+="."+B+"cpTodayTextDisabled{color:#D0D0D0;}\n";A+="."+B+"cpBorder{border:solid thin #808080;}\n";A+="</STYLE>\n";return A}function CP_getCalendar(){var now=new Date();if(this.type=="WINDOW"){var windowref="window.opener."}else{var windowref=""}var result="";if(this.type=="WINDOW"){result+="<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";result+="<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n"}else{result+='<TABLE CLASS="'+this.cssPrefix+'cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1>\n';result+="<TR><TD ALIGN=CENTER>\n";result+="<CENTER>\n"}if(this.displayType=="date"||this.displayType=="week-end"){if(this.currentDate==null){this.currentDate=now}if(arguments.length>0){var month=arguments[0]}else{var month=this.currentDate.getMonth()+1}if(arguments.length>1&&arguments[1]>0&&arguments[1]-0==arguments[1]){var year=arguments[1]}else{var year=this.currentDate.getFullYear()}var daysinmonth=new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if(((year%4==0)&&(year%100!=0))||(year%400==0)){daysinmonth[2]=29}var current_month=new Date(year,month-1,1);var display_year=year;var display_month=month;var display_date=1;var weekday=current_month.getDay();var offset=0;offset=(weekday>=this.weekStartDay)?weekday-this.weekStartDay:7-this.weekStartDay+weekday;if(offset>0){display_month--;if(display_month<1){display_month=12;display_year--}display_date=daysinmonth[display_month]-offset+1}var next_month=month+1;var next_month_year=year;if(next_month>12){next_month=1;next_month_year++}var last_month=month-1;var last_month_year=year;if(last_month<1){last_month=12;last_month_year--}var date_class;if(this.type!="WINDOW"){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>"}result+="<TR>\n";var refresh=windowref+"CP_refreshCalendar";var refreshLink="javascript:"+refresh;if(this.isShowNavigationDropdowns){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpMonthNavigation" name="cpMonth" onChange="'+refresh+"("+this.index+",this.options[this.selectedIndex].value-0,"+(year-0)+');">';for(var monthCounter=1;monthCounter<=12;monthCounter++){var selected=(monthCounter==month)?"SELECTED":"";result+='<option value="'+monthCounter+'" '+selected+">"+this.monthNames[monthCounter-1]+"</option>"}result+="</select></TD>";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpYearNavigation" name="cpYear" onChange="'+refresh+"("+this.index+","+month+',this.options[this.selectedIndex].value-0);">';for(var yearCounter=year-this.yearSelectStartOffset;yearCounter<=year+this.yearSelectStartOffset;yearCounter++){var selected=(yearCounter==year)?"SELECTED":"";result+='<option value="'+yearCounter+'" '+selected+">"+yearCounter+"</option>"}result+="</select></TD>"}else{if(this.isShowYearNavigation){result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;</A></TD>';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+"</SPAN></TD>";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;</A></TD>';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year-1)+');">&lt;</A></TD>';if(this.isShowYearNavigationInput){result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.cssPrefix+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+year+'" onBlur="'+refresh+"("+this.index+","+month+',this.value-0);"></TD>'}else{result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.cssPrefix+'cpYearNavigation">'+year+"</SPAN></TD>"}result+='<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+"("+this.index+","+month+","+(year+1)+');">&gt;</A></TD>'}else{result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+last_month+","+last_month_year+');">&lt;&lt;</A></TD>\n';result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+" "+year+"</SPAN></TD>\n";result+='<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+"("+this.index+","+next_month+","+next_month_year+');">&gt;&gt;</A></TD>\n'}}result+="</TR></TABLE>\n";result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n";result+="<TR>\n";for(var j=0;j<7;j++){result+='<TD CLASS="'+this.cssPrefix+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.cssPrefix+'cpDayColumnHeader">'+this.dayHeaders[(this.weekStartDay+j)%7]+"</TD>\n"}result+="</TR>\n";for(var row=1;row<=6;row++){result+="<TR>\n";for(var col=1;col<=7;col++){var disabled=false;if(this.disabledDatesExpression!=""){var ds=""+display_year+LZ(display_month)+LZ(display_date);eval("disabled=("+this.disabledDatesExpression+")")}var dateClass="";if((display_month==this.currentDate.getMonth()+1)&&(display_date==this.currentDate.getDate())&&(display_year==this.currentDate.getFullYear())){dateClass="cpCurrentDate"}else{if(display_month==month){dateClass="cpCurrentMonthDate"}else{dateClass="cpOtherMonthDate"}}if(disabled||this.disabledWeekDays[col-1]){result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><SPAN CLASS="'+this.cssPrefix+dateClass+'Disabled">'+display_date+"</SPAN></TD>\n"}else{var selected_date=display_date;var selected_month=display_month;var selected_year=display_year;if(this.displayType=="week-end"){var d=new Date(selected_year,selected_month-1,selected_date,0,0,0,0);d.setDate(d.getDate()+(7-col));selected_year=d.getYear();if(selected_year<1000){selected_year+=1900}selected_month=d.getMonth()+1;selected_date=d.getDate()}result+='	<TD CLASS="'+this.cssPrefix+dateClass+'"><A HREF="javascript:'+windowref+this.returnFunction+"("+selected_year+","+selected_month+","+selected_date+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+this.cssPrefix+dateClass+'">'+display_date+"</A></TD>\n"}display_date++;if(display_date>daysinmonth[display_month]){display_date=1;display_month++}if(display_month>12){display_month=1;display_year++}}result+="</TR>"}var current_weekday=now.getDay()-this.weekStartDay;if(current_weekday<0){current_weekday+=7}result+="<TR>\n";result+='	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.cssPrefix+'cpTodayText">\n';if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());eval("disabled=("+this.disabledDatesExpression+")")}if(disabled||this.disabledWeekDays[current_weekday+1]){result+='		<SPAN CLASS="'+this.cssPrefix+'cpTodayTextDisabled">'+this.todayText+"</SPAN>\n"}else{result+='		<A CLASS="'+this.cssPrefix+'cpTodayText" HREF="javascript:'+windowref+this.returnFunction+"('"+now.getFullYear()+"','"+(now.getMonth()+1)+"','"+now.getDate()+"');"+windowref+"CP_hideCalendar('"+this.index+"');\">"+this.todayText+"</A>\n"}result+="		<BR>\n";result+="	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="month"||this.displayType=="quarter"||this.displayType=="year"){if(arguments.length>0){var year=arguments[0]}else{if(this.displayType=="year"){var year=now.getFullYear()-this.yearSelectStartOffset}else{var year=now.getFullYear()}}if(this.displayType!="year"&&this.isShowYearNavigation){result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+="<TR>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-1)+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="100">'+year+"</TD>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+1)+');">&gt;&gt;</A></TD>\n';result+="</TR></TABLE>\n"}}if(this.displayType=="month"){result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<4;i++){result+="<TR>";for(var j=0;j<3;j++){var monthindex=((i*3)+j);result+='<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnMonthFunction+"("+year+","+(monthindex+1)+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+this.monthAbbreviations[monthindex]+"</A></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="quarter"){result+="<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<2;i++){result+="<TR>";for(var j=0;j<2;j++){var quarter=((i*2)+j+1);result+='<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnQuarterFunction+"("+year+","+quarter+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">Q'+quarter+"</A><BR><BR></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.displayType=="year"){var yearColumnSize=4;result+="<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result+="<TR>\n";result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year-(yearColumnSize*2))+');">&lt;&lt;</A></TD>\n';result+='	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+"CP_refreshCalendar("+this.index+","+(year+(yearColumnSize*2))+');">&gt;&gt;</A></TD>\n';result+="</TR></TABLE>\n";result+="<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n";for(var i=0;i<yearColumnSize;i++){for(var j=0;j<2;j++){var currentyear=year+(j*yearColumnSize)+i;result+='<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnYearFunction+"("+currentyear+");"+windowref+"CP_hideCalendar('"+this.index+'\');" CLASS="'+date_class+'">'+currentyear+"</A></TD>"}result+="</TR>"}result+="</TABLE></CENTER></TD></TR></TABLE>\n"}if(this.type=="WINDOW"){result+="</BODY></HTML>\n"}return result}var humanMsg={setup:function(B,A,C){humanMsg.msgID="humanMsg";humanMsg.logID="humanMsgLog";if(B==undefined){B="body"}humanMsg.msgOpacity=0.8;if(C!=undefined){humanMsg.msgOpacity=parseFloat(C)}jQuery(B).append('<div id="'+humanMsg.msgID+'" class="humanMsg"><p></p></div>')},displayMsg:function(A){if(A==""){return }clearTimeout(humanMsg.t1);clearTimeout(humanMsg.t2);clearTimeout(humanMsg.t3);jQuery("#"+humanMsg.msgID+" p").html(A);jQuery("#"+humanMsg.msgID+"").show().animate({opacity:humanMsg.msgOpacity},200);humanMsg.t1=setTimeout(function(){humanMsg.bindMouse()},2000);humanMsg.t2=setTimeout(function(){humanMsg.bindEvents()},500);humanMsg.t3=setTimeout(function(){humanMsg.removeMsg()},5500)},bindMouse:function(){jQuery(document).bind("mousemove",humanMsg.removeMsg)},bindEvents:function(){jQuery(document).bind("click",humanMsg.removeMsg).bind("keypress",function(A){humanMsg.removeMsg();A.preventDefault()})},removeMsg:function(){jQuery(document).unbind("mousemove",humanMsg.removeMsg).unbind("click",humanMsg.removeMsg).unbind("keypress");if(jQuery("#"+humanMsg.msgID).css("opacity")==humanMsg.msgOpacity){jQuery("#"+humanMsg.msgID).animate({opacity:0},500,function(){jQuery(this).hide()})}}};jQuery(document).ready(function(){humanMsg.setup()});var typeaheadInput=null;var typeaheadTimer=null;function Typeahead(B,C,A){if(B==null){return }this.input=B;this.query=C;this.onSelect=A;this.input.typeahead=this;$(this.input).keydown(typeaheadKeyDown);$(this.input).keyup(typeaheadKeyUp)}function typeaheadKeyUp(A){if(this.valueAtVariableApplication!=this.value){this.variables=null}var B=A.keyCode;if(isStringEmpty(this.value)||B==8||B==46||B==27){cancelTypeaheadPopup();return false}else{if(String.fromCharCode(A.keyCode).match(/^[a-zA-Z0-9_]+$/)==null){return false}}if(typeaheadTimer!=null){window.clearTimeout(typeaheadTimer)}typeaheadTimer=window.setTimeout("openTypeaheadPopup( typeaheadInput );",500);typeaheadInput=this;return true}function openTypeaheadPopup(A){var B=A.typeahead.query;while(B.indexOf("%%")>-1){B=B.replace("%%","'"+A.value+"'")}$.get("/typeahead/typeahead",{query:B},showTypeaheadPopup);typeaheadTimer=null}function showTypeaheadPopup(D){$().bind("click",_acceptSelectedEntry);var C=document.getElementById("_typeaheadPopup");if(C==null){C=document.createElement("DIV");C.style.position="absolute";C.style.display="none";C.style.zIndex="100001";C.id="_typeaheadPopup";document.body.appendChild(C)}C.style.display="none";var E=getAbsolutePosition(typeaheadInput);C.innerHTML=D;C.style.top=(E.y+typeaheadInput.offsetHeight)+"px";C.style.left=E.x+"px";var B;if(C.getElementsByTagName("LI")[0].getElementsByTagName("LABEL").length>0){B=C.getElementsByTagName("LI")[0].getElementsByTagName("LABEL")[0].innerHTML}else{B=C.getElementsByTagName("LI")[0].innerHTML}var A=typeaheadInput.value.toLowerCase();if(B.length>A.length&&B.toLowerCase().substring(0,A.length)==A){typeaheadInput.value=B;typeaheadInput.setSelectionRange(A.length,B.length);applyVariables(typeaheadInput,C.getElementsByTagName("LI")[0])}else{if(B==A){applyVariables(typeaheadInput,C.getElementsByTagName("LI")[0])}}$("li",C).mouseover(function(){$(this.parentNode).children("li").removeClass("selected");$(this).addClass("selected");setSelectedItem(typeaheadInput,this)});$("li",C).click(function(){acceptSelectedEntry(typeaheadInput)});C.style.display="block"}function isStringEmpty(A){return A==""}function cancelTypeaheadPopup(){closeTypeaheadPopup()}function closeTypeaheadPopup(){$().unbind("click",_acceptSelectedEntry);if(typeaheadTimer!=null){window.clearTimeout(typeaheadTimer);typeaheadTimer=null}var A=document.getElementById("_typeaheadPopup");if(A!=null){A.style.display="none"}}function _acceptSelectedEntry(){acceptSelectedEntry(typeaheadInput)}function acceptSelectedEntry(A){closeTypeaheadPopup();A.blur();if(A.variables==null){A.variables=new Object()}if(A.typeahead.onSelect!=null){return A.typeahead.onSelect(A,A.variables)}else{alert(A.value+" selected");return false}}function typeaheadKeyDown(A){if(this.valueAtVariableApplication!=this.value){this.variables=null}try{if(A.keyCode==13){acceptSelectedEntry(this)}else{if(A.keyCode==38){typeaheadPrevious(this);return false}else{if(A.keyCode==40){typeaheadNext(this);return false}}}}catch(B){alert(B)}return true}function typeaheadNext(A){return typeaheadTransfer(A,false)}function typeaheadPrevious(A){return typeaheadTransfer(A,true)}function typeaheadTransfer(C,D){var A=document.getElementById("_typeaheadPopup");if(A.style.display=="none"){return true}var B=A.getElementsByTagName("LI");var F=null;for(var E=0;E!=B.length;E++){if(B[E].className=="selected"){B[E].className=null;if(D){F=B[E==0?(B.length-1):E-1]}else{F=B[E==(B.length-1)?0:E+1]}break}}if(F==null&&B.length>0){F=(D?B[B.length-1]:B[0])}setSelectedItem(C,F);return F==null}function setSelectedItem(A,B){if(A.selectedItem==B){return }if(B!=null){B.className="selected";if(B.getElementsByTagName("LABEL").length>0){A.value=B.getElementsByTagName("LABEL")[0].innerHTML}else{A.value=B.innerHTML}applyVariables(A,B)}A.selectedItem=B}function applyVariables(A,D){var E=D.getElementsByTagName("VAR");if(E!=null){for(var C=0;C!=E.length;C++){var B=E[C].getAttribute("name");if(B!=null&&B.length>0){if(A.variables==null){A.variables=new Object()}A.variables[B]=E[C].innerHTML}}}A.valueAtVariableApplication=A.value}function _adjustDialogToScrolling(){var B=(document.body.scrollTop?document.body.scrollTop:window.pageYOffset);var A=(document.body.scrollLeft?document.body.scrollLeft:window.pageXOffset);if(document.body.dialog){document.body.dialog.style.top=(((window.innerHeight-document.body.dialog.size.h)/2)+B)+"px";document.body.dialog.style.left=(((window.innerWidth-document.body.dialog.size.w)/2)+A)+"px"}}function Dialog(C,A,B){this.close=function(){$(this.dialog).remove();$(this.overlay).remove();window.clearInterval(this.timer);document.body.dialog=null};this.open=function(E,I,J){var G=$(window);var H=$(document);this.overlay=document.createElement("DIV");$(this.overlay).addClass("defaultDialogOverlay").css({"height":Math.max((G.height()+G.scrollTop()),H.height())+"px","opacity":".5"}).appendTo("body");this.dialog=document.createElement("DIV");this.dialog.size={w:(C?C:600),h:(A?A:400)};$(this.dialog).addClass("defaultDialog").css({"width":this.dialog.size.w,"height":this.dialog.size.h,"left":(((G.width()-this.dialog.size.w)/2)+G.scrollLeft())+"px","top":(((G.height()-this.dialog.size.h)/2)+G.scrollTop())+"px"}).appendTo("body").show();document.body.dialog=this.dialog;var F=this.dialog;var D=this.overlay;$(this.dialog).load(E,I,function(){if(!this||!this.style){$(F).remove();$(D).remove();return }$(this).css("background-color","white");if(J){J(F)}});this.timer=window.setInterval("_adjustDialogToScrolling();",250)}}function getAbsolutePosition(B){var C={x:B.offsetLeft,y:B.offsetTop};if(B.offsetParent){var A=getAbsolutePosition(B.offsetParent);C.x+=A.x;C.y+=A.y}return C}function getRelativeCoordinates(D,B){var A,H;D=D||window.event;var C=D.target||D.srcElement;if(!window.opera&&typeof D.offsetX!="undefined"){var G={x:D.offsetX,y:D.offsetY};var E=C;while(E){E.mouseX=G.x;E.mouseY=G.y;G.x+=E.offsetLeft;G.y+=E.offsetTop;E=E.offsetParent}var E=B;var F={x:0,y:0};while(E){if(typeof E.mouseX!="undefined"){A=E.mouseX-F.x;H=E.mouseY-F.y;break}F.x+=E.offsetLeft;F.y+=E.offsetTop;E=E.offsetParent}E=C;while(E){E.mouseX=undefined;E.mouseY=undefined;E=E.offsetParent}}else{var G=getAbsolutePosition(B);A=D.pageX-G.x;H=D.pageY-G.y}return{x:A,y:H}}jQuery(function($){$(".editInPlace").each(function(){var $element=$(this);var counter=0;$(this).click(function(){var htmlAreaID=null;var htmlEditor=null;var pos=$element.offset();var $div=$('<div style="position: absolute; border: 1px solid #444; padding: 5px 7px 5px 5px; background-color: white;"/>');if($element.attr("type")=="html"){htmlAreaID="inlineEditorHTMLArea__"+counter++;var $input=$('<textarea id="'+htmlAreaID+'" style="width: 100%; height: 300px;"/>')}else{var $input=$('<input style="display: block; border: 1px dashed #888; width: 100%;"/>');$input.css("font-size",$element.css("font-size")).css("font-weight",$element.css("font-weight")).css("font-style",$element.css("font-style")).keydown(function(e){if(e.keyCode==27){this.editor.close()}else{if(e.keyCode==13){this.editor.done()}}})}var editableValue=$(".editableValue",$element);$input.val(editableValue.length==1?editableValue[0].innerHTML:$element.html());var editor=new Object();$input.editor=editor;editor.close=function(){$div.remove()};editor.done=function(){editor.close();$.post("/kb/setSingleValue",{subject:$element.attr("subject"),predicate:$element.attr("property"),value:$input.val()},function(data){var result=eval(data);if(result.status=="success"){$element.html(result.values[0].display)}})};$div.hide().width($element.width()+14).css("min-width","300px").css("left",(pos.left-7)+"px").css("top",(pos.top-7)+"px").append($input);var $b=$('<div style="padding-top: 5px;"/>');$b.appendTo($div).append('<a class="btn md right done" style="margin-left: 8px">Done</a>').append('<a class="btn md right cancel">Cancel</a>');$div.appendTo("body");$("a.cancel",$div).click(function(){editor.close()});$("a.done",$div).click(function(){editor.done()});if($input[0].nodeName.toLowerCase=="input"){$input[0].select()}$div.show()})})});var _semanticObjects=new Array();function processCallback(data){var result;try{result=eval(data)}catch(error){alert("Problem parsing data from server:\n\n"+data)}var object=_semanticObjects[result.subject];if(result.status=="success"){if(object.onSuccess){object.onSuccess(object,result)}else{window.status="success"}}else{if(object.onFail){object.onFail(object,result)}else{window.status="failed"}}}function HashCode(A){this.value=A}function SemanticObject(A){this.subject=A;_semanticObjects[A]=this;this.addValue=function(B,C,D,E){this.onSuccess=D;this.onFail=E;$.post("/kb/addValue",{subject:this.subject,predicate:B,newValue:C},processCallback)};this.updateValues=function(G,E,B,H,I){this.onSuccess=H;this.onFail=I;var D=new Array();var F=new Array();for(var C=0;C!=B.length;C++){if(B[C] instanceof HashCode){D.push(B[C].value)}else{F.push(B[C])}}$.post("/kb/updateValues",{subject:this.subject,predicate:G,toAdd:E,toDelete:F,toDeleteByHashCode:D},processCallback)};this.setSingleValue=function(C,B,D,E){this.onSuccess=D;this.onFail=E;$.post("/kb/setSingleValue",{subject:this.subject,predicate:C,value:B},processCallback)};this.deleteValue=function(D,C,E,F){if(C==null){F(this,{status:"failure",message:"Cannot delete null value"});return }this.onSuccess=E;this.onFail=F;var B;if(C instanceof HashCode){B={subject:this.subject,predicate:D,hashValue:C.value}}else{B={subject:this.subject,predicate:D,value:C}}$.post("/kb/deleteValue",B,processCallback)}}var Twine={nextID:0,actions:new Array(),SemanticObject:function(A,B){this.actions=B;this.uri=A;this.values=new Array();this.addValue=function(D,C){if(C.uri!=null){C=C.uri}this.actions.push("{'action':'addValue','subject':'"+this.uri+"','property':'"+D+"','value':'"+C+"'}")};this.setSingleValue=function(D,C){if(C.uri!=null){C=C.uri}this.actions.push("{'action':'setSingleValue','subject':'"+this.uri+"','property':'"+D+"','value':'"+C+"'}")};this.removeValue=function(D,C){if(C.uri!=null){C=C.uri}this.actions.push("{'action':'removeValue','subject':'"+this.uri+"','property':'"+D+"','value':'"+C+"'}")}},get:function(A){return new this.SemanticObject(A,this.actions)},newInstanceOf:function(B){var C="new:"+this.nextID++;var A=new this.SemanticObject(C,this.actions);this.actions.push("{'action':'newInstance','subject':'"+C+"','type':'"+B+"'}");return A},registerInterest:function(A){this.actions.push("{'action':'registerInterest','item':'"+A+"'}")},unregisterInterest:function(A){this.actions.push("{'action':'unregisterInterest','item':'"+A+"'}")},commit:function(onSuccess,onFail){var request="{'actions':[";for(var r=0;r<this.actions.length;r++){request+=(r>0?",":"")+this.actions[r]}request+="]}";this.actions=new Array();try{$.post("/v2/service",{"request":request},function(data){var result=eval("("+data+")");if(result.status=="success"){if(onSuccess){onSuccess(result)}}else{if(onFail){onFail(result)}}})}catch(error){if(onFail){onFail({status:"fail",message:"JavaScript error processing commit",stackTrace:error})}}}};jQuery.extend({addParameter:function(E,B){var A=B||location.href;var C=A.indexOf("#");var D=(C>0)?A.substring(C):"";A=(D)?A.substring(0,C):A;return A+(/\?/.test(A)?"&":"?")+E+D}});jQuery.fn.extend({deferred:function(){return this.each(function(){var B=this.id,A=false;$(this).bind("loadContent",function(E,D,C){D=D||function(){};C=C||function(){};if(A){D(false);C()}else{jQuery("#"+B).load(jQuery.addParameter("_deferred="+B),function(){D(A=true);C()})}})})},menuOpener:function(){return this.each(function(){var D=400;var E=jQuery(this);var A=$(".trg-mnu",E).size()?$(".trg-mnu",E):E;var B=E.find("ol");var C={closing:false,close:function(){if(B.not(":hidden").size()&&!C.closing){C.closing=true;C.timer=null;$("#mnuBlock").remove();B.fadeOut(500,function(){E.removeClass("hoverClass");window.setTimeout(function(){C.closing=false},50);if(A.hasClass("mnu-remote")){B.empty().remove()}})}else{debug("double close")}},hoverOver:function(){if(C.timer){window.clearTimeout(C.timer);C.timer=null}else{if(C.closing){debug("closing already: "+C.closing)}}},hoverOut:function(){if(C.timer){window.clearTimeout(C.timer)}if(B.not(":hidden").size()){C.timer=window.setTimeout(C.close,D)}}};if(A.hasClass("mnu-remote")){A.bind("mousedown",function(){var F=jQuery("#"+E.attr("id").replace(/^fn-/,"ent-")).clone();F.find("a").wrap("<li></li>").end().wrapInner("<ol></ol>");F.find("ol").eq(0).appendTo(E);B=E.find("ol");debug("add hover");B.hover(C.hoverOver,C.hoverOut)})}else{B.hover(C.hoverOver,C.hoverOut)}A.click(function(L){L.stopPropagation();if(B.not(":visible").length){if(E.hasClass("mnu-sub")){var M=parseInt(E.width())-20;B.find("li>a").css("min-width",M)}B.fadeIn("fast");E.addClass("hoverClass");if($.browser.msie){var G=parseInt(B.innerWidth())-4;var J=parseInt(B.outerHeight())-6;var I=B.offset().top;var F=B.offset().left;debug(I+" - "+F);debug(J+" - "+G);var H={"top":I+"px","left":F+"px","height":J+"px","width":G+"px","opacity":1};if($.browser.version<7){$("body").append(document.createElement("iframe"));var K=$(">iframe:last","body");K.css(H).attr("id","mnuBlock").css({"position":"absolute","z-index":999,"border":"none","padding-right":"6px"})}B.appendTo("body").css(H).hide().addClass("mnu-items");B.fadeIn("fast").hover(C.hoverOver,C.hoverOut)}A.hover(C.hoverOver,C.hoverOut)}else{window.clearTimeout(C.timer);C.timer=null;C.close()}})})},slideDown:function(A,B){return this.animate({height:"show"},A,"swing",B)},slideUp:function(A,B){return this.animate({height:"hide"},A,"swing",B)},overlabel:function(){this.each(function(B){var A=jQuery(this);var D;var E=this.htmlFor||A.attr("for");if(E&&(D=document.getElementById(E))){var C=jQuery(D);A.addClass("overlabel-apply");if(D.value!==""){A.css("text-indent","-2000px")}C.focus(function(){A.css("text-indent","-2000px")}).blur(function(){if(this.value===""){A.css("text-indent","0px")}});A.click(function(){var F=jQuery(this);var G;var H=this.htmlFor||F.attr("for");if(H&&(G=document.getElementById(H))){G.focus()}})}})}});function debug(A){if(window.console){window.console.log(A)}}var app={};var behave={asPost:function(A){$("body").prepend('<form method="post"></form>');$("body>form").eq(0).attr("action",A.href).submit();A.href="javascript:void(0)";return false},confirmAsPost:function(B){var A="Are you sure you want to ";A+=$(B).attr("title").toLowerCase()+"?";if(confirm(A)){behave.asPost(B)}$("body").trigger("click");return false}};var pagination={init:function(){$("ul.paging li a").one("click",function(){if($(this).attr("href")=="#"){pagination.paginate(this);return false}})},paginate:function(B){var A=$(B).parents("ul.paging").parent();$(A).load($(B).siblings("input").val(),function(){$("ul.paging",A).one("mouseover",function(){pagination.init()})})}};var rating={format:function(A){return(A>0)?("+"+A):(A<0)?A:"0"},init:function(E){var B=$("li.up>a",E).attr("href");$("li.up",E).attr({"title":"Like it"}).not(".selected").unbind("click").one("click",function(){var F=this;$.post(B,{"incr":1},function(G){D(F,G)})});$("li.down",E).attr({"title":"Don't like it"}).not(".selected").unbind("click").one("click",function(){var F=this;$.post(B,{"incr":-1},function(G){D(F,G)})});function D(F,G){if(!G.match(/\bmessage: ok\b/i)){alert("You can't vote! \nYou have to register and sign in first.");return }if($(F).is(".up")){A(F)}else{C(F)}}function A(F){if($(F).prev().is(".selected")){$(F).prev().removeClass("selected")}else{$(F).addClass("selected")}$("a",F).html(rating.format(parseInt($("a",F).text())+1));rating.init($(F).parent())}function C(G){if($(G).next().is(".selected")){$(G).next().removeClass("selected")}else{$(G).addClass("selected")}var F=$(G).next("li.up").find("a");$(F).html(rating.format(parseInt($(F).text())-1));rating.init($(G).parent())}}};var content={spinner:'<img id="spinner" src="/i/spinner.gif" alt="loading..." />',disappear:function(){var A=$('<div class="blockUI" id="blockUISpinner"><img src="/i/alert-spinner.gif" alt="loading..." /></div>');$("body").append(A[0])},zapPageSpinner:function(){$("#blockUISpinner").remove()},modalAjax:function(F,E){options={ajaxUrl:null,ajaxCache:false,delay:1400,id:F,callback:function(){}};var E=E||{};$.extend(options,E);function C(){$(F).dialog(options);debug("init dialog");$(F+"Park").remove();content.zapPageSpinner()}if(options.ajaxUrl){if($(F).length){if(options.ajaxCache){content.modal(F,options);return }else{var D=$(F).parents(".ui-dialog:first");if(D.length){D.empty().remove()}else{$(F).empty().remove()}}}content.disappear();var B=F+"Park";$("body").append('<div id="'+B.substring(1)+'" class="hide"></div>');$(B).load(options.ajaxUrl,function(){C();options.callback(options.id)})}else{if($(F).length){content.modal(F,options)}else{var A="#deferred"+F.substring(1).charAt(0).toUpperCase()+F.substring(2);content.disappear();$(A).trigger("loadContent",[C,function(){options.callback(options.id)}])}}},modal:function(B,A){content.disappear();if($(B).parents(".ui-dialog:first").is(":hidden")){$(B).dialog("open")}else{if($(B).length){$(B).dialog(A)}else{alert('Error: Modal alert box "'+B+'" is absent.')}}content.zapPageSpinner();if(A.callback){A.callback(A.id)}return false},modalClose:function(A){$("form",A)[0].reset();$(A).dialog("close")},disableButton:function(B){var A=$(B).width();$(B).attr("text",$(B).text()).addClass("disabled").css({"width":(A+38)}).html(content.spinner);content.spinnerBtn=B},enableButton:function(){if(content.spinnerBtn){$(content.spinnerBtn).removeClass("disabled").css({"width":"auto"}).text($(content.spinnerBtn).attr("text"));content.spinnerBtn=null}},alertInit:function(){if($("#alert div:first").length&&document.location.hash!="#alerted"){document.location.replace(document.location.href+"#alerted");content.alertOpen()}},alertOpen:function(){$("#alert div:first").each(function(){content.alertAdd($(this).text())})},alertAdd:function(A){if($.browser.msie&&$.browser.version<7){$("body>div.humanMsg").css({"top":(document.documentElement.scrollTop+130)+"px","position":"absolute"})}humanMsg.displayMsg(A)},alert:function(A){content.alertAdd("<em>"+A+"</em>")},info:function(A){content.alertAdd(A)}};var hijax={buttonMenu:function(A){A=(A)?A.parent():document;$(".mnu",A).each(function(){var B=$(this);if($(".trg-mnu",this).length==0){if(B.is(".mnu-action")){if(B.find(".mnu-v").length==0){B.find(".btn").html("<span>"+B.find(".btn").html()+'</span><em class="mnu-v">&nbsp;</em>')}$(".mnu-action span:first",B).addClass("trg-mnu")}else{if(B.is(".mnu-more")){$(">em",B).addClass("trg-mnu");if($(">em",B).length==0){B.html(B.html().replace(/(.*?)(<ol)/i,'$1<em class="mnu-v">&nbsp;</em>$2'))}}else{if(B.is(".mnu-sub")){B.find(".mnu-v").addClass("trg-mnu")}}}}$(this).menuOpener()})},formButtons:function(){$("#content form.hijax").each(function(){var A=$(this);A.find("input").keypress(function(D){var E=$(this);var B;if(window.event){B=window.event.keyCode}else{if(D){B=D.which}else{alert("badness");return true}}if(B==13){var C=E.parents("fieldset").find("a[type=submit]");if(C.size()>0){debug("fieldset submit: "+C.size());C.eq(0).trigger("click")}else{C=A.find("a[type=submit]");if(C.size()>0){C.eq(0).trigger("click")}else{A.submit()}}return false}else{return true}});A.find("button").each(function(){hijax.buttonToA(this,A)})})},buttonToA:function(G,D){var E=$(G);var A=(D)?$(D):E.parents("form").eq(0);var H=E.attr("type");H=(H)?H.toLowerCase():"";var J=E.text();var I=E.val()||"submit";var C=E.attr("name");var B=E.attr("style");var F=E.attr("className")||"";F=/sm|md|lg/.test(F)?"btn "+F:F;E.after('<a href="#">'+J+"</a>").next("a").attr("value",I).attr("type",H).addClass(F).each(function(){if($(this).is(".txt")){$(this).removeClass("txt").removeClass("btn")}if(B){$(this).attr("style",$(this).attr("style")+B)}if(C){$(this).attr("name",C)}$(this).click(function(){if(H=="reset"){if(A.resetForm){A.resetForm()}else{A.reset()}}else{if(H!=="button"){if(this.name&&this.value){A.append('<input type="hidden" name='+this.name+" value="+this.value+" />")}A.submit()}}return false})}).end().remove()}};app.connectWithUser={init:function(A){var A=A||document;$("a.app-connectWithUser",A).unbind("click").one("click",function(){var C=$(this);var B={titleEl:"h2",width:400,caller:this,callback:function(D){setTimeout(function(){app.connectWithUser.init(C.parent())},100);$("form",D).submit(function(){$("button#submit").addClass("disabled");$(D).dialog("close");$(this).ajaxSubmit(function(G){var E=$('<span class="connection">Pending Connection</span>');E.insertAfter(B.caller).prev().remove();E.parent("li").addClass("hover");content.info(G);var F=s_gi(s_account);F.linkTrackVars="events";F.linkTrackEvents="event16";F.events="event16";F.tl(true,"o","connection attempt")});return false})},ajaxUrl:this.hash.substring(1),ajaxCache:false};content.modalAjax("#connectionDialog",B);return false});$("a.app-disconnectUser",A).one("click",function(){var B=$(this);$.post(this.hash.substring(1),{"disconnect":"true"},function(){if(B.hasClass("app-disappear")){B.parents(".User:first").slideUp("fast",function(){$(this).remove()})}else{B.removeClass("app-disconnectUser").addClass("app-connectWithUser").text("Connect").attr("title","Connect with user").unbind("click").each(function(){app.connectWithUser.init(this.parentNode)})}});return false})}};$(function(){$("#nvSearch").find("label.overlabel").overlabel();hijax.buttonMenu();hijax.formButtons();content.alertInit();if($("#tagsAccordion").length){$("#tagsAccordion").accordion({alwaysOpen:false,autoheight:false,duration:200})}$("#content div.deferred").deferred();$("#content table.striped>tbody tr:odd").addClass("stripe");$("button.action-back, a.action-back","#content").click(function(A){history.back();return false});if($.browser.msie&&$.browser.version<7){$("#main ul.item-summary>li").after('<br class="clear" />');$("#content div.about dl>dd").after('<br class="clear" />')}});function Viewport(B){var A=this;this.instanceIX=Viewport.prototype.instanceIX++;Viewport.prototype.instances[this.instanceIX]=this;this.area=B;this.area.style.overflow="hidden";this.area.parentNode.style.overflow="hidden";this.area.style.border="3px solid black";this.currentPage=$(".page.open");this.currentPage=this.currentPage.length>0?this.currentPage[0]:null;this._slideNewDiv=null;this._slideSteps=10;this._slideReverse=false;this.stack=new Array();this.defaultPause=0;$(".page",B).each(function(){this.style.position="absolute"});$(".page",B).not(".open").hide();$(".page.open",B).each(function(){this.style.top="0";this.style.bottom="0";this.style.left="0";this.style.right="0"});$("[nextPage]",B).click(function(){A.showPage(this,this.getAttribute("nextPage"))});this.getDefaultPause=function(){return this.defaultPause};this.setDefaultPause=function(C){this.defaultPause=C};this.addValue=function(C,D,E,F){this.onSuccess=E;this.onFail=F;$.post("/kb/addValue",{subject:this.subject,predicate:C,newValue:D},processCallback)};this.jumpToPage=function(E){if(this.currentPage!=null){this.stack.push(this.currentPage)}var D=this.currentPage;this.currentPage=$('[page="'+E+'"]')[0];this.currentPage.style.top="0px";this.currentPage.style.left="0px";$(this.currentPage).addClass("active");var C=this.currentPage.getElementsByTagName("INPUT");if(C!=null&&C.length>0){C[0].select();C[0].focus()}};this.showPage=function(D,E){if(E.toLowerCase()=="prev"){this._slideNewDiv=this.stack.pop();this._slideReverse=true}else{this._slideNewDiv=$('[page="'+E+'"]')[0];this.stack.push(this.currentPage);this._slideReverse=false}this._slideNewDiv.style.top="0px";this._slideNewDiv.style.left="0px";this._slideNewDiv.style.width=this.currentPage.offsetWidth+"px";this._slideNewDiv.style.height=this.currentPage.offsetHeight+"px";this.currentPage.style.width=this.currentPage.offsetWidth+"px";this.currentPage.parentNode.style.overflow="hidden";$(this.currentPage).removeClass("active");var F=this.defaultPause;try{F=parseInt(D.getAttribute("pause"));if(F==NaN){F=this.defaultPause}}catch(C){F=this.defaultPause}if(!(F>=0)){F=this.defaultPause}if(F>0){setTimeout("Viewport.prototype.slide("+this.instanceIX+", "+2+");",F)}else{this.slide(this.instanceIX,2)}}}Viewport.prototype.instances=new Array();Viewport.prototype.instanceIX=0;Viewport.prototype.slide=function(B,A){$(Viewport.prototype.instances[B]).each(function(){var D=this.currentPage.parentNode.offsetWidth;this.currentPage.style.left=(this._slideReverse?A:0-A)+"px";this._slideNewDiv.style.left=(this._slideReverse?0-(D-A):D-A)+"px";this.currentPage.style.display="block";this._slideNewDiv.style.display="block";if(A<D){A=((A>128)?A+128:A*2);setTimeout("Viewport.prototype.slide("+B+", "+A+");",50)}else{this._slideNewDiv.style.left="0px";this._slideNewDiv.style.right="0px";this.currentPage.style.display="none";this.currentPage=this._slideNewDiv;$(this.currentPage).addClass("active");var C=this._slideNewDiv.getElementsByTagName("INPUT");if(C!=null&&C.length>0){C[0].select();C[0].focus()}}})}