(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return}var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return}if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return}if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return}if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return}if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return}var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return}readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return}try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return}}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return}if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return}return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})();(function(c){c.ui={plugin:{add:function(e,f,h){var g=c.ui[e].prototype;for(var d in h){g.plugins[d]=g.plugins[d]||[];g.plugins[d].push([f,h[d]])}},call:function(d,f,e){var h=d.plugins[f];if(!h){return}for(var g=0;g<h.length;g++){if(d.options[h[g][0]]){h[g][1].apply(d.element,e)}}}},cssCache:{},css:function(d){if(c.ui.cssCache[d]){return c.ui.cssCache[d]}var f=c('<div class="ui-resizable-gen">').addClass(d).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");c.ui.cssCache[d]=!!((!(/auto|default/).test(f.css("cursor"))||(/^[1-9]/).test(f.css("height"))||(/^[1-9]/).test(f.css("width"))||!(/none/).test(f.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(f.css("backgroundColor"))));try{c("body").get(0).removeChild(f.get(0))}catch(g){}return c.ui.cssCache[d]},disableSelection:function(d){d.unselectable="on";d.onselectstart=function(){return false};if(d.style){d.style.MozUserSelect="none"}},enableSelection:function(d){d.unselectable="off";d.onselectstart=function(){return true};if(d.style){d.style.MozUserSelect=""}},hasScroll:function(h,f){var d=/top/.test(f||"top")?"scrollTop":"scrollLeft",g=false;if(h[d]>0){return true}h[d]=1;g=h[d]>0?true:false;h[d]=0;return g}};var b=c.fn.remove;c.fn.remove=function(){c("*",this).add(this).trigger("remove");return b.apply(this,arguments)};function a(e,f,g){var d=c[e][f].getter||[];d=(typeof d=="string"?d.split(/,?\s+/):d);return(c.inArray(g,d)!=-1)}c.widget=function(e,d){var f=e.split(".")[0];e=e.split(".")[1];c.fn[e]=function(j){var h=(typeof j=="string"),i=Array.prototype.slice.call(arguments,1);if(h&&a(f,e,j)){var g=c.data(this[0],e);return(g?g[j].apply(g,i):undefined)}return this.each(function(){var k=c.data(this,e);if(h&&k&&c.isFunction(k[j])){k[j].apply(k,i)}else{if(!h){c.data(this,e,new c[f][e](this,j))}}})};c[f][e]=function(i,h){var g=this;this.widgetName=e;this.widgetBaseClass=f+"-"+e;this.options=c.extend({disabled:false},c[f][e].defaults,h);this.element=c(i).bind("setData."+e,function(l,j,k){return g.setData(j,k)}).bind("getData."+e,function(k,j){return g.getData(j)}).bind("remove",function(){return g.destroy()});this.init()};c[f][e].prototype=c.extend({},c.widget.prototype,d)};c.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(d){return this.options[d]},setData:function(d,e){this.options[d]=e;if(d=="disabled"){this.element[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};c.ui.mouse={mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(f){return d.mouseDown(f)});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(g){(this._mouseStarted&&this.mouseUp(g));this._mouseDownEvent=g;var f=this,h=(g.which==1),d=(typeof this.options.cancel=="string"?c(g.target).is(this.options.cancel):false);if(!h||d||!this.mouseCapture(g)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){f._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(g)&&this.mouseDelayMet(g)){this._mouseStarted=(this.mouseStart(g)!==false);if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(i){return f.mouseMove(i)};this._mouseUpDelegate=function(i){return f.mouseUp(i)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(d){if(c.browser.msie&&!d.button){return this.mouseUp(d)}if(this._mouseStarted){this.mouseDrag(d);return false}if(this.mouseDistanceMet(d)&&this.mouseDelayMet(d)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this.mouseDrag(d):this.mouseUp(d))}return !this._mouseStarted},mouseUp:function(d){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(d)}return false},mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},mouseDelayMet:function(d){return this._mouseDelayMet},mouseStart:function(d){},mouseDrag:function(d){},mouseStop:function(d){},mouseCapture:function(d){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return date.getUTCFullYear()+"-"+toIntegersAtLease(date.getUTCMonth()+1)+"-"+toIntegersAtLease(date.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o){var type=typeof(o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON()}if(type!="function"&&typeof(o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]))}return"["+ret.join(", ")+"]"}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}ret=[];for(var k in o){var name;var type=typeof(k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}val=$.toJSON(o[k]);if(typeof(val)!="string"){continue}ret.push(name+": "+val)}return"{"+ret.join(", ")+"}"};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);jQuery.fn.extend({everyTime:function(b,c,d,e,a){return this.each(function(){jQuery.timer.add(this,b,c,d,e,a)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseInt(a[1],10);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(e,c,d,g,h,b){var a=0;if(jQuery.isFunction(d)){if(!h){h=g}g=d;d=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<=0){return}if(h&&h.constructor!=Number){b=!!h;h=0}h=h||0;b=b||false;if(!e.$timers){e.$timers={}}if(!e.$timers[d]){e.$timers[d]={}}g.$timerID=g.$timerID||this.guid++;var f=function(){if(b&&this.inProgress){return}this.inProgress=true;if((++a>h&&h!==0)||g.call(e,a)===false){jQuery.timer.remove(e,d,g)}this.inProgress=false};f.$timerID=g.$timerID;if(!e.$timers[d][g.$timerID]){e.$timers[d][g.$timerID]=window.setInterval(f,c)}if(!this.global[d]){this.global[d]=[]}this.global[d].push(e)},remove:function(c,b,d){var e=c.$timers,a;if(e){if(!b){for(b in e){this.remove(c,b,d)}}else{if(e[b]){if(d){if(d.$timerID){window.clearInterval(e[b][d.$timerID]);delete e[b][d.$timerID]}}else{for(var d in e[b]){window.clearInterval(e[b][d]);delete e[b][d]}}for(a in e[b]){break}if(!a){a=null;delete e[b]}}}for(a in e){break}if(!a){c.$timers=null}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var d=jQuery.timer.global;for(var a in d){var c=d[a],b=c.length;while(--b){jQuery.timer.remove(c[b],a)}}})}(function(b){b.fn.caret=function(e,c){if(this.length==0){return}if(typeof e=="number"){c=(typeof c=="number")?c:e;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(e,c)}else{if(this.createTextRange){var f=this.createTextRange();f.collapse(true);f.moveEnd("character",c);f.moveStart("character",e);f.select()}}})}else{if(this[0].setSelectionRange){e=this[0].selectionStart;c=this[0].selectionEnd}else{if(document.selection&&document.selection.createRange){var d=document.selection.createRange();e=0-d.duplicate().moveStart("character",-100000);c=e+d.text.length}}return{begin:e,end:c}}};var a={"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};b.mask={addPlaceholder:function(e,d){a[e]=d}};b.fn.unmask=function(){return this.trigger("unmask")};b.fn.mask=function(c,e){e=b.extend({placeholder:"_",completed:null},e);var d=new RegExp("^"+b.map(c.split(""),function(g,f){return a[g]||((/[A-Za-z0-9]/.test(g)?"":"\\")+g)}).join("")+"$");return this.each(function(){var o=b(this);var i=new Array(c.length);var j=new Array(c.length);var f=false;var n=false;var r=null;b.each(c.split(""),function(u,v){j[u]=(a[v]==null);i[u]=j[u]?v:e.placeholder;if(!j[u]&&r==null){r=u}});function q(){h();l();setTimeout(function(){b(o[0]).caret(f?c.length:r)},0)}function k(v){var w=b(this).caret();var u=v.keyCode;n=(u<16||(u>16&&u<32)||(u>32&&u<41));if((w.begin-w.end)!=0&&(!n||u==8||u==46)){g(w.begin,w.end)}if(u==8){while(w.begin-->=0){if(!j[w.begin]){i[w.begin]=e.placeholder;if(b.browser.opera){s=l();o.val(s.substring(0,w.begin)+" "+s.substring(w.begin));b(this).caret(w.begin+1)}else{l();b(this).caret(Math.max(r,w.begin))}return false}}}else{if(u==46){g(w.begin,w.begin+1);l();b(this).caret(Math.max(r,w.begin));return false}else{if(u==27){g(0,c.length);l();b(this).caret(r);return false}}}}function t(x){if(n){n=false;return(x.keyCode==8)?false:null}x=x||window.event;var u=x.charCode||x.keyCode||x.which;var y=b(this).caret();if(x.ctrlKey||x.altKey){return true}else{if((u>=41&&u<=122)||u==32||u>186){var w=m(y.begin-1);if(w<c.length){if(new RegExp(a[c.charAt(w)]).test(String.fromCharCode(u))){i[w]=String.fromCharCode(u);l();var v=m(w);b(this).caret(v);if(e.completed&&v==c.length){e.completed.call(o)}}}}}return false}function g(w,u){for(var v=w;v<u&&v<c.length;v++){if(!j[v]){i[v]=e.placeholder}}}function l(){return o.val(i.join("")).val()}function h(){var y=o.val();var x=0;for(var v=0;v<c.length;v++){if(!j[v]){i[v]=e.placeholder;while(x++<y.length){var u=new RegExp(a[c.charAt(v)]);if(y.charAt(x-1).match(u)){i[v]=y.charAt(x-1);break}}}}var w=l();if(!w.match(d)){o.val("");g(0,c.length);f=false}else{f=true}}function m(u){while(++u<c.length){if(!j[u]){return u}}return c.length}o.one("unmask",function(){o.unbind("focus",q);o.unbind("blur",h);o.unbind("keydown",k);o.unbind("keypress",t);if(b.browser.msie){this.onpaste=null}else{if(b.browser.mozilla){this.removeEventListener("input",h,false)}}});o.bind("focus",q);o.bind("blur",h);o.bind("keydown",k);o.bind("keypress",t);if(b.browser.msie){this.onpaste=function(){setTimeout(h,0)}}else{if(b.browser.mozilla){this.addEventListener("input",h,false)}}h()})}})(jQuery);(function(f){if(/1\.(0|1|2)\.(0|1|2)/.test(f.fn.jquery)||/^1.1/.test(f.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+f.fn.jquery);return}f.blockUI=function(m){c(window,m)};f.unblockUI=function(m){g(window,m)};f.fn.block=function(m){return this.each(function(){if(f.css(this,"position")=="static"){this.style.position="relative"}if(f.browser.msie){this.style.zoom=1}c(this,m)})};f.fn.unblock=function(m){return this.each(function(){g(this,m)})};f.blockUI.version=2.08;f.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:"0.0"},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null};var d=f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var b=null;var e=[];function c(o,m){var B=(o==window);var q=m&&m.message!==undefined?m.message:undefined;m=f.extend({},f.blockUI.defaults,m||{});m.overlayCSS=f.extend({},f.blockUI.defaults.overlayCSS,m.overlayCSS||{});var A=f.extend({},f.blockUI.defaults.css,m.css||{});q=q===undefined?m.message:q;if(B&&b){g(window,{fadeOut:0})}if(q&&typeof q!="string"&&(q.parentNode||q.jquery)){var u=q.jquery?q[0]:q;var y={};f(o).data("blockUI.history",y);y.el=u;y.parent=u.parentNode;y.display=u.style.display;y.position=u.style.position;y.parent.removeChild(u)}var C=m.baseZ;var x=(f.browser.msie)?f('<iframe class="blockUI" style="z-index:'+C+++';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):f('<div class="blockUI" style="display:none"></div>');var w=f('<div class="blockUI" style="z-index:'+C+++';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var r=B?f('<div class="blockUI blockMsg blockPage" style="z-index:'+C+';position:fixed"></div>'):f('<div class="blockUI blockMsg blockElement" style="z-index:'+C+';display:none;position:absolute"></div>');if(q){r.css(A)}if(!m.applyPlatformOpacityRules||!(f.browser.mozilla&&/Linux/.test(navigator.platform))){w.css(m.overlayCSS)}w.css("position",B?"fixed":"absolute");if(f.browser.msie){x.css("opacity","0.0")}f([x[0],w[0],r[0]]).appendTo(B?"body":o);var E=f.browser.msie&&(!f.boxModel||f("object,embed",B?null:o).length>0);if(d||E){if(B&&m.allowBodyStretch&&f.boxModel){f("html,body").css("height","100%")}if((d||!f.boxModel)&&!B){var F=j(o,"borderTopWidth"),v=j(o,"borderLeftWidth");var D=F?"(0 - "+F+")":0;var n=v?"(0 - "+v+")":0}f.each([x,w,r],function(t,G){var z=G[0].style;z.position="absolute";if(t<2){B?z.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):z.setExpression("height",'this.parentNode.offsetHeight + "px"');B?z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):z.setExpression("width",'this.parentNode.offsetWidth + "px"');if(n){z.setExpression("left",n)}if(D){z.setExpression("top",D)}}else{if(m.centerY){if(B){z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}z.marginTop=0}}})}r.append(q).show();if(q&&(q.jquery||q.nodeType)){f(q).show()}i(1,o,m);if(B){b=r[0];e=f(":input:enabled:visible",b);if(m.focusInput){setTimeout(l,20)}}else{a(r[0],m.centerX,m.centerY)}}function g(o,q){var n=o==window;var r=f(o).data("blockUI.history");q=f.extend({},f.blockUI.defaults,q||{});i(0,o,q);var m=n?f("body").children().filter(".blockUI"):f(".blockUI",o);if(n){b=e=null}if(q.fadeOut){m.fadeOut(q.fadeOut);setTimeout(function(){h(m,r,q,o)},q.fadeOut)}else{h(m,r,q,o)}}function h(m,q,o,n){m.each(function(r,t){if(this.parentNode){this.parentNode.removeChild(this)}});if(q&&q.el){q.el.style.display=q.display;q.el.style.position=q.position;q.parent.appendChild(q.el);f(q.el).removeData("blockUI.history")}if(typeof o.onUnblock=="function"){o.onUnblock(n,o)}}function i(m,r,t){var q=r==window,o=f(r);if(!m&&(q&&!b||!q&&!o.data("blockUI.isBlocked"))){return}if(!q){o.data("blockUI.isBlocked",m)}var n="mousedown mouseup keydown keypress click";m?f(document).bind(n,t,k):f(document).unbind(n,k)}function k(q){if(q.keyCode&&q.keyCode==9){if(b&&q.data.constrainTabKey){var o=e;var n=!q.shiftKey&&q.target==o[o.length-1];var m=q.shiftKey&&q.target==o[0];if(n||m){setTimeout(function(){l(m)},10);return false}}}if(f(q.target).parents("div.blockMsg").length>0){return true}return f(q.target).parents().children().filter("div.blockUI").length==0}function l(m){if(!e){return}var n=e[m===true?e.length-1:0];if(n){n.focus()}}function a(r,m,v){var u=r.parentNode,q=r.style;var n=((u.offsetWidth-r.offsetWidth)/2)-j(u,"borderLeftWidth");var o=((u.offsetHeight-r.offsetHeight)/2)-j(u,"borderTopWidth");if(m){q.left=n>0?(n+"px"):"0"}if(v){q.top=o>0?(o+"px"):"0"}}function j(m,n){return parseInt(f.css(m,n))||0}})(jQuery);(function(a){a.fn.addOption=function(){var h=function(q,k,m,r){var n=document.createElement("option");n.value=k,n.text=m;var u=q.options;var j=u.length;if(!q.cache){q.cache={};for(var l=0;l<j;l++){q.cache[u[l].value]=l}}if(typeof q.cache[k]=="undefined"){q.cache[k]=j}q.options[q.cache[k]]=n;if(r){n.selected=true}};var c=arguments;if(c.length==0){return this}var g=true;var b=false;var e,d,f;if(typeof(c[0])=="object"){b=true;e=c[0]}if(c.length>=2){if(typeof(c[1])=="boolean"){g=c[1]}else{if(typeof(c[2])=="boolean"){g=c[2]}}if(!b){d=c[0];f=c[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(b){for(var i in e){h(this,i,e[i],g)}}else{h(this,d,f,g)}});return this};a.fn.ajaxAddOption=function(d,f,b,e,c,g){if(typeof(d)!="string"){return this}if(typeof(f)!="object"){f={}}if(typeof(b)!="boolean"){b=true}this.each(function(){var h=this;if(g!="post"){a.getJSON(d,f,function(i){a(h).addOption(i,b);if(typeof e=="function"){if(typeof c=="object"){e.apply(h,c)}else{e.call(h)}}})}else{a.ajax({type:"POST",url:d,data:f,dataType:"json",success:function(i){a(h).addOption(i,b);if(typeof e=="function"){if(typeof c=="object"){e.call(h,c)}else{e.call(h)}}}})}});return this};a.fn.removeOption=function(){var b=arguments;if(b.length==0){return this}var d=typeof(b[0]);var c,e;if(d=="string"||d=="object"||d=="function"){c=b[0]}else{if(d=="number"){e=b[0]}else{return this}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(this.cache){this.cache=null}var f=false;var j=this.options;if(!!c){var g=j.length;for(var h=g-1;h>=0;h--){if(c.constructor==RegExp){if(j[h].value.match(c)){f=true}}else{if(j[h].value==c){f=true}}if(f&&b[1]===true){f=j[h].selected}if(f){j[h]=null}f=false}}else{if(b[1]===true){f=j[e].selected}else{f=true}if(f){this.remove(e)}}});return this};a.fn.sortOptions=function(c){var b=typeof(c)=="undefined"?true:!!c;this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}var f=this.options;var d=f.length;var g=[];for(var e=0;e<d;e++){g[e]={v:f[e].value,t:f[e].text}}g.sort(function(i,h){o1t=i.t.toLowerCase(),o2t=h.t.toLowerCase();if(o1t==o2t){return 0}if(b){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var e=0;e<d;e++){f[e].text=g[e].t;f[e].value=g[e].v}});return this};a.fn.selectOptions=function(e,b){var d=e;var f=typeof(e);var g=b||false;if(f!="string"&&f!="function"&&f!="object"){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var j=this.options;var c=j.length;for(var h=0;h<c;h++){if(d.constructor==RegExp){if(j[h].value.match(d)){j[h].selected=true}else{if(g){j[h].selected=false}}}else{if(j[h].value==d){j[h].selected=true}else{if(g){j[h].selected=false}}}}});return this};a.fn.copyOptions=function(d,c){var b=c||"selected";if(a(d).size()==0){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var g=this.options;var e=g.length;for(var f=0;f<e;f++){if(b=="all"||(b=="selected"&&g[f].selected)){a(d).addOption(g[f].value,g[f].text)}}});return this};a.fn.containsOption=function(e,c){var d=false;var b=e;var f=typeof(b);var g=typeof(c);if(f!="string"&&f!="function"&&f!="object"){return g=="function"?this:d}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}if(d&&g!="function"){return false}var k=this.options;var h=k.length;for(var j=0;j<h;j++){if(b.constructor==RegExp){if(k[j].value.match(b)){d=true;if(g=="function"){c.call(k[j])}}}else{if(k[j].value==b){d=true;if(g=="function"){c.call(k[j])}}}}});return g=="function"?this:d};a.fn.selectedValues=function(){var b=[];this.find("option:selected").each(function(){b[b.length]=this.value});return b}})(jQuery);(function(a){a.fn.maskMoney=function(b){b=a.extend({symbol:"US$",decimal:".",thousands:",",showSymbol:true},b);b.symbol=b.symbol+" ";return this.each(function(){var e=a(this);function h(n){n=n||window.event;var l=n.charCode||n.keyCode||n.which;if(l==8){g(n);var j=e.val().substring(0,e.val().length-1);e.val(c(j));return false}if((l<48||l>57)){g(n);return true}var m=String.fromCharCode(l);g(n);e.val(c(e.val()+m))}function g(j){if(j.preventDefault){j.preventDefault()}else{j.returnValue=false}}function c(u){u=u.replace(b.symbol,"");var r="";var j="0123456789";var o=u.length;var w="";if(o==0){w="0.00"}for(var n=0;n<o;n++){if((u.charAt(n)!="0")&&(u.charAt(n)!=b.decimal)){break}}for(;n<o;n++){if(j.indexOf(u.charAt(n))!=-1){r+=u.charAt(n)}}if(r.length==0){w="0.00"}else{if(r.length==1){w="0.0"+r}else{if(r.length==2){w="0."+r}else{var m=r.substring(0,r.length-2);var l=r.substring(r.length-2);w=m+"."+l}}}var k,q=(w=w.split("."))[1].substr(0,2);for(k=(w=w[0]).length;(k-=3)>=1;){w=w.substr(0,k)+b.thousands+w.substr(k)}return i(w+b.decimal+q+Array(3-q.length).join(0))}function d(){if(e.val()==""){e.val(i("0"+b.decimal+"00"))}else{e.val(i(e.val()))}}function f(){if(e.val()==i("0"+b.decimal+"00")){e.val("")}else{e.val(e.val().replace(b.symbol,""))}}function i(j){if(b.showSymbol){return b.symbol+j}return j}e.bind("keypress",h);e.bind("blur",f);e.bind("focus",d);e.one("unmaskMoney",function(){e.unbind("focus",d);e.unbind("blur",f);e.unbind("keypress",h);if(a.browser.msie){this.onpaste=null}else{if(a.browser.mozilla){this.removeEventListener("input",f,false)}}})})};a.fn.unmaskMoney=function(){return this.trigger("unmaskMoney")}})(jQuery);(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(q){q=e.extend({},e.tooltip.defaults,q);h(q);return this.each(function(){e.data(this,"tooltip-settings",q);this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).hover(l,f).click(f)},fixPNG:j?function(){return this.each(function(){var q=e(this).css("backgroundImage");if(q.match(/^url\(["']?(.*\.png)["']?\)$/i)){q=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+q+"')"}).each(function(){var r=e(this).css("position");if(r!="absolute"&&r!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(q){if(b.parent){return}b.parent=e('<div id="'+q.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(q){return e.data(q,"tooltip-settings")}function g(q){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(q)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var u=c(this).bodyHandler.call(this);if(u.nodeType||u.jquery){b.body.empty().append(u)}else{b.body.html(u)}b.body.show()}else{if(c(this).showBody){var t=m.split(c(this).showBody);b.title.html(t.shift()).show();b.body.empty();for(var r=0,q;q=t[r];r++){if(r>0){b.body.append("<br/>")}b.body.append(q)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;b.parent.show();d()}function d(t){if(e.tooltip.blocked){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var w=b.parent[0].offsetLeft;var u=b.parent[0].offsetTop;if(t){w=t.pageX+c(k).left;u=t.pageY+c(k).top;b.parent.css({left:w+"px",top:u+"px"})}var q=i(),r=b.parent[0];if(q.x+q.cx<r.offsetLeft+r.offsetWidth){w-=r.offsetWidth+20+c(k).left;b.parent.css({left:w+"px"}).addClass("viewport-right")}if(q.y+q.cy<r.offsetTop+r.offsetHeight){u-=r.offsetHeight+20+c(k).top;b.parent.css({top:u+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(q){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;b.parent.hide().removeClass(c(this).extraClass);if(c(this).fixPNG){b.parent.unfixPNG()}}e.fn.Tooltip=e.fn.tooltip})(jQuery);(function(a){a.fn.jclock=function(c){var b="0.2.1";var d=a.extend({},a.fn.jclock.defaults,c);return this.each(function(){$this=a(this);$this.timerID=null;$this.running=false;var e=a.meta?a.extend({},d,$this.data()):d;$this.timeNotation=e.timeNotation;$this.am_pm=e.am_pm;$this.utc=e.utc;$this.utc_offset=e.utc_offset;$this.css({fontFamily:e.fontFamily,fontSize:e.fontSize,backgroundColor:e.background,color:e.foreground});a.fn.jclock.startClock($this)})};a.fn.jclock.startClock=function(b){a.fn.jclock.stopClock(b);a.fn.jclock.displayTime(b)};a.fn.jclock.stopClock=function(b){if(b.running){clearTimeout(b.timerID)}b.running=false};a.fn.jclock.displayTime=function(b){var c=a.fn.jclock.getTime(b);b.html(c);b.timerID=setTimeout(function(){a.fn.jclock.displayTime(b)},1000)};a.fn.jclock.getTime=function(c){var b=new Date();var l=b.getTime();l=l+delta;b.setTime(l);var i,d,j;var h,f,g;if(c.utc==true){if(c.utc_offset!=0){b.setUTCHours(b.getUTCHours()+c.utc_offset)}i=b.getUTCHours();d=b.getUTCMinutes();j=b.getUTCSeconds()}else{i=b.getHours();d=b.getMinutes();j=b.getSeconds();h=b.getDate();f=b.getMonth()+1;g=b.getFullYear()}var k="";(i>=12)?k=" P.M.":k=" A.M.";if(c.timeNotation=="12h"){i=((i>12)?i-12:i)}else{i=((i<10)?"0":"")+i}d=((d<10)?"0":"")+d;j=((j<10)?"0":"")+j;h=((h<10)?"0":"")+h;f=((f<10)?"0":"")+f;var e=h+"."+f+"."+g.toString().substring(2)+" <br/> "+i+":"+d+":"+j;if((c.timeNotation=="12h")&&(c.am_pm==true)){e+=k}return e};a.fn.jclock.defaults={timeNotation:"24h",am_pm:false,utc:false,fontFamily:"",fontSize:"",foreground:"",background:"",utc_offset:0,delta:0}})(jQuery);var languageCode="sk";var calendar_display_time=true;var todayStringFormat="[todayString] [UCFdayString]. [day]. [monthString] [year]";var pathToImages="./application/images/datetimepicker/";var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=-140;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("Opera")<0){MSIE=true}if(navigator.userAgent.indexOf("Opera")>=0){Opera=true}switch(languageCode){case"en":var monthArray=["January","February","March","April","May","June","July","August","September","October","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var dayArray=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var weekString="Wk";var todayString="";break;case"sk":var monthArray=["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"];var dayArray=["Pon","Ut","Str","Štv","Pi","Sob","Ned"];var weekString="T";var todayString="";break}var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];var currentMonth;var currentYear;var currentHour;var currentMinute;var calendarContentDiv;var returnDateTo;var returnFormat;var activeSelectBoxMonth;var activeSelectBoxYear;var activeSelectBoxHour;var activeSelectBoxMinute;var iframeObj=false;var returnDateToYear;var returnDateToMonth;var returnDateToDay;var returnDateToHour;var returnDateToMinute;var inputYear;var inputMonth;var inputDay;var inputHour;var inputMinute;var calendarDisplayTime=true;var selectBoxHighlightColor="#D60808";var selectBoxRolloverBgColor="#E2EBED";var selectBoxMovementInProgress=false;var activeSelectBox=false;function cancelCalendarEvent(){return false}function isLeapYear(a){if(a%400==0||(a%4==0&&a%100!=0)){return true}return false}var activeSelectBoxMonth=false;var activeSelectBoxDirection=false;function highlightMonthYear(){if(activeSelectBoxMonth){activeSelectBoxMonth.className=""}activeSelectBox=this;if(this.className=="monthYearActive"){this.className=""}else{this.className="monthYearActive";activeSelectBoxMonth=this}if(this.innerHTML.indexOf("-")>=0||this.innerHTML.indexOf("+")>=0){if(this.className=="monthYearActive"){selectBoxMovementInProgress=true}else{selectBoxMovementInProgress=false}if(this.innerHTML.indexOf("-")>=0){activeSelectBoxDirection=-1}else{activeSelectBoxDirection=1}}else{selectBoxMovementInProgress=false}}function showMonthDropDown(){if(document.getElementById("monthDropDown").style.display=="block"){document.getElementById("monthDropDown").style.display="none"}else{document.getElementById("monthDropDown").style.display="block";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none"}}function showYearDropDown(){if(document.getElementById("yearDropDown").style.display=="block"){document.getElementById("yearDropDown").style.display="none"}else{document.getElementById("yearDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none"}}function showHourDropDown(){if(document.getElementById("hourDropDown").style.display=="block"){document.getElementById("hourDropDown").style.display="none"}else{document.getElementById("hourDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none"}}function showMinuteDropDown(){if(document.getElementById("minuteDropDown").style.display=="block"){document.getElementById("minuteDropDown").style.display="none"}else{document.getElementById("minuteDropDown").style.display="block";document.getElementById("monthDropDown").style.display="none";document.getElementById("yearDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none"}}function selectMonth(){document.getElementById("calendar_month_txt").innerHTML=this.innerHTML;currentMonth=this.id.replace(/[^\d]/g,"");document.getElementById("monthDropDown").style.display="none";for(var a=0;a<monthArray.length;a++){document.getElementById("monthDiv_"+a).style.color=""}this.style.color=selectBoxHighlightColor;activeSelectBoxMonth=this;writeCalendarContent()}function selectHour(){document.getElementById("calendar_hour_txt").innerHTML=this.innerHTML;currentHour=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("hourDropDown").style.display="none";if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor}function selectMinute(){document.getElementById("calendar_minute_txt").innerHTML=this.innerHTML;currentMinute=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("minuteDropDown").style.display="none";if(activeSelectBoxMinute){activeSelectBoxMinute.style.color=""}activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor}function selectYear(){document.getElementById("calendar_year_txt").innerHTML=this.innerHTML;currentYear=this.innerHTML.replace(/[^\d]/g,"");document.getElementById("yearDropDown").style.display="none";if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;writeCalendarContent()}function switchMonth(){if(this.src.indexOf("left")>=0){currentMonth=currentMonth-1;if(currentMonth<0){currentMonth=11;currentYear=currentYear-1}}else{currentMonth=currentMonth+1;if(currentMonth>11){currentMonth=0;currentYear=currentYear/1+1}}writeCalendarContent()}function createMonthDiv(){var c=document.createElement("DIV");c.className="monthYearPicker";c.id="monthPicker";for(var b=0;b<monthArray.length;b++){var a=document.createElement("DIV");a.innerHTML=monthArray[b];a.onmouseover=highlightMonthYear;a.onmouseout=highlightMonthYear;a.onclick=selectMonth;a.id="monthDiv_"+b;a.style.width="56px";a.onselectstart=cancelCalendarEvent;c.appendChild(a);if(currentMonth&&currentMonth==b){a.style.color=selectBoxHighlightColor;activeSelectBoxMonth=a}}return c}function changeSelectBoxYear(d,b){if(!b){b=this}var c=b.parentNode.getElementsByTagName("DIV");if(b.innerHTML.indexOf("-")>=0){var a=c[1].innerHTML/1-1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}else{var a=c[1].innerHTML/1+1;if(activeSelectBoxYear){activeSelectBoxYear.style.color=""}}for(var f=1;f<c.length-1;f++){c[f].innerHTML=a+f-1;c[f].id="yearDiv"+(a/1+f/1-1)}if(activeSelectBoxYear){activeSelectBoxYear.style.color="";if(document.getElementById("yearDiv"+currentYear)){activeSelectBoxYear=document.getElementById("yearDiv"+currentYear);activeSelectBoxYear.style.color=selectBoxHighlightColor}}}function changeSelectBoxHour(d,a){if(!a){a=this}var b=a.parentNode.getElementsByTagName("DIV");if(a.innerHTML.indexOf("-")>=0){var g=b[1].innerHTML/1-1;if(g<0){g=0}if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}else{var g=b[1].innerHTML/1+1;if(g>14){g=14}if(activeSelectBoxHour){activeSelectBoxHour.style.color=""}}var c="";for(var f=1;f<b.length-1;f++){if((g/1+f/1)<11){c="0"}else{c=""}b[f].innerHTML=c+(g+f-1);b[f].id="hourDiv"+(g/1+f/1-1)}if(activeSelectBoxHour){activeSelectBoxHour.style.color="";if(document.getElementById("hourDiv"+currentHour)){activeSelectBoxHour=document.getElementById("hourDiv"+currentHour);activeSelectBoxHour.style.color=selectBoxHighlightColor}}}function updateYearDiv(){var c=document.getElementById("yearDropDown");var a=c.getElementsByTagName("DIV");for(var b=1;b<a.length-1;b++){a[b].innerHTML=currentYear/1-6+b;if(currentYear==(currentYear/1-6+b)){a[b].style.color=selectBoxHighlightColor;activeSelectBoxYear=a[b]}else{a[b].style.color=""}}}function updateMonthDiv(){for(no=0;no<12;no++){document.getElementById("monthDiv_"+no).style.color=""}document.getElementById("monthDiv_"+currentMonth).style.color=selectBoxHighlightColor;activeSelectBoxMonth=document.getElementById("monthDiv_"+currentMonth)}function updateHourDiv(){var e=document.getElementById("hourDropDown");var b=e.getElementsByTagName("DIV");var a=0;if((currentHour/1-6+1)<0){a=(currentHour/1-6+1)*-1}for(var d=1;d<b.length-1;d++){var c="";if((currentHour/1-6+d+a)<10){c="0"}b[d].innerHTML=c+(currentHour/1-6+d+a);if(currentHour==(currentHour/1-6+d)){b[d].style.color=selectBoxHighlightColor;activeSelectBoxHour=b[d]}else{b[d].style.color=""}}}function updateMinuteDiv(){for(no=0;no<60;no+=intervalSelectBox_minutes){var a="";if(no<10){a="0"}document.getElementById("minuteDiv_"+a+no).style.color=""}if(document.getElementById("minuteDiv_"+currentMinute)){document.getElementById("minuteDiv_"+currentMinute).style.color=selectBoxHighlightColor;activeSelectBoxMinute=document.getElementById("minuteDiv_"+currentMinute)}}function createYearDiv(){if(!document.getElementById("yearDropDown")){var g=document.createElement("DIV");g.className="monthYearPicker"}else{var g=document.getElementById("yearDropDown");var f=g.getElementsByTagName("DIV");for(var e=0;e<f.length;e++){f[e].parentNode.removeChild(f[e])}}var c=new Date();if(currentYear){c.setFullYear(currentYear)}var a=c.getFullYear()/1-5;var b=document.createElement("DIV");b.innerHTML="&nbsp;&nbsp;- ";b.onclick=changeSelectBoxYear;b.onmouseover=highlightMonthYear;b.onmouseout=function(){selectBoxMovementInProgress=false};b.onselectstart=cancelCalendarEvent;g.appendChild(b);for(var e=a;e<(a+10);e++){var b=document.createElement("DIV");b.innerHTML=e;b.onmouseover=highlightMonthYear;b.onmouseout=highlightMonthYear;b.onclick=selectYear;b.id="yearDiv"+e;b.onselectstart=cancelCalendarEvent;g.appendChild(b);if(currentYear&&currentYear==e){b.style.color=selectBoxHighlightColor;activeSelectBoxYear=b}}var b=document.createElement("DIV");b.innerHTML="&nbsp;&nbsp;+ ";b.onclick=changeSelectBoxYear;b.onmouseover=highlightMonthYear;b.onmouseout=function(){selectBoxMovementInProgress=false};b.onselectstart=cancelCalendarEvent;g.appendChild(b);return g}function slideCalendarSelectBox(){if(selectBoxMovementInProgress){if(activeSelectBox.parentNode.id=="hourDropDown"){changeSelectBoxHour(false,activeSelectBox)}if(activeSelectBox.parentNode.id=="yearDropDown"){changeSelectBoxYear(false,activeSelectBox)}}setTimeout("slideCalendarSelectBox()",speedOfSelectBoxSliding)}function createHourDiv(){if(!document.getElementById("hourDropDown")){var f=document.createElement("DIV");f.className="monthYearPicker"}else{var f=document.getElementById("hourDropDown");var e=f.getElementsByTagName("DIV");for(var d=0;d<e.length;d++){e[d].parentNode.removeChild(e[d])}}if(!currentHour){currentHour=0}var c=currentHour/1;if(c>14){c=14}var a=document.createElement("DIV");a.innerHTML="&nbsp;&nbsp;- ";a.onclick=changeSelectBoxHour;a.onmouseover=highlightMonthYear;a.onmouseout=function(){selectBoxMovementInProgress=false};a.onselectstart=cancelCalendarEvent;f.appendChild(a);for(var d=c;d<c+10;d++){var b="";if(d/1<10){b="0"}var a=document.createElement("DIV");a.innerHTML=b+d;a.onmouseover=highlightMonthYear;a.onmouseout=highlightMonthYear;a.onclick=selectHour;a.id="hourDiv"+d;a.onselectstart=cancelCalendarEvent;f.appendChild(a);if(currentYear&&currentYear==d){a.style.color=selectBoxHighlightColor;activeSelectBoxYear=a}}var a=document.createElement("DIV");a.innerHTML="&nbsp;&nbsp;+ ";a.onclick=changeSelectBoxHour;a.onmouseover=highlightMonthYear;a.onmouseout=function(){selectBoxMovementInProgress=false};a.onselectstart=cancelCalendarEvent;f.appendChild(a);return f}function createMinuteDiv(){if(!document.getElementById("minuteDropDown")){var f=document.createElement("DIV");f.className="monthYearPicker"}else{var f=document.getElementById("minuteDropDown");var e=f.getElementsByTagName("DIV");for(var d=0;d<e.length;d++){e[d].parentNode.removeChild(e[d])}}var a=0;var c="";for(var d=a;d<60;d+=intervalSelectBox_minutes){if(d<10){c="0"}else{c=""}var b=document.createElement("DIV");b.innerHTML=c+d;b.onmouseover=highlightMonthYear;b.onmouseout=highlightMonthYear;b.onclick=selectMinute;b.id="minuteDiv_"+c+d;b.onselectstart=cancelCalendarEvent;f.appendChild(b);if(currentYear&&currentYear==d){b.style.color=selectBoxHighlightColor;activeSelectBoxYear=b}}return f}function highlightSelect(){if(this.className=="selectBoxTime"){this.className="selectBoxTimeOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time_over.gif"}else{if(this.className=="selectBoxTimeOver"){this.className="selectBoxTime";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time.gif"}}if(this.className=="selectBox"){this.className="selectBoxOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_over.gif"}else{if(this.className=="selectBoxOver"){this.className="selectBox";this.getElementsByTagName("IMG")[0].src=pathToImages+"down.gif"}}}function highlightArrow(){if(this.src.indexOf("over")>=0){if(this.src.indexOf("left")>=0){this.src=pathToImages+"left.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right.gif"}}else{if(this.src.indexOf("left")>=0){this.src=pathToImages+"left_over.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right_over.gif"}}}function highlightClose(){if(this.src.indexOf("over")>=0){this.src=pathToImages+"close.gif"}else{this.src=pathToImages+"close_over.gif"}}function closeCalendar(){if(document.getElementById("yearDropDown")==null){return}document.getElementById("yearDropDown").style.display="none";document.getElementById("monthDropDown").style.display="none";document.getElementById("hourDropDown").style.display="none";document.getElementById("minuteDropDown").style.display="none";calendarDiv.style.display="none";if(iframeObj){iframeObj.style.display="none"}if(activeSelectBoxMonth){activeSelectBoxMonth.className=""}if(activeSelectBoxYear){activeSelectBoxYear.className=""}}function writeTopBar(){var c=document.createElement("DIV");c.className="topBar";c.id="topBar";calendarDiv.appendChild(c);var g=document.createElement("DIV");g.style.marginRight="1px";var d=document.createElement("IMG");d.src=pathToImages+"left.gif";d.onmouseover=highlightArrow;d.onclick=switchMonth;d.onmouseout=highlightArrow;g.appendChild(d);c.appendChild(g);if(Opera){g.style.width="16px"}var i=document.createElement("DIV");i.style.marginRight="1px";var d=document.createElement("IMG");d.src=pathToImages+"right.gif";d.onclick=switchMonth;d.onmouseover=highlightArrow;d.onmouseout=highlightArrow;i.appendChild(d);if(Opera){i.style.width="16px"}c.appendChild(i);var b=document.createElement("DIV");b.id="monthSelect";b.onmouseover=highlightSelect;b.onmouseout=highlightSelect;b.onclick=showMonthDropDown;var h=document.createElement("SPAN");h.innerHTML=monthArray[currentMonth];h.id="calendar_month_txt";b.appendChild(h);var d=document.createElement("IMG");d.src=pathToImages+"down.gif";d.style.position="absolute";d.style.right="0px";b.appendChild(d);b.className="selectBox";if(Opera){d.style.cssText="float:right;position:relative";d.style.position="relative";d.style.styleFloat="right"}c.appendChild(b);var a=createMonthDiv();a.style.left="37px";a.style.top=b.offsetTop+b.offsetHeight+1+"px";a.style.width="60px";a.id="monthDropDown";calendarDiv.appendChild(a);var f=document.createElement("DIV");f.onmouseover=highlightSelect;f.onmouseout=highlightSelect;f.onclick=showYearDropDown;var h=document.createElement("SPAN");h.innerHTML=currentYear;h.id="calendar_year_txt";f.appendChild(h);c.appendChild(f);var d=document.createElement("IMG");d.src=pathToImages+"down.gif";f.appendChild(d);f.className="selectBox";if(Opera){f.style.width="50px";d.style.cssText="float:right";d.style.position="relative";d.style.styleFloat="right"}var e=createYearDiv();e.style.left="113px";e.style.top=b.offsetTop+b.offsetHeight+1+"px";e.style.width="35px";e.id="yearDropDown";calendarDiv.appendChild(e);var d=document.createElement("IMG");d.src=pathToImages+"close.gif";d.style.styleFloat="right";d.onmouseover=highlightClose;d.onmouseout=highlightClose;d.onclick=closeCalendar;c.appendChild(d);if(!document.all){d.style.position="absolute";d.style.right="2px"}}function writeCalendarContent(){var e=true;if(!calendarContentDiv){calendarContentDiv=document.createElement("DIV");calendarDiv.appendChild(calendarContentDiv);e=false}currentMonth=currentMonth/1;var i=new Date();i.setFullYear(currentYear);i.setDate(1);i.setMonth(currentMonth);var f=i.getDay();if(f==0){f=7}f--;document.getElementById("calendar_year_txt").innerHTML=currentYear;document.getElementById("calendar_month_txt").innerHTML=monthArray[currentMonth];document.getElementById("calendar_hour_txt").innerHTML=currentHour;document.getElementById("calendar_minute_txt").innerHTML=currentMinute;var a=calendarContentDiv.getElementsByTagName("TABLE");if(a.length>0){calendarContentDiv.removeChild(a[0])}var h=document.createElement("TABLE");h.cellSpacing="0";calendarContentDiv.appendChild(h);var g=document.createElement("TBODY");h.appendChild(g);var m=g.insertRow(-1);var j=m.insertCell(-1);j.innerHTML=weekString;j.style.backgroundColor=selectBoxRolloverBgColor;for(var k=0;k<dayArray.length;k++){var j=m.insertCell(-1);j.innerHTML=dayArray[k]}var m=g.insertRow(-1);var j=m.insertCell(-1);j.style.backgroundColor=selectBoxRolloverBgColor;var c=getWeek(currentYear,currentMonth,1);j.innerHTML=c;for(var k=0;k<f;k++){var j=m.insertCell(-1);j.innerHTML="&nbsp;"}var l=f;var b=daysInMonthArray[currentMonth];if(b==28){if(isLeapYear(currentYear)){b=29}}for(var k=1;k<=b;k++){i.setDate(k-1);if(l>0&&l%7==0){var m=g.insertRow(-1);var j=m.insertCell(-1);var c=getWeek(currentYear,currentMonth,k);j.innerHTML=c;j.style.backgroundColor=selectBoxRolloverBgColor}var j=m.insertCell(-1);if(currentYear==inputYear&&currentMonth==inputMonth&&k==inputDay){j.className="activeDay"}j.innerHTML=k;j.onclick=pickDate;l++}if(!document.all){if(calendarContentDiv.offsetHeight){document.getElementById("topBar").style.top=calendarContentDiv.offsetHeight+document.getElementById("timeBar").offsetHeight+document.getElementById("topBar").offsetHeight-1+"px"}else{document.getElementById("topBar").style.top="";document.getElementById("topBar").style.bottom="0px"}}if(iframeObj){if(!e){setTimeout("resizeIframe()",350)}else{setTimeout("resizeIframe()",10)}}}function resizeIframe(){iframeObj.style.width=calendarDiv.offsetWidth+"px";iframeObj.style.height=calendarDiv.offsetHeight+"px"}function pickTodaysDate(){var a=new Date();currentMonth=a.getMonth();currentYear=a.getFullYear();pickDate(false,a.getDate())}function pickDate(d,c){var b=currentMonth/1+1;if(b<10){b="0"+b}var a;if(!c&&this){a=this.innerHTML}else{a=c}if(a/1<10){a="0"+a}if(returnFormat){returnFormat=returnFormat.replace("dd",a);returnFormat=returnFormat.replace("mm",b);returnFormat=returnFormat.replace("yyyy",currentYear);returnFormat=returnFormat.replace("hh",currentHour);returnFormat=returnFormat.replace("ii",currentMinute);returnDateTo.value=returnFormat}else{for(var f=0;f<returnDateToYear.options.length;f++){if(returnDateToYear.options[f].value==currentYear){returnDateToYear.selectedIndex=f;break}}for(var f=0;f<returnDateToMonth.options.length;f++){if(returnDateToMonth.options[f].value==b){returnDateToMonth.selectedIndex=f;break}}for(var f=0;f<returnDateToDay.options.length;f++){if(returnDateToDay.options[f].value==a){returnDateToDay.selectedIndex=f;break}}if(calendarDisplayTime){for(var f=0;f<returnDateToHour.options.length;f++){if(returnDateToHour.options[f].value==currentHour){returnDateToHour.selectedIndex=f;break}}for(var f=0;f<returnDateToMinute.options.length;f++){if(returnDateToMinute.options[f].value==currentMinute){returnDateToMinute.selectedIndex=f;break}}}}closeCalendar()}function getWeek(f,d,h){h=h/1;f=f/1;d=d/1+1;var i=Math.floor((14-(d))/12);var g=f+4800-i;var c=(d)+(12*i)-3;var j=h+Math.floor(((153*c)+2)/5)+(365*g)+Math.floor(g/4)-Math.floor(g/100)+Math.floor(g/400)-32045;var k=(j+31741-(j%7))%146097%36524%1461;var e=Math.floor(k/1460);var b=((k-e)%365)+e;NumberOfWeek=Math.floor(b/7)+1;return NumberOfWeek}function writeTimeBar(){var f=document.createElement("DIV");f.id="timeBar";f.className="timeBar";var d=document.createElement("DIV");d.innerHTML="Time:";var a=document.createElement("DIV");a.onmouseover=highlightSelect;a.onmouseout=highlightSelect;a.onclick=showHourDropDown;a.style.width="30px";var e=document.createElement("SPAN");e.innerHTML=currentHour;e.id="calendar_hour_txt";a.appendChild(e);f.appendChild(a);var b=document.createElement("IMG");b.src=pathToImages+"down_time.gif";a.appendChild(b);a.className="selectBoxTime";if(Opera){a.style.width="30px";b.style.cssText="float:right";b.style.position="relative";b.style.styleFloat="right"}var c=createHourDiv();c.style.left="130px";c.style.width="35px";c.id="hourDropDown";calendarDiv.appendChild(c);var h=document.createElement("DIV");h.onmouseover=highlightSelect;h.onmouseout=highlightSelect;h.onclick=showMinuteDropDown;h.style.width="30px";var e=document.createElement("SPAN");e.innerHTML=currentMinute;e.id="calendar_minute_txt";h.appendChild(e);f.appendChild(h);var b=document.createElement("IMG");b.src=pathToImages+"down_time.gif";h.appendChild(b);h.className="selectBoxTime";if(Opera){h.style.width="30px";b.style.cssText="float:right";b.style.position="relative";b.style.styleFloat="right"}var g=createMinuteDiv();g.style.left="167px";g.style.width="35px";g.id="minuteDropDown";calendarDiv.appendChild(g);return f}function writeBottomBar(){var f=new Date();var e=document.createElement("DIV");e.id="bottomBar";e.style.cursor="pointer";e.className="todaysDate";var c=document.createElement("DIV");c.onclick=pickTodaysDate;c.id="todaysDateString";c.style.width=(calendarDiv.offsetWidth-95)+"px";var b=f.getDay();if(b==0){b=7}b--;var a=todayStringFormat;a=a.replace("[monthString]",monthArrayShort[f.getMonth()]);a=a.replace("[day]",f.getDate());a=a.replace("[year]",f.getFullYear());a=a.replace("[dayString]",dayArray[b].toLowerCase());a=a.replace("[UCFdayString]",dayArray[b]);a=a.replace("[todayString]",todayString);c.innerHTML=todayString+": "+f.getDate()+". "+monthArrayShort[f.getMonth()]+", "+f.getFullYear();c.innerHTML=a;e.appendChild(c);var g=writeTimeBar();e.appendChild(g);calendarDiv.appendChild(e)}function getTopPos(a){var b=a.offsetTop+a.offsetHeight;while((a=a.offsetParent)!=null){b+=a.offsetTop}return b+calendar_offsetTop}function getleftPos(a){var b=a.offsetLeft;while((a=a.offsetParent)!=null){b+=a.offsetLeft}return b+calendar_offsetLeft}function positionCalendar(a){calendarDiv.style.left=getleftPos(a)+"px";calendarDiv.style.top=getTopPos(a)+"px";if(iframeObj){iframeObj.style.left=calendarDiv.style.left;iframeObj.style.top=calendarDiv.style.top}}function initCalendar(){if(MSIE){iframeObj=document.createElement("IFRAME");iframeObj.style.position="absolute";iframeObj.border="0px";iframeObj.style.border="0px";iframeObj.style.backgroundColor="#FF0000";document.body.appendChild(iframeObj)}calendarDiv=document.createElement("DIV");calendarDiv.id="calendarDiv";calendarDiv.style.zIndex=1000;slideCalendarSelectBox();document.body.appendChild(calendarDiv);writeBottomBar();writeTopBar();if(!currentYear){var a=new Date();currentMonth=a.getMonth();currentYear=a.getFullYear()}writeCalendarContent()}function setTimeProperties(){if(!calendarDisplayTime){document.getElementById("timeBar").style.display="none";document.getElementById("timeBar").style.visibility="hidden";document.getElementById("todaysDateString").style.width="100%"}else{document.getElementById("timeBar").style.display="block";document.getElementById("timeBar").style.visibility="visible";document.getElementById("hourDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.top=document.getElementById("calendar_minute_txt").parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById("topBar").offsetHeight+"px";document.getElementById("minuteDropDown").style.right="50px";document.getElementById("hourDropDown").style.right="50px";document.getElementById("todaysDateString").style.width="115px"}}function displayCalendar(e,j,b,l,a){if(l){calendarDisplayTime=true}else{calendarDisplayTime=false}if(e.value.length==j.length){var k=j.indexOf("mm");currentMonth=e.value.substr(k,2)/1-1;var f=j.indexOf("yyyy");currentYear=e.value.substr(f,4);var h=j.indexOf("dd");tmpDay=e.value.substr(h,2);var g=j.indexOf("hh");if(g>=0){tmpHour=e.value.substr(g,2);currentHour=tmpHour}else{currentHour="00"}var c=j.indexOf("ii");if(c>=0){tmpMinute=e.value.substr(c,2);currentMinute=tmpMinute}else{currentMinute="00"}}else{var i=new Date();currentMonth=i.getMonth();currentYear=i.getFullYear();currentHour="08";currentMinute="00";tmpDay=i.getDate()}inputYear=currentYear;inputMonth=currentMonth;inputDay=tmpDay/1;if(!calendarDiv){initCalendar()}else{if(calendarDiv.style.display=="block"){closeCalendar();return false}writeCalendarContent()}returnFormat=j;returnDateTo=e;positionCalendar(b);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height="140px";iframeObj.style.width="195px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateMinuteDiv();updateHourDiv()}function displayCalendarSelectBox(e,f,d,c,b,a){if(!c){calendarDisplayTime=false}else{calendarDisplayTime=true}currentMonth=f.options[f.selectedIndex].value/1-1;currentYear=e.options[e.selectedIndex].value;if(c){currentHour=c.options[c.selectedIndex].value;inputHour=currentHour/1}if(b){currentMinute=b.options[b.selectedIndex].value;inputMinute=currentMinute/1}inputYear=e.options[e.selectedIndex].value;inputMonth=f.options[f.selectedIndex].value/1-1;inputDay=d.options[d.selectedIndex].value/1;if(!calendarDiv){initCalendar()}else{writeCalendarContent()}returnDateToYear=e;returnDateToMonth=f;returnDateToDay=d;returnDateToHour=c;returnDateToMinute=b;returnFormat=false;returnDateTo=false;positionCalendar(a);calendarDiv.style.visibility="visible";calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height=calendarDiv.offsetHeight+"px";iframeObj.style.width=calendarDiv.offsetWidth+"px"}setTimeProperties();updateYearDiv();updateMonthDiv();updateHourDiv();updateMinuteDiv()}(function(a){a.scrollFollow=function(f,d){f=a(f);var b=f.css("position");function c(){if(!isTicketFloating){return}f.queue([]);var h=parseInt(a(window).height());var j=parseInt(a(document).scrollTop());var k=parseInt(f.cont.offset().top);var i=parseInt(f.cont.attr("offsetHeight"));var l=parseInt(f.attr("offsetHeight")+(parseInt(f.css("marginTop"))||0)+(parseInt(f.css("marginBottom"))||0));var g;if(e){if(ticketScrollingFloatMode=="top"){if(f.initialOffsetTop>=(j+d.offset)){g=f.initialTop}else{g=Math.min((Math.max((-k),(j-f.initialOffsetTop+f.initialTop))+d.offset),(i-l-f.paddingAdjustment+f.initialTop))}}else{if(ticketScrollingFloatMode=="bottom"){if((f.initialOffsetTop+l)>=(j+d.offset+h)){g=f.initialTop}else{g=Math.min((j+h-l-d.offset),(i-l+f.initialTop))}}}if((new Date().getTime()-f.lastScroll)>=(d.delay-20)){f.animate({top:g},d.speed,d.easing)}}}var e=true;if(a.cookie!=undefined){if(a.cookie("scrollFollowSetting"+f.attr("id"))=="false"){var e=false;a("#"+d.killSwitch).text(d.offText).toggle(function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()},function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},d.speed,d.easing);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})})}else{a("#"+d.killSwitch).text(d.onText).toggle(function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},0);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})},function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()})}}if(d.container==""){f.cont=f.parent()}else{f.cont=a("#"+d.container)}f.initialOffsetTop=parseInt(f.offset().top);f.initialTop=parseInt(f.css("top"))||0;if(f.css("position")=="relative"){f.paddingAdjustment=parseInt(f.cont.css("paddingTop"))+parseInt(f.cont.css("paddingBottom"))}else{f.paddingAdjustment=0}a(window).scroll(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});a(window).resize(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});f.lastScroll=0;c()};a.fn.scrollFollow=function(b){b=b||{};b.relativeTo=b.relativeTo||"top";b.speed=b.speed||0;b.offset=b.offset||0;b.easing=b.easing||"swing";b.container=b.container||this.parent().attr("id");b.killSwitch=b.killSwitch||"killSwitch";b.onText=b.onText||"Turn Slide Off";b.offText=b.offText||"Turn Slide On";b.delay=b.delay||0;this.each(function(){new a.scrollFollow(this,b)});return this}})(jQuery);(function(g){var a=g.fn.height,e=g.fn.width;g.fn.extend({height:function(){if(!this[0]){d()}if(this[0]==window){if((g.browser.mozilla||g.browser.opera)&&g(document).width()>self.innerWidth){return self.innerHeight-b()}else{return self.innerHeight||g.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}}if(this[0]==document){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}return a.apply(this,arguments)},width:function(){if(!this[0]){d()}if(this[0]==window){if((g.browser.mozilla||g.browser.opera)&&g(document).height()>self.innerHeight){return self.innerWidth-b()}else{return self.innerWidth||g.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}}if(this[0]==document){if(g.browser.mozilla){var j=self.pageXOffset;self.scrollTo(99999999,self.pageYOffset);var i=self.pageXOffset;self.scrollTo(j,self.pageYOffset);return document.body.offsetWidth+i}else{return Math.max(document.body.scrollWidth,document.body.offsetWidth)}}return e.apply(this,arguments)},innerHeight:function(){if(!this[0]){d()}return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-c(this,"borderTopWidth")-c(this,"borderBottomWidth"):this.height()+c(this,"paddingTop")+c(this,"paddingBottom")},innerWidth:function(){if(!this[0]){d()}return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-c(this,"borderLeftWidth")-c(this,"borderRightWidth"):this.width()+c(this,"paddingLeft")+c(this,"paddingRight")},outerHeight:function(i){if(!this[0]){d()}i=g.extend({margin:false},i||{});return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight+(i.margin?(c(this,"marginTop")+c(this,"marginBottom")):0):this.height()+c(this,"borderTopWidth")+c(this,"borderBottomWidth")+c(this,"paddingTop")+c(this,"paddingBottom")+(i.margin?(c(this,"marginTop")+c(this,"marginBottom")):0)},outerWidth:function(i){if(!this[0]){d()}i=g.extend({margin:false},i||{});return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth+(i.margin?(c(this,"marginLeft")+c(this,"marginRight")):0):this.width()+c(this,"borderLeftWidth")+c(this,"borderRightWidth")+c(this,"paddingLeft")+c(this,"paddingRight")+(i.margin?(c(this,"marginLeft")+c(this,"marginRight")):0)},scrollLeft:function(i){if(!this[0]){d()}if(i!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(i,g(window).scrollTop())}else{this.scrollLeft=i}})}if(this[0]==window||this[0]==document){return self.pageXOffset||g.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(i){if(!this[0]){d()}if(i!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(g(window).scrollLeft(),i)}else{this.scrollTop=i}})}if(this[0]==window||this[0]==document){return self.pageYOffset||g.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(i){return this.offset({margin:false,scroll:false,relativeTo:this.offsetParent()},i)},offset:function(j,q){if(!this[0]){d()}var o=0,n=0,B=0,u=0,C=this[0],m=this[0],l,i,A=g.css(C,"position"),z=g.browser.mozilla,r=g.browser.msie,w=g.browser.opera,E=g.browser.safari,k=g.browser.safari&&parseInt(g.browser.version)>520,t=false,v=false,j=g.extend({margin:true,border:false,padding:false,scroll:true,lite:false,relativeTo:document.body},j||{});if(j.lite){return this.offsetLite(j,q)}if(j.relativeTo.jquery){j.relativeTo=j.relativeTo[0]}if(C.tagName=="BODY"){o=C.offsetLeft;n=C.offsetTop;if(z){o+=c(C,"marginLeft")+(c(C,"borderLeftWidth")*2);n+=c(C,"marginTop")+(c(C,"borderTopWidth")*2)}else{if(w){o+=c(C,"marginLeft");n+=c(C,"marginTop")}else{if((r&&jQuery.boxModel)){o+=c(C,"borderLeftWidth");n+=c(C,"borderTopWidth")}else{if(k){o+=c(C,"marginLeft")+c(C,"borderLeftWidth");n+=c(C,"marginTop")+c(C,"borderTopWidth")}}}}}else{do{i=g.css(m,"position");o+=m.offsetLeft;n+=m.offsetTop;if(z||r||k){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth");if(z&&i=="absolute"){t=true}if(r&&i=="relative"){v=true}}l=m.offsetParent||document.body;if(j.scroll||z){do{if(j.scroll){B+=m.scrollLeft;u+=m.scrollTop}if(w&&(g.css(m,"display")||"").match(/table-row|inline/)){B=B-((m.scrollLeft==m.offsetLeft)?m.scrollLeft:0);u=u-((m.scrollTop==m.offsetTop)?m.scrollTop:0)}if(z&&m!=C&&g.css(m,"overflow")!="visible"){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}m=m.parentNode}while(m!=l)}m=l;if(m==j.relativeTo&&!(m.tagName=="BODY"||m.tagName=="HTML")){if(z&&m!=C&&g.css(m,"overflow")!="visible"){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}if(((E&&!k)||w)&&i!="static"){o-=c(l,"borderLeftWidth");n-=c(l,"borderTopWidth")}break}if(m.tagName=="BODY"||m.tagName=="HTML"){if(((E&&!k)||(r&&g.boxModel))&&A!="absolute"&&A!="fixed"){o+=c(m,"marginLeft");n+=c(m,"marginTop")}if(k||(z&&!t&&A!="fixed")||(r&&A=="static"&&!v)){o+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}break}}while(m)}var D=h(C,j,o,n,B,u);if(q){g.extend(q,D);return this}else{return D}},offsetLite:function(r,l){if(!this[0]){d()}var n=0,m=0,k=0,q=0,o=this[0],j,r=g.extend({margin:true,border:false,padding:false,scroll:true,relativeTo:document.body},r||{});if(r.relativeTo.jquery){r.relativeTo=r.relativeTo[0]}do{n+=o.offsetLeft;m+=o.offsetTop;j=o.offsetParent||document.body;if(r.scroll){do{k+=o.scrollLeft;q+=o.scrollTop;o=o.parentNode}while(o!=j)}o=j}while(o&&o.tagName!="BODY"&&o.tagName!="HTML"&&o!=r.relativeTo);var i=h(this[0],r,n,m,k,q);if(l){g.extend(l,i);return this}else{return i}},offsetParent:function(){if(!this[0]){d()}var i=this[0].offsetParent;while(i&&(i.tagName!="BODY"&&g.css(i,"position")=="static")){i=i.offsetParent}return g(i)}});var d=function(){throw"Dimensions: jQuery collection is empty"};var c=function(i,j){return parseInt(g.css(i.jquery?i[0]:i,j))||0};var h=function(m,l,j,n,i,k){if(!l.margin){j-=c(m,"marginLeft");n-=c(m,"marginTop")}if(l.border&&((g.browser.safari&&parseInt(g.browser.version)<520)||g.browser.opera)){j+=c(m,"borderLeftWidth");n+=c(m,"borderTopWidth")}else{if(!l.border&&!((g.browser.safari&&parseInt(g.browser.version)<520)||g.browser.opera)){j-=c(m,"borderLeftWidth");n-=c(m,"borderTopWidth")}}if(l.padding){j+=c(m,"paddingLeft");n+=c(m,"paddingTop")}if(l.scroll&&(!g.browser.opera||m.offsetLeft!=m.scrollLeft&&m.offsetTop!=m.scrollLeft)){i-=m.scrollLeft;k-=m.scrollTop}return l.scroll?{top:n-k,left:j-i,scrollTop:k,scrollLeft:i}:{top:n,left:j}};var f=0;var b=function(){if(!f){var i=g("<div>").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).appendTo("body");f=100-i.append("<div>").find("div").css({width:"100%",height:200}).width();i.remove()}return f}})(jQuery);(function(a){DUI={isClass:function(b,c){c=c===undefined?null:Boolean(c);try{if(b._ident.library=="DUI.Class"){if(c===null||(c===false&&b._ident.dynamic)||(c===true&&!b._ident.dynamic)){return true}}}catch(d){}return false},global:function(c,d){if(c.constructor==Array){var b=c[1]||undefined;c=c[0]}return DUI.Class.prototype.ns.apply(b?b:window,[c,d])}};DUI.Class=function(){return this.constructor.prototype._bootstrap.apply(this.constructor,arguments)};a.extend(DUI.Class.prototype,{_dontEnum:["prototype","_dontEnum","_ident","_bootstrap","init","create","ns","each"],_ident:{library:"DUI.Class",version:"1.0.0",dynamic:true},_bootstrap:function(){var b=function(){return function(){this.init.apply(this,arguments)}}.apply(b);a.extend(true,b.prototype,this.prototype);return b.prototype.create.apply(b,arguments)},init:function(){},create:function(){var b=this;var e=Array.prototype.slice.apply(arguments).reverse()[0]||null;e=e!==null&&e.constructor==Boolean?e:false;var f=e?b:b.prototype;if(arguments.length>0&&arguments[0].constructor==String){var d=Array.prototype.slice.call(arguments);var c=d.shift();b[c]=b.create.apply(b,d);return b[c]}if(e){b.prototype._ident.dynamic=false}a.each(["_dontEnum","_ident","create","ns","each"],function(){b[this]=b.prototype[this]});a.each(arguments,function(){var g=this;if(g.constructor==Object||DUI.isClass(g)){var h=DUI.isClass(g,false)?g.prototype:g;a.each(h,function(i,j){if(i=="dontEnum"&&j.constructor==Array){f._dontEnum=a.merge(f._dontEnum,j);return}f[i]=j})}});return b},ns:function(){if(arguments.length==0){throw new Error("DUI.Class.ns should probably have some arguments passed to it.")}var b=arguments[0];var g=null;var d=(arguments.length==1||arguments[1]===undefined)&&b.constructor!=Object?true:false;if(b.constructor==String){var h={};h[b]=arguments[1]?arguments[1]:undefined;b=h}if(b.constructor==Object){var c=this,e=false,f=this;a.each(b,function(l,i){var j=c;var k=l.split(".");a.each(k,function(m,n){if(d&&typeof j[n]=="undefined"){e=true;return false}else{if(m==k.length-1&&i){j[n]=i}else{if(typeof j[n]=="undefined"){j[n]=new DUI.Class(true)}}}f=j=j[n]})});return e?undefined:f}},each:function(b){if(!a.isFunction(b)){throw new Error("DUI.Class.each must be called with a function as its first argument.")}var c=this;for(var d in c){if(a.inArray(d,c._dontEnum)==-1){var e=c[d];b.apply(e,[d,e])}}}});DUI=new DUI.Class(DUI,true)})(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}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.jScrollPane={active:[]};a.fn.jScrollPane=function(c){c=a.extend({},a.fn.jScrollPane.defaults,c);var b=function(){return false};return this.each(function(){var u=a(this);u.css("overflow","hidden");var F=this;if(a(this).parent().is(".jScrollPaneContainer")){var am=c.maintainPosition?u.position().top:0;var q=a(this).parent();var M=q.innerWidth();var an=q.outerHeight();var r=an;a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",q).remove();u.css({top:0})}else{var am=0;this.originalPadding=u.css("paddingTop")+" "+u.css("paddingRight")+" "+u.css("paddingBottom")+" "+u.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(u.css("paddingLeft"))||0)+(parseInt(u.css("paddingRight"))||0);var M=u.innerWidth();var an=u.innerHeight();var r=an;var j=a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:an+"px",width:M+"px"});if(c.enableKeyboardNavigation){j.attr("tabindex",c.tabIndex)}u.wrap(j);a(document).bind("emchange",function(ap,aq,ao){u.jScrollPane(c)})}if(c.reinitialiseOnImageLoad){var t=a.data(F,"jScrollPaneImagesToLoad")||a("img",u);var i=[];if(t.length){t.each(function(ao,ap){a(this).bind("load readystatechange",function(){if(a.inArray(ao,i)==-1){i.push(ap);t=a.grep(t,function(at,ar){return at!=ap});a.data(F,"jScrollPaneImagesToLoad",t);var aq=a.extend(c,{reinitialiseOnImageLoad:false});u.jScrollPane(aq)}}).each(function(aq,ar){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var Y=this.originalSidePaddingTotal;var ai=M-c.scrollbarWidth-c.scrollbarMargin-Y;var V={height:"auto",width:ai+"px"};if(c.scrollbarOnLeft){V.paddingLeft=c.scrollbarMargin+c.scrollbarWidth+"px"}else{V.paddingRight=c.scrollbarMargin+"px"}u.css(V);var W=u.outerHeight();var S=an/W;if(S<0.99){var j=u.parent();j.append(a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:c.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:c.scrollbarWidth+"px"}))));var aj=a(">.jScrollPaneTrack",j);var v=a(">.jScrollPaneTrack .jScrollPaneDrag",j);var al;var g=[];var aa;var T=function(){if(aa>4||aa%4==0){ah(ae+al*J)}aa++};if(c.enableKeyboardNavigation){j.bind("keydown.jscrollpane",function(ao){switch(ao.keyCode){case 38:al=-1;aa=0;T();g[g.length]=setInterval(T,100);return false;case 40:al=1;aa=0;T();g[g.length]=setInterval(T,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(ap){if(ap.keyCode==38||ap.keyCode==40){for(var ao=0;ao<g.length;ao++){clearInterval(g[ao])}return false}})}if(c.showArrows){var Q;var z;var o=function(ao){a("html").unbind("mouseup",o);Q.removeClass("jScrollActiveArrowButton");clearInterval(z)};var H=function(){a("html").bind("mouseup",o);Q.addClass("jScrollActiveArrowButton");aa=0;T();z=setInterval(T,100)};j.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:c.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){Q=a(this);al=-1;H();this.blur();return false}).bind("click",b),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:c.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){Q=a(this);al=1;H();this.blur();return false}).bind("click",b));var w=a(">.jScrollArrowUp",j);var m=a(">.jScrollArrowDown",j);if(c.arrowSize){r=an-c.arrowSize-c.arrowSize;aj.css({height:r+"px",top:c.arrowSize+"px"})}else{var ab=w.height();c.arrowSize=ab;r=an-ab-m.height();aj.css({height:r+"px",top:ab+"px"})}}var af=a(this).css({position:"absolute",overflow:"visible"});var d;var G;var J;var ae=0;var D=S*an/2;var I=function(ao,aq){var ap=aq=="X"?"Left":"Top";return ao["page"+aq]||(ao["client"+aq]+(document.documentElement["scroll"+ap]||document.body["scroll"+ap]))||0};var P=function(){return false};var ad=function(){X();d=v.offset(false);d.top-=ae;G=r-v[0].offsetHeight;J=2*c.wheelSpeed*G/W};var e=function(ao){ad();D=I(ao,"Y")-ae-d.top;a("html").bind("mouseup",A).bind("mousemove",R);if(a.browser.msie){a("html").bind("dragstart",P).bind("selectstart",P)}return false};var A=function(){a("html").unbind("mouseup",A).unbind("mousemove",R);D=S*an/2;if(a.browser.msie){a("html").unbind("dragstart",P).unbind("selectstart",P)}};var ah=function(ao){ao=ao<0?0:(ao>G?G:ao);ae=ao;v.css({top:ao+"px"});var ap=ao/G;u.data("jScrollPanePosition",(an-W)*-ap);af.css({top:((an-W)*ap)+"px"});u.trigger("scroll");if(c.showArrows){w[ao==0?"addClass":"removeClass"]("disabled");m[ao==G?"addClass":"removeClass"]("disabled")}};var R=function(ao){ah(I(ao,"Y")-d.top-D)};var Z=Math.max(Math.min(S*(an-c.arrowSize*2),c.dragMaxHeight),c.dragMinHeight);v.css({height:Z+"px"}).bind("mousedown",e);var U;var x;var l;var ac=function(){if(x>8||x%4==0){ah((ae-((ae-l)/2)))}x++};var ak=function(){clearInterval(U);a("html").unbind("mouseup",ak).unbind("mousemove",O)};var O=function(ao){l=I(ao,"Y")-d.top-D};var B=function(ao){ad();O(ao);x=0;a("html").bind("mouseup",ak).bind("mousemove",O);U=setInterval(ac,100);ac();return false};aj.bind("mousedown",B);j.bind("mousewheel",function(ap,ar){ar=ar||(ap.wheelDelta?ap.wheelDelta/120:(ap.detail)?-ap.detail/3:0);ad();X();var aq=ae;ah(ae-ar*J);var ao=aq!=ae;return !ao});var f;var E;function K(){var ao=(f-ae)/c.animateStep;if(ao>1||ao<-1){ah(ae+ao)}else{ah(f);X()}}var X=function(){if(E){clearInterval(E);delete f}};var ag=function(ar,ao){if(typeof ar=="string"){$e=a(ar,u);if(!$e.length){return}ar=$e.offset().top-u.offset().top}j.scrollTop(0);X();var aq=W-an;ar=ar>aq?aq:ar;u.data("jScrollPaneMaxScroll",aq);var ap=ar/aq*G;if(ao||!c.animateTo){ah(ap)}else{f=ap;E=setInterval(K,c.animateInterval)}};u[0].scrollTo=ag;u[0].scrollBy=function(ap){var ao=-parseInt(af.css("top"))||0;ag(ao+ap)};ad();ag(-am,true);a("*",this).bind("focus",function(at){var ar=a(this);var av=0;while(ar[0]!=u[0]){av+=ar.position().top;ar=ar.offsetParent()}var ao=-parseInt(af.css("top"))||0;var au=ao+an;var aq=av>ao&&av<au;if(!aq){var ap=av-c.scrollbarMargin;if(av>ao){ap+=a(this).height()+15+c.scrollbarMargin-an}ag(ap)}});if(location.hash){setTimeout(function(){ag(location.hash)},a.browser.safari?100:0)}a(document).bind("click",function(ap){$target=a(ap.target);if($target.is("a")){var ao=$target.attr("href");if(ao&&ao.substr(0,1)=="#"&&ao.length>1){setTimeout(function(){ag(ao,!c.animateToInternalLinks)},a.browser.safari?100:0)}}});function C(ao){a(document).bind("mousemove.jScrollPaneDragging",y);a(document).bind("mouseup.jScrollPaneDragging",n)}var N;var h;function L(){direction=N<0?-1:1;u[0].scrollBy(N/2)}function k(){if(h){clearInterval(h);h=undefined}}function y(aq){var ar=u.parent().offset().top;var ao=ar+an;var ap=I(aq,"Y");N=ap<ar?ap-ar:(ap>ao?ap-ao:0);if(N==0){k()}else{if(!h){h=setInterval(L,100)}}}function n(ao){a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");k()}j.bind("mousedown.jScrollPane",C);a.jScrollPane.active.push(u[0])}else{u.css({height:an+"px",width:M-this.originalSidePaddingTotal+"px",padding:this.originalPadding});u[0].scrollTo=u[0].scrollBy=function(){};u.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};a.fn.jScrollPaneRemove=function(){a(this).each(function(){$this=a(this);var b=$this.parent();if(b.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});b.after($this).remove()}})};a.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false};a(window).bind("unload",function(){var c=a.jScrollPane.active;for(var b=0;b<c.length;b++){c[b].scrollTo=c[b].scrollBy=null}})})(jQuery);
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.56 (03-MAR-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.3 or later
 *
 * Originally based on the work of:
 *	1) Matt Oakes (http://portfolio.gizone.co.uk/applications/slideshow/)
 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)
 */
(function(g){var j="2.56";if(g.support==undefined){g.support={opacity:!(g.browser.msie)}}function d(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}g.fn.cycle=function(q,n){if(this.length==0&&q!="stop"){if(!g.isReady&&this.selector){d("DOM not ready, queuing slideshow");var r={s:this.selector,c:this.context};g(function(){g(r.s,r.c).cycle(q,n)});return this}d("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)"));return this}return this.each(function(){q=k(this,q,n);if(q===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var u=g(this);var v=q.slideExpr?g(q.slideExpr,this):u.children();var o=v.get();if(o.length<2){d("terminating; too few slides: "+o.length);return}var t=i(u,v,o,q);if(t===false){return}if(t.timeout||t.continuous){this.cycleTimeout=setTimeout(function(){c(o,t,0,!t.rev)},t.continuous?10:t.timeout+(t.delay||0))}})};function k(n,r,o){if(n.cycleStop==undefined){n.cycleStop=0}if(r===undefined||r===null){r={}}if(r.constructor==String){switch(r){case"stop":n.cycleStop++;if(n.cycleTimeout){clearTimeout(n.cycleTimeout)}n.cycleTimeout=0;g(n).removeData("cycle.opts");return false;case"pause":n.cyclePause=1;return false;case"resume":n.cyclePause=0;if(o===true){r=g(n).data("cycle.opts");if(!r){d("options not found, can not resume");return}if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}c(r.elements,r,1,1)}return false;default:r={fx:r}}}else{if(r.constructor==Number){var q=r;r=g(n).data("cycle.opts");if(!r){d("options not found, can not advance slide");return false}if(q<0||q>=r.elements.length){d("invalid slide index: "+q);return false}r.nextSlide=q;if(n.cycleTimeout){clearTimeout(this.cycleTimeout);n.cycleTimeout=0}if(typeof o=="string"){r.oneTimeFx=o}c(r.elements,r,1,q>=r.currSlide);return false}}return r}function i(D,z,r,F){var n=g.extend({},g.fn.cycle.defaults,F||{},g.metadata?D.metadata():g.meta?D.data():{});if(n.autostop){n.countdown=n.autostopCount||r.length}var G=D[0];D.data("cycle.opts",n);n.$cont=D;n.stopCount=G.cycleStop;n.elements=r;n.before=n.before?[n.before]:[];n.after=n.after?[n.after]:[];n.after.unshift(function(){n.busy=0});if(!g.support.opacity&&n.cleartype){n.after.push(function(){this.style.removeAttribute("filter")})}if(n.continuous){n.after.push(function(){c(r,n,0,!n.rev)})}l(n);if(!g.support.opacity&&n.cleartype&&!n.cleartypeNoBg){e(z)}if(D.css("position")=="static"){D.css("position","relative")}if(n.width){D.width(n.width)}if(n.height&&n.height!="auto"){D.height(n.height)}if(n.startingSlide){n.startingSlide=parseInt(n.startingSlide)}if(n.random){n.randomMap=[];for(var u=0;u<r.length;u++){n.randomMap.push(u)}n.randomMap.sort(function(H,w){return Math.random()-0.5});n.randomIndex=0;n.startingSlide=n.randomMap[0]}else{if(n.startingSlide>=r.length){n.startingSlide=0}}n.currSlide=n.startingSlide=n.startingSlide||0;var x=n.startingSlide;z.css({position:"absolute",top:0,left:0}).hide().each(function(w){var H=x?w>=x?r.length-(w-x):x-w:r.length-w;g(this).css("z-index",H)});g(r[x]).css("opacity",1).show();if(!g.support.opacity&&n.cleartype){r[x].style.removeAttribute("filter")}if(n.fit&&n.width){z.width(n.width)}if(n.fit&&n.height&&n.height!="auto"){z.height(n.height)}var t=n.containerResize&&!D.innerHeight();if(t){var A=0,q=0;for(var u=0;u<r.length;u++){var o=g(r[u]),y=o[0],C=o.outerWidth(),v=o.outerHeight();if(!C){C=y.offsetWidth}if(!v){v=y.offsetHeight}A=C>A?C:A;q=v>q?v:q}if(A>0&&q>0){D.css({width:A+"px",height:q+"px"})}}if(n.pause){D.hover(function(){this.cyclePause++},function(){this.cyclePause--})}a(n);if(!n.multiFx){var E=g.fn.cycle.transitions[n.fx];if(g.isFunction(E)){E(D,z,n)}else{if(n.fx!="custom"&&!n.multiFx){d("unknown transition: "+n.fx,"; slideshow terminating");return false}}}z.each(function(){var w=g(this);this.cycleH=(n.fit&&n.height)?n.height:w.height();this.cycleW=(n.fit&&n.width)?n.width:w.width()});n.cssBefore=n.cssBefore||{};n.animIn=n.animIn||{};n.animOut=n.animOut||{};z.not(":eq("+x+")").css(n.cssBefore);if(n.cssFirst){g(z[x]).css(n.cssFirst)}if(n.timeout){n.timeout=parseInt(n.timeout);if(n.speed.constructor==String){n.speed=g.fx.speeds[n.speed]||parseInt(n.speed)}if(!n.sync){n.speed=n.speed/2}while((n.timeout-n.speed)<250){n.timeout+=n.speed}}if(n.easing){n.easeIn=n.easeOut=n.easing}if(!n.speedIn){n.speedIn=n.speed}if(!n.speedOut){n.speedOut=n.speed}n.slideCount=r.length;n.currSlide=n.lastSlide=x;if(n.random){n.nextSlide=n.currSlide;if(++n.randomIndex==r.length){n.randomIndex=0}n.nextSlide=n.randomMap[n.randomIndex]}else{n.nextSlide=n.startingSlide>=(r.length-1)?0:n.startingSlide+1}var B=z[x];if(n.before.length){n.before[0].apply(B,[B,B,n,true])}if(n.after.length>1){n.after[1].apply(B,[B,B,n,true])}if(n.next){g(n.next).click(function(){return m(n,n.rev?-1:1)})}if(n.prev){g(n.prev).click(function(){return m(n,n.rev?1:-1)})}if(n.pager){b(r,n)}h(n,r);return n}function l(n){n.original={before:[],after:[]};n.original.cssBefore=g.extend({},n.cssBefore);n.original.cssAfter=g.extend({},n.cssAfter);n.original.animIn=g.extend({},n.animIn);n.original.animOut=g.extend({},n.animOut);g.each(n.before,function(){n.original.before.push(this)});g.each(n.after,function(){n.original.after.push(this)})}function a(v){var q=g.fn.cycle.transitions;if(v.fx.indexOf(",")>0){v.multiFx=true;v.fxs=v.fx.replace(/\s*/g,"").split(",");for(var t=0;t<v.fxs.length;t++){var u=v.fxs[t];var o=q[u];if(!o||!q.hasOwnProperty(u)||!g.isFunction(o)){d("discarding unknowtn transition: ",u);v.fxs.splice(t,1);t--}}if(!v.fxs.length){d("No valid transitions named; slideshow terminating.");return false}}else{if(v.fx=="all"){v.multiFx=true;v.fxs=[];for(p in q){var o=q[p];if(q.hasOwnProperty(p)&&g.isFunction(o)){v.fxs.push(p)}}}}if(v.multiFx&&v.randomizeEffects){var r=Math.floor(Math.random()*20)+30;for(var t=0;t<r;t++){var n=Math.floor(Math.random()*v.fxs.length);v.fxs.push(v.fxs.splice(n,1)[0])}d("randomized fx sequence: ",v.fxs)}}function h(o,n){o.addSlide=function(r,t){var q=g(r),u=q[0];if(!o.autostopCount){o.countdown++}n[t?"unshift":"push"](u);if(o.els){o.els[t?"unshift":"push"](u)}o.slideCount=n.length;q.css("position","absolute");q[t?"prependTo":"appendTo"](o.$cont);if(t){o.currSlide++;o.nextSlide++}if(!g.support.opacity&&o.cleartype&&!o.cleartypeNoBg){e(q)}if(o.fit&&o.width){q.width(o.width)}if(o.fit&&o.height&&o.height!="auto"){$slides.height(o.height)}u.cycleH=(o.fit&&o.height)?o.height:q.height();u.cycleW=(o.fit&&o.width)?o.width:q.width();q.css(o.cssBefore);if(o.pager){g.fn.cycle.createPagerAnchor(n.length-1,u,g(o.pager),n,o)}if(g.isFunction(o.onAddSlide)){o.onAddSlide(q)}else{q.hide()}}}g.fn.cycle.resetState=function(o,n){var n=n||o.fx;o.before=[];o.after=[];o.cssBefore=g.extend({},o.original.cssBefore);o.cssAfter=g.extend({},o.original.cssAfter);o.animIn=g.extend({},o.original.animIn);o.animOut=g.extend({},o.original.animOut);o.fxFn=null;g.each(o.original.before,function(){o.before.push(this)});g.each(o.original.after,function(){o.after.push(this)});var q=g.fn.cycle.transitions[n];if(g.isFunction(q)){q(o.$cont,g(o.elements),o)}};function c(w,n,v,x){if(v&&n.busy){g(w).stop(true,true);n.busy=false}if(n.busy){return}var t=n.$cont[0],z=w[n.currSlide],y=w[n.nextSlide];if(t.cycleStop!=n.stopCount||t.cycleTimeout===0&&!v){return}if(!v&&!t.cyclePause&&((n.autostop&&(--n.countdown<=0))||(n.nowrap&&!n.random&&n.nextSlide<n.currSlide))){if(n.end){n.end(n)}return}if(v||!t.cyclePause){var u=n.fx;z.cycleH=z.cycleH||z.offsetHeight;z.cycleW=z.cycleW||z.offsetWidth;y.cycleH=y.cycleH||y.offsetHeight;y.cycleW=y.cycleW||y.offsetWidth;if(n.multiFx){if(n.lastFx==undefined||++n.lastFx>=n.fxs.length){n.lastFx=0}u=n.fxs[n.lastFx];n.currFx=u}if(n.oneTimeFx){u=n.oneTimeFx;n.oneTimeFx=null}g.fn.cycle.resetState(n,u);if(n.before.length){g.each(n.before,function(A,B){if(t.cycleStop!=n.stopCount){return}B.apply(y,[z,y,n,x])})}var q=function(){g.each(n.after,function(A,B){if(t.cycleStop!=n.stopCount){return}B.apply(y,[z,y,n,x])})};if(n.nextSlide!=n.currSlide){n.busy=1;if(n.fxFn){n.fxFn(z,y,n,q,x)}else{if(g.isFunction(g.fn.cycle[n.fx])){g.fn.cycle[n.fx](z,y,n,q)}else{g.fn.cycle.custom(z,y,n,q,v&&n.fastOnEvent)}}}n.lastSlide=n.currSlide;if(n.random){n.currSlide=n.nextSlide;if(++n.randomIndex==w.length){n.randomIndex=0}n.nextSlide=n.randomMap[n.randomIndex]}else{var r=(n.nextSlide+1)==w.length;n.nextSlide=r?0:n.nextSlide+1;n.currSlide=r?w.length-1:n.nextSlide-1}if(n.pager){g.fn.cycle.updateActivePagerLink(n.pager,n.currSlide)}}var o=0;if(n.timeout&&!n.continuous){o=f(z,y,n,x)}else{if(n.continuous&&t.cyclePause){o=10}}if(o>0){t.cycleTimeout=setTimeout(function(){c(w,n,0,!n.rev)},o)}}g.fn.cycle.updateActivePagerLink=function(n,o){g(n).find("a").removeClass("activeSlide").filter("a:eq("+o+")").addClass("activeSlide")};function f(u,q,r,o){if(r.timeoutFn){var n=r.timeoutFn(u,q,r,o);if(n!==false){return n}}return r.timeout}g.fn.cycle.next=function(n){m(n,n.rev?-1:1)};g.fn.cycle.prev=function(n){m(n,n.rev?1:-1)};function m(o,t){var n=o.elements;var r=o.$cont[0],q=r.cycleTimeout;if(q){clearTimeout(q);r.cycleTimeout=0}if(o.random&&t<0){o.randomIndex--;if(--o.randomIndex==-2){o.randomIndex=n.length-2}else{if(o.randomIndex==-1){o.randomIndex=n.length-1}}o.nextSlide=o.randomMap[o.randomIndex]}else{if(o.random){if(++o.randomIndex==n.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{o.nextSlide=o.currSlide+t;if(o.nextSlide<0){if(o.nowrap){return false}o.nextSlide=n.length-1}else{if(o.nextSlide>=n.length){if(o.nowrap){return false}o.nextSlide=0}}}}if(g.isFunction(o.prevNextClick)){o.prevNextClick(t>0,o.nextSlide,n[o.nextSlide])}c(n,o,1,t>=0);return false}function b(o,q){var n=g(q.pager);g.each(o,function(r,t){g.fn.cycle.createPagerAnchor(r,t,n,o,q)});g.fn.cycle.updateActivePagerLink(q.pager,q.startingSlide)}g.fn.cycle.createPagerAnchor=function(r,t,o,q,u){var n=(g.isFunction(u.pagerAnchorBuilder))?u.pagerAnchorBuilder(r,t):'<a href="#">'+(r+1)+"</a>";if(!n){return}var v=g(n);if(v.parents("body").length==0){v.appendTo(o)}v.bind(u.pagerEvent,function(){u.nextSlide=r;var x=u.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(g.isFunction(u.pagerClick)){u.pagerClick(u.nextSlide,q[u.nextSlide])}c(q,u,1,u.currSlide<r);return false});if(u.pauseOnPagerHover){v.hover(function(){u.$cont[0].cyclePause++},function(){u.$cont[0].cyclePause--})}};g.fn.cycle.hopsFromLast=function(r,q){var o,n=r.lastSlide,t=r.currSlide;if(q){o=t>n?t-n:r.slideCount-n}else{o=t<n?n-t:n+r.slideCount-t}return o};function e(q){function o(r){var r=parseInt(r).toString(16);return r.length<2?"0"+r:r}function n(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var r=g.css(u,"background-color");if(r.indexOf("rgb")>=0){var t=r.match(/\d+/g);return"#"+o(t[0])+o(t[1])+o(t[2])}if(r&&r!="transparent"){return r}}return"#ffffff"}q.each(function(){g(this).css("background-color",n(this))})}g.fn.cycle.commonReset=function(u,r,t,o,q,n){g(t.elements).not(u).hide();t.cssBefore.opacity=1;t.cssBefore.display="block";if(o!==false&&r.cycleW>0){t.cssBefore.width=r.cycleW}if(q!==false&&r.cycleH>0){t.cssBefore.height=r.cycleH}t.cssAfter=t.cssAfter||{};t.cssAfter.display="none";g(u).css("zIndex",t.slideCount+(n===true?1:0));g(r).css("zIndex",t.slideCount+(n===true?0:1))};g.fn.cycle.custom=function(A,u,n,q,o){var z=g(A),v=g(u);var r=n.speedIn,y=n.speedOut,t=n.easeIn,x=n.easeOut;v.css(n.cssBefore);if(o){if(typeof o=="number"){r=y=o}else{r=y=1}t=x=null}var w=function(){v.animate(n.animIn,r,t,q)};z.animate(n.animOut,y,x,function(){if(n.cssAfter){z.css(n.cssAfter)}if(!n.sync){w()}});if(n.sync){w()}};g.fn.cycle.transitions={fade:function(o,q,n){q.not(":eq("+n.currSlide+")").css("opacity",0);n.before.push(function(u,r,t){g.fn.cycle.commonReset(u,r,t);t.cssBefore.opacity=0});n.animIn={opacity:1};n.animOut={opacity:0};n.cssBefore={top:0,left:0}}};g.fn.cycle.ver=function(){return j};g.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!g.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.52
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true)});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<f.length;c++){d.els.push(f[c])}for(var c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,i){var h=i?a(m):a(j);a(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);for(var q=0;q<o;q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())}if(i){for(var r=0,n=l.els.length;r<n;r++){a(l.els[r]).css("z-index",n-r+k)}}else{var t=a(m).css("z-index");h.css("z-index",parseInt(t)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);h.animIn.height=g.cycleH;h.animOut.top=i.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(o,k,e){var n=o.css("overflow","hidden").width();var i=o.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+i+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+n+"px "+i+"px "+n+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+n+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+i+"px "+n+"px "+i+"px 0px)"}else{if(/zoom/.test(e.clip)){var q=parseInt(i/2);var g=parseInt(n/2);f="rect("+q+"px "+g+"px "+q+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var j=e.cssBefore.clip.match(/(\d+)/g);var q=parseInt(j[0]),c=parseInt(j[1]),m=parseInt(j[2]),g=parseInt(j[3]);e.before.push(function(v,h,t){if(v==h){return}var d=a(v),b=a(h);a.fn.cycle.commonReset(v,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function u(){var x=q?q-parseInt(r*(q/l)):0;var y=g?g-parseInt(r*(g/l)):0;var z=m<i?m+parseInt(r*((i-m)/l||1)):i;var w=c<n?c+parseInt(r*((n-c)/l||1)):n;b.css({clip:"rect("+x+"px "+w+"px "+z+"px "+y+"px)"});(r++<=l)?setTimeout(u,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);(function(h){function b(){this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],timeSeparator:":",isRTL:false};this._defaults={format:"dHMS",layout:"",compact:false,description:"",expiryUrl:null,alwaysExpire:false,onExpiry:null,onTick:null,serverTime:null};h.extend(this._defaults,this.regional[""])}var c="countdown";var d=0;var i=1;var e=2;var a=3;var k=4;var j=5;var g=6;h.extend(b.prototype,{markerClassName:"hasCountdown",setDefaults:function(l){this._resetExtraLabels(this._defaults,l);f(this._defaults,l||{})},_attachCountdown:function(m,l){m=h(m);if(m.hasClass(this.markerClassName)){return}m.addClass(this.markerClassName);var n={};n.options=h.extend({},l);n._periods=[0,0,0,0,0,0,0];this._adjustSettings(n);h.data(m[0],c,n);this._updateCountdown(m,n)},_updateCountdown:function(m,l){var m=h(m);l=l||h.data(m[0],c);if(!l){return}m.html(this._generateHTML(l));m[(this._get(l,"isRTL")?"add":"remove")+"Class"]("countdown_rtl");var t=this._get(l,"onTick");if(t){t.apply(m[0],[l._hold!="lap"?l._periods:this._calculatePeriods(l,l._show,new Date())])}var r=l._hold!="pause"&&(l._since?l._now.getTime()<=l._since.getTime():l._now.getTime()>=l._until.getTime());if(r){if(l._timer||this._get(l,"alwaysExpire")){var q=this._get(l,"onExpiry");if(q){q.apply(m[0],[])}var o=this._get(l,"expiryUrl");if(o){window.location=o}}l._timer=null}else{if(l._hold=="pause"){l._timer=null}else{var n=this._get(l,"format");l._timer=setTimeout(function(){h.countdown._updateCountdown(m)},(n.match("s|S")?1:(n.match("m|M")?30:600))*980)}}h.data(m[0],c,l)},_changeCountdown:function(m,l){var n=h.data(m,c);if(n){this._resetExtraLabels(n.options,l);f(n.options,l||{});this._adjustSettings(n);h.data(m,c,n);this._updateCountdown(m,n)}},_resetExtraLabels:function(m,l){var q=false;for(var o in l){if(o.match(/[Ll]abels/)){q=true;break}}if(q){for(var o in m){if(o.match(/[Ll]abels[0-9]/)){m[o]=null}}}},_destroyCountdown:function(m){m=h(m);if(!m.hasClass(this.markerClassName)){return}m.removeClass(this.markerClassName).empty();var l=h.data(m[0],c);if(l._timer){clearTimeout(l._timer)}h.removeData(m[0],c)},_pauseCountdown:function(l){this._hold(l,"pause")},_lapCountdown:function(l){this._hold(l,"lap")},_resumeCountdown:function(l){this._hold(l,null)},_hold:function(m,l){var o=h.data(m,c);if(o){if(o._hold=="pause"&&!l){o._periods=o._savePeriods;var n=(o._since?"-":"+");o[o._since?"_since":"_until"]=this._determineTime(n+o._periods[0]+"Y"+n+o._periods[1]+"O"+n+o._periods[2]+"W"+n+o._periods[3]+"D"+n+o._periods[4]+"H"+n+o._periods[5]+"M"+n+o._periods[6]+"S")}o._hold=l;o._savePeriods=(l=="pause"?o._periods:null);h.data(m,c,o);this._updateCountdown(m,o)}},_getTimesCountdown:function(m){var l=h.data(m,c);return(!l?null:(!l._hold?l._periods:this._calculatePeriods(l,l._show,new Date())))},_get:function(m,l){return(m.options[l]!=null?m.options[l]:h.countdown._defaults[l])},_adjustSettings:function(m){var l=new Date();var n=this._get(m,"serverTime");m._offset=(n?n.getTime()-l.getTime():0);m._since=this._get(m,"since");if(m._since){m._since=this._determineTime(m._since,null)}m._until=this._determineTime(this._get(m,"until"),l);m._show=this._determineShow(m)},_determineTime:function(t,r){var q=function(m){var l=new Date();l.setTime(l.getTime()+m*1000);return l};var w=function(m,l){return 32-new Date(m,l,32).getDate()};var v=function(C){var B=new Date();var A=B.getFullYear();var z=B.getMonth();var y=B.getDate();var x=B.getHours();var o=B.getMinutes();var n=B.getSeconds();var m=/([+-]?[0-9]+)\s*(s|S|m|M|h|H|d|D|w|W|o|O|y|Y)?/g;var l=m.exec(C);while(l){switch(l[2]||"s"){case"s":case"S":n+=parseInt(l[1]);break;case"m":case"M":o+=parseInt(l[1]);break;case"h":case"H":x+=parseInt(l[1]);break;case"d":case"D":y+=parseInt(l[1]);break;case"w":case"W":y+=parseInt(l[1])*7;break;case"o":case"O":z+=parseInt(l[1]);y=Math.min(y,w(A,z));break;case"y":case"Y":A+=parseInt(l[1]);y=Math.min(y,w(A,z));break}l=m.exec(C)}B=new Date(A,z,y,x,o,n,0);return B};var u=(t==null?r:(typeof t=="string"?v(t):(typeof t=="number"?q(t):t)));if(u){u.setMilliseconds(0)}return u},_generateHTML:function(B){B._periods=periods=(B._hold?B._periods:this._calculatePeriods(B,B._show,new Date()));var A=false;var z=0;for(var y=0;y<B._show.length;y++){A|=(B._show[y]=="?"&&periods[y]>0);B._show[y]=(B._show[y]=="?"&&!A?null:B._show[y]);z+=(B._show[y]?1:0)}var x=this._get(B,"compact");var w=this._get(B,"layout");var v=(x?this._get(B,"compactLabels"):this._get(B,"labels"));var u=this._get(B,"timeSeparator");var t=this._get(B,"description")||"";var r=function(l){return(l<10?"0":"")+l};var q=function(m){var l=h.countdown._get(B,"compactLabels"+periods[m]);return(B._show[m]?periods[m]+(l?l[m]:v[m])+" ":"")};var o=function(m){var l=h.countdown._get(B,"labels"+periods[m]);return(B._show[m]?'<div class="countdown_section"><span class="countdown_amount">'+periods[m]+"</span><br/>"+(l?l[m]:v[m])+"</div>":"")};return(w?this._buildLayout(B,w,x):((x?'<div class="countdown_row countdown_amount'+(B._hold?" countdown_holding":"")+'">'+q(d)+q(i)+q(e)+q(a)+(B._show[k]?r(periods[k]):"")+(B._show[j]?(B._show[k]?u:"")+r(periods[j]):"")+(B._show[g]?(B._show[k]||B._show[j]?u:"")+r(periods[g]):""):'<div class="countdown_row countdown_show'+z+(B._hold?" countdown_holding":"")+'">'+o(d)+o(i)+o(e)+o(a)+o(k)+o(j)+o(g))+"</div>"+(t?'<div class="countdown_row countdown_descr">'+t+"</div>":"")))},_buildLayout:function(u,t,r){var q=(r?this._get(u,"compactLabels"):this._get(u,"labels"));var o=t;var n=function(v,l){var y=new RegExp("%"+v+".*%"+v);var x=new RegExp("%"+v+".*");while(true){var w=y.exec(o);if(!w){break}w[0]=w[0].substr(0,2)+w[0].substr(2).replace(x,"%"+v);o=o.replace(w[0],u._show[l]?m(w[0],v,l):"")}};var m=function(v,l,x){var w=h.countdown._get(u,(r?"compactLabels":"labels")+u._periods[x]);return v.substr(2,v.length-4).replace(/%nn/g,(u._periods[x]<10?"0":"")+u._periods[x]).replace(/%n/g,u._periods[x]).replace(/%l/g,(w?w[x]:q[x]))};n("Y",d);n("O",i);n("W",e);n("D",a);n("H",k);n("M",j);n("S",g);return o},_determineShow:function(m){var l=this._get(m,"format");var n=[];n[d]=(l.match("y")?"?":(l.match("Y")?"!":null));n[i]=(l.match("o")?"?":(l.match("O")?"!":null));n[e]=(l.match("w")?"?":(l.match("W")?"!":null));n[a]=(l.match("d")?"?":(l.match("D")?"!":null));n[k]=(l.match("h")?"?":(l.match("H")?"!":null));n[j]=(l.match("m")?"?":(l.match("M")?"!":null));n[g]=(l.match("s")?"?":(l.match("S")?"!":null));return n},_calculatePeriods:function(u,t,r){u._now=r;u._now.setMilliseconds(0);var q=new Date(u._now.getTime());if(u._since&&r.getTime()<u._since.getTime()){u._now=r=q}else{if(u._since){r=u._since}else{q.setTime(u._until.getTime());if(r.getTime()>u._until.getTime()){u._now=r=q}}}q.setTime(q.getTime()-u._offset);var o=[0,0,0,0,0,0,0];if(t[d]||t[i]){var n=Math.max(0,(q.getFullYear()-r.getFullYear())*12+q.getMonth()-r.getMonth()+(q.getDate()<r.getDate()?-1:0));o[d]=(t[d]?Math.floor(n/12):0);o[i]=(t[i]?n-o[d]*12:0);if(u._since){q.setFullYear(q.getFullYear()-o[d]);q.setMonth(q.getMonth()-o[i])}else{r=new Date(r.getTime());r.setFullYear(r.getFullYear()+o[d]);r.setMonth(r.getMonth()+o[i])}}var m=Math.floor((q.getTime()-r.getTime())/1000);var l=function(w,v){o[w]=(t[w]?Math.floor(m/v):0);m-=o[w]*v};l(e,604800);l(a,86400);l(k,3600);l(j,60);l(g,1);return o}});function f(m,l){h.extend(m,l);for(var n in l){if(l[n]==null){m[n]=null}}return m}h.fn.countdown=function(m){var l=Array.prototype.slice.call(arguments,1);if(m=="getTimes"){return h.countdown["_"+m+"Countdown"].apply(h.countdown,[this[0]].concat(l))}return this.each(function(){if(typeof m=="string"){h.countdown["_"+m+"Countdown"].apply(h.countdown,[this].concat(l))}else{h.countdown._attachCountdown(this,m)}})};h.countdown=new b()})(jQuery);jQuery.fn.combobox=function(a){var b={comboboxContainerClass:null,comboboxValueContainerClass:null,comboboxValueContentClass:null,comboboxDropDownButtonClass:null,comboboxDropDownClass:null,comboboxDropDownItemClass:null,comboboxDropDownItemHoverClass:null,comboboxDropDownGroupItemHeaderClass:null,comboboxDropDownGroupItemContainerClass:null,animationType:"slide",width:"120px"};if(a){jQuery.extend(b,a)}this.onChange=function(){};return this.each(function(){var am=jQuery(this);var P=null;var al="border-left: solid 2px #777;border-top: solid 2px #777;border-right: solid 1px #ccc;border-bottom: solid 1px #ccc;";var ae="padding:0;";var ai=null;var ac="list-style-type:none;min-height:15px;padding-top:0;margin:0;";var ah="cursor:default;padding:2px;background:#fff;border-right:solid 1px #000;border-bottom:solid 1px #000;border-left:solid 1px #aaa;border-top:solid 1px #aaa;overflow:auto";var K="display:block;";var af="cursor:default;padding-left:2px;font-weight:normal;font-style:normal;";var H="list-style-type:none;";var F="padding-left:10px;margin-left:0;";var ag="";var r="font-style:italic;font-weight:bold;";var q=null;var E="position:relative;overflow:hidden;";var N=null;var M="float:left;position:absolute;cursor:default;overflow:hidden;";var an=null;var w="overflow:hidden;width: 16px;height: 18px;color:#000;background: #D6D3CE;,font-family: verdana;font-size: 10px;cursor: default;text-align: center;vertical-align:middle;";var X="background-repeat:no-repeat;float:right;";var ad="padding-left:0px;padding-top:1px;width:12px;height:13px;border-right:solid 2px #404040;border-bottom:solid 2px #404040;border-left:solid 2px #f0f0f0;border-top:solid 2px #f0f0f0";var T="padding-left:1px;padding-top:3px;width:12px;height:13px;border:solid 1px #808080";var n="&#9660;";var h=null;var g=null;var ak=false;var G=0;var A=null;String.format=function(){var ap=null;if(arguments.length!=0){ap=arguments[0];for(var ao=1;ao<arguments.length;ao++){var aq=new RegExp("\\{"+(ao-1)+"\\}","gm");ap=ap.replace(aq,arguments[ao])}}return ap};function u(ao,ap){var aq=(ao.outerWidth()-ao.width());ao.width(ap-aq)}function L(ap,ao){var aq=(ap.outerHeight()-ap.height());ap.height(ao-aq)}function j(){var ao="";if(b.comboboxValueContainerClass){ao=String.format("<div class='{0}' style='{1}'></div>",b.comboboxValueContainerClass,E)}else{ao=String.format("<div style='{0}'></div>",E)}var aq="";if(b.comboboxValueContentClass){aq=String.format("<div class='{0}' style='{1}'></div>",b.comboboxValueContentClass,M)}else{aq=String.format("<div style='{0}'></div>",M)}var ap="";if(b.comboboxDropDownButtonClass){ap=String.format("<div class='{1}' style='{0}'></div>",X,b.comboboxDropDownButtonClass)}else{ap=String.format("<div style='{0}'>{1}</div>",(X+w),n)}N=jQuery(aq);an=jQuery(ap);q=jQuery(ao);q.appendTo(P);N.appendTo(q);an.appendTo(q);l(0)}function C(aw){var ao="";var av=null;var au="";var at=null;var ar="";var aq="option";if(aw.is("option")){au=aw.text();at=aw.val();if(b.comboboxDropDownItemClass){av=b.comboboxDropDownItemClass;ar=K}else{ar=(K+af)}if(av){ao=String.format("<li style='{0}' class='{1}'>{2}</li>",ar,av,au)}else{ao=String.format("<li style='{0}'>{1}</li>",ar,au)}}else{au=aw.attr("label");at=aw.attr("class");aq="optgroup";if(b.comboboxDropDownGroupItemHeaderClass){av=b.comboboxDropDownGroupItemHeaderClass;ar=ag}else{ar=(ag+r)}if(av){ao=String.format("<li><span style='{0}' class='{1}'>{2}</span></li>",ar,av,au)}else{ao=String.format("<li><span style='{0}'>{1}</span></li>",ar,au)}}var ap=jQuery(ao);ap.css("display","inline");ap[0].dataValue=at;ap[0].dataType=aq;ap[0].title=au;return ap}function B(ao,ap){ap.each(function(){var au=jQuery(this);var aw=C(au);ao.append(aw);var at=aw.offset().left;at-=A.left;if(at<0){at=0}var ar=(at+aw.outerWidth());if(ar>G){G=ar}I(aw,K);if(au.is("optgroup")){var aq="";if(b.comboboxDropDownGroupItemContainerClass){aq=String.format("<ul style='{0}' class='{1}'></ul>",H,b.comboboxDropDownGroupItemContainerClass)}else{aq=String.format("<ul style='{0}'></ul>",(H+F))}var av=jQuery(aq);aw.append(av);B(av,au.children())}})}function t(){var ao=am.children();h=null;g=null;if(ai){ai.empty()}else{var ap="";if(b.comboboxDropDownClass){ap=String.format("<ul class='{0}' style='{1}'></ul>",b.comboboxDropDownClass,ac)}else{ap=String.format("<ul style='{0}'></ul>",(ac+ah))}ai=jQuery(ap);ai.appendTo(P);ai.attr("tabIndex",0)}if(ao.length>0){G=0;A=ai.offset();B(ai,ao)}}function I(ao,at){var ar=at.split(";");if(ar.length>0){for(var aq=0;aq<ar.length;aq++){var au=ar[aq];var ap=au.split(":");ao.css(ap[0],ap[1])}}}function l(ar){if(b.comboboxDropDownButtonClass){var aq=an.width();var at=ar*aq;var ao=String.format("0px 0px",at);an.css("background-position",ao)}else{var ap=ad;if(ar==1){ap=T}I(an,ap)}}function m(){var ao=P.outerWidth();if(ao<G){ao=G}ai.width(ao)}function z(){var ap=N.outerHeight();var ao=q.height();var aq=((ao-ap)/2);if(aq<0){aq=0}N.css("top",aq)}function v(){P.width(b.width);var ar=P.width();u(q,ar);var aq=(q.width()-an.outerWidth());u(N,aq);var ao=an.outerHeight();L(q,ao);ai.css("position","absolute");ai.css("z-index","20000");m();var at=ai.offset().left;var ap=(at-(P.outerWidth()-P.width()));ai.css("left",ap+1);ai.hide()}function aa(){jQuery("*",ai).not("ul").not("span").not("[@dataType='optgroup']").each(function(){var ao=jQuery(this);ao.click(function(ap){ap.stopPropagation();y(ao)});ao.mouseover(function(){D(ao)});ao.mouseout(function(){R(ao)})})}function O(){ai.blur(function(ao){ao.stopPropagation();c()})}function f(){P.click(function(ao){W()})}function k(){P.unbind("click")}function aj(){P.keydown(function(ao){ao.preventDefault();d(ao)});f();O();aa()}function i(){var ap=false;var ao=am[0];if(ao.length>0){var aq=ao[ao.selectedIndex].text;N.text(aq);N.attr("title",aq);z();if(g){if(g!=am.val()){ap=true}}g=am.val();if(ap){if(am.combobox.onChange){am.combobox.onChange()}}if(h){o(h,false)}h=jQuery("li[@dataValue='"+g+"']",ai);o(h,true)}}function o(ap,ao){if(ap){if(b.comboboxDropDownItemHoverClass){if(ao){ap.addClass(b.comboboxDropDownItemHoverClass)}else{ap.removeClass(b.comboboxDropDownItemHoverClass)}}else{if(ao){ap.css("background","#000");ap.css("color","#fff")}else{ap.css("background","");ap.css("color","")}}}}function e(){var ao="";if(b.comboboxContainerClass){ao=String.format("<div class='{0}' style='{1}'></div>",b.comboboxContainerClass,ae)}else{ao=String.format("<div style='{0}' style='{1}'></div>",al,ae)}P=jQuery(ao);am.before(P);P.append(am);am.hide();P.attr("tabIndex",0)}function J(){e();j();t();v();aj();i()}function U(){ai.focus()}function S(){P.focus();f()}function Z(ao){ai.animate({height:"toggle",top:ao},"fast",U)}function Y(ao){ai.animate({height:"toggle",top:ao},"fast",S)}function Q(){var ap=P.position().top;var at=ai.outerHeight();var ar=(ap+P.outerHeight());var au=jQuery(window).scrollTop();var av=jQuery(window).height();var ao=(av-(ar-au));var aq;aq=ar;ak=false;if(ao<at){if((ap-au)>at){aq=(ap-at);ak=true}}return aq}function x(ar){if(ar){if(ai.is(":hidden")){k();o(h,true);l(1);var ap=Q();ai.css("top",ap);ai.css("left",P.offset().left);switch(b.animationType){case"slide":if(ak){var ao=P.position().top;var aq=P.outerHeight();ai.css("top",(ao-aq));Z(ap)}else{ai.slideDown("fast",U)}break;case"fade":ai.fadeIn("fast",U);break;default:ai.show();U()}}}else{if(ai.is(":visible")){l(0);switch(b.animationType){case"slide":if(ak){ao=P.position().top;dropdownListHeight=ai.height();Y(ao-P.outerHeight())}else{ai.slideUp("fast",S)}break;case"fade":ai.fadeOut("fast",S);break;default:ai.hide();S()}}}}function ab(ar){var ao=am[0];var ap=ao.selectedIndex;var aq=-1;var at=ao.length-1;switch(ar){case":next":aq=ap+1;if(aq>at){aq=at}break;case":previous":aq=ap-1;if(aq<0){aq=0}break;case":first":aq=0;break;case":last":aq=at;break}ao.selectedIndex=aq;i()}function V(){return ai.is(":visible")}am.combobox.updateSelection=function(){i()};am.combobox.update=function(){t();m();aa();i()};function W(){if(ai.is(":hidden")){x(true)}else{x(false)}}function c(){if(ai.is(":visible")){x(false)}}function y(ao){am.val(ao[0].dataValue);i();x(false)}function D(ao){o(h,false);o(ao,true)}function R(ao){o(ao,false)}function d(ao){switch(ao.which){case 33:case 36:ab(":first");break;case 34:case 35:ab(":last");break;case 37:ab(":previous");break;case 38:if(ao.altKey){x(!(V()))}else{ab(":previous")}break;case 39:ab(":next");break;case 40:if(ao.altKey){x(!(V()))}else{ab(":next")}break;case 27:case 13:x(false);break;case 9:ai.blur();$(window)[0].focus();break}ao.cancelBubble=true}J()})};