	jQuery().ready(function(){
		// simple Accordion
		 $("a#nav1").click(function(){
		 $('#anchor1').ScrollTo(800).addClass("highlight"); return false;
  });
		 $("a#nav2").click(function(){
		 $('#anchor2').ScrollTo(800).addClass("highlight"); return false;
  });
  		 $("a#nav3").click(function(){
		 $('#anchor3').ScrollTo(800).addClass("highlight"); return false;
  });
		 $("a#nav4").click(function(){
		 $('#anchor4').ScrollTo(800).addClass("highlight"); return false;
  });
  		 $("a#nav_5").click(function(){
		 $('#anchor5').ScrollTo(800).addClass("highlight"); return false;
  });
$(document).ready(function(){
$("ul#menu li a").fadeTo("slow", .8);

$("ul#menu li a").hover(function(){
$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("slow", 0.8); // This should set the opacity back to 60% on mouseout
});
});
jQuery('#nav').Accordion(
{ 
    active: false, 
    alwaysOpen: false
});	 
});
jQuery('#switch select').change(function() {
			jQuery('#nav').activate( this.selectedIndex-1 );
		});
		jQuery('#close').click(function() {
			jQuery('#nav').activate(-1);
		});
		jQuery('#switch2').change(function() {
			jQuery('#nav').activate(this.value);
		});
		

$('.element').hover(function() {
  $(this).addClass('highlight');
}, function() {
  $(this).removeClass('highlight');
});
