/*
 *
 *	@copyright:___________2010, Trost
 *	@link:________________http://www.autoauto.de
 *	@author:______________Jung v. Matt/Neckar
 *	@projectDescription:__global plugins/functions
 *
 *	@version:_____________1.0
 * 	@revision:____________$Revision: 329 $
 * 	@lastmodified:________$Date: 2010-11-17 16:37:38 +0100 (Mi, 17 Nov 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);
/*
 * 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 }); $("#ctHolder").equalHeights() }).toggleClass("tgOpen") }) }) } (); $("#ctHolder").equalHeights(); JVMN.trRoundAbout = function() { if ($("#trRoundAbout").length) { $("ul#trRoundAbout").roundabout({ tilt: 1.2, minScale: 0.6, btnNext: "#raNext", btnPrev: "#raPrev", reflect: true }) } } (); 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);
