/*
 *
 *	@copyright:___________2010, Trost
 *	@link:________________http://www.autoauto.de
 *	@author:______________Jung v. Matt/Neckar
 *	@projectDescription:__global plugins/functions
 *
 *	@version:_____________1.0
 * 	@revision:____________$Revision: 121 $
 * 	@lastmodified:________$Date: 2010-12-03 14:14:34 +0100 (Fr, 03 Dez 2010) $
 *
 */
/*
 * jQuery Tools 1.2.5 - The missing UI library for the Web
 * 
 * [scrollable]
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 * File generated: Fri Oct 22 10:05:18 GMT 2010
 */
(function(e){function p(f,c){var b=e(c);return b.length<2?b:f.parent().find(c)}function u(f,c){var b=this,n=f.add(b),g=f.children(),l=0,j=c.vertical;k||(k=b);if(g.length>1){g=e(c.items,f)}e.extend(b,{getConf:function(){return c},getIndex:function(){return l},getSize:function(){return b.getItems().size()},getNaviButtons:function(){return o.add(q)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(a,d){return b.seekTo(l+a,d)},next:function(a){return b.move(1,a)},prev:function(a){return b.move(-1,a)},begin:function(a){return b.seekTo(0,a)},end:function(a){return b.seekTo(b.getSize()-1,a)},focus:function(){return k=b},addItem:function(a){a=e(a);if(c.circular){g.children("."+c.clonedClass+":last").before(a);g.children("."+c.clonedClass+":first").replaceWith(a.clone().addClass(c.clonedClass))}else{g.append(a)}n.trigger("onAddItem",[a]);return b},seekTo:function(a,d,h){a.jquery||(a*=1);if(c.circular&&a===0&&l==-1&&d!==0){return b}if(!c.circular&&a<0||a>b.getSize()||a<-1){return b}var i=a;if(a.jquery){a=b.getItems().index(a)}else{i=b.getItems().eq(a)}var r=e.Event("onBeforeSeek");if(!h){n.trigger(r,[a,d]);if(r.isDefaultPrevented()||!i.length){return b}}i=j?{top:-i.position().top}:{left:-i.position().left};l=a;k=b;if(d===undefined){d=c.speed}g.animate(i,d,c.easing,h||function(){n.trigger("onSeek",[a])});return b}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(a,d){e.isFunction(c[d])&&e(b).bind(d,c[d]);b[d]=function(h){h&&e(b).bind(d,h);return b}});if(c.circular){var s=b.getItems().slice(-1).clone().prependTo(g),t=b.getItems().eq(1).clone().appendTo(g);s.add(t).addClass(c.clonedClass);b.onBeforeSeek(function(a,d,h){if(!a.isDefaultPrevented()){if(d==-1){b.seekTo(s,h,function(){b.end(0)});return a.preventDefault()}else{d==b.getSize()&&b.seekTo(t,h,function(){b.begin(0)})}}});b.seekTo(0,0,function(){})}var o=p(f,c.prev).click(function(){b.prev()}),q=p(f,c.next).click(function(){b.next()});if(!c.circular&&b.getSize()>1){b.onBeforeSeek(function(a,d){setTimeout(function(){if(!a.isDefaultPrevented()){o.toggleClass(c.disabledClass,d<=0);q.toggleClass(c.disabledClass,d>=b.getSize()-1)}},1)});c.initialIndex||o.addClass(c.disabledClass)}c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(a,d){if(c.mousewheel){b.move(d<0?1:-1,c.wheelSpeed||50);return false}});if(c.touch){var m={};g[0].ontouchstart=function(a){a=a.touches[0];m.x=a.clientX;m.y=a.clientY};g[0].ontouchmove=function(a){if(a.touches.length==1&&!g.is(":animated")){var d=a.touches[0],h=m.x-d.clientX;d=m.y-d.clientY;b[j&&d>0||!j&&h>0?"next":"prev"]();a.preventDefault()}}}c.keyboard&&e(document).bind("keydown.scrollable",function(a){if(!(!c.keyboard||a.altKey||a.ctrlKey||e(a.target).is(":input"))){if(!(c.keyboard!="static"&&k!=b)){var d=a.keyCode;if(j&&(d==38||d==40)){b.move(d==38?-1:1);return a.preventDefault()}if(!j&&(d==37||d==39)){b.move(d==37?-1:1);return a.preventDefault()}}}});c.initialIndex&&b.seekTo(c.initialIndex,0,function(){})}e.tools=e.tools||{version:"1.2.5"};e.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var k;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c){return c}f=e.extend({},e.tools.scrollable.conf,f);this.each(function(){c=new u(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery);
/*
 * jQuery UI 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(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.6",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);
/*
 * jQuery UI Widget 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(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);
/*
 * jQuery UI Mouse 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *  jquery.ui.widget.js
 */
(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(a._preventClickEvent){a._preventClickEvent=false;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;this._preventClickEvent=a.target==this._mouseDownEvent.target;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.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");b.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");this.range=d([]);if(b.range){if(b.range===true){this.range=d("<div></div>");if(!b.values){b.values=[this._valueMin(),this._valueMin()]}if(b.values.length&&b.values.length!==2){b.values=[b.values[0],b.values[0]]}}else{this.range=d("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(b.range==="min"||b.range==="max"){this.range.addClass("ui-slider-range-"+b.range)}this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(b.values&&b.values.length){for(;d(".ui-slider-handle",this.element).length<b.values.length;){d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled){d(this).blur()}else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!a.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");h=a._start(c,f);if(h===false){return }}break}i=a.options.step;h=a.options.values&&a.options.values.length?(g=a.values(f)):(g=a.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=a._valueMin();break;case d.ui.keyCode.END:g=a._valueMax();break;case d.ui.keyCode.PAGE_UP:g=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h===a._valueMax()){return }g=a._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===a._valueMin()){return }g=a._trimAlignValue(h-i);break}a._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,e,f,h,g;if(b.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(b.range===true&&this.values(1)===b.min){g+=1;f=d(this.handles[g])}if(this._start(a,g)===false){return false}this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();b=f.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-f.width()/2,top:a.pageY-b.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1){b=1}if(b<0){b=0}if(this.orientation==="vertical"){b=1-b}a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var e;if(this.options.values&&this.options.values.length){e=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>e||b===1&&c<e)){c=e}if(c!==this.values(b)){e=this.values();e[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else{if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});a!==false&&this.value(c)}}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return this._value()},values:function(a,b){var c,e,f;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length){if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;f<c.length;f+=1){c[f]=this._trimAlignValue(e[f]);this._change(null,f)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(a):this.value()}}else{return this._values()}},_setOption:function(a,b){var c,e=0;if(d.isArray(this.options.values)){e=this.options.values.length}d.Widget.prototype._setOption.apply(this,arguments);switch(a){case"disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(c=0;c<e;c+=1){this._change(null,c)}this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1){b[c]=this._trimAlignValue(b[c])}return b}},_trimAlignValue:function(a){if(a<this._valueMin()){return this._valueMin()}if(a>this._valueMax()){return this._valueMax()}var b=this.options.step>0?this.options.step:1,c=a%b;a=a-c;if(Math.abs(c)*2>=b){a+=c>0?b:-b}return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=this.options.range,b=this.options,c=this,e=!this._animateOff?b.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length){this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,b.animate);if(c.options.range===true){if(c.orientation==="horizontal"){if(k===0){c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate)}if(k===1){c.range[e?"animate":"css"]({width:f-g+"%"},{queue:false,duration:b.animate})}}else{if(k===0){c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate)}if(k===1){c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:b.animate})}}}g=f})}else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,b.animate);if(a==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},b.animate)}if(a==="max"&&this.orientation==="horizontal"){this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.animate})}if(a==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},b.animate)}if(a==="max"&&this.orientation==="vertical"){this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:b.animate})}}}});d.extend(d.ui.slider,{version:"1.8.6"})})(jQuery);
/*
 * hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
 * <http://cherne.net/brian/resources/jquery.hoverIntent.html>
 * 
 * @param  f  onMouseOver function || An object with configuration options
 * @param  g  onMouseOut function  || Nothing (use configuration options object)
 * @author    Brian Cherne <brian@cherne.net>
 */
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:50,timeout:50};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.mouseover(handleHover).mouseout(handleHover)}})(jQuery);
/*
 * JQuery Plugin: "EqualHeights"
 * by:	Scott Jehl, Todd Parker, Maggie Costello Wachs (http://www.filamentgroup.com)
 *
 * Copyright (c) 2008 Filament Group
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 *
 * Description: Compares the heights or widths of the top-level children of a provided element 
 		and sets their min-height to the tallest height (or width to widest width). Sets in em units 
 		by default if pxToEm() method is available.
 * Dependencies: jQuery library, pxToEm method	(article: 
		http://www.filamentgroup.com/lab/retaining_scalable_interfaces_with_pixel_to_em_conversion/)							  
 * Usage Example: $(element).equalHeights();
  		Optional: to set min-height in px, pass a true argument: $(element).equalHeights(true);
 * Version: 2.0, 08.01.2008
 */
