/* 

Author: dan thornbury

*/


	$(document).ready(function(){
		
		//$('#main').fadeIn('slow');            
      	//$('footer').fadeIn(3000); 
		$('.jcarousel').jcarousel({
			vertical: true,
			scroll: 2
		});
		
		// hide the project's content
		// hide it AFTER the carousel is built, otherwise it won't build properly
		$('a.project').next('div').hide();
		
		// The slide toggle ruins the gallery in IE6+7
		if($.browser.msie && ($.browser.version=="6.0" || $.browser.version=="7.0")) { 
		
			$('a.project').click(function() {
				$(this).next('div').toggle();
				//$.scrollTo(this, );
			});
		
		} else { 
		
			$('a.project').click(function() {
				$(this).next('div').slideToggle();
				//$.scrollTo(this, );
			});
		
		}
		
	});



	
	var navDuration = 150; //time in miliseconds
	
	$('#menu-main-menu li.menu-item a').hover(function() {
	
			if(!($(this).hasClass('current-menu-item'))) 
				$(this).animate({ width : '100px' }, navDuration);    
			
			//$('header').css('border-bottom', '25px solid #79858F');
			
		}, function() {
		
			// $('header').css('border-bottom', '25px solid #616161');
		
			if(!($(this).hasClass('current-menu-item'))) 
				$(this).animate({ width : "80px" }, navDuration);
	
	
	});
	

