// Dom
$(document).ready(function(){
	
	// Animated menu
	
	//Remove outline from links
	$("#menu li a").click(function(){
		$(this).blur();
	});
	
	//When mouse rolls over
	$("#menu li").mouseover(function(){
		
		if ( $(this).children('a').attr('class') != 'active' )
		{
			
			$(this).stop().animate({width:'203px'},{queue:false, duration:500, easing: 'easeInCirc'})
			
		}
	});
	
	//When mouse is removed
	$("#menu li").mouseout(function(){
		
		if ( $(this).children('a').attr('class') != 'active' )
		{
			$(this).stop().animate({width:'111px'},{queue:false, duration:500, easing: 'easeOutCirc'})
		}
	});

	
	/******************** IMAGE GALLERY ***/
	// select the thumbnails and make them trigger our overlay 
	if ($(".gallery a").length){
		$(".gallery a").overlay({ 
		 
			// each trigger uses the same overlay with the id "gallery" 
			target: '#gallery', 
			// optional exposing effect 
			expose: '#333333'
		 
		// let the gallery plugin do its magic! 
		}).gallery({ 
		 
			// the plugin accepts its own set of configuration options 
			speed: 800 
		});
	}
	/******************** END IMAGE GALLERY ***/
	
}); 


// IE6 PNG Fix
//if (jQuery.browser.msie) { if(parseInt(jQuery.browser.version) == 6) $("img").pngfix(); }

