/* jquery.color.js (66%) */
(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);}
fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)
return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];return colors[jQuery.trim(color).toLowerCase()];}
function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))
break;attr="backgroundColor";}while(elem=elem.parentNode);return getRGB(color);};var colors={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);

/* menu/jquery.bgiframe.js (34%) */
jQuery.fn.bgIframe=jQuery.fn.bgiframe=function(){if(!(jQuery.browser.msie&&typeof XMLHttpRequest=='function'))return this;var html='<iframe class="bgiframe" src="javascript:false;document.write(\'\');" tabindex="-1" '
+'style="display:block; position:absolute; '
+'top: expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)  || 0) * -1) + \'px\'); '
+'left:expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth) || 0) * -1) + \'px\'); '
+'z-index:-1; filter:Alpha(Opacity=\'0\'); '
+'width:expression(this.parentNode.offsetWidth + \'px\'); '
+'height:expression(this.parentNode.offsetHeight + \'px\')"/>';return this.each(function(){if(!jQuery('iframe.bgiframe',this)[0])
this.insertBefore(document.createElement(html),this.firstChild);});};

/* menu/jquery.dimensions.js (39%) */
jQuery.fn._height=jQuery.fn.height;jQuery.fn._width=jQuery.fn.width;jQuery.fn.height=function(){if(this[0]==window)
return self.innerHeight||jQuery.boxModel&&document.documentElement.clientHeight||document.body.clientHeight;if(this[0]==document)
return Math.max(document.body.scrollHeight,document.body.offsetHeight);return this._height(arguments[0]);};jQuery.fn.width=function(){if(this[0]==window)
return self.innerWidth||jQuery.boxModel&&document.documentElement.clientWidth||document.body.clientWidth;if(this[0]==document)
return Math.max(document.body.scrollWidth,document.body.offsetWidth);return this._width(arguments[0]);};jQuery.fn.innerHeight=function(){return this[0]==window||this[0]==document?this.height():this.css('display')!='none'?this[0].offsetHeight-(parseInt(this.css("borderTopWidth"))||0)-(parseInt(this.css("borderBottomWidth"))||0):this.height()+(parseInt(this.css("paddingTop"))||0)+(parseInt(this.css("paddingBottom"))||0);};jQuery.fn.innerWidth=function(){return this[0]==window||this[0]==document?this.width():this.css('display')!='none'?this[0].offsetWidth-(parseInt(this.css("borderLeftWidth"))||0)-(parseInt(this.css("borderRightWidth"))||0):this.height()+(parseInt(this.css("paddingLeft"))||0)+(parseInt(this.css("paddingRight"))||0);};jQuery.fn.outerHeight=function(){return this[0]==window||this[0]==document?this.height():this.css('display')!='none'?this[0].offsetHeight:this.height()+(parseInt(this.css("borderTopWidth"))||0)+(parseInt(this.css("borderBottomWidth"))||0)
+(parseInt(this.css("paddingTop"))||0)+(parseInt(this.css("paddingBottom"))||0);};jQuery.fn.outerWidth=function(){return this[0]==window||this[0]==document?this.width():this.css('display')!='none'?this[0].offsetWidth:this.height()+(parseInt(this.css("borderLeftWidth"))||0)+(parseInt(this.css("borderRightWidth"))||0)
+(parseInt(this.css("paddingLeft"))||0)+(parseInt(this.css("paddingRight"))||0);};jQuery.fn.scrollLeft=function(){if(this[0]==window||this[0]==document)
return self.pageXOffset||jQuery.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft;return this[0].scrollLeft;};jQuery.fn.scrollTop=function(){if(this[0]==window||this[0]==document)
return self.pageYOffset||jQuery.boxModel&&document.documentElement.scrollTop||document.body.scrollTop;return this[0].scrollTop;};jQuery.fn.offset=function(options,returnObject){var x=0,y=0,elem=this[0],parent=this[0],op,sl=0,st=0,options=jQuery.extend({margin:true,border:true,padding:false,scroll:true},options||{});do{x+=parent.offsetLeft||0;y+=parent.offsetTop||0;if(jQuery.browser.mozilla||jQuery.browser.msie){var bt=parseInt(jQuery.css(parent,'borderTopWidth'))||0;var bl=parseInt(jQuery.css(parent,'borderLeftWidth'))||0;x+=bl;y+=bt;if(jQuery.browser.mozilla&&parent!=elem&&jQuery.css(parent,'overflow')!='visible'){x+=bl;y+=bt;}}
if(options.scroll){op=parent.offsetParent;do{sl+=parent.scrollLeft||0;st+=parent.scrollTop||0;parent=parent.parentNode;if(jQuery.browser.mozilla&&parent!=elem&&parent!=op&&jQuery.css(parent,'overflow')!='visible'){y+=parseInt(jQuery.css(parent,'borderTopWidth'))||0;x+=parseInt(jQuery.css(parent,'borderLeftWidth'))||0;}}while(parent!=op);}else
parent=parent.offsetParent;if(parent&&(parent.tagName.toLowerCase()=='body'||parent.tagName.toLowerCase()=='html')){if((jQuery.browser.safari||(jQuery.browser.msie&&jQuery.boxModel))&&jQuery.css(parent,'position')!='absolute'){x+=parseInt(jQuery.css(op,'marginLeft'))||0;y+=parseInt(jQuery.css(op,'marginTop'))||0;}
break;}}while(parent);if(!options.margin){x-=parseInt(jQuery.css(elem,'marginLeft'))||0;y-=parseInt(jQuery.css(elem,'marginTop'))||0;}
if(options.border&&(jQuery.browser.safari||jQuery.browser.opera)){x+=parseInt(jQuery.css(elem,'borderLeftWidth'))||0;y+=parseInt(jQuery.css(elem,'borderTopWidth'))||0;}else if(!options.border&&!(jQuery.browser.safari||jQuery.browser.opera)){x-=parseInt(jQuery.css(elem,'borderLeftWidth'))||0;y-=parseInt(jQuery.css(elem,'borderTopWidth'))||0;}
if(options.padding){x+=parseInt(jQuery.css(elem,'paddingLeft'))||0;y+=parseInt(jQuery.css(elem,'paddingTop'))||0;}
if(options.scroll&&jQuery.browser.opera&&jQuery.css(elem,'display')=='inline'){sl-=elem.scrollLeft||0;st-=elem.scrollTop||0;}
var returnValue=options.scroll?{top:y-st,left:x-sl,scrollTop:st,scrollLeft:sl}:{top:y,left:x};if(returnObject){jQuery.extend(returnObject,returnValue);return this;}
else{return returnValue;}};

