(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}if(g.start){g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(function(a){a.fn.lavaLamp=function(b){b=a.extend({fx:"linear",speed:500,click:function(){}},b||{});return this.each(function(e){var g=a(this),f=function(){},i=a('<li class="back"><div class="left"></div></li>').appendTo(g),j=a(">li",this),h=a("li.current",this)[0]||a(j[0]).addClass("current")[0];j.not(".back").hover(function(){c(this)},f);a(this).hover(f,function(){c(h)});j.click(function(k){d(this);return b.click.apply(this,[k,this])});d(h);function d(k){var l=a(".currentMenu");k=l.length>0?l[0]:k;i.css({left:k.offsetLeft+"px",width:k.offsetWidth+"px"});h=k}function c(k){i.each(function(){a.dequeue(this,"fx")}).animate({width:k.offsetWidth,left:k.offsetLeft},b.speed,b.fx)}if(e==0){a(window).resize(function(){i.css({width:h.offsetWidth,left:h.offsetLeft})})}})}})(jQuery);jQuery.easing={easein:function(e,f,a,h,g){return h*(f/=g)*f+a},easeinout:function(f,h,e,j,i){if(h<i/2){return 2*j*h*h/(i*i)+e}var g=h-i/2;return -2*j*g*g/(i*i)+2*j*g/i+j/2+e},easeout:function(e,f,a,h,g){return -h*f*f/(g*g)+2*h*f/g+a},expoin:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}return g*(Math.exp(Math.log(j)/i*h))+e},expoout:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}return g*(-Math.exp(-Math.log(j)/i*(h-i))+j+1)+e},expoinout:function(f,h,e,j,i){var g=1;if(j<0){g*=-1;j*=-1}if(h<i/2){return g*(Math.exp(Math.log(j/2)/(i/2)*h))+e}return g*(-Math.exp(-2*Math.log(j/2)/i*(h-i))+j+1)+e},bouncein:function(e,f,a,h,g){return h-jQuery.easing.bounceout(e,g-f,0,h,g)+a},bounceout:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},bounceinout:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.bouncein(e,f*2,0,h,g)*0.5+a}return jQuery.easing.bounceout(e,f*2-g,0,h,g)*0.5+h*0.5+a},elasin:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},elasout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},elasinout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},backin:function(e,f,a,i,h){var g=1.70158;return i*(f/=h)*f*((g+1)*f-g)+a},backout:function(e,f,a,i,h){var g=1.70158;return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},backinout:function(e,f,a,i,h){var g=1.70158;if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},linear:function(e,f,a,h,g){return h*f/g+a}};$(document).ready(function(){jQuery(function(){var a=jQuery;a.fn.retarder=function(b,d){var c=this;if(c.length){if(c[0]._timer_){clearTimeout(c[0]._timer_)}c[0]._timer_=setTimeout(function(){d(c)},b)}return this};a("ul ul","#menu").css({display:"none",left:-2});a("li","#menu").hover(function(){var b=a("ul:first",this);a("span",b).css("color","rgb(169,169,169)");if(b.length){if(!b[0].wid){b[0].wid=b.width();b[0].hei=b.height()}b.css({width:0,height:0,overflow:"hidden",display:"block"}).retarder(100,function(c){c.animate({width:b[0].wid,height:b[0].hei},{duration:300,complete:function(){b.css("overflow","visible")}})})}},function(){var c=a("ul:first",this);if(c.length){var b={display:"none",width:c[0].wid,height:c[0].hei};c.stop().css("overflow","hidden").retarder(50,function(d){d.animate({width:0,height:0},{duration:100,complete:function(){a(this).css(b)}})})}});a("#menu ul.menu").lavaLamp({fx:"backout",speed:800});if(!(a.browser.msie&&a.browser.version.substr(0,1)=="6")){a("ul ul a span","#menu").css("color","rgb(169,169,169)").hover(function(){a(this).animate({color:"rgb(255,255,255)"},500)},function(){a(this).animate({color:"rgb(169,169,169)"},200)})}})});
