/* Compressed (MD5 975dfc977c17cb26fdc6909f47afd243), Last Modified on Tue, 16 Oct 2012 12:08:05 GMT */ 
(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i<arguments.length;++i){var a=arguments[i];switch(a.constructor){case Object:$.extend(s,a);break;case Boolean:s.change=a;break;case Number:s.start=a;break;case Function:s.click=a;break;case String:if(a.charAt(0)=='.')s.selected=a;else if(a.charAt(0)=='!')s.event=a;else s.start=a;break;}}
if(typeof s['return']=="function")
s.change=s['return'];return this.each(function(){$.idTabs(this,s);});}
$.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected))
return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;}
var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);list.each(function(){$("#"+this.href.split('#')[1]).hide();});var test=false;if((test=list.filter('.'+s.selected)).length);else if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);if(test){test.removeClass(s.selected);test.trigger(s.event);}
return s;}
$.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.2";$(function(){$(".idTabs").idTabs();});})(jQuery);}
var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;}
var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);}
var s=document.getElementsByTagName('script');var src=s[s.length-1].src;var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();add(src);})();(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.9",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);;(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);;(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(true===c.data(b.target,a.widgetName+".preventClickEvent")){c.removeData(b.target,a.widgetName+".preventClickEvent");b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&c.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);;(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-
1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-
this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.9"})})(jQuery);;jQuery.effects||function(f,j){function n(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return o.transparent;return o[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return n(b)}function p(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function q(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function m(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=n(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},r=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.queue("fx",function(){var e=f(this),g=e.attr("style")||" ",h=q(p.call(this)),l,v=e.attr("className");f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});l=q(p.call(this));e.attr("className",v);e.animate(u(h,l),a,b,function(){f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)});h=f.queue(this);l=h.splice(h.length-1,1)[0];h.splice(1,0,l);f.dequeue(this)})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.9",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case"top":b=0;break;case"middle":b=0.5;break;case"bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case"left":c=0;break;case"center":c=0.5;break;case"right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(m(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(m(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(m(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);;var KFWPluginsVersion='2.0.20110707';(function($){if(!document.defaultView||!document.defaultView.getComputedStyle){var oldCurCSS=jQuery.curCSS;jQuery.curCSS=function(elem,name,force){if(name==='background-position'){name='backgroundPosition';}
if(name!=='backgroundPosition'||!elem.currentStyle||elem.currentStyle[name]){return oldCurCSS.apply(this,arguments);}
var style=elem.style;if(!force&&style&&style[name]){return style[name];}
return oldCurCSS(elem,'backgroundPositionX',force)+' '+oldCurCSS(elem,'backgroundPositionY',force);};}
var oldAnim=$.fn.animate;$.fn.animate=function(prop){if('background-position'in prop){prop.backgroundPosition=prop['background-position'];delete prop['background-position'];}
if('backgroundPosition'in prop){prop.backgroundPosition='('+prop.backgroundPosition;}
return oldAnim.apply(this,arguments);};function toArray(strg){strg=strg.replace(/left|top/g,'0px');strg=strg.replace(/right|bottom/g,'100%');strg=strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var res=strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]];}
$.fx.step.backgroundPosition=function(fx){if(!fx.bgPosReady){var start=$.curCSS(fx.elem,'backgroundPosition');if(!start){start='0px 0px';}
start=toArray(start);fx.start=[start[0],start[2]];var end=toArray(fx.options.curAnim.backgroundPosition);fx.end=[end[0],end[2]];fx.unit=[end[1],end[3]];fx.bgPosReady=true;}
var nowPosX=[];nowPosX[0]=((fx.end[0]-fx.start[0])*fx.pos)+fx.start[0]+fx.unit[0];nowPosX[1]=((fx.end[1]-fx.start[1])*fx.pos)+fx.start[1]+fx.unit[1];fx.elem.style.backgroundPosition=nowPosX[0]+' '+nowPosX[1];};})(jQuery);(function($){$.fn.imgJustify=function(p){o=$.extend({minMargin:5,width:this.width(),autoFloat:false},p);g={allImg:this.find('img').length-1,curImg:0,firstImg:0,lastImg:null,tempAllWidth:-o.minMargin,tempImgWidth:0}
var c=this;this.css({'overflow-x':'hidden'});var inner=document.createElement('div');$(inner).css({'width':o.width+20})
this.contents().wrapAll(inner);loadImages();function loadImages(){var lastwidth,tempmargin;for(x=g.firstImg;(o.width>g.tempAllWidth&&x<g.allImg+1);x++){last=c.find('img:eq('+x+')');if(o.autoFloat==true){last.css({'float':'left'});}
lastwidth=last.width();g.tempImgWidth+=lastwidth;g.tempAllWidth+=lastwidth+o.minMargin;g.lastImg=x;}
g.tempImgWidth-=lastwidth;if(g.lastImg<g.allImg){g.lastImg-=1;}
tempmargin=g.lastImg<g.allImg?Math.ceil((o.width-g.tempImgWidth)/(g.lastImg-g.firstImg)):o.minMargin;for(x=g.firstImg;x<g.lastImg;x++){c.find('img:eq('+x+')').css({'margin-right':tempmargin});}
if(g.lastImg<g.allImg-1){g.tempAllWidth=-o.minMargin;g.tempImgWidth=0;g.firstImg=g.lastImg+1;loadImages();}}}})(jQuery);(function($){$.fn.imgPreload=function(p){o=$.extend({fadeTime:350,fadeIn:false,imgFadeTime:200,imgFadeDelayTime:1500,each:function(){},callback:function(){$('#imgpreloadoverlay').fadeOut(o.fadeTime);}},p);if(!$('#imgpreloadoverlay').length){var ipo=document.createElement('div');$(ipo).attr('id','imgpreloadoverlay');$('body').append(ipo);}
if(o.fadeIn==true){$('#imgpreloadoverlay').css({'display':'none'});}
var loadedImages=0;if(!o.images){var images=[];$(this).find('*').each(function(){if($(this).css('background-image').split('url(')[1]){_t=$(this).css('background-image').split('url(')[1].split(')')[0];if(_t.indexOf('"')!=-1){_t=_t.split('"')[1]}
images.push(_t);}
if($(this).filter('img').attr('src')){src=$(this).attr('src');if(src.indexOf('http')==-1){src='http://'+document.location.href.split('http://')[1].split('index.html')[0]+src;}
if(o.fadeIn==true){$(this).css({'opacity':0}).load(function(){$(this).delay(Math.round(Math.random()*o.imgFadeDelayTime)).animate({'opacity':1},o.imgFadeTime);}).attr('src',src);}
images.push(src);}});}else{var images=o.images;}
var ob=this;if(images.length>0){for(x=0;x<images.length;x++){$('<img>').load(function(){o.each();loadedImages+=1;if(loadedImages==images.length){o.callback();}}).attr('src',images[x]);}}else{o.callback();}};})(jQuery);(function($){$.fn.slider=function(p){var o=$.extend({animTime:300,waitTime:5000,animType:'easeInOutQuad',tilesNum:6,curTile:1},p);return this.each(function(){if(!o.width){o.width=$(this).width();}
$(this).find('img').css({'margin-left':'-'+((o.curTile-1)*o.width)+'px'});var si=setInterval(function(obj,id){if(!$('#'+id).length){clearTimeout(si);}else{if(o.curTile<o.tilesNum){o.curTile++;}else{o.curTile=1;}
obj.animate({'margin-left':'-'+((o.curTile-1)*o.width)+'px'},o.animTime,o.animType);}},o.animTime+o.waitTime,$(this).find('img'),$(this).attr('id'));});};})(jQuery);var tiles={o:{useDOM:false,images:[],imgNum:2,imgDir:'/gallery/tiles/',imgName:'tile_',imgExt:'jpg',curImage:0,firstImage:'random',sortBy:'normal',tiles:10,tilesArr:[],a_type:['easeOutQuad','easeOutElastic'],a_time:[200,800],a_timeOut:200,a_tileDelay:50,a_periodicTime:7000},g:{ended:0,curImg:null,running:false,posXArr:[],posYArr:[],timer:null,isAnim:false},init:function(p){tiles.g.running=true;tiles.o=$.extend(tiles.o,p);if(tiles.o.firstImage=='random'){tiles.o.firstImage=Math.ceil(Math.random()*tiles.o.imgNum);}
if(tiles.o.useDOM==true){tiles.o.imgNum=$('#tiles_content .tile_c').length;$('#tiles_content .tile_c a').each(function(){tiles.o.images.push(tiles.o.imgDir+$(this).attr('rel').split(':')[1]+'.'+tiles.o.imgExt);});}else{if(tiles.o.images.length==0){for(x=1;x<tiles.o.imgNum+1;x++){tiles.o.images.push(tiles.o.imgDir+tiles.o.imgName+x+'.'+tiles.o.imgExt);}}else{tiles.o.imgNum=tiles.o.images.length;}}
var _oc=$('#tiles_container').offset();for(x=0;x<tiles.o.tiles;x++){tiles.o.tilesArr[x]=x;$('#tiles_container').append('<div class="tile_container"><div id="tile_'+x+'"></div></div>');var _ot=$('#tile_'+x).offset();$('#tile_'+x).css('background-position',(_oc.left-_ot.left)+'px '+(_oc.top-_ot.top)+'px');};$('#tiles_container').append('<div id="tiles_nav"></div>')
for(x=0;x<tiles.o.imgNum;x++){$('#tiles_nav').append('<a class="tile_nav" href="#"></a>')}
$('#tiles_nav a').click(function(event){event.preventDefault();if(!$(this).hasClass('active')){clearTimeout(tiles.g.timer);tiles.change($('#tiles_nav a').index(this)+1);}});_w=$('#tiles_container .tile_container:eq(0) div:eq(0)').width();_h=$('#tiles_container .tile_container:eq(0) div:eq(0)').height();tiles.g.posXArr=[_w,-_w];tiles.g.posYArr=[0];tiles.change(tiles.o.firstImage);},change:function(imageNum,stop){if(tiles.g.isAnim==false){tiles.g.isAnim=true;var imageNum=imageNum;var stop=stop;if(!stop){if(imageNum==tiles.o.curImage){if(tiles.o.curImage<tiles.o.imgNum){imageNum+=1;}else{imageNum=1;}}else if(imageNum>tiles.o.imgNum){imageNum=1;}
tiles.o.curImage=imageNum;}
tiles.g.curImg=$('<img src="'+tiles.o.images[imageNum-1]+'" alt="">');tiles.g.curImg.load(function(){if(tiles.o.sortBy=='random'){tiles.o.tilesArr.sort(tiles.rnd);}
var _animRnd=Math.floor(Math.random()*tiles.o.a_type.length);var _animType=tiles.o.a_type[_animRnd];var _animTime=tiles.o.a_time[_animRnd];var _posX=tiles.g.posXArr[Math.floor(Math.random()*tiles.g.posXArr.length)];var _posY=tiles.g.posYArr[Math.floor(Math.random()*tiles.g.posYArr.length)];var _delay=tiles.o.a_timeOut+(tiles.o.tiles-1)*tiles.o.a_tileDelay+_animTime;if(!stop){tiles.g.timer=setTimeout('tiles.change( tiles.o.curImage )',_delay+tiles.o.a_periodicTime);}else{tiles.stop();$('#screen_'+(imageNum-100)).delay(_delay/2).fadeIn(350);}
$('#tiles_outer .tile_c').stop().fadeOut(500,function(){$(this).remove();});for(x=0;x<tiles.o.tiles;x++){$('#tile_'+tiles.o.tilesArr[x]).delay(x*tiles.o.a_tileDelay).animate({'margin-left':_posX,'margin-top':_posY},tiles.o.a_timeOut,'easeInQuad',function(){$(this).css({'margin-left':-_posX,'margin-top':-_posY,'background-image':'url('+tiles.o.images[imageNum-1]+')'}).animate({'margin-left':0,'margin-top':0},_animTime,_animType,function(){tiles.g.ended+=1;if(tiles.g.ended==tiles.o.tiles){tiles.g.ended=0;$('#tiles_nav a').removeClass('active');$('#tiles_nav a:eq('+(imageNum-1)+')').addClass('active');if(tiles.o.useDOM==false){tiles.g.isAnim=false;}}});});}
if(tiles.o.useDOM==true){$('#tiles_content').children('div:eq('+(imageNum-1)+')').clone().css({'display':'none','margin-top':'-50px'}).appendTo('#tiles_outer').stop().delay(_delay).animate({'margin-top':0},500).fadeIn(500,function(){tiles.g.isAnim=false;});}});if(jQuery.browser.opera||(jQuery.browser.msie&&parseInt(jQuery.browser.version)==6)){tiles.g.curImg.load();}}},start:function(){clearTimeout(tiles.g.timer);$('.screen').each(function(){if($(this).css('display')=='block'){$(this).fadeOut(350,function(){tiles.change(tiles.o.curImage);});}});},stop:function(){clearTimeout(tiles.g.timer);tiles.g.isAnim=false;},rnd:function(){return(Math.round(Math.random())-0.5);}};(function($){$.fn.pageCut=function(p){var o=$.extend({animTimeOut:500,animTimeIn:400,animTypeOut:'easeInOutQuad',animTypeIn:'easeOutQuad',callback_show:function(){},callback_hide:function(){},width:800,clickToHide:'.pc_close',source:'/pageCut/',clickToHide:'.pc_close'},p);var g={loaded:false,htmlOriginal:null,social:{}}
return this.click(function(e){e.preventDefault();h=$('body').height()<$(window).height()?$(window).height():$('body').height();g.social.obj=[];g.social.html=[];g.htmlOriginal=$('#dim').html();$('#dim').css({'visibility':'hidden'});$('<div><div id="pc_inner"></div></div>').attr({'id':'pc_container'}).css({'width':'100%','height':h,'position':'absolute','top':0,'left':0,'z-index':1000,'overflow':'hidden'}).appendTo('body');$('#pc_inner').css({'width':'200%','height':'100%'});$('<div><div class="pc_orig"></div></div>').attr({'id':'pc_left','class':'pc_side'}).css({'left':0}).appendTo('#pc_inner');$('<div></div>').attr({'id':'pc_content'}).css({'width':0,'height':'100%','background':'#000','float':'left','overflow':'hidden'}).appendTo('#pc_inner');$('<div><div class="pc_orig"></div></div>').attr({'id':'pc_right','class':'pc_side'}).css({'right':0}).appendTo('#pc_inner');$('.pc_side').css({'width':'25%','height':'100%','float':'left','overflow':'hidden'});$('.pc_orig').css({'width':'200%','position':'absolute','top':0}).html(g.htmlOriginal);$('<div></div>').attr({'class':'pc_close'}).css({'width':'100%','height':'100%','position':'absolute','left':'0px','top':'0px','cursor':'pointer','z-index':1000}).appendTo('.pc_side');$('#pc_left .pc_orig').css({'left':0});$('#pc_right .pc_orig').css({'right':0});$('#pc_left').animate({'margin-left':-o.width/2},o.animTimeOut,o.animTypeOut,function(){if($.browser.msie&&parseInt($.browser.version)<9){$('.pc_side .pc_close').css({'background':'white','opacity':.01})}});$('#pc_content').animate({'width':o.width},o.animTimeOut,o.animTypeOut);if(g.loaded==false){$(window).bind('resize',function(){h=$('#pc_left .pc_orig').height()<$(window).height()?$(window).height():$('#pc_left .pc_orig').height();$('#pc_container').height(h);});}
$(o.clickToHide).click(function(){if($.browser.msie){$('.pc_side .pc_close').css({'background':'','opacity':''})}
$('#pc_left').animate({'margin-left':0},o.animTimeIn,o.animTypeIn);$('#pc_content').animate({'width':0},o.animTimeIn,o.animTypeIn,function(){$('#pc_container').remove();$('#dim').css({'visibility':'visible'});for(x=0;x<g.social.obj.length;x++){g.social.obj[x].html(g.social.html[x]);}});});});};})(jQuery);(function($){$.fn.pageSlide=function(p){var o=$.extend({animTime:500,animType:'easeInOutQuad',callback_show:function(){},callback_hide:function(){},width:300,source:'default.php',clickToHide:'#ps_overlay, .ps_close',bgOverlay:'#000',bgSidebar:'#000'},p);if(!$('#ps_sidebar').length){$('<div></div>').attr({'id':'ps_sidebar'}).css({'top':0,'right':0,'width':0,'height':'100%','display':'none','position':'fixed','background':o.bgSidebar,'z-index':1000}).appendTo('body');$('<div></div>').attr({'id':'ps_inner'}).css({'width':o.width,'height':'100%','display':'none'}).appendTo('#ps_sidebar');if($('body').css('position')=='static'){$('body').css('position','relative');}}
return this.each(function(){var s=$(this).attr('href')?$(this).attr('href'):o.source;$(this).click(function(event){var ml=parseInt($('body').css('margin-left'));event.preventDefault();$('<div></div>').attr({'id':'ps_overlay'}).css({'top':'0px','left':'0px','width':'100%','height':'100%','position':'fixed','z-index':900,'opacity':0,'background':o.bgOverlay}).appendTo('body');$.get(s,function(data){$('#ps_inner').html(data).delay(o.animTime/3*1).fadeIn(o.animTime/3*2,o.animType);});$('body').css({'width':$('body').width()}).animate({'margin-left':(ml-o.width)+'px'},o.animTime,o.animType,o.callback_show);$('#ps_sidebar').css({'display':'block'}).animate({'width':o.width},o.animTime,o.animType,function(){$('#ps_overlay').animate({'opacity':.3},o.animTime/2,o.animType);$(o.clickToHide).click(function(){$('#ps_overlay').css({'background':'transparent','opacity':1})
$('#ps_inner').fadeOut(o.animTime/3*2,o.animType);$(this).unbind('click');$('body').animate({'margin-left':ml+'px'},o.animTime,o.animType,o.callback_hide);$('#ps_sidebar').animate({'width':0},o.animTime,o.animType,function(){$(this).css({'display':'none'});$('#ps_overlay').remove();$('body').css({'width':'auto'});});});});});});};})(jQuery);var _sb={o:{where:null,what:null,type:'vertical',sbid:null,animTime:200,scrollTime:400,scrollType:'easeOutBack',minSize:75,scrpx:60,opacity:.5},init:function(o){if($(o.where).length){if(!$(o.sbid).length){$(o.where).append('<div class="sb '+o.type+'" id="'+o.sbid.split('#')[1]+'"><div class="sb_ '+o.type+'"></div></div>');}
$(o.sbid).data('o',$.extend({},_sb.o,o));_sb.create(o.sbid);}},create:function(sbid){o=$(sbid).data('o');o.mt=o.mt?o.mt:parseInt($(sbid).css('margin-top'));o.mr=o.mr?o.mr:parseInt($(sbid).css('margin-right'));o.mb=o.mb?o.mb:parseInt($(sbid).css('margin-bottom'));o.ml=o.ml?o.ml:parseInt($(sbid).css('margin-left'));_w=$(o.where).css('position');if(_w!='absolute'&&_w!='relative'){_w=$(o.where).css('position','relative');}
if(o.type=='vertical'){$(o.what).parent().add(sbid).mousewheel(function(e,d){e.preventDefault();_sb.mouseScroll(d,sbid);});}
$(o.what).parent().css('overflow','hidden');if(o.type=='vertical'){$(sbid).css({'right':o.mr,'top':o.mt}).css({'margin':0});}else{$(sbid).css({'left':o.ml,'bottom':o.mb}).css({'margin':0});}
_sb.setDim(sbid);$(window).bind('resize',function(){_sb.setDim(sbid);});$(sbid+' .sb_').mousedown(function(e){e.preventDefault();_sb.startDrag(sbid,e.pageX,e.pageY);$(sbid).unbind('mouseout');return false;});},scrollTo:function(sbid,obj){if(sbid&&obj){o=$(sbid).data('o');o.wmt=-($(o.what).find('a[name="'+obj.attr('href').split('#')[1]+'"]').position().top);if(o.wmt<o.sh-o.wh){o.wmt=o.sh-o.wh+o.mt+o.mb;}
_sb.setMarginTop(sbid);$(o.what).stop().animate({'margin-top':o.wmt},o.scrollTime,o.scrollType);$(sbid+' .vertical').stop().animate({'margin-top':o.ssmt},o.scrollTime,o.scrollType);}},setMarginTop:function(sbid,h){o=$(sbid).data('o');if(!h){h=o.ssh;}
return o.ssmt=-o.wmt/(o.wh-o.wph)*(o.sh-h);},setMarginLeft:function(sbid,w){o=$(sbid).data('o');if(!w){w=o.ssw;}
return o.ssml=-o.wml/(o.ww-o.wpw)*(o.sw-w);},setDim:function(sbid){o=$(sbid).data('o');if(o){if(o.type=='vertical'){o.sh=$(o.where).outerHeight()-o.mt-o.mb;o.wph=$(o.what).parent().outerHeight();o.wh=$(o.what).outerHeight();o.wmt=parseInt($(o.what).css('margin-top'));$(sbid).height(o.sh);a=o.wph/o.wh;k=o.wph-o.wh;k2=o.wh-o.wph;if(o.wmt<k&&k<0){$(o.what).css('margin-top',k);o.wmt=k;}
if(a<1){h=a*o.sh;if(h<o.minSize){h=o.minSize;}
o.ssh=h;$(sbid+' .sb_').stop().animate({'margin-top':_sb.setMarginTop(sbid,h),'height':h},o.animTime);$(sbid).fadeIn(o.animTime);}else{o.ssmt=0
$(sbid+' .sb_').css('margin-top',o.ssmt);o.wmt=0
$(o.what).css('margin-top',o.wmt);o.ssh=o.sh;$(sbid+' .sb_').height(o.ssh);$(sbid).fadeOut(o.animTime);}}else{o.sw=$(o.where).outerWidth()-o.ml-o.mr;o.wpw=$(o.what).parent().outerWidth();o.ww=$(o.what).outerWidth();o.wml=parseInt($(o.what).css('margin-left'));$(sbid).width(o.sw);a=o.wpw/o.ww;k=o.wpw-o.ww;k2=o.ww-o.wpw;if(o.wml<k&&k<0){$(o.what).css('margin-left',k);o.wml=k;}
if(a<1){w=a*o.sw;if(w<o.minSize){w=o.minSize;}
o.ssw=w;$(sbid+' .sb_').stop().animate({'margin-left':_sb.setMarginLeft(sbid,w),'height':w},o.animTime);$(sbid).fadeIn(o.animTime);}else{o.ssml=0
$(sbid+' .sb_').css('margin-left',o.ssml);o.wml=0
$(o.what).css('margin-left',o.wml);o.ssw=o.sw;$(sbid+' .sb_').width(o.ssw);$(sbid).fadeOut(o.animTime);}}}},startDrag:function(sbid,mX,mY){o=$(sbid).data('o');o.myk=mY;o.tk=o.ssmt;o.mxk=mX;o.lk=o.ssml;_sb.onDrag(sbid);},onDrag:function(sbid){o=$(sbid).data('o');$(document).mousemove(function(e){if(o.type=='vertical'){var cst=e.pageY-o.myk+o.tk;if(cst<0){cst=0;}else if(cst>o.sh-o.ssh){cst=o.sh-o.ssh;}
o.ssmt=cst;$(sbid+' .sb_').css('margin-top',o.ssmt);ct=(-cst/(o.sh-o.ssh)*(o.wh-o.wph));if(-ct>o.wh-o.wph){ct=o.wph-o.wh;}
o.wmt=ct;$(o.what).css('margin-top',o.wmt);}else{var csl=e.pageX-o.mxk+o.lk;if(csl<0){csl=0;}else if(csl>o.sw-o.ssw){csl=o.sw-o.ssw;}
o.ssml=csl;$(sbid+' .sb_').css('margin-left',o.ssml);cl=(-csl/(o.sw-o.ssw)*(o.ww-o.wpw));if(-cl>o.ww-o.wpw){cl=o.wpw-o.ww;}
o.wml=cl;$(o.what).css('margin-left',o.wml);}});$(document).mouseup(function(){$(this).unbind('mousemove');$(this).unbind('mouseup');});},mouseScroll:function(d,sbid){o=$(sbid).data('o');k=o.wph-o.wh;t=o.wmt+(d*o.scrpx);if(t>0){t=0;}else if(t<k){t=k;}
if(o.wph-o.wh<-1){o.wmt=t;$(o.what).css('margin-top',o.wmt);$(sbid+' .sb_').css('margin-top',_sb.setMarginTop(sbid));}}};(function($){$.fn.scrollTo=function(p){var o=$.extend({addHash:true,animTime:750,animType:'easeInOutQuart'},p);return this.find('a[href*="#"]').each(function(){$(this).unbind('click');$(this).click(function(event){event.preventDefault();var href=$(this).attr('href');var num=href.split('#')[1];$('html:not(:animated),body:not(:animated)').animate({scrollTop:$('html a[name="'+num+'"]').offset().top},o.animTime,o.animType,function(){if(o.addHash==true){window.location.hash=href;}});});});};})(jQuery);(function($){var types=['DOMMouseScroll','mousewheel'];$.event.special.mousewheel={setup:function(){if(this.addEventListener)
for(var i=types.length;i;)
this.addEventListener(types[--i],handler,false);else
this.onmousewheel=handler;},teardown:function(){if(this.removeEventListener)
for(var i=types.length;i;)
this.removeEventListener(types[--i],handler,false);else
this.onmousewheel=null;}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel");},unmousewheel:function(fn){return this.unbind("mousewheel",fn);}});function handler(event){var args=[].slice.call(arguments,1),delta=0,returnValue=true;event=$.event.fix(event||window.event);event.type="mousewheel";if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;args.unshift(event,delta);return $.event.handle.apply(this,args);}})(jQuery);(function($){$.fn.repCheckbox=function(){return this.each(function(){var tmp=$('<div></div>').insertAfter($(this));$(tmp).data('name',$(this).attr('name'));$(tmp).data('status',$(this).attr('checked'));$(this).remove();$(tmp).toggle(function(){$(this).attr('class','ch_active');var rep=$('<input type="hidden" value="1" />').insertAfter($(this));$(rep).attr('name',$(this).data('name'));},function(){$(this).attr('class','ch_inactive');$(this).next('input[type=hidden]').remove();});if($(tmp).data('status')==true){$(tmp).click();}else{$(tmp).attr('class','ch_inactive');}});};})(jQuery);(function($){$.fn.repRadioButton=function(){return this.each(function(){var tmp=$('<div></div>').insertAfter($(this));$(tmp).data('name',$(this).attr('name'));$(tmp).data('value',$(this).attr('value'));$(tmp).addClass('rad_inactive');$(tmp).addClass('radio_'+$(this).attr('name')+'');$(this).remove();$(tmp).click(function(){$(this).parent('form').find('div.radio_'+$(this).data('name')+'').each(function(){$(this).removeClass('rad_active');$(this).addClass('rad_inactive');if($(this).next().is('input[name='+$(this).data('name')+']')){$(this).next().remove();}});$(this).removeClass('rad_inactive');$(this).addClass('rad_active');var rep=$('<input type="hidden">').insertAfter($(this));$(rep).attr('name',$(this).data('name'));$(rep).attr('value',$(this).data('value'));});if($(this).attr('checked')){$(tmp).click();}});};})(jQuery);(function($){$.fn.repSelectbox=function(){return this.each(function(){var tmp=$('<ul class="select_box"></ul>').insertAfter($(this));var hid=$('<input type="hidden" name="'+$(this).attr('name')+'">').insertAfter($(tmp));$(this).children().each(function(){var tmpOpt=$('<li>'+$(this).text()+'</li>').appendTo($(tmp));$(tmpOpt).data('val',$(this).val());$(tmpOpt).click(function(){$(this).parent('ul').children('li:first').text($(this).text());$(hid).attr('value',$(tmpOpt).data('val'));});});$('<li>'+$(this).children(':selected').text()+'</li>').prependTo($(tmp));$(hid).attr('value',$(this).children(':selected').attr('value'));$(tmp).mouseover(function(){$(this).css('height','auto');});$(tmp).mouseout(function(){$(this).css('height','20px');});$(this).remove();});};})(jQuery);(function($){$.fn.inputClick=function(){this.each(function(){$(this).data('val',$(this).val());});this.focus(function(){if($(this).val()==$(this).data('val')){$(this).val('');}});this.blur(function(){if($(this).val()==''){$(this).val($(this).data('val'));}});return this;};})(jQuery);(function($){$.fn.gMapAppend=function(p){var o=$.extend({lng:'hu',timeOut:1,zoom:15,outerZoom:17,width:this.width(),height:this.height(),mapType:'terrain',outerMapType:'roadmap',showBubble:true,marker:{color:'red',label:'o'},gMapObj:this,callback:function(){}},p);o.iwloc=o.showBubble?'':'&amp;iwloc=';switch(o.outerMapType){case'roadmap':o.t='';break;case'terrain':o.t='p';break;case'satellite':o.t='h';break;default:o.t='';}
if(!o.address){o.address=this.html();}
function gmapappend(){o.gMapObj.html('<a class="gmap" target="_blank" href="http://maps.google.com/maps?t='+o.t+o.iwloc+'&amp;hl='+o.lng+'&amp;q='+o.address+'&amp;ie=UTF8&amp;hnear='+o.address+'&amp;z='+o.outerZoom+'&amp;output=embed"><img src="http://maps.google.com/maps/api/staticmap?center='+o.address+'&amp;zoom='+o.zoom+'&amp;size='+o.width+'x'+o.height+'&amp;maptype='+o.mapType+'&amp;markers=color:'+o.marker.color+'|label:'+o.marker.label+'|'+o.address+'&amp;sensor=false"></a>').css({'visibility':'visible'});o.callback();}
setTimeout(function(){gmapappend();},o.timeOut);return this;};})(jQuery);(function($){$.fn.social=function(p){this.each(function(){var o=$.extend({lng:'hu_HU',layout:'button_count',faces:'true',width:100,height:21,action:$(this).hasClass('share')?'share':'like',color:'light',timeOut:1000,url:$(this).html().length>12?$(this).html():document.location.href,el:$(this),social:'facebook'},p);if($(this).hasClass('iwiw')){o.social='iwiw';}
function fb(){if(o.action=='share'){ob=$('<a target="_blank" class="fbshare" href="http://www.facebook.com/sharer.php?u='+encodeURIComponent(o.url)+'&t='+encodeURIComponent(document.title)+'" style="margin-top : '+o.el.height()+'px;"></a>');o.el.html(ob);ob.socialAnimate();}else{o.el.html('<iframe onload="$(this).socialAnimate();" class="fbiframe" src="http://www.facebook.com/plugins/like.php?href='+encodeURIComponent(o.url)+'&amp;layout='+o.layout+'&amp;show_faces='+o.faces+'&amp;width='+o.width+'&amp;action='+o.action+'&amp;colorscheme='+o.color+'&amp;height='+o.height+'" scrolling="no" frameborder="0" style="margin-top : '+o.el.height()+'px; border:none; overflow:hidden; width:'+o.width+'px; height:'+o.height+'px;" allowTransparency="true"></iframe>');}}
function iw(){var iwLike='';var iwColor='white';if(o.action=='like'){iwLike='&t=tetszik';}
if(o.color=='dark'){iwColor='blue';}
o.el.html('<iframe onload="$(this).socialAnimate();" src="http://iwiw.hu/like.jsp?u='+encodeURIComponent(o.url)+'&title='+encodeURIComponent(document.title)+iwLike+'&s='+iwColor+'" width="220px" height="21px" style="margin-top : '+o.el.height()+'px; border: none;" scrolling="no" frameBorder="0" allowTransparency="true"></iframe>');}
if(o.social=='facebook'){setTimeout(function(){fb();},o.timeOut);}else if(o.social=='iwiw'){setTimeout(function(){iw();},o.timeOut);}});return this;};$.fn.socialAnimate=function(){this.animate({'margin-top':0},300,'easeOutQuad');};})(jQuery);(function($){$.fn.noSpam=function(){return this.find('.mapson').each(function(){if($(this).html().indexOf('href')==-1){$(this).removeClass('mapson');var _class=$(this).attr('class');var _temp=$(this).html().split(',,');var _eadd=_temp[1]+'@'+_temp[0]+'.'+_temp[2];var _etxt=_temp[3]?_temp[3]:_eadd;$('<a class="'+_class+'" href="mailto:'+_eadd+'">'+_etxt+'</a>').insertAfter($(this));$(this).remove();}});};})(jQuery);(function($){$.fn.forceWidth=function(){this.find('.forcew').each(function(){$(this).width($(this).attr('class').split('forcew')[1].split('w')[1]);});return this;};})(jQuery);(function($){$.fn.inputClass=function(){this.filter('[type="checkbox"]').each(function(){$(this).addClass('checkbox');});this.filter('[type="radio"]').each(function(){$(this).addClass('radio');});return this;};})(jQuery);(function($){$.fn.setBlank=function(){return this.find('a[href*="http:"]').each(function(){if(!$(this).attr('target')){$(this).attr({'target':'_blank'});}});};})(jQuery);$(document).ready(function(){$('#layerslider').layerSlider({skin:'defaultskin',skinsPath:'/images/scripts/layerslider/static/layerslider/skins/',durationTimeIn:1500,durationTimeOut:1500});});(function(a){a.fn.layerSlider=function(b){if((typeof b).match("object|undefined")){return this.each(function(c){new a.layerSlider(this,b)})}else{return this.each(function(c){var d=a(this).data("LayerSlider");if(d){if(!d.g.isAnimating){if(typeof b=="number"){if(b>0&&b<d.g.layersNum+1&&b!=d.g.curLayerIndex){d.change(b)}}else{switch(b){case"prev":d.prev();break;case"next":d.next();break;case"start":if(!d.g.autoSlideshow){d.start()}
break}}}
if(d.g.autoSlideshow&&b=="stop"){d.stop()}}})}};a.layerSlider=function(b,c){var d=this;d.e=a(b).addClass("ls-container");d.e.data("LayerSlider",d);d.init=function(){d.o=a.extend({},a.layerSlider.options,c);d.g=a.extend({},a.layerSlider.global);a(b).find('.ls-layer, *[class^="ls-s"]').each(function(){if(a(this).attr("style")){var b=a(this).attr("style").toLowerCase().split(";");for(x=0;x<b.length;x++){param=b[x].split(":");if(param[0].indexOf("easing")!=-1){param[1]=d.ieEasing(param[1])}
a(this).data(a.trim(param[0]),a.trim(param[1]))}}});d.g.layersNum=a(b).find(".ls-layer").length;d.o.firstLayer=d.o.firstLayer<d.g.layersNum+1?d.o.firstLayer:1;d.o.firstLayer=d.o.firstLayer<1?1:d.o.firstLayer;d.g.curLayerIndex=d.o.firstLayer;d.g.curLayer=a(b).find(".ls-layer:eq("+(d.g.curLayerIndex-1)+")");d.g.sliderWidth=a(b).width();d.g.sliderHeight=a(b).height();a(b).find(".ls-layer").wrapAll('<div class="ls-inner"></div>');if(a(b).css("position")=="static"){a(b).css("position","relative")}
a(b).find(".ls-inner, .ls-layer").css({width:d.g.sliderWidth,height:d.g.sliderHeight,overflow:"hidden"});a(b).find(".ls-inner").css({position:"relative"});a(b).find(".ls-layer").css({position:"absolute"});a(b).find(".ls-bg").css({marginLeft:-(d.g.sliderWidth/2)+"px",marginTop:-(d.g.sliderHeight/2)+"px"});if(d.o.navPrevNext){a('<a class="ls-nav-prev" href="#" />').click(function(c){c.preventDefault();a(b).layerSlider("prev")}).appendTo(a(b));a('<a class="ls-nav-next" href="#" />').click(function(c){c.preventDefault();a(b).layerSlider("next")}).appendTo(a(b))}
if(d.o.navStartStop||d.o.navButtons){a('<div class="ls-bottom-nav-wrapper" />').appendTo(a(b));if(d.o.navButtons){a('<span class="ls-bottom-slidebuttons" />').appendTo(a(b).find(".ls-bottom-nav-wrapper"));for(x=1;x<d.g.layersNum+1;x++){a('<a href="#"></a>').appendTo(a(b).find(".ls-bottom-slidebuttons")).click(function(c){c.preventDefault();a(b).layerSlider(a(this).index()+1)})}
a(b).find(".ls-bottom-slidebuttons a:eq("+(d.o.firstLayer-1)+")").addClass("ls-nav-active")}
if(d.o.navStartStop){a('<a class="ls-nav-start" href="#" />').click(function(c){c.preventDefault();a(b).layerSlider("start")}).prependTo(a(b).find(".ls-bottom-nav-wrapper"));a('<a class="ls-nav-stop" href="#" />').click(function(c){c.preventDefault();a(b).layerSlider("stop")}).appendTo(a(b).find(".ls-bottom-nav-wrapper"))}else{a('<span class="ls-nav-sides ls-nav-sideleft" />').prependTo(a(b).find(".ls-bottom-nav-wrapper"));a('<span class="ls-nav-sides ls-nav-sideright" />').appendTo(a(b).find(".ls-bottom-nav-wrapper"))}}
if(d.o.keybNav){a("body").bind("keydown",function(a){if(!d.g.isAnimating){if(a.which==37){d.prev()}else if(a.which==39){d.next()}}})}
a(b).addClass("ls-"+d.o.skin);var e=d.o.skinsPath+d.o.skin+"/skin.css";if(document.createStyleSheet){document.createStyleSheet(e)}else{a('<link rel="stylesheet" href="'+e+'" type="text/css" />').appendTo(a("head"))}
d.imgPreload(d.g.curLayer,function(){d.g.curLayer.fadeIn(1e3).addClass("ls-active");if(d.o.autoStart){d.start()}})};d.start=function(){if(d.g.autoSlideshow){if(d.g.prevNext=="prev"&&d.o.twoWaySlideshow){d.prev()}else{d.next()}}else{d.g.autoSlideshow=true;d.timer()}};d.timer=function(){var c=a(b).find(".ls-active").data("slidedelay")?parseInt(a(b).find(".ls-active").data("slidedelay")):d.o.slideDelay;clearTimeout(d.g.slideTimer);d.g.slideTimer=window.setTimeout(function(){d.start()},c)};d.stop=function(){clearTimeout(d.g.slideTimer);d.g.autoSlideshow=false};d.ieEasing=function(a){return a.replace("in","In").replace("out","Out").replace("quad","Quad").replace("quart","Quart").replace("cubic","Cubic").replace("quint","Quint").replace("sine","Sine").replace("expo","Expo").replace("circ","Circ").replace("elastic","Elastic").replace("back","Back").replace("bounce","Bounce")};d.prev=function(){var a=d.g.curLayerIndex<2?d.g.layersNum:d.g.curLayerIndex-1;d.g.prevNext="prev";d.change(a)};d.next=function(){var a=d.g.curLayerIndex<d.g.layersNum?d.g.curLayerIndex+1:1;d.g.prevNext="next";d.change(a)};d.change=function(c){clearTimeout(d.g.slideTimer);d.g.nextLayerIndex=c;d.g.nextLayer=a(b).find(".ls-layer:eq("+(d.g.nextLayerIndex-1)+")");d.imgPreload(d.g.nextLayer,function(){d.animate()})};d.imgPreload=function(b,c){if(d.o.imgPreload){var e=[];var f=0;b.find("img").each(function(){e.push(a(this).attr("src"))});b.find("*").each(function(){if(a(this).css("background-image")!="none"){var b=a(this).css("background-image");b=b.match(/url\((.*)\)/)[1].replace(/"/gi,"");e.push(b)}});for(x=0;x<e.length;x++){a("<img>").load(function(){if(++f==e.length){c()}}).attr("src",e[x])}}else{c()}};d.animate=function(){d.g.isAnimating=true;var c=curLayerRight=curLayerTop=curLayerBottom=nextLayerLeft=nextLayerRight=nextLayerTop=nextLayerBottom=layerMarginLeft=layerMarginRight=layerMarginTop=layerMarginBottom="auto";var e=nextLayerWidth=d.g.sliderWidth;var f=nextLayerHeight=d.g.sliderHeight;var g=d.g.prevNext=="prev"?d.g.curLayer:d.g.nextLayer;var h=g.data("slidedirection")?g.data("slidedirection"):d.o.slideDirection;var i=d.g.slideDirections[d.g.prevNext][h];if(i=="left"||i=="right"){e=curLayerTop=nextLayerWidth=nextLayerTop=0;layerMarginTop=0}
if(i=="top"||i=="bottom"){f=c=nextLayerHeight=nextLayerLeft=0;layerMarginLeft=0}
switch(i){case"left":curLayerRight=nextLayerLeft=0;layerMarginLeft=-d.g.sliderWidth;break;case"right":c=nextLayerRight=0;layerMarginLeft=d.g.sliderWidth;break;case"top":curLayerBottom=nextLayerTop=0;layerMarginTop=-d.g.sliderHeight;break;case"bottom":curLayerTop=nextLayerBottom=0;layerMarginTop=d.g.sliderHeight;break}
d.g.curLayer.css({left:c,right:curLayerRight,top:curLayerTop,bottom:curLayerBottom});d.g.nextLayer.css({width:nextLayerWidth,height:nextLayerHeight,left:nextLayerLeft,right:nextLayerRight,top:nextLayerTop,bottom:nextLayerBottom,display:"block"});var j=d.g.nextLayer.data("delayin")?parseInt(d.g.nextLayer.data("delayin")):d.o.delayIn;var k=d.g.nextLayer.data("durationin")?parseInt(d.g.nextLayer.data("durationin")):d.o.durationIn;var l=d.g.nextLayer.data("easingin")?d.g.nextLayer.data("easingin"):d.o.easingIn;d.g.nextLayer.delay(j).animate({width:d.g.sliderWidth,height:d.g.sliderHeight},k,l);d.g.nextLayer.find(' > *[class^="ls-s"]').each(function(){var b=d.g.nextLayer.data("parallaxin")?parseInt(d.g.nextLayer.data("parallaxin")):d.o.parallaxIn;var c=parseInt(a(this).attr("class").split("ls-s")[1])*b;a(this).css({marginLeft:layerMarginLeft*c,marginTop:layerMarginTop*c});var e=a(this).data("delayin")?parseInt(a(this).data("delayin")):d.o.delayIn;var f=a(this).data("durationin")?parseInt(a(this).data("durationin")):d.o.durationIn;var g=a(this).data("easingin")?a(this).data("easingin"):d.o.easingIn;a(this).stop().delay(e).animate({marginLeft:0,marginTop:0},f,g)});d.g.curLayer.find(' > *[class^="ls-s"]').each(function(){var b=d.g.curLayer.data("parallaxout")?parseInt(d.g.curLayer.data("parallaxout")):d.o.parallaxOut;var c=parseInt(a(this).attr("class").split("ls-s")[1])*b;var e=a(this).data("delayout")?parseInt(a(this).data("delayout")):d.o.delayOut;var f=a(this).data("durationout")?parseInt(a(this).data("durationout")):d.o.durationOut;var g=a(this).data("easingout")?a(this).data("easingout"):d.o.easingOut;a(this).stop().delay(e).animate({marginLeft:-layerMarginLeft*c,marginTop:-layerMarginTop*c},f,g)});var m=a(this).data("delayout")?parseInt(a(this).data("delayout")):d.o.delayOut;var n=a(this).data("durationout")?parseInt(a(this).data("durationout")):d.o.durationOut;var o=a(this).data("easingout")?a(this).data("easingout"):d.o.easingOut;d.g.curLayer.delay(m).animate({width:e,height:f},n,o,function(){d.g.curLayer=d.g.nextLayer;d.g.curLayerIndex=d.g.nextLayerIndex;a(b).find(".ls-layer").removeClass("ls-active");a(b).find(".ls-layer:eq("+(d.g.curLayerIndex-1)+")").addClass("ls-active");a(b).find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active");a(b).find(".ls-bottom-slidebuttons a:eq("+(d.g.curLayerIndex-1)+")").addClass("ls-nav-active");d.g.isAnimating=false;if(d.g.autoSlideshow){d.timer()}})};d.init()};a.layerSlider.options={autoStart:true,firstLayer:1,twoWaySlideshow:false,keybNav:true,imgPreload:true,navPrevNext:true,navStartStop:true,navButtons:true,skin:"defaultskin",skinsPath:"/layerslider/skins/",slideDirection:"right",slideDelay:4e3,parallaxIn:.45,parallaxOut:.45,durationIn:1500,durationOut:1500,easingIn:"easeInOutQuint",easingOut:"easeInOutQuint",delayIn:0,delayOut:0};a.layerSlider.global={version:"1.0.20111126",autoSlideshow:false,isAnimating:false,layersNum:null,prevNext:"next",slideTimer:null,sliderWidth:null,sliderHeight:null,slideDirections:{prev:{left:"right",right:"left",top:"bottom",bottom:"top"},next:{left:"left",right:"right",top:"top",bottom:"bottom"}}}})(jQuery)