/* menu/jquery.jdMenu.js (58%) */
(function($){var jdMenu=[];$.fn.jdMenu=function(inSettings){var settings=$.extend({},arguments.callee.defaults,inSettings);return this.each(function(){jdMenu.push(this);$(this).addClass('jd_menu_flag_root');this.$settings=$.extend({},settings,{isVerticalMenu:$(this).is('.jd_menu_vertical')});addEvents(this);});};$.fn.jdMenuShow=function(){return this.each(function(){showMenuLI.apply(this);});};$.fn.jdMenuHide=function(){return this.each(function(){hideMenuUL.apply(this);});};$(window).bind('click',function(){$(jdMenu).find('ul:visible').jdMenuHide();}).bind('unload',function(){$(jdMenu).each(function(){this.$settings=null;});});$.fn.jdMenu.defaults={activateDelay:750,showDelay:150,hideDelay:550,onShow:null,onHideCheck:null,onHide:null,onAnimate:null,onClick:null,offsetX:4,offsetY:2,iframe:$.browser.msie};$.fn.parentsUntil=function(match){var a=[];$(this[0]).parents().each(function(){a.push(this);return!$(this).is(match);});return this.pushStack(a,arguments);};function getSettings(el){return $(el).parents('ul.jd_menu_flag_root')[0].$settings;}
function addEvents(ul){removeEvents(ul);$('> li',ul).hover(hoverOverLI,hoverOutLI).bind('click',itemClick).find('> a.accessible').bind('click',accessibleClick);};function removeEvents(ul){$('> li',ul).unbind('mouseover').unbind('mouseout').unbind('click').find('> a.accessible').unbind('click');};function hoverOverLI(){var cls='jd_menu_hover'+($(this).parent().is('.jd_menu_flag_root')?'_menubar':'');$(this).addClass(cls).find('> a').addClass(cls);if(this.$timer){clearTimeout(this.$timer);}
if($('> ul',this).size()>0){var settings=getSettings(this);var delay=($(this).parents('ul.jd_menu_flag_root').find('ul:visible').size()==0)?settings.activateDelay:settings.showDelay;var t=this;this.$timer=setTimeout(function(){showMenuLI.apply(t);},delay);}};function hoverOutLI(){$(this).removeClass('jd_menu_hover').removeClass('jd_menu_hover_menubar').find('> a').removeClass('jd_menu_hover').removeClass('jd_menu_hover_menubar');if(this.$timer){clearTimeout(this.$timer);}
if($(this).is(':visible')&&$('> ul',this).size()>0){var settings=getSettings(this);var ul=$('> ul',this)[0];this.$timer=setTimeout(function(){hideMenuUL.apply(ul);},settings.hideDelay);}};function showMenuLI(){var ul=$('> ul',this).get(0);if($(ul).is(':visible')){return false;}
if(this.$timer){clearTimeout(this.$timer);}
var settings=getSettings(this);if(settings.onShow!=null&&settings.onShow.apply(this)==false){return false;}
var isRoot=$(this).parent().is('.jd_menu_flag_root');var c='jd_menu_active'+(isRoot?'_menubar':'');$(this).addClass(c).find('> a').addClass(c);if(!isRoot){var c='jd_menu_active'+($(this).parent().parent().parent().is('.jd_menu_flag_root')?'_menubar':'');$(this).parent().parent().addClass(c).find('> a').addClass(c);}
$(this).parent().find('> li > ul:visible').not(ul).each(function(){hideMenuUL.apply(this);});addEvents(ul);var Range=function(x1,x2,y1,y2){this.x1=x1;this.x2=x2;this.y1=y1;this.y2=y2;}
Range.prototype.contains=function(range){return(this.x1<=range.x1&&range.x2<=this.x2)&&(this.y1<=range.y1&&range.y2<=this.y2);}
Range.prototype.transform=function(x,y){return new Range(this.x1+x,this.x2+x,this.y1+y,this.y2+y);}
Range.prototype.nudgeX=function(range){if(this.x1<range.x1){return new Range(range.x1,range.x1+(this.x2-this.x1),this.y1,this.y2);}else if(this.x2>range.x2){return new Range(range.x2-(this.x2-this.x1),range.x2,this.y1,this.y2);}
return this;}
Range.prototype.nudgeY=function(range){if(this.y1<range.y1){return new Range(this.x1,this.x2,range.y1,range.y1+(this.y2-this.y1));}else if(this.y2>range.y2){return new Range(this.x1,this.x2,range.y2-(this.y2-this.y1),range.y2);}
return this;}
var sx=$(window).scrollLeft()
var sy=$(window).scrollTop();var ww=$(window).innerWidth();var wh=$(window).innerHeight();var viewport=new Range(sx,sx+ww,sy,sy+wh);$(ul).css({visibility:'hidden',left:0,top:0}).show();var menuWidth=$(ul).outerWidth();var menuHeight=$(ul).outerHeight();var tp=$(this).parent();var thisWidth=tp.outerWidth();var thisBorderWidth=parseInt(tp.css('borderLeftWidth'))+parseInt(tp.css('borderRightWidth'));var thisHeight=$(this).outerHeight();var thisOffset=$(this).offset({border:false});$(ul).hide().css({visibility:''});var position=[];position[0]=new Range(thisOffset.left,thisOffset.left+menuWidth,thisOffset.top+thisHeight,thisOffset.top+thisHeight+menuHeight);position[1]=new Range((thisOffset.left+thisWidth)-menuWidth,thisOffset.left+thisWidth,position[0].y1,position[0].y2);position[2]=position[0].nudgeX(viewport);position[3]=new Range(thisOffset.left+thisWidth-thisBorderWidth,thisOffset.left+thisWidth-thisBorderWidth+menuWidth,thisOffset.top,thisOffset.top+menuHeight);position[4]=new Range(position[3].x1,position[3].x2,position[0].y1-menuHeight,position[0].y1);position[5]=position[3].nudgeY(viewport);position[6]=new Range(thisOffset.left,thisOffset.left+menuWidth,thisOffset.top-menuHeight,thisOffset.top);position[7]=new Range((thisOffset.left+thisWidth)-menuWidth,thisOffset.left+thisWidth,position[6].y1,position[6].y2);position[8]=position[6].nudgeX(viewport);position[9]=new Range(thisOffset.left-menuWidth,thisOffset.left,position[3].y1,position[3].y2);position[10]=new Range(position[9].x1,position[9].x2,position[4].y1+thisHeight-menuHeight,position[4].y1+thisHeight);position[11]=position[10].nudgeY(viewport);var order=[];if($(this).parent().is('.jd_menu_flag_root')&&!settings.isVerticalMenu){order=[0,1,2,6,7,8,5,11];}else{order=[3,4,5,9,10,11,0,1,2,6,7,8];}
var pos=order[0];for(var i=0,j=order.length;i<j;i++){if(viewport.contains(position[order[i]])){pos=order[i];break;}}
var menuPosition=position[pos];$(this).add($(this).parents()).each(function(){if($(this).css('position')=='absolute'){var abs=$(this).offset();menuPosition=menuPosition.transform(-abs.left,-abs.top);return false;}});switch(pos){case 3:menuPosition.y1+=settings.offsetY;case 4:menuPosition.x1-=settings.offsetX;break;case 9:menuPosition.y1+=settings.offsetY;case 10:menuPosition.x1+=settings.offsetX;break;}
if(settings.iframe){$(ul).bgiframe();}
if(settings.onAnimate){$(ul).css({left:menuPosition.x1,top:menuPosition.y1});settings.onAnimate.apply(ul,[true]);}else{$(ul).css({left:menuPosition.x1,top:menuPosition.y1}).show();}
return true;}
function hideMenuUL(recurse){if(!$(this).is(':visible')){return false;}
var settings=getSettings(this);if(settings.onHideCheck!=null&&settings.onHideCheck.apply(this)==false){return false;}
$('> li ul:visible',this).each(function(){hideMenuUL.apply(this,[false]);});if($(this).is('.jd_menu_flag_root')){return false;}
var elms=$('> li',this).add($(this).parent());elms.removeClass('jd_menu_hover').removeClass('jd_menu_hover_menubar').removeClass('jd_menu_active').removeClass('jd_menu_active_menubar').find('> a').removeClass('jd_menu_hover').removeClass('jd_menu_hover_menubar').removeClass('jd_menu_active').removeClass('jd_menu_active_menubar');removeEvents(this);$(this).each(function(){if(settings.onAnimate!=null){settings.onAnimate.apply(this,[false]);}else{$(this).hide();}}).find('> .bgiframe').remove();if(settings.onHide!=null){settings.onHide.apply(this);}
if(recurse==true){$(this).parentsUntil('ul.jd_menu_flag_root').removeClass('jd_menu_hover').removeClass('jd_menu_hover_menubar').not('.jd_menu_flag_root').filter('ul').each(function(){hideMenuUL.apply(this,[false]);});}
return true;}
function accessibleClick(e){if($(this).is('.accessible')){e.preventDefault();}}
function itemClick(e){e.stopPropagation();var settings=getSettings(this);if(settings.onClick!=null&&settings.onClick.apply(this)==false){return false;}
if($('> ul',this).size()>0){showMenuLI.apply(this);}else{if(e.target==this){var link=$('> a',e.target).not('.accessible');if(link.size()>0){var a=link.get(0);if(!a.onclick){window.open(a.href,a.target||'_self');}else{$(a).click();}}}
hideMenuUL.apply($(this).parent(),[true]);}}})(jQuery);