/* Dealer Spike Slider
Some code borrowed from the jQuery UI project, effects core:
/*
 * jQuery UI Effects 1.8.15
 *
 * Copyright 2011, 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/Effects/
 */
(function(d){function g(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,e;if(a&&a.length&&a[0]&&a[a[0]])for(var d=a.length;d--;)c=a[d],typeof a[c]=="string"&&(e=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[e]=a[c]);else for(c in a)typeof a[c]==="string"&&(b[c]=a[c]);return b}function h(a){var b,c;for(b in a)c=a[b],(c==null||d.isFunction(c)||b in j||/scrollbar/.test(b)||!/color/i.test(b)&&isNaN(parseFloat(c)))&&delete a[b];return a}
function i(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}var j={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};d.fn.dss=function(a){var b=this.children("li"),c=b.first().find("h3").first(),e=b.first().find("p").first(),f=c.get(0),k=e.get(0),j=c.attr("class"),r=e.attr("class"),l=h(g.call(f)),m=h(g.call(k)),n,o,p,q;b.find("div").css("opacity",a.boxopacity);c.addClass("expand");f=h(g.call(f));c.attr("class",j);o=i(l,f);
n=i(f,l);e.addClass("expand");c=h(g.call(k));e.attr("class",r);q=i(m,c);p=i(c,m);a.width=b.outerWidth();a.fullWidth=this.width();a.spacing=(a.fullWidth-a.width)/(b.length-1);b.each(function(c,e){d(e).mouseenter(function(){d(this).find("h3").stop().animate(o,a.boxduration);d(this).find("p").stop().animate(q,a.boxduration);b.each(function(b,e){b>c?d(e).stop().animate({left:a.spacing*(b-1)+a.width+"px"},a.duration):d(e).stop().animate({left:a.spacing*b+"px"},a.duration)})}).mouseleave(function(){d(this).find("h3").stop().animate(n,
a.boxduration);d(this).find("p").stop().animate(p,a.boxduration)})});this.mouseleave(a.defaultSlide==-1?function(){b.each(function(c,e){d(e).stop().animate({left:a.fullWidth/b.length*c+"px"},a.duration)})}:function(){d(b.get(a.defaultSlide)).mouseenter()});this.mouseleave()}})(jQuery);

