// JavaScript Document
$(document).ready(function() {

		$('#subnav li:first').addClass('active');

		//MAIN CONTENT SCROLL
	 	$("#subnav li a").click(function() {
	 	var goLeft = ($(this).attr('rel') * 730) * -1;
	 	$('#slider').animate({ left: goLeft }, {duration: 1500, easing: "easeInOutQuad"});
	
		 //update highlighted nav
	 	$('#subnav li.active').removeClass('active');
	 	$(this).parent().addClass('active');
		 return false;
	 });
		
		// second simple Accordion with special markup
		//jQuery('#submain').Accordion({
//		active: false,
//		header: '.head',
//		navigation: true,
//		event: 'click',
//		autoheight: true,
//		//animated: 'easeslide'
//		});
		
		// Initialize history plugin.
	 	// The callback is called at once by present location.hash.
	 	//$.historyInit(pageload);

		// set onlick event for buttons
		//$("a[@rel='history']").click(function(){
//		//
//		var hash = this.href;
//		hash = hash.replace(/^.*#/, '');
//		// moves to a new page.
//		// pageload is called at once.
//		$.historyLoad(hash);
//		return false;
//		});

});