window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var newarr=[].slice.call(arguments);(typeof console.log==='object'?log.apply.call(console.log,console,newarr):console.log.apply(console,newarr));}};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(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.16",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({propAttr:c.fn.prop||c.fn.attr,_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,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)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){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});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++)try{b(d).triggerHandler("remove")}catch(e){}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(){try{b(this).triggerHandler("remove")}catch(d){}});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);;jQuery.extend({roundabout_shape:{def:'lazySusan',lazySusan:function(r,a,t){return{x:Math.sin(r+a),y:(Math.sin(r+3*Math.PI/2+a)/8)*t,z:(Math.cos(r+a)+1)/2,scale:(Math.sin(r+Math.PI/2+a)/2)+0.5}}}});jQuery.fn.roundabout=function(){var options=(typeof arguments[0]!='object')?{}:arguments[0];options={bearing:(typeof options.bearing=='undefined')?0.0:jQuery.roundabout_toFloat(options.bearing%360.0),tilt:(typeof options.tilt=='undefined')?0.0:jQuery.roundabout_toFloat(options.tilt),minZ:(typeof options.minZ=='undefined')?100:parseInt(options.minZ,10),maxZ:(typeof options.maxZ=='undefined')?400:parseInt(options.maxZ,10),minOpacity:(typeof options.minOpacity=='undefined')?0.40:jQuery.roundabout_toFloat(options.minOpacity),maxOpacity:(typeof options.maxOpacity=='undefined')?1.00:jQuery.roundabout_toFloat(options.maxOpacity),minScale:(typeof options.minScale=='undefined')?0.40:jQuery.roundabout_toFloat(options.minScale),maxScale:(typeof options.maxScale=='undefined')?1.00:jQuery.roundabout_toFloat(options.maxScale),duration:(typeof options.duration=='undefined')?600:parseInt(options.duration,10),btnNext:options.btnNext||null,btnPrev:options.btnPrev||null,easing:options.easing||'swing',clickToFocus:(options.clickToFocus!==false),focusBearing:(typeof options.focusBearing=='undefined')?0.0:jQuery.roundabout_toFloat(options.focusBearing%360.0),shape:options.shape||'lazySusan',debug:options.debug||false,childSelector:options.childSelector||'li',startingChild:(typeof options.startingChild=='undefined')?null:parseInt(options.startingChild,10),reflect:(typeof options.reflect=='undefined'||options.reflect===false)?false:true};this.each(function(i){var ref=jQuery(this);var period=jQuery.roundabout_toFloat(360.0/ref.children(options.childSelector).length);var startingBearing=(options.startingChild===null)?options.bearing:options.startingChild*period;ref.addClass('roundabout-holder').css('padding',0).css('position','relative').css('z-index',options.minZ);ref.data('roundabout',{'bearing':startingBearing,'tilt':options.tilt,'minZ':options.minZ,'maxZ':options.maxZ,'minOpacity':options.minOpacity,'maxOpacity':options.maxOpacity,'minScale':options.minScale,'maxScale':options.maxScale,'duration':options.duration,'easing':options.easing,'clickToFocus':options.clickToFocus,'focusBearing':options.focusBearing,'animating':0,'childInFocus':-1,'shape':options.shape,'period':period,'debug':options.debug,'childSelector':options.childSelector,'reflect':options.reflect});if(options.clickToFocus===true){ref.children(options.childSelector).each(function(i){jQuery(this).click(function(e){var degrees=(options.reflect===true)?360.0-(period*i):period*i;degrees=jQuery.roundabout_toFloat(degrees);if(!jQuery.roundabout_isInFocus(ref,degrees)){e.preventDefault();if(ref.data('roundabout').animating===0){ref.roundabout_animateAngleToFocus(degrees)}return false}})})}if(options.btnNext){jQuery(options.btnNext).bind('click.roundabout',function(e){e.preventDefault();if(ref.data('roundabout').animating===0){ref.roundabout_animateToNextChild()}return false})}if(options.btnPrev){jQuery(options.btnPrev).bind('click.roundabout',function(e){e.preventDefault();if(ref.data('roundabout').animating===0){ref.roundabout_animateToPreviousChild()}return false})}});this.roundabout_startChildren();if(typeof arguments[1]==='function'){var callback=arguments[1],ref=this;setTimeout(function(){callback(ref)},0)}return this};jQuery.fn.roundabout_startChildren=function(){this.each(function(i){var ref=jQuery(this);var data=ref.data('roundabout');var children=ref.children(data.childSelector);children.each(function(i){var degrees=(data.reflect===true)?360.0-(data.period*i):data.period*i;jQuery(this).addClass('roundabout-moveable-item').css('position','absolute');jQuery(this).data('roundabout',{'startWidth':jQuery(this).width(),'startHeight':jQuery(this).height(),'startFontSize':parseInt(jQuery(this).css('font-size'),10),'degrees':degrees})});ref.roundabout_updateChildPositions()});return this};jQuery.fn.roundabout_setTilt=function(newTilt){this.each(function(i){jQuery(this).data('roundabout').tilt=newTilt;jQuery(this).roundabout_updateChildPositions()});if(typeof arguments[1]==='function'){var callback=arguments[1],ref=this;setTimeout(function(){callback(ref)},0)}return this};jQuery.fn.roundabout_setBearing=function(newBearing){this.each(function(i){jQuery(this).data('roundabout').bearing=jQuery.roundabout_toFloat(newBearing%360,2);jQuery(this).roundabout_updateChildPositions()});if(typeof arguments[1]==='function'){var callback=arguments[1],ref=this;setTimeout(function(){callback(ref)},0)}return this};jQuery.fn.roundabout_adjustBearing=function(delta){delta=jQuery.roundabout_toFloat(delta);if(delta!==0){this.each(function(i){jQuery(this).data('roundabout').bearing=jQuery.roundabout_getBearing(jQuery(this))+delta;jQuery(this).roundabout_updateChildPositions()})}if(typeof arguments[1]==='function'){var callback=arguments[1],ref=this;setTimeout(function(){callback(ref)},0)}return this};jQuery.fn.roundabout_adjustTilt=function(delta){delta=jQuery.roundabout_toFloat(delta);if(delta!==0){this.each(function(i){jQuery(this).data('roundabout').tilt=jQuery.roundabout_toFloat(jQuery(this).roundabout_get('tilt')+delta);jQuery(this).roundabout_updateChildPositions()})}if(typeof arguments[1]==='function'){var callback=arguments[1],ref=this;setTimeout(function(){callback(ref)},0)}return this};jQuery.fn.roundabout_animateToBearing=function(bearing){bearing=jQuery.roundabout_toFloat(bearing);var currentTime=new Date();var duration=(typeof arguments[1]=='undefined')?null:arguments[1];var easingType=(typeof arguments[2]=='undefined')?null:arguments[2];var passedData=(typeof arguments[3]!=='object')?null:arguments[3];this.each(function(i){var ref=jQuery(this),data=ref.data('roundabout'),timer,easingFn,newBearing;var thisDuration=(duration===null)?data.duration:duration;var thisEasingType=(easingType!==null)?easingType:data.easing||'swing';if(passedData===null){passedData={timerStart:currentTime,start:jQuery.roundabout_getBearing(ref),totalTime:thisDuration}}timer=currentTime-passedData.timerStart;if(timer<thisDuration){data.animating=1;if(typeof jQuery.easing.def=='string'){easingFn=jQuery.easing[thisEasingType]||jQuery.easing[jQuery.easing.def];newBearing=easingFn(null,timer,passedData.start,bearing-passedData.start,passedData.totalTime)}else{newBearing=jQuery.easing[thisEasingType]((timer/passedData.totalTime),timer,passedData.start,bearing-passedData.start,passedData.totalTime)}ref.roundabout_setBearing(newBearing,function(){ref.roundabout_animateToBearing(bearing,thisDuration,thisEasingType,passedData)})}else{bearing=(bearing<0)?bearing+360:bearing%360;data.animating=0;ref.roundabout_setBearing(bearing)}});return this};jQuery.fn.roundabout_animateToDelta=function(delta){var duration=arguments[1],easing=arguments[2];this.each(function(i){delta=jQuery.roundabout_getBearing(jQuery(this))+jQuery.roundabout_toFloat(delta);jQuery(this).roundabout_animateToBearing(delta,duration,easing)});return this};jQuery.fn.roundabout_animateToChild=function(childPos){var duration=arguments[1],easing=arguments[2];this.each(function(i){var ref=jQuery(this),data=ref.data('roundabout');if(data.childInFocus!==childPos&&data.animating===0){var child=jQuery(ref.children(data.childSelector)[childPos]);ref.roundabout_animateAngleToFocus(child.data('roundabout').degrees,duration,easing)}});return this};jQuery.fn.roundabout_animateToNearbyChild=function(passedArgs,which){var duration=passedArgs[0],easing=passedArgs[1];this.each(function(i){var data=jQuery(this).data('roundabout');var bearing=jQuery.roundabout_toFloat(360.0-jQuery.roundabout_getBearing(jQuery(this)));var period=data.period,j=0,range;var reflect=data.reflect;var length=jQuery(this).children(data.childSelector).length;bearing=(reflect===true)?bearing%360.0:bearing;if(data.animating===0){if((reflect===false&&which==='next')||(reflect===true&&which!=='next')){bearing=(bearing===0)?360:bearing;while(true&&j<length){range={lower:jQuery.roundabout_toFloat(period*j),upper:jQuery.roundabout_toFloat(period*(j+1))};range.upper=(j==length-1)?360.0:range.upper;if(bearing<=range.upper&&bearing>range.lower){jQuery(this).roundabout_animateToDelta(bearing-range.lower,duration,easing);break}j++}}else{while(true){range={lower:jQuery.roundabout_toFloat(period*j),upper:jQuery.roundabout_toFloat(period*(j+1))};range.upper=(j==length-1)?360.0:range.upper;if(bearing>=range.lower&&bearing<range.upper){jQuery(this).roundabout_animateToDelta(bearing-range.upper,duration,easing);break}j++}}}});return this};jQuery.fn.roundabout_animateToNextChild=function(){return this.roundabout_animateToNearbyChild(arguments,'next')};jQuery.fn.roundabout_animateToPreviousChild=function(){return this.roundabout_animateToNearbyChild(arguments,'previous')};jQuery.fn.roundabout_animateAngleToFocus=function(target){var duration=arguments[1],easing=arguments[2];this.each(function(i){var delta=jQuery.roundabout_getBearing(jQuery(this))-target;delta=(Math.abs(360.0-delta)<Math.abs(0.0-delta))?360.0-delta:0.0-delta;delta=(delta>180)?-(360.0-delta):delta;if(delta!==0){jQuery(this).roundabout_animateToDelta(delta,duration,easing)}});return this};jQuery.fn.roundabout_updateChildPositions=function(){this.each(function(i){var ref=jQuery(this),data=ref.data('roundabout');var inFocus=-1;var info={bearing:jQuery.roundabout_getBearing(ref),tilt:data.tilt,stage:{width:Math.floor(ref.width()*0.9),height:Math.floor(ref.height()*0.9)},animating:data.animating,inFocus:data.childInFocus,focusBearingRad:jQuery.roundabout_degToRad(data.focusBearing),shape:jQuery.roundabout_shape[data.shape]||jQuery.roundabout_shape[jQuery.roundabout_shape.def]};info.midStage={width:info.stage.width/2,height:info.stage.height/2};info.nudge={width:info.midStage.width+info.stage.width*0.05,height:info.midStage.height+info.stage.height*0.05};info.zValues={min:data.minZ,max:data.maxZ,diff:data.maxZ-data.minZ};info.opacity={min:data.minOpacity,max:data.maxOpacity,diff:data.maxOpacity-data.minOpacity};info.scale={min:data.minScale,max:data.maxScale,diff:data.maxScale-data.minScale};ref.children(data.childSelector).each(function(i){if(jQuery.roundabout_updateChildPosition(jQuery(this),ref,info,i)&&info.animating===0){inFocus=i;jQuery(this).addClass('roundabout-in-focus')}else{jQuery(this).removeClass('roundabout-in-focus')}});if(inFocus!==info.inFocus){jQuery.roundabout_triggerEvent(ref,info.inFocus,'blur');if(inFocus!==-1){jQuery.roundabout_triggerEvent(ref,inFocus,'focus')}data.childInFocus=inFocus}});return this};jQuery.roundabout_getBearing=function(el){return jQuery.roundabout_toFloat(el.data('roundabout').bearing)%360};jQuery.roundabout_degToRad=function(degrees){return(degrees%360.0)*Math.PI/180.0};jQuery.roundabout_isInFocus=function(el,target){return(jQuery.roundabout_getBearing(el)%360===(target%360))};jQuery.roundabout_triggerEvent=function(el,child,eventType){return(child<0)?this:jQuery(el.children(el.data('roundabout').childSelector)[child]).trigger(eventType)};jQuery.roundabout_toFloat=function(number){number=Math.round(parseFloat(number)*1000)/1000;return parseFloat(number.toFixed(2))};jQuery.roundabout_updateChildPosition=function(child,container,info,childPos){var ref=jQuery(child),data=ref.data('roundabout'),out=[];var rad=jQuery.roundabout_degToRad((360.0-ref.data('roundabout').degrees)+info.bearing);while(rad<0){rad=rad+Math.PI*2}while(rad>Math.PI*2){rad=rad-Math.PI*2}var factors=info.shape(rad,info.focusBearingRad,info.tilt);factors.scale=(factors.scale>1)?1:factors.scale;factors.adjustedScale=(info.scale.min+(info.scale.diff*factors.scale)).toFixed(4);factors.width=(factors.adjustedScale*data.startWidth).toFixed(4);factors.height=(factors.adjustedScale*data.startHeight).toFixed(4);ref.css('left',((factors.x*info.midStage.width+info.nudge.width)-factors.width/2.0).toFixed(1)+'px').css('top',((factors.y*info.midStage.height+info.nudge.height)-factors.height/2.0).toFixed(1)+'px').css('width',factors.width+'px').css('height',factors.height+'px').css('opacity',(info.opacity.min+(info.opacity.diff*factors.scale)).toFixed(2)).css('z-index',Math.round(info.zValues.min+(info.zValues.diff*factors.z))).css('font-size',(factors.adjustedScale*data.startFontSize).toFixed(2)+'px').attr('current-scale',factors.adjustedScale);if(container.data('roundabout').debug===true){out.push('<div style="font-weight: normal; font-size: 10px; padding: 2px; width: '+ref.css('width')+'; background-color: #ffc;">');out.push('<strong style="font-size: 12px; white-space: nowrap;">Child '+childPos+'</strong><br />');out.push('<strong>left:</strong> '+ref.css('left')+'<br /><strong>top:</strong> '+ref.css('top')+'<br />');out.push('<strong>width:</strong> '+ref.css('width')+'<br /><strong>opacity:</strong> '+ref.css('opacity')+'<br />');out.push('<strong>z-index:</strong> '+ref.css('z-index')+'<br /><strong>font-size:</strong> '+ref.css('font-size')+'<br />');out.push('<strong>scale:</strong> '+ref.attr('current-scale'));out.push('</div>');ref.html(out.join(''))}return jQuery.roundabout_isInFocus(container,ref.data('roundabout').degrees)};(function($){$.widget("ui.ariaLightbox",{version:"1.8",options:{altText:function(){return $(this).find("img").attr("alt");},descText:function(){return $(this).find("img").attr("title");},titleText:function(){return"Fullscreen";},prevText:"previous picture",nextText:"next picture",pictureText:"Picture",ofText:"of",closeText:"Close [ESC]",pos:"auto",autoHeight:50,offsetX:10,offsetY:10,disableWidth:550,disableHeight:550,useDimmer:true,animationSpeed:"slow",zIndex:1000,makeHover:true,em:0.0568182,activeImage:0,jqAddress:{enable:true,title:{enable:true,split:" | "}}},_create:function(){var options=this.options,self=this;if(options.imageArray){options.selector=options.imageArray;options.imageArray=self.element.find(options.imageArray);if(options.makeHover){options.imageArray.each(function(){self._makeHover($(this));});}}else{if(options.makeHover){self._makeHover(self.element);}}if($.address&&options.jqAddress.enable){$.address.externalChange(function(event){if(event.value==""&&options.wrapperElement){self.close();}else{if(options.imageArray){for(var x=0;x<options.imageArray.length;x++){if($(options.imageArray[x]).attr("href")==event.value){options.activeImage=x;self._open($(options.imageArray[x]));self._setButtonState();return;}}}else{if(self.element.attr("href")==event.value){self._open(self.element);}}}});}self.element.click(function(event){if(!options.imageArray){return self._open($(this),event);}else{target=$(event.target).closest(options.selector,self.element);if(target.length){options.activeImage=options.imageArray.index(target);return self._open(target,event);}}});if(options.useDimmer){$(window).resize(function(){if(!options.disabled){self._dimmerResize();}});}},startGallery:function(event,index){index=(index)?index:0;this.options.activeImage=index;return this._open($(this.options.imageArray[index]),event);},_open:function(element,event){var options=this.options,self=this;if(!options.disabled&&$(window).width()-options.disableWidth>0&&$(window).height()-options.disableHeight>0){if(!options.imageArray&&event){options.clickedElement=event.currentTarget;}else{options.clickedElement=element;}options.wrapperElement=$("body>div#ui-lightbox-wrapper");if(!options.wrapperElement.length){self._show(element,event);}else{self._changePicture(element,event);}return false;}return true;},_show:function(element,event){var options=this.options,self=this;var html="\n";html+='<div id="ui-lightbox-wrapper" class="ui-dialog ui-widget ui-widget-content ui-corner-all" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-dialog">'+"\n";html+='	<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">'+"\n";html+='		<span id="ui-dialog-title-dialog" class="ui-dialog-title">'+options.titleText.call(element)+"</span>"+"\n";html+='		<a href="#nogo" id="ui-lightbox-close" class="ui-dialog-titlebar-close ui-corner-all" title="'+options.closeText+'" role="button">'+"\n";html+='			<span class="ui-icon ui-icon-closethick">'+options.closeText+"</span>"+"\n";html+="		</a>"+"\n";html+="	</div>"+"\n";html+='	<div id="ui-lightbox-content">'+"\n";html+='		<div id="ui-lightbox-image"><img src="" aria-describedby="ui-lightbox-description" /></div>'+"\n";html+='		<p id="ui-lightbox-description"></p>'+"\n";if(options.imageArray){html+='		<p id="ui-lightbox-pager"></p>'+"\n";html+='		<div id="ui-dialog-buttonpane" class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">'+"\n";html+='			<div class="ui-dialog-buttonset">'+"\n";html+='				<button id="ui-lightbox-prev" type="button" role="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"><span class="ui-button-text">'+options.prevText+"</span></button>"+"\n";html+='				<button id="ui-lightbox-next" type="button" role="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"><span class="ui-button-text">'+options.nextText+"</span></button>"+"\n";html+="			</div>"+"\n";html+="		</div>"+"\n";}html+="	</div>	"+"\n";html+="</div>"+"\n";if(options.useDimmer){self._createDimmer();}$("body").append(html);self._trigger("onShow",0);options.wrapperElement=$("body>div#ui-lightbox-wrapper");if(options.imageArray){options.wrapperElement.keydown(function(event){if(event.keyCode==$.ui.keyCode.RIGHT){self.next();}if(event.keyCode==$.ui.keyCode.DOWN){self.next();}if(event.keyCode==$.ui.keyCode.UP){self.prev();}if(event.keyCode==$.ui.keyCode.LEFT){self.prev();}if(event.keyCode==$.ui.keyCode.SPACE){self.next();}if(event.keyCode==$.ui.keyCode.END){options.activeImage=options.imageArray.length-2;event.preventDefault();self.next();}if(event.keyCode==$.ui.keyCode.HOME){options.activeImage=1;event.preventDefault();self.prev();}});options.buttonpane=options.wrapperElement.find("#ui-dialog-buttonpane");self._setButtonState();var prev=options.buttonpane.find("#ui-lightbox-prev");prev.click(function(){self.prev();});self._makeHover(prev);var next=options.buttonpane.find("#ui-lightbox-next");next.click(function(){self.next();});self._makeHover(next);}options.wrapperElement.keydown(function(event){if(event.keyCode==$.ui.keyCode.ESCAPE){self.close();}});var closeElement=options.wrapperElement.find("#ui-lightbox-close");closeElement.click(function(){self.close();return false;});self._makeHover(closeElement);if((!event||!event.pageX||!event.pageY)&&options.pos=="offset"){options.pos="auto";}switch(options.pos){case"auto":var viewPos=self._pageScroll();var posLeft=viewPos[0]+(($(window).width()-options.wrapperElement.width())/2);var posTop=viewPos[1]+options.autoHeight;break;case"offset":var posLeft=event.pageX+options.offsetX;var posTop=event.pageY-options.offsetY;break;default:var position=options.pos.split(",");var posLeft=position[0];var posTop=position[1];break;}options.wrapperElement.css({left:posLeft+"px",top:posTop+"px",zIndex:options.zIndex}).fadeIn(options.animationSpeed).focus();self._changePicture(element,event);},_changePicture:function(element,event){var options=this.options,self=this;var contentWrapper=options.wrapperElement.find("#ui-lightbox-content");var imageWrapper=contentWrapper.find("#ui-lightbox-image");var imageElement=imageWrapper.find("img");imageElement.fadeOut(options.animationSpeed,function(){contentWrapper.attr("aria-live","assertive").attr("aria-relevant","additions removals text").attr("aria-busy",true);var image=new Image();image.onload=function(){imageElement.attr("src",element.attr("href")).attr("alt",options.altText.call(element));var calculatedX=(options.em)?image.width*options.em+"em":image.width;var calculatedY=(options.em)?image.height*options.em+"em":image.height;imageElement.css({width:calculatedX,height:calculatedY});switch(options.pos){case"offset":topPos=(event)?event.pageY:element.offset().top;leftPos=(event)?event.pageX:element.offset().left;options.wrapperElement.animate({left:leftPos+options.offsetX+"px",top:topPos+options.offsetY+"px",width:calculatedX},options.animationSpeed);break;case"auto":default:var viewPos=self._pageScroll();options.wrapperElement.animate({left:viewPos[0]+(($(window).width()-image.width)/2)+"px",width:calculatedX},options.animationSpeed);break;}imageWrapper.animate({height:calculatedY},options.animationSpeed,function(){imageElement.fadeIn(options.animationSpeed);options.wrapperElement.find("#ui-lightbox-description").html(options.descText.call(element));if(options.imageArray){options.wrapperElement.find("#ui-lightbox-pager").text(options.pictureText+" "+(options.activeImage+1)+" "+options.ofText+" "+options.imageArray.length);}options.wrapperElement.find("span#ui-dialog-title-dialog").html(options.titleText.call(element));if(options.useDimmer){self._dimmerResize();}self._updateVirtualBuffer();contentWrapper.attr("aria-busy",false);if($.address&&options.jqAddress.enable){if(options.jqAddress.title.enable){$.address.title($.address.title().split(options.jqAddress.title.split)[0]+options.jqAddress.title.split+options.altText.call(element));}$.address.value(element.attr("href"));}self._trigger("onChangePicture",0);});image.onload=function(){};};image.src=element.attr("href");});},_setButtonState:function(){var options=this.options;options.buttonpane.find("#ui-lightbox-next, #ui-lightbox-prev").removeAttr("disabled").removeClass("ui-state-disabled").removeClass("ui-state-focus");switch(options.activeImage){case 0:options.buttonpane.find("#ui-lightbox-prev").attr("disabled","disabled").removeClass("ui-state-hover").addClass("ui-state-disabled");options.buttonpane.find("#ui-lightbox-next").focus();break;case options.imageArray.length-1:options.buttonpane.find("#ui-lightbox-next").attr("disabled","disabled").removeClass("ui-state-hover").addClass("ui-state-disabled");options.buttonpane.find("#ui-lightbox-prev").focus();break;}},close:function(){var options=this.options,self=this;options.wrapperElement.fadeOut(options.animationSpeed,function(){$(this).remove();});if(options.useDimmer){$("#ui-lightbox-screendimmer").fadeOut(options.animationSpeed,function(){$(this).remove();});}$(options.clickedElement).focus();if($.address&&options.jqAddress.enable){if(options.jqAddress.title.enable){$.address.title($.address.title().split(options.jqAddress.title.split)[0]);}$.address.value("nogo");}self._trigger("onClose",0,options.activeImage);},prev:function(){var options=this.options,self=this;if(options.imageArray&&options.activeImage>0){options.activeImage=options.activeImage-1;self._changePicture($(options.imageArray[options.activeImage]));self._setButtonState();self._trigger("onPrev",0,options.activeImage);}},next:function(){var options=this.options,self=this;if(options.imageArray&&options.activeImage<(options.imageArray.length-1)){options.activeImage=options.activeImage+1;self._changePicture($(options.imageArray[options.activeImage]));self._setButtonState();self._trigger("onNext",0,options.activeImage);}},_createDimmer:function(){var options=this.options,self=this;var html='<div id="ui-lightbox-screendimmer" class="ui-widget-overlay" style="display: none;"></div>';$("body").append(html);$("#ui-lightbox-screendimmer").css({width:self._dimmerWidth()+"px",height:self._dimmerHeight()+"px",zIndex:options.zIndex}).fadeIn(options.animationSpeed).click(function(){self.close();});},_dimmerResize:function(){var self=this;var dimmer=$("#ui-lightbox-screendimmer");if(dimmer.length){dimmer.css({width:0,height:0});dimmer.css({width:self._dimmerWidth()+"px",height:self._dimmerHeight()+"px"});}},_dimmerHeight:function(){if($.browser.msie&&$.browser.version<7){var scrollHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var offsetHeight=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(scrollHeight<offsetHeight){return $(window).height();}else{return scrollHeight;}}else{return $(document).height();}},_dimmerWidth:function(){if($.browser.msie&&$.browser.version<7){var scrollWidth=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(scrollWidth<offsetWidth){return $(window).width();}else{return scrollWidth;}}else{return $(document).width();}},_pageScroll:function(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else{if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}}}arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;},_makeHover:function(element){element.bind("mouseenter",function(){$(this).addClass("ui-state-hover");}).bind("mouseleave",function(){$(this).removeClass("ui-state-hover");}).bind("focus",function(){$(this).addClass("ui-state-focus");}).bind("blur",function(){$(this).removeClass("ui-state-focus");});},_updateVirtualBuffer:function(){var form=$("body>form #virtualBufferForm");if(form.length){(form.val()=="1")?form.val("0"):form.val("1");}else{var html='<form><input id="virtualBufferForm" type="hidden" value="1" /></form>';$("body").append(html);}},destroy:function(){var options=this.options;if(options.makeHover){if(options.imageArray){options.imageArray.each(function(){$(this).unbind("mouseleave mouseenter focus blur");});}else{this.element.unbind("mouseleave mouseenter focus blur");}}this.element.unbind(".ariaLightbox").unbind("click").removeData("ariaLightbox");$("body>form #virtualBufferForm").parent().remove();$("body>div#ui-lightbox-screendimmer").remove();$("body>div#ui-lightbox-wrapper").unbind("keydown").remove();$.Widget.prototype.destroy.apply(this,arguments);}});})(jQuery);(function(window,undefined){langNav();function langNav(){$('.lang_nav_handler').click(function(e){e.preventDefault();$('#lang_nav').toggle(100);if($('#lang_nav:visible')){setTimeout(function(){$('#lang_nav').fadeOut('slow');},5000);}})}
if($('.product_finder_list').length){$('.product_finder_list').find('li').css('opacity','.5');$('.product_finder_list').find('li.active').css('opacity','1');$('.product_finder_list .active').hover(function(){if($(this).hasClass('active')){$('.product_details').stop(true,true);$(this).find('.product_details').toggle('slow');$(this).css('z-index',200);}},function(){if($(this).hasClass('active')){$('.product_details').stop(true,true);$(this).find('.product_details').toggle('slow')
$(this).css('z-index','');}})}
if($('.product_infos_details').length){$('.show_product_details_handler').click(function(e){e.preventDefault();$(this).siblings('.product_infos_details').slideToggle('fast');})}
if($('.additional_content_container').length){$('.additional_content_nav_handler').click(function(e){e.preventDefault();var target=$(this).attr('href');if(!$(this).hasClass('active')){$('.additional_content_nav_handler').removeClass('active');$(this).addClass('active');if($('.additional_content_container').is(':visible')){$('.additional_content_container').hide();$(target).show();location.hash='more_products';}
else{$(target).slideDown('slow');$('html,body').animate({scrollTop:$(this).offset().top},'slow');}}
else{$(target).slideUp('slow');$(this).removeClass('active');}})
$('.additional_products_list_item:nth-child(4n+1) h3').addClass("nth_headline");$('.additional_products_list_item:nth-child(5n)').addClass("nth_new_row");$('.additional_products_list_item:nth-child(4n) .additional_product_list').addClass("nth_last_in_row");}
if($('.additional_content_container').length&&$('body').hasClass('no-boxshadow')){$('#footer').css('background','none');}
if($('.lightbox').length){var lightbox=$('#content').ariaLightbox({imageArray:".lightbox",animationSpeed:200,useDimmer:true,pos:"auto",closeText:"",em:false,disableWidth:800});$('.open_slideshow_handler').click(function(event){event.preventDefault();lightbox.ariaLightbox('startGallery',event);});}
if($('.single_lightbox').length){var lightbox=$('.single_lightbox').ariaLightbox({animationSpeed:200,useDimmer:true,pos:"auto",closeText:"",em:false,disableWidth:800});}
if($('.roundabout').length){$('.roundabout').css('visibility','visible');$('.roundabout').roundabout({minScale:.7,minOpacity:.1,startingChild:0,reflect:true});var currItem=$('.roundabout-in-focus').find('img').attr('class');$('#main_nav').find('#'+currItem).parent().addClass('active');$('.roundabout-moveable-item').click(function(){$('#main_nav li').removeClass('active');var currItem=$(this).find('img').attr('class');$('#main_nav').find('#'+currItem).parent().addClass('active');})}
$('.sharpen_blur_handler').hover(function(){$(this).parent().siblings('.blur_sharp_container').find('span').stop(true,true).fadeIn('slow');closest_description=$(this).siblings('.blur_sharp_description').attr('id');$('.blur_sharp_description:not(#'+closest_description+')').stop(true,true).fadeOut('slow');},function(){$(this).parent().siblings('.blur_sharp_container').find('span').stop(true,true).fadeOut('slow');$('.blur_sharp_description').stop(true,true).fadeIn('slow');})
if($('.ap_container').length){function animateGoggle(){if(!$('.ap_tip').is(':animated')){$('.ap_tip').animate({top:'-=15'},2000,function(){$(this).animate({top:'+=15'},2000)});}
else{return false;}}
window.setTimeout(function(){animateGoggle();},2000);$('.ap_arrow').click(function(e){e.preventDefault();animateGoggle();})}})(window);