$.fn.equalHeights=function(px){$(this).each(function(){var currentTallest=0;$(this).children().each(function(i){if($(this).height()>currentTallest){currentTallest=$(this).height()}});if($.browser.msie&&$.browser.version==6){$(this).children().css({height:currentTallest})}$(this).children().css({"min-height":currentTallest})});return this};
/*
 * jQuery Roundabout - v1.1
 * http://fredhq.com/projects/roundabout/
 *
 * Moves list-items of enabled ordered and unordered lists long
 * a chosen path. Includes the default "lazySusan" path, that
 * moves items long a spinning turntable.
 *
 * Terms of Use // jQuery Roundabout
 * 
 * Open source under the BSD license
 *
 * Copyright (c) 2010, Fred LeBlanc
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met:
 * 
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   - Redistributions in binary form must reproduce the above 
 *     copyright notice, this list of conditions and the following 
 *     disclaimer in the documentation and/or other materials provided 
 *     with the distribution.
 *   - Neither the name of the author nor the names of its contributors 
 *     may be used to endorse or promote products derived from this 
 *     software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 * POSSIBILITY OF SUCH DAMAGE.
 */
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 : jQuery.roundabout_toFloat(options.bearing % 360), tilt: (typeof options.tilt == "undefined") ? 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.4 : jQuery.roundabout_toFloat(options.minOpacity), maxOpacity: (typeof options.maxOpacity == "undefined") ? 1 : jQuery.roundabout_toFloat(options.maxOpacity), minScale: (typeof options.minScale == "undefined") ? 0.4 : jQuery.roundabout_toFloat(options.minScale), maxScale: (typeof options.maxScale == "undefined") ? 1 : 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 : jQuery.roundabout_toFloat(options.focusBearing % 360), 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 / 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 - (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 - (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 - 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 : 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 : 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 : 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 - delta) < Math.abs(0 - delta)) ? 360 - delta : 0 - delta; delta = (delta > 180) ? -(360 - 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) * Math.PI / 180 }; 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 - 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).toFixed(1) + "px").css("top", ((factors.y * info.midStage.height + info.nudge.height) - factors.height / 2).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($) { if (typeof JVMN == "undefined") { var JVMN = {} } JVMN.IeSniff = function() { var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); while (div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->", all[0]) { } return v > 4 ? v : undef } (); JVMN.mnFlyOut = function() { $("#mnCont li.lv0").hoverIntent(function() { var el = $(this); if (!el.find("a.lv0").hasClass("current")) { el.find("a.lv0").addClass("jsHover") } if (el.find("ul.lv1").length) { el.find("ul.lv1").slideDown("fast") } }, function() { var el = $(this); el.find("a.lv0").removeClass("jsHover"); if (el.find("ul.lv1").length) { el.find("ul.lv1").hide() } }) } (); JVMN.csFlyOut = function() { $("#countrySelect").hoverIntent(function() { var el = $(this); el.find(".countrySelected").addClass("countrySelectedOpen"); el.find("#selectCont").slideDown("fast") }, function() { var el = $(this); el.find(".countrySelected").removeClass("countrySelectedOpen"); el.find("#selectCont").slideUp("fast") }) } (); JVMN.tgFmVal = function() { var defValues = []; $("body").delegate("input[type=text]", "focus", function() { if (!defValues[this.id]) { defValues[this.id] = this.value } if (this.value == defValues[this.id]) { this.value = "" } }); $("body").delegate("input[type=text]", "blur", function() { if (this.value == "") { this.value = defValues[this.id] } }) } (); JVMN.tgBoxes = function() { $(".tgBoxSrd").each(function() { var el = $(this); el.find(".tgContent.tgOpen").css("display", "block"); el.find(".tgEvent").wrapInner('<a href="#"></a>').find("a").click(function(event) { event.preventDefault(); $(this).parent().toggleClass("tgOpen").next().slideToggle("fast", function() { $("#ctHolder > div").css({ height: "auto", "min-height": 0 }) }).toggleClass("tgOpen") }) }) } (); JVMN.trRoundAbout = function() { if ($("#trRoundAbout").length) { var itemsNum = $("#trRoundAbout li").length; $("ul#trRoundAbout").roundabout({ tilt: 1.2, minScale: 0.6, reflect: true, clickToFocus: false }); $("#raSlider").slider({ value: 0, animate: true, min: 0, max: itemsNum - 1, step: 1, slide: function(event, ui) { }, change: function(event, ui) { var sliderPos = $("#raSlider").slider("value"); $("ul#trRoundAbout").roundabout_animateToChild(sliderPos) } }) } } (); JVMN.contentScroller = function() { if ($(".contentScroller").length) { $(".scrollItemsCont").equalHeights(); $(".fbNavCont .fbNavNext , .fbNavCont .fbNavPrev").click(function(event) { event.preventDefault() }); $(".contentScroller").scrollable({ next: ".fbNavCont .fbNavNext", prev: ".fbNavCont .fbNavPrev", circular: true }) } if ($("#hpTeaserCont").length) { $("#hpTeaserCont .ct").equalHeights() } } () })(jQuery);
