$(document).ready(function(){
	if ($.browser.msie && $.browser.version > 7) {
		$('.menuItem').hover(function() {
			$(this).stop().animate({
				paddingTop: "20px"
			},200);
		},
		function() {
			$('.menuItem').stop().animate({
				paddingTop: "15px"
			}, 200);
		});
	} else if ($.browser.msie && $.browser.version <= 7) {
		
	} else {
		$('.miniMenu li').corner("5px");
		$('.menuItem').hover(function() {
			$(this).find('div').stop().animate({
				opacity: 1
			},600);
		},
		function() {
			$('.menuItemHover').stop().animate({
				opacity:0
			}, 600);
		});
	}
	
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
	});
	
	$('a[href*=#]').click(function() {
		  if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
		  && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target
			|| $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
			  var targetOffset = $target.offset().top;
			  $('html,body')
			  .animate({scrollTop: targetOffset}, {duration: 1000, easing: 'easeInOutCubic' });
			 return false;
			}
		  }
		});


});