(function($){
	$.fn.jMenu = function(){		
		$this=$(this);
		widthOpen=486;
		selected='selected';
		e = this.find('>li>a');

		$.fn.close = function(){	
			this.animate({width:163}).removeClass(selected);
		}
		$.fn.open = function(){
			this.animate({width:widthOpen}).addClass(selected);
		}

		return e.each(function(){
			$(this).bind('click', function(){
				thisSel = $(this).parent().css('width')=='486px';
				oSel = $this.find('.selected ul');
				if(oSel.length)	oSel.parent().close();
				if(!thisSel) $(this).parent().open();
				return false;
			});
		});
	}
		
	//Auto-run 
  $(function(){ $('#nav2').jMenu(); });	
})(jQuery);

$(function() {

		$("#acc1").accordion({
			active:true,
			alwaysOpen:true,
			autoheight:false
		});
		$("#acc2").accordion({
			active:true,
			alwaysOpen:true,
			autoheight:false
		});
		$("#acc3").accordion({
			active:true,
			alwaysOpen:true,
			autoheight:false
		});
		
		
	});
