// perform JavaScript after the document is scriptable.
$(function() {

	// TABS
	$("ul.tabs").tabs("div#content", {effect: 'ajax'}).history();
	
	// ABOUT
	$("#nav_about a").click(function() {
	
		$('body').animate({backgroundColor: '#f9f2f0'},{duration:1000});
	
      	$('img.gallery').hide().fadeIn(2000);
	
	});
	// -- end ABOUT
	
	// COLLECTIONS
	$("#nav_collections a").click(function() {
	
		$('body').animate({backgroundColor: '#fbf3ff'},{duration:1000});
	
		$('#collections img').hide().fadeIn(2000);
	
	});
	// -- end COLLECTIONS
	
	// NEWS
	$("#nav_news a").click(function() {
		
		$('body').animate({backgroundColor: '#f2f6ff'},{duration:1000});
	
	});
	// -- end NEWS
	
	// PRESS
	$("#nav_press a").click(function() {
	
		$('#press img').hide().fadeIn(2000);
	
		$('body').animate({backgroundColor: '#fef2f9'},{duration:1000});
	
	});
	// -- end PRESS
	
	// HB ELECTRONICS
	$("#nav_hb_electronics a").click(function() {
	
		$('#hb_electronics img').hide().fadeIn(2000);
	
		$('body').animate({backgroundColor: '#fffff4'},{duration:1000});
	
	});
	// -- end HB ELECTRONICS
	
	// LINKS
	$("#nav_links a").click(function() {
	
		$('#links img').hide().fadeIn(2000);
	
		$('body').animate({backgroundColor: '#eeffff'},{duration:1000});
	
	
	});
	// -- end LINKS
	
	// CONTACT
	$("#nav_contact a").click(function() {
	
		$('body').animate({backgroundColor: '#faf3f1'},{duration:1000});
	
	});
	// -- end CONTACT
	
});  