var droplinemenu={arrowimage:{classname:'downarrowclass',src:'down.gif',leftpadding:5},animateduration:{over:0,out:0},buildmenu:function(menuid){jQuery(document).ready(function($){var $mainmenu=$("#"+menuid+">ul")
var $headers=$mainmenu.find("ul").parent()
$headers.each(function(i){var $curobj=$(this)
var $subul=$(this).find('ul:eq(0)')
this._dimensions={h:$curobj.find('a:eq(0)').outerHeight()}
this.istopheader=$curobj.parents("ul").length==1?true:false
var $innerheader=$curobj.children('a').eq(0)
$innerheader=($innerheader.children().eq(0).is('span'))?$innerheader.children().eq(0):$innerheader
$curobj.hover(function(e){var $targetul=$(this).children("ul:eq(0)")
if($targetul.queue().length<=1)
if(document.all&&!window.XMLHttpRequest)
$mainmenu.find('ul').css({overflow:(this.istopheader)?'hidden':'visible'})
$targetul.slideDown(droplinemenu.animateduration.over)},function(e){var $targetul=$(this).children("ul:eq(0)")
$targetul.slideUp(droplinemenu.animateduration.out)})})
$mainmenu.find("ul").css({display:'none',visibility:'visible'})})}};jQuery.ui||(function($){var _remove=$.fn.remove,isFF2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);$.ui={version:"1.7.2",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return;}
for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:function(el,a){if($(el).css('overflow')=='hidden'){return false;}
var scroll=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(el[scroll]>0){return true;}
el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size));},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width);},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(isFF2){var attr=$.attr,removeAttr=$.fn.removeAttr,ariaNS="http://www.w3.org/2005/07/aaa",ariaState=/^aria-/,ariaRole=/^wairole:/;$.attr=function(elem,name,value){var set=value!==undefined;return(name=='role'?(set?attr.call(this,elem,name,"wairole:"+value):(attr.apply(this,arguments)||"").replace(ariaRole,"")):(ariaState.test(name)?(set?elem.setAttributeNS(ariaNS,name.replace(ariaState,"aaa:"),value):attr.call(this,elem,name.replace(ariaState,"aaa:"))):attr.apply(this,arguments)));};$.fn.removeAttr=function(name){return(ariaState.test(name)?this.each(function(){this.removeAttributeNS(ariaNS,name.replace(ariaState,""));}):removeAttr.call(this,name));};}
$.fn.extend({remove:function(){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");});return _remove.apply(this,arguments);},enableSelection:function(){return this.attr('unselectable','off').css('MozUserSelect','').unbind('selectstart.ui');},disableSelection:function(){return this.attr('unselectable','on').css('MozUserSelect','none').bind('selectstart.ui',function(){return false;});},scrollParent:function(){var scrollParent;if(($.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));}).eq(0);}
return(/fixed/).test(this.css('position'))||!scrollParent.length?$(document):scrollParent;}});$.extend($.expr[':'],{data:function(elem,i,match){return!!$.data(elem,match[3]);},focusable:function(element){var nodeName=element.nodeName.toLowerCase(),tabIndex=$.attr(element,'tabindex');return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:'a'==nodeName||'area'==nodeName?element.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(element)['area'==nodeName?'parents':'closest'](':hidden').length;},tabbable:function(element){var tabIndex=$.attr(element,'tabindex');return(isNaN(tabIndex)||tabIndex>=0)&&$(element).is(':focusable');}});function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=='string'?methods.split(/,?\s+/):methods);}
var methods=getMethods('getter');if(args.length==1&&typeof args[0]=='string'){methods=methods.concat(getMethods('getterSetter'));}
return($.inArray(method,methods)!=-1);}
$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&options.substring(0,1)=='_'){return this;}
if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options))._init());(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args));});};$[namespace]=$[namespace]||{};$[namespace][name]=function(element,options){var self=this;this.namespace=namespace;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind('setData.'+name,function(event,key,value){if(event.target==element){return self._setData(key,value);}}).bind('getData.'+name,function(event,key){if(event.target==element){return self._getData(key);}}).bind('remove',function(){return self.destroy();});};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter='option';};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled');},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key);}
options={};options[key]=value;}
$.each(options,function(key,value){self._setData(key,value);});},_getData:function(key){return this.options[key];},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element
[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+
this.namespace+'-state-disabled').attr("aria-disabled",value);}},enable:function(){this._setData('disabled',false);},disable:function(){this._setData('disabled',true);},_trigger:function(type,event,data){var callback=this.options[type],eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);event=$.Event(event);event.type=eventName;if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}}
this.element.trigger(event,data);return!($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());}};$.widget.defaults={disabled:false};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(event){return self._mouseDown(event);}).bind('click.'+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false;event.stopImmediatePropagation();return false;}});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
this.started=false;},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},_mouseDown:function(event){event.originalEvent=event.originalEvent||{};if(event.originalEvent.mouseHandled){return;}
(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).parents().add(event.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}
this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}
if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}
this._mouseMoveDelegate=function(event){return self._mouseMove(event);};this._mouseUpDelegate=function(event){return self._mouseUp(event);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);($.browser.safari||event.preventDefault());event.originalEvent.mouseHandled=true;return true;},_mouseMove:function(event){if($.browser.msie&&!event.button){return this._mouseUp(event);}
if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}
if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));}
return!this._mouseStarted;},_mouseUp:function(event){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(event.target==this._mouseDownEvent.target);this._mouseStop(event);}
return false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(event){return this.mouseDelayMet;},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.widget("ui.accordion",{_init:function(){var o=this.options,self=this;this.running=0;if(o.collapsible==$.ui.accordion.defaults.collapsible&&o.alwaysOpen!=$.ui.accordion.defaults.alwaysOpen){o.collapsible=!o.alwaysOpen;}
if(o.navigation){var current=this.element.find("a").filter(o.navigationFilter);if(current.length){if(current.filter(o.header).length){this.active=current;}else{this.active=current.parent().parent().prev();current.addClass("ui-accordion-content-active");}}}
this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix");}
this.headers=this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){$(this).addClass('ui-state-hover');}).bind("mouseleave.accordion",function(){$(this).removeClass('ui-state-hover');}).bind("focus.accordion",function(){$(this).addClass('ui-state-focus');}).bind("blur.accordion",function(){$(this).removeClass('ui-state-focus');});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||o.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass('ui-accordion-content-active');$("<span/>").addClass("ui-icon "+o.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(o.icons.header).toggleClass(o.icons.headerSelected);if($.browser.msie){this.element.find('a').css('zoom','1');}
this.resize();this.element.attr('role','tablist');this.headers.attr('role','tab').bind('keydown',function(event){return self._keydown(event);}).next().attr('role','tabpanel');this.headers.not(this.active||"").attr('aria-expanded','false').attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr('tabIndex','0');}else{this.active.attr('aria-expanded','true').attr('tabIndex','0');}
if(!$.browser.safari)
this.headers.find('a').attr('tabIndex','-1');if(o.event){this.headers.bind((o.event)+".accordion",function(event){return self._clickHandler.call(self,event,this);});}},destroy:function(){var o=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind('.accordion').removeData('accordion');this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var contents=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(o.autoHeight||o.fillHeight){contents.css("height","");}},_setData:function(key,value){if(key=='alwaysOpen'){key='collapsible';value=!value;}
$.widget.prototype._setData.apply(this,arguments);},_keydown:function(event){var o=this.options,keyCode=$.ui.keyCode;if(o.disabled||event.altKey||event.ctrlKey)
return;var length=this.headers.length;var currentIndex=this.headers.index(event.target);var toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:return this._clickHandler({target:event.target},event.target);}
if(toFocus){$(event.target).attr('tabIndex','-1');$(toFocus).attr('tabIndex','0');toFocus.focus();return false;}
return true;},resize:function(){var o=this.options,maxHeight;if(o.fillSpace){if($.browser.msie){var defOverflow=this.element.parent().css('overflow');this.element.parent().css('overflow','hidden');}
maxHeight=this.element.parent().height();if($.browser.msie){this.element.parent().css('overflow',defOverflow);}
this.headers.each(function(){maxHeight-=$(this).outerHeight();});var maxPadding=0;this.headers.next().each(function(){maxPadding=Math.max(maxPadding,$(this).innerHeight()-$(this).height());}).height(Math.max(0,maxHeight-maxPadding)).css('overflow','auto');}else if(o.autoHeight){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).outerHeight());}).height(maxHeight);}},activate:function(index){var active=this._findActive(index)[0];this._clickHandler({target:active},active);},_findActive:function(selector){return selector?typeof selector=="number"?this.headers.filter(":eq("+selector+")"):this.headers.not(this.headers.not(selector)):selector===false?$([]):this.headers.filter(":eq(0)");},_clickHandler:function(event,target){var o=this.options;if(o.disabled)return false;if(!event.target&&o.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);this.active.next().addClass('ui-accordion-content-active');var toHide=this.active.next(),data={options:o,newHeader:$([]),oldHeader:o.active,newContent:$([]),oldContent:toHide},toShow=(this.active=$([]));this._toggle(toShow,toHide,data);return false;}
var clicked=$(event.currentTarget||target);var clickedIsActive=clicked[0]==this.active[0];if(this.running||(!o.collapsible&&clickedIsActive)){return false;}
this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);this.active.next().addClass('ui-accordion-content-active');if(!clickedIsActive){clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(o.icons.header).addClass(o.icons.headerSelected);clicked.next().addClass('ui-accordion-content-active');}
var toShow=clicked.next(),toHide=this.active.next(),data={options:o,newHeader:clickedIsActive&&o.collapsible?$([]):clicked,oldHeader:this.active,newContent:clickedIsActive&&o.collapsible?$([]):toShow.find('> *'),oldContent:toHide.find('> *')},down=this.headers.index(this.active[0])>this.headers.index(clicked[0]);this.active=clickedIsActive?$([]):clicked;this._toggle(toShow,toHide,data,clickedIsActive,down);return false;},_toggle:function(toShow,toHide,data,clickedIsActive,down){var o=this.options,self=this;this.toShow=toShow;this.toHide=toHide;this.data=data;var complete=function(){if(!self)return;return self._completed.apply(self,arguments);};this._trigger("changestart",null,this.data);this.running=toHide.size()===0?toShow.size():toHide.size();if(o.animated){var animOptions={};if(o.collapsible&&clickedIsActive){animOptions={toShow:$([]),toHide:toHide,complete:complete,down:down,autoHeight:o.autoHeight||o.fillSpace};}else{animOptions={toShow:toShow,toHide:toHide,complete:complete,down:down,autoHeight:o.autoHeight||o.fillSpace};}
if(!o.proxied){o.proxied=o.animated;}
if(!o.proxiedDuration){o.proxiedDuration=o.duration;}
o.animated=$.isFunction(o.proxied)?o.proxied(animOptions):o.proxied;o.duration=$.isFunction(o.proxiedDuration)?o.proxiedDuration(animOptions):o.proxiedDuration;var animations=$.ui.accordion.animations,duration=o.duration,easing=o.animated;if(!animations[easing]){animations[easing]=function(options){this.slide(options,{easing:easing,duration:duration||700});};}
animations[easing](animOptions);}else{if(o.collapsible&&clickedIsActive){toShow.toggle();}else{toHide.hide();toShow.show();}
complete(true);}
toHide.prev().attr('aria-expanded','false').attr("tabIndex","-1").blur();toShow.prev().attr('aria-expanded','true').attr("tabIndex","0").focus();},_completed:function(cancel){var o=this.options;this.running=cancel?0:--this.running;if(this.running)return;if(o.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}
this._trigger('change',null,this.data);}});$.extend($.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:'slide',autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();}},animations:{slide:function(options,additions){options=$.extend({easing:"swing",duration:300},options,additions);if(!options.toHide.size()){options.toShow.animate({height:"show"},options);return;}
if(!options.toShow.size()){options.toHide.animate({height:"hide"},options);return;}
var overflow=options.toShow.css('overflow'),percentDone,showProps={},hideProps={},fxAttrs=["height","paddingTop","paddingBottom"],originalWidth;var s=options.toShow;originalWidth=s[0].style.width;s.width(parseInt(s.parent().width(),10)-parseInt(s.css("paddingLeft"),10)-parseInt(s.css("paddingRight"),10)-(parseInt(s.css("borderLeftWidth"),10)||0)-(parseInt(s.css("borderRightWidth"),10)||0));$.each(fxAttrs,function(i,prop){hideProps[prop]='hide';var parts=(''+$.css(options.toShow[0],prop)).match(/^([\d+-.]+)(.*)$/);showProps[prop]={value:parts[1],unit:parts[2]||'px'};});options.toShow.css({height:0,overflow:'hidden'}).show();options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{step:function(now,settings){if(settings.prop=='height'){percentDone=(settings.now-settings.start)/(settings.end-settings.start);}
options.toShow[0].style[settings.prop]=(percentDone*showProps[settings.prop].value)+showProps[settings.prop].unit;},duration:options.duration,easing:options.easing,complete:function(){if(!options.autoHeight){options.toShow.css("height","");}
options.toShow.css("width",originalWidth);options.toShow.css({overflow:overflow});options.complete();}});},bounceslide:function(options){this.slide(options,{easing:options.down?"easeOutBounce":"swing",duration:options.down?1000:200});},easeslide:function(options){this.slide(options,{easing:"easeinout",duration:700});}}});})(jQuery);(function($){$.widget("ui.button",{_init:function(){var self=this,options=this.options;this.element.addClass("ui-widget ui-widget-container ui-button ui-helper-clearfix");if(options.tooltip!=""){this.oldTitle=this.element.attr("title");this.element.attr("title",options.tooltip);}
this.button=$("<a></a>").addClass("ui-state-default ui-corner-all").attr('href',options.href).click(function(){self.click()}).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");}).mousedown(function(){$(this).addClass("ui-state-active")}).mouseup(function(){$(this).removeClass("ui-state-active")}).html(options.text).appendTo(this.element);this.icon=$("<span></span>").addClass("ui-icon").prependTo(this.button);this._setIcon(options.icon)},destroy:function(){this.element.removeClass("ui-widget ui-widget-container ui-button ui-helper-clearfix").attr("title",this.oldTitle);this.button.remove();},click:function(){var self=this,options=this.options;options.click.apply(self.element[0],arguments);},_setIcon:function(icon){if(icon!="")
this.icon.addClass(icon);else
this.icon.hide();},_setData:function(key,value){switch(key){case'icon':this.icon.removeClass(this.options.icon);this._setIcon(value);break;case'text':this.button.html(value);this.icon.prependTo(this.button);break;case'tooltip':this.element.attr("title",value);break;}
$.widget.prototype._setData.apply(this,arguments);}});$.extend($.ui.button,{version:"0.1pre",defaults:{icon:"",href:"",text:"",tooltip:"",click:function(){}}});})(jQuery);jQuery.jqurl={url:function(args){args=jQuery.extend({win:window},args);return args.win.location.href;},redirect:function(url,args){if(url===null)
url=jQuery.jqurl.strip();_url=explode('?',url);params=new Array();if(isset(_url[1])){attrs=explode('&',_url[1]);for(var attr in attrs){_attr=explode('=',attrs[attr]);params[_attr[0]]=_attr[1];}}
var _args=new Array(),i=0;for(var key in args)
params[key]=args[key];_args=new Array(),i=0;for(var key in params)
_args[i++]=key+"="+params[key];redirect=_url[0]+(_args.length==0?"":"?"+_args.join('&'));jQuery.jqurl.loc(redirect);},loc:function(urlstr,args){args=jQuery.extend({win:window,w:500,h:500,wintype:'_top'},args);if(!args.t){args.t=screen.height/2-args.h/2;}
if(!args.l){args.l=screen.width/2-args.w/2;}
if(args['wintype']=='_top'){args.win.location.href=urlstr;}
else{open(urlstr,args['wintype'],'width='+args.w+',height='+args.h+',top='+args.t+',left='+args.l+',scrollbars,resizable');}
return;},qs:function(args){args=jQuery.extend({ret:'string',win:window},args);if(args['ret']=='string'){return jQuery.jqurl.url({win:args.win}).split('?')[1];}
else if(args['ret']=='object'){var qsobj={};var thisqs=jQuery.jqurl.url({win:args.win}).split('?')[1];if(thisqs){var pairs=thisqs.split('&');for(i=0;i<pairs.length;i++){var pair=pairs[i].split('=');qsobj[pair[0]]=pair[1];}}
return qsobj;}},strip:function(args){args=jQuery.extend({keys:'',win:window},args);if(jQuery.jqurl.url().indexOf('?')==-1){return jQuery.jqurl.url({win:args.win});}
else if(!args.keys){return jQuery.jqurl.url({win:args.win}).split('?')[0];}
else{var qsobj=jQuery.jqurl.qs({ret:'object',win:args.win});var counter=0;var url=jQuery.jqurl.url({win:args.win}).split('?')[0]+'?';var amp='';for(var key in qsobj){if(args.keys.indexOf(key)==-1){amp=(counter)?'&':'';url=url+amp+key+'='+qsobj[key];counter++;}}
return url;}},get:function(key,args){args=jQuery.extend({win:window},args);qsobj=jQuery.jqurl.qs({ret:'object',win:args.win});return qsobj[key];},set:function(hash,args){args=jQuery.extend({win:window},args);var qsobj=jQuery.jqurl.qs({ret:'object',win:args.win});for(var i in hash){qsobj[i]=hash[i];}
var qstring='';var counter=0;var amp='';for(var k in qsobj){amp=(counter)?'&':'';qstring=qstring+amp+k+'='+qsobj[k];counter++;}
return jQuery.jqurl.strip({win:args.win})+'?'+qstring;}};;(function($){var moz=$.browser.mozilla&&/gecko/i.test(navigator.userAgent);var webkit=$.browser.safari&&$.browser.version>=3;var expr=$.browser.msie&&(function(){var div=document.createElement('div');try{div.style.setExpression('width','0+0');}
catch(e){return false;}
return true;})();function sz(el,p){return parseInt($.css(el,p))||0;};function hex2(s){var s=parseInt(s).toString(16);return(s.length<2)?'0'+s:s;};function gpc(node){for(;node&&node.nodeName.toLowerCase()!='html';node=node.parentNode){var v=$.css(node,'backgroundColor');if(v=='rgba(0, 0, 0, 0)')
continue;if(v.indexOf('rgb')>=0){var rgb=v.match(/\d+/g);return'#'+hex2(rgb[0])+hex2(rgb[1])+hex2(rgb[2]);}
if(v&&v!='transparent')
return v;}
return'#ffffff';};function getWidth(fx,i,width){switch(fx){case'round':return Math.round(width*(1-Math.cos(Math.asin(i/width))));case'cool':return Math.round(width*(1+Math.cos(Math.asin(i/width))));case'sharp':return Math.round(width*(1-Math.cos(Math.acos(i/width))));case'bite':return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));case'slide':return Math.round(width*(Math.atan2(i,width/i)));case'jut':return Math.round(width*(Math.atan2(width,(width-i-1))));case'curl':return Math.round(width*(Math.atan(i)));case'tear':return Math.round(width*(Math.cos(i)));case'wicked':return Math.round(width*(Math.tan(i)));case'long':return Math.round(width*(Math.sqrt(i)));case'sculpt':return Math.round(width*(Math.log((width-i-1),width)));case'dog':return(i&1)?(i+1):width;case'dog2':return(i&2)?(i+1):width;case'dog3':return(i&3)?(i+1):width;case'fray':return(i%2)*width;case'notch':return width;case'bevel':return i+1;}};$.fn.corner=function(options){if(this.length==0){if(!$.isReady&&this.selector){var s=this.selector,c=this.context;$(function(){$(s,c).corner(options);});}
return this;}
return this.each(function(index){var $this=$(this);var o=(options||$this.attr($.fn.corner.defaults.metaAttr)||'').toLowerCase();var keep=/keep/.test(o);var cc=((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);var sc=((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);var width=parseInt((o.match(/(\d+)px/)||[])[1])||10;var re=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var fx=((o.match(re)||['round'])[0]);var edges={T:0,B:1};var opts={TL:/top|tl|left/.test(o),TR:/top|tr|right/.test(o),BL:/bottom|bl|left/.test(o),BR:/bottom|br|right/.test(o)};if(!opts.TL&&!opts.TR&&!opts.BL&&!opts.BR)
opts={TL:1,TR:1,BL:1,BR:1};if($.fn.corner.defaults.useNative&&fx=='round'&&(moz||webkit)&&!cc&&!sc){if(opts.TL)
$this.css(moz?'-moz-border-radius-topleft':'-webkit-border-top-left-radius',width+'px');if(opts.TR)
$this.css(moz?'-moz-border-radius-topright':'-webkit-border-top-right-radius',width+'px');if(opts.BL)
$this.css(moz?'-moz-border-radius-bottomleft':'-webkit-border-bottom-left-radius',width+'px');if(opts.BR)
$this.css(moz?'-moz-border-radius-bottomright':'-webkit-border-bottom-right-radius',width+'px');return;}
var strip=document.createElement('div');strip.style.overflow='hidden';strip.style.height='1px';strip.style.backgroundColor=sc||'transparent';strip.style.borderStyle='solid';var pad={T:parseInt($.css(this,'paddingTop'))||0,R:parseInt($.css(this,'paddingRight'))||0,B:parseInt($.css(this,'paddingBottom'))||0,L:parseInt($.css(this,'paddingLeft'))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!keep)this.style.border='none';strip.style.borderColor=cc||gpc(this.parentNode);var cssHeight=$.curCSS(this,'height');for(var j in edges){var bot=edges[j];if((bot&&(opts.BL||opts.BR))||(!bot&&(opts.TL||opts.TR))){strip.style.borderStyle='none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');var d=document.createElement('div');$(d).addClass('jquery-corner');var ds=d.style;bot?this.appendChild(d):this.insertBefore(d,this.firstChild);if(bot&&cssHeight!='auto'){if($.css(this,'position')=='static')
this.style.position='relative';ds.position='absolute';ds.bottom=ds.left=ds.padding=ds.margin='0';if(expr)
ds.setExpression('width','this.parentNode.offsetWidth');else
ds.width='100%';}
else if(!bot&&$.browser.msie){if($.css(this,'position')=='static')
this.style.position='relative';ds.position='absolute';ds.top=ds.left=ds.right=ds.padding=ds.margin='0';if(expr){var bw=sz(this,'borderLeftWidth')+sz(this,'borderRightWidth');ds.setExpression('width','this.parentNode.offsetWidth - '+bw+'+ "px"');}
else
ds.width='100%';}
else{ds.position='relative';ds.margin=!bot?'-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px':(pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';}
for(var i=0;i<width;i++){var w=Math.max(0,getWidth(fx,i,width));var e=strip.cloneNode(false);e.style.borderWidth='0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';bot?d.appendChild(e):d.insertBefore(e,d.firstChild);}}}});};$.fn.uncorner=function(){if(moz||webkit)
this.css(moz?'-moz-border-radius':'-webkit-border-radius',0);$('div.jquery-corner',this).remove();return this;};$.fn.corner.defaults={useNative:true,metaAttr:'data-corner'};})(jQuery);$.fn.password=function(options){return this.each(function(){var that=this;this.opts={};this.opts=$.extend({},$.fn.password.defaults,options);this.target=$(this.opts.target);this.percents=(this.opts.classes.length)?100/this.opts.classes.length:100;v=$(this).keyup(function(){if(typeof el=="undefined")
this.el=$(this);var s=getPasswordStrength(this.value);var p=this.percents;var t=Math.floor(s/p);if(100<=s)
t=this.opts.classes.length-1;$(this.opts.target).removeAttr('class');if(s>0||this.value.length>0){$(this.opts.target).addClass(this.opts.classes[t]);}})});};function getPasswordStrength(H){var D=(H.length);if(D<4){D=0}
if(D>5){D=5}
var F=H.replace(/[0-9]/g,"");var G=(H.length-F.length);if(G>3){G=3}
var A=H.replace(/\W/g,"");var C=(H.length-A.length);if(C>3){C=3}
var B=H.replace(/[A-Z]/g,"");var I=(H.length-B.length);if(I>3){I=3}
var E=((D*10)-20)+(G*10)+(C*15)+(I*10);if(E<0){E=0}
if(E>100){E=100}
return E;}
var waiting;jQuery.extend({updateSnippet:function(id,html){$("#"+id).html(html);},netteCallback:function(data){if(data.redirect){window.location.href=data.redirect;}
if(data.snippets){for(var i in data.snippets){jQuery.updateSnippet(i,data.snippets[i]);}}}});jQuery.ajaxSetup({success:jQuery.netteCallback,dataType:"json"});var _member_delay=new Array;var IE6=false;$(window).load(function(){$('#nextitems .info').show();});var timeout=100;var closetimer=0;var ddmenuitem=0;$(document).ready(function(){$("h1,h2,h3").mousedown(function(event){if(event.button==1){return false;}});$("#header").css('cursor','pointer').click(function(){$.jqurl.redirect('/');});$('.itemdelete').click(function(){$.get($.jqurl.strip(),{'do':'itemdelete',value:$(this).attr('rel')});});if(!$.browser.msie){var isFFSuitable=($.browser.mozilla&&($.browser.version.substr(0,3)!="1.9"&&$.browser.version.substr(0,1)!="2"));Cufon.replace(isFFSuitable?$("h2[class!=h2not]"):'h2',{hover:true});Cufon.replace($(".squad h3, .team, .lineup .player .name h3"),{fontFamily:'rexlia',fontSize:'12px',hover:true});}
Cufon.replace('h1');Cufon.replace($(".archive .my-button,.vote .my-button,.matchesbutton .my-button"),{hover:true});Cufon.replace($("h3.signature"),{fontFamily:'stelina',fontSize:'26px'});Cufon.replace($("#module h3"),{fontSize:'18px'});Cufon.replace($("#page-navigation .navigation span"),{hover:true});Cufon.replace($("#hotnews h3,#login_wrapper h3,h3#updates,h3.updates"),{fontFamily:'rexlia',fontSize:'14px',hover:true});Cufon.replace($("#topmenu > ul > li > a"),{fontFamily:'rexlia',fontSize:'17px'});Cufon.now();$("#test").click(lineupOn);$('#frmregistration-username,#frmregistration-email,#frmedit-username,#frmedit-email').livequery("keyup",function(){var name=null;switch($(this).attr('id')){case"frmregistration-username":name="username";break;case"frmregistration-email":name="email";break;case"frmedit-username":name="username";break;case"frmedit-email":name="email";break;}
if($("#member-"+name).attr('src')!='/images/indicators/loader3.gif')
$("#member-"+name).attr('src','/images/indicators/loader3.gif');clearTimeout(_member_delay[name]);_member_delay[name]=setInterval("member_delay('"+name+"','"+$(this).val()+"')",750);});$('#frmregistration-username,#frmregistration-email,#frmedit-username,#frmedit-email').each(function(){if(!($(this).val()==""||($(this).attr('id')=='frmregistration-email'&&$(this).val()=='@')))
$(this).trigger('keyup');});$('#password').show();$('#frmedit-password,#frmregistration-password').password({target:'#password',classes:Array('weak','medium','strong')});$('.onhide').mouseover(function(){$(this).removeClass('hidden');}).mouseout(function(){$(this).addClass('hidden');}).each(function(){$(this).trigger('mouseout');});$('#add_comment textarea').elastic();$('.reply a').click(function(){var comID=$(this).parent().parent().attr('id');var comText=$(this).parent().parent().find('.text').html().substring(0,320);$('#frmcomment-commentid').attr('value',comID);$('#commentreply').html("<img src='/images/icons/remove.png'> <a href='#"+comID+"'><strong>Reagujete na komentář #:</strong></a> "+comText+(comText.length==320?'...':'')).show().find('img').mouseover(function(){$(this).css('cursor','pointer');}).click(function(){$('#commentreply').empty().hide();$('#frmcomment-commentid').attr('value',null);});window.location.href="#add_comment";});$('#nextitems').carousel('.prev','.next');$('.archive .my-button').corner("5px").mouseenter(function(){$(".archive .my-button img").animate({top:"-8px"},200).animate({top:"-3px"},200).animate({top:"-6px"},100).animate({top:"-3px"},100).animate({top:"-5px"},100).animate({top:"-3px"},100);});$('.vote .my-button, .matchesbutton .my-button').corner("5px");$("#page-navigation .navigation").corner("5px");$("#header").corner("10px bottom");$('#module div.parent, #module div.parent h3').corner("5px top");$('#module .timetable tr,#module .timetable tr.important, .eventwrapper').mouseover(function(){$(this).css('background-color','#96ACEF').css('cursor','pointer');}).mouseout(function(){$(this).css('background-color','');}).click(function(){var matchid=$(this).attr('rel');window.location.href=matchid;});droplinemenu.buildmenu("topmenu");$("#events_time div.home span,#events_time div.away span").mouseover(function(){$(this).removeClass('hidden');$(this).children('span.event_detail').show();}).mouseout(function(){$(this).addClass('hidden');$(this).children('span.event_detail').hide();});$("#hotnews").accordion({icons:{header:"ui-icon-circle-arrow-e",headerSelected:"ui-icon-circle-arrow-s"},autoHeight:false,active:(Math.floor(Math.random()*4)<1?0:Math.floor(Math.random()*4))});$("#hotnews tr[rel!=newsdetail]").mouseover(function(){$(this).addClass('active');}).mouseout(function(){$(this).removeClass('active');}).click(function(){if($(this).attr('rel'))
return!window.open($(this).attr('rel'));var display=$(this).next().css('display');$("#hotnews tr[rel=newsdetail]").hide();if(display=='none'){$(this).next().css('background-color','#FFF').show();}});$(".account-button").tooltip({positionLeft:true,opacity:0.8,left:-8});$("#competitionid,#seasonid").change(function(){var redirect={}
redirect[$(this).attr('id')]=$(this).val();$.jqurl.redirect($(this).attr('id')=='seasonid'?null:$.jqurl.url(),redirect);});$("#searchbox-submit").click(function(){$.jqurl.redirect($.jqurl.url(),{q:$("#searchbox-match").val()});});$('#usermenu').css('cursor','pointer').click(function(){if($('.usermenu').css('display')=='none')
$('.usermenu').show();else
$('.usermenu').hide();});$('.round').change(function(){var redirect={}
$('.round').each(function(){if($(this).val()!=0)
redirect[$(this).attr('id')]=$(this).val();});if($.jqurl.get('seasonid')!=undefined)
redirect['seasonid']=$.jqurl.get('seasonid');$.jqurl.redirect($.jqurl.strip(),redirect);});$("#searchbox-page-submit").click(function(){$('#page-whisperer li.active').trigger('click');});$("#searchbox-page").show().click(function(){if($(this).val()=="Přejít na.."){$(this).val("");}
$(this).focus();}).bind('go_grey',function(){$('#searchbox-page-image').attr('src','/images/front/go_grey.png').attr('height',20).css('padding',0);}).bind('go',function(){$('#searchbox-page-image').attr('src','/images/front/go.png').attr('height',20).css('padding',0);}).bind('loader',function(){if($('#searchbox-page-image').attr('src')!='/images/front/fb_action.gif')
$('#searchbox-page-image').attr('src','/images/front/fb_action.gif').attr('height',11).css('padding','5px 2px');}).mouseover(function(){$(this).trigger('click');}).keyup(function(e){if(e.keyCode==40){$('#page-whisperer li.active').next().trigger('mouseover');return;}else if(e.keyCode==38){$('#page-whisperer li.active').prev().trigger('mouseover');return;}else if(e.keyCode==13){$('#page-whisperer li.active').trigger('click');return;}
if($(this).val()==""){$("#page-whisperer").hide();$(this).trigger('go_grey');clearTimeout(waiting);return;}else{$(this).trigger('loader');clearTimeout(waiting);waiting=setTimeout("pageSearch('"+$(this).val()+"');",250);}}).mouseenter(function(){$(this).trigger('keyup');});$("#page-whisperer").mouseleave(function(){$(this).hide();});$('#page-navigation .manage a').click(function(){if($('#page-manage').css('display')=='none'){$('#page-manage').show();$(this).parent().addClass('pactive');}
else{$('#page-manage').hide();$(this).parent().removeClass('pactive');}
return false;});$("#frmedit-about").each(function(){$(this).keyup(function(){if($(this).val()!=""){if($(this).val().length>=160){$(this).val($(this).val().substring(0,160));}
$("#frmedit-limiter").val($(this).val().length+"/"+160);}});}).trigger('keyup');$('.avatar-delete').click(function(){var c=confirm('Opravdu chcete avatar smazat?');return c;});$('.comment_delete').mouseover(function(){$(this).find('img').removeClass('hidden');}).mouseout(function(){$(this).find('img').addClass('hidden');}).click(function(){var c=confirm('Opravdu chcete komentář smazat?');if(c){var that=$(this);$.get($(this).attr('href'),{},function(data){if(data['deleted']){that.parent().find('span.text').addClass('deleted').text('Tento komentář byl smazán, protože porušoval pravidla diskuze');}});}
return false;});$('.jq-timeago').each(function(){var value=$(this).attr('rel');value=value.split('|');var timestamp=Math.round(new Date().getTime()/1000);var lastInSeconds=timestamp-value;var before=null;var date=new Date;var mydate=new Date;mydate.setTime(value[0]*1000);if(lastInSeconds<60*60*24*2){if(date.getDate()==mydate.getDate()){before="Dnes";}else if(date.getDate()==mydate.getDate()+1){before="Včera";}else{before="Před 2 dny";}}else if(lastInSeconds<60*60*24*5){before="Před "+(date.getDate()+(mydate.getDate()>date.getDate()?mydate.getDate():0)-mydate.getDate())+" dny";}else if(mydate.getYear()==date.getYear()){before=mydate.getDate()+". "+(mydate.getMonth()+1)+".";}else{before=mydate.getDate()+". "+(mydate.getMonth()+1)+". "+mydate.getYear();}
if(value.length>1){$(this).text(before+", "+value[1]);}else{$(this).text(before);}});});function pageSearch(value){clearTimeout(waiting);$.get($.jqurl.strip(),{'do':'search',s:value},function(data){$('#page-whisperer').empty().show();if(!(data['search']instanceof Object)){var li=$('<li />').html(data['search']);$('#searchbox-page').trigger('go_grey');$('#page-whisperer').append(li);return;}
var i=0;for(var index in data['search']){var info="";if(data['search'][index]['info']!=""&&data['search'][index]['info']!=null&&data['search'][index]['info']!=undefined)
info="<div class='info'>"+data['search'][index]['info']+"</div>";var image="";if(data['search'][index]['image']!=""&&data['search'][index]['image']!=null&&data['search'][index]['image']!=undefined)
image="<div class='img'><img src='"+data['search'][index]['image']+"' height='25'></div>";var li=$('<li />').attr('rel',index).html(image+data['search'][index]['title']+info).mouseover(function(){$(this).parent().find('li').removeClass('active');$(this).addClass('active');}).click(function(){$.jqurl.redirect($(this).attr('rel'));});if(i==0)
li.addClass('active');$('#page-whisperer').append(li);i++;}
$('#searchbox-page').trigger('go');});}
function member_delay(name,value){clearTimeout(_member_delay[name]);$.get($.jqurl.strip(),{'do':'unique',name:name,value:value},function(data){$("#member-"+name).attr('src','/images/icons/'+(data.unique==true?'yes':'no')+'.png');return false;});}
function lineupOn(){$("#lineup").css("margin",0);$("#home,#away").css("width",650);$("#away .player").css({right:100,left:null,top:null});var width=parseInt($("#home").css('width'));var heightOfLine=60;$("#lineup .player").each(function(){var setting=$(this).attr('rel');setting=explode(":",setting);var left=(width/setting[2])*setting[1]-width/setting[2];var right=(width/setting[2])*(parseInt(setting[1])+1)-width/setting[2];var top=setting[0]*heightOfLine;if($(this).parent().attr('id')=='home'){$(this).animate({top:top,left:left+(right-left)/2-70},1000);}else{$(this).animate({bottom:top,right:left-((right-left)/2-70)},1000);}});$("#away").attr('id','home');}
(function(jQuery){jQuery.fn.extend({elastic:function(){var mimics=['paddingTop','paddingRight','paddingBottom','paddingLeft','fontSize','lineHeight','fontFamily','width','fontWeight'];return this.each(function(){if(this.type!='textarea'){return false;}
var $textarea=jQuery(this),$twin=jQuery('<div />').css({'position':'absolute','display':'none'}),lineHeight=parseInt($textarea.css('line-height'),10)||parseInt($textarea.css('font-size'),'10'),minheight=parseInt($textarea.css('height'),10)||lineHeight*3,maxheight=parseInt($textarea.css('max-height'),10)||Number.MAX_VALUE,goalheight=0,i=0;$twin.appendTo($textarea.parent());var i=mimics.length;while(i--){$twin.css(mimics[i].toString(),$textarea.css(mimics[i].toString()));}
function setHeightAndOverflow(height,overflow){curratedHeight=Math.floor(parseInt(height,10));if($textarea.height()!=curratedHeight){$textarea.css({'height':curratedHeight+'px','overflow':overflow});}}
function update(){var textareaContent=$textarea.val().replace(/<|>/g,' ').replace(/\n/g,'<br />').replace(/&/g,"&");var twinContent=$twin.html();if(textareaContent+' '!=twinContent){$twin.html(textareaContent+' ');if(Math.abs($twin.height()+lineHeight-$textarea.height())>3){var goalheight=$twin.height()+lineHeight;if(goalheight>=maxheight){setHeightAndOverflow(maxheight,'auto');}else if(goalheight<=minheight){setHeightAndOverflow(minheight,'hidden');}else{setHeightAndOverflow(goalheight,'hidden');}}}}
$textarea.css({'overflow':'hidden'});$textarea.keyup(function(){update();});$textarea.live('input paste',function(e){setTimeout(update,250);});update();});}});})(jQuery);eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(8($){j e={},9,m,B,A=$.2u.2g&&/29\\s(5\\.5|6\\.)/.1M(1H.2t),M=12;$.k={w:12,1h:{Z:25,r:12,1d:19,X:"",G:15,E:15,16:"k"},2s:8(){$.k.w=!$.k.w}};$.N.1v({k:8(a){a=$.1v({},$.k.1h,a);1q(a);g 2.F(8(){$.1j(2,"k",a);2.11=e.3.n("1g");2.13=2.m;$(2).24("m");2.22=""}).21(1e).1U(q).1S(q)},H:A?8(){g 2.F(8(){j b=$(2).n(\'Y\');4(b.1J(/^o\\(["\']?(.*\\.1I)["\']?\\)$/i)){b=1F.$1;$(2).n({\'Y\':\'1D\',\'1B\':"2r:2q.2m.2l(2j=19, 2i=2h, 1p=\'"+b+"\')"}).F(8(){j a=$(2).n(\'1o\');4(a!=\'2f\'&&a!=\'1u\')$(2).n(\'1o\',\'1u\')})}})}:8(){g 2},1l:A?8(){g 2.F(8(){$(2).n({\'1B\':\'\',Y:\'\'})})}:8(){g 2},1x:8(){g 2.F(8(){$(2)[$(2).D()?"l":"q"]()})},o:8(){g 2.1k(\'28\')||2.1k(\'1p\')}});8 1q(a){4(e.3)g;e.3=$(\'<t 16="\'+a.16+\'"><10></10><t 1i="f"></t><t 1i="o"></t></t>\').27(K.f).q();4($.N.L)e.3.L();e.m=$(\'10\',e.3);e.f=$(\'t.f\',e.3);e.o=$(\'t.o\',e.3)}8 7(a){g $.1j(a,"k")}8 1f(a){4(7(2).Z)B=26(l,7(2).Z);p l();M=!!7(2).M;$(K.f).23(\'W\',u);u(a)}8 1e(){4($.k.w||2==9||(!2.13&&!7(2).U))g;9=2;m=2.13;4(7(2).U){e.m.q();j a=7(2).U.1Z(2);4(a.1Y||a.1V){e.f.1c().T(a)}p{e.f.D(a)}e.f.l()}p 4(7(2).18){j b=m.1T(7(2).18);e.m.D(b.1R()).l();e.f.1c();1Q(j i=0,R;(R=b[i]);i++){4(i>0)e.f.T("<1P/>");e.f.T(R)}e.f.1x()}p{e.m.D(m).l();e.f.q()}4(7(2).1d&&$(2).o())e.o.D($(2).o().1O(\'1N://\',\'\')).l();p e.o.q();e.3.P(7(2).X);4(7(2).H)e.3.H();1f.1L(2,1K)}8 l(){B=S;4((!A||!$.N.L)&&7(9).r){4(e.3.I(":17"))e.3.Q().l().O(7(9).r,9.11);p e.3.I(\':1a\')?e.3.O(7(9).r,9.11):e.3.1G(7(9).r)}p{e.3.l()}u()}8 u(c){4($.k.w)g;4(c&&c.1W.1X=="1E"){g}4(!M&&e.3.I(":1a")){$(K.f).1b(\'W\',u)}4(9==S){$(K.f).1b(\'W\',u);g}e.3.V("z-14").V("z-1A");j b=e.3[0].1z;j a=e.3[0].1y;4(c){b=c.2o+7(9).E;a=c.2n+7(9).G;j d=\'1w\';4(7(9).2k){d=$(C).1r()-b;b=\'1w\'}e.3.n({E:b,14:d,G:a})}j v=z(),h=e.3[0];4(v.x+v.1s<h.1z+h.1n){b-=h.1n+20+7(9).E;e.3.n({E:b+\'1C\'}).P("z-14")}4(v.y+v.1t<h.1y+h.1m){a-=h.1m+20+7(9).G;e.3.n({G:a+\'1C\'}).P("z-1A")}}8 z(){g{x:$(C).2e(),y:$(C).2d(),1s:$(C).1r(),1t:$(C).2p()}}8 q(a){4($.k.w)g;4(B)2c(B);9=S;j b=7(2);8 J(){e.3.V(b.X).q().n("1g","")}4((!A||!$.N.L)&&b.r){4(e.3.I(\':17\'))e.3.Q().O(b.r,0,J);p e.3.Q().2b(b.r,J)}p J();4(7(2).H)e.3.1l()}})(2a);',62,155,'||this|parent|if|||settings|function|current||||||body|return|||var|tooltip|show|title|css|url|else|hide|fade||div|update||blocked|||viewport|IE|tID|window|html|left|each|top|fixPNG|is|complete|document|bgiframe|track|fn|fadeTo|addClass|stop|part|null|append|bodyHandler|removeClass|mousemove|extraClass|backgroundImage|delay|h3|tOpacity|false|tooltipText|right||id|animated|showBody|true|visible|unbind|empty|showURL|save|handle|opacity|defaults|class|data|attr|unfixPNG|offsetHeight|offsetWidth|position|src|createHelper|width|cx|cy|relative|extend|auto|hideWhenEmpty|offsetTop|offsetLeft|bottom|filter|px|none|OPTION|RegExp|fadeIn|navigator|png|match|arguments|apply|test|http|replace|br|for|shift|click|split|mouseout|jquery|target|tagName|nodeType|call||mouseover|alt|bind|removeAttr|200|setTimeout|appendTo|href|MSIE|jQuery|fadeOut|clearTimeout|scrollTop|scrollLeft|absolute|msie|crop|sizingMethod|enabled|positionLeft|AlphaImageLoader|Microsoft|pageY|pageX|height|DXImageTransform|progid|block|userAgent|browser'.split('|'),0,{}))
jQuery.fn.carousel=function(previous,next,options){var sliderList=jQuery(this).children()[0];if(sliderList){var increment=jQuery(sliderList).children().outerWidth("true"),elmnts=jQuery(sliderList).children(),numElmts=elmnts.length,sizeFirstElmnt=increment,shownInViewport=Math.round(jQuery(this).width()/sizeFirstElmnt),firstElementOnViewPort=1,isAnimating=false;for(i=0;i<shownInViewport;i++){jQuery(sliderList).css('width',(numElmts+shownInViewport)*increment+increment+"px");jQuery(sliderList).append(jQuery(elmnts[i]).clone());}
jQuery(previous).mouseover(function(){$(this).css('cursor','pointer');}).click(function(event){if(!isAnimating&&firstElementOnViewPort>1){if(firstElementOnViewPort==1){jQuery(sliderList).css('left',"-"+numElmts*sizeFirstElmnt+"px");firstElementOnViewPort=numElmts;}
else{firstElementOnViewPort--;}
jQuery(sliderList).animate({left:"+="+increment,y:0,queue:true},150,"linear",function(){isAnimating=false;jQuery(next).removeClass('hidden');if(firstElementOnViewPort==1)
jQuery(previous).addClass('hidden');});isAnimating=true;}});jQuery(next).mouseover(function(){$(this).css('cursor','pointer');}).click(function(event){if(!isAnimating&&firstElementOnViewPort+2<numElmts){if(firstElementOnViewPort>numElmts){firstElementOnViewPort=2;jQuery(sliderList).css('left',"0px");}
else{firstElementOnViewPort++;}
jQuery(sliderList).animate({left:"-="+increment,y:0,queue:true},150,"linear",function(){isAnimating=false;jQuery(previous).removeClass('hidden');if(firstElementOnViewPort+2==numElmts)
jQuery(next).addClass('hidden');});isAnimating=true;}});}};