$(window).load(function(){
		if( window.location.hash == "#thankyou" )
		{
			$('body').prepend('<div id="thankyou" style="position:absolute; top:100px; left:50%; margin-left:-300px;width:600px; height:200px; background-color:#84B53C;border:2px solid white;line-height:180px;font-weight:bold;text-align:center;display:none;z-index:9999;box-shadow:0px 0px 20px #000;-webkit-box-shadow:0px 0px 20px #000;-moz-box-shadow:0px 0px 20px #000;">Thank you! Your inquiry has been received.<br/><span style="font-size:9pt;font-weight:normal;line-height:normal;cursor:pointer;">Click to close</span></div>');
			$('#thankyou').fadeIn()
				.live('click',function(){
					$('#thankyou').fadeOut();
				});
			
		}
		
	//LavaLamp
		var miHeight = $('.menuItemCurrent img').height();
		var miWidth = $('.menuItemCurrent img').width();
		var miPosition = $('.menuItemCurrent').position();
		$('.currentHighlight').css({
			top: miPosition.top + 6,
			left: miPosition.left + 2,
			width: miWidth + 19,
			height: miHeight + 8,
			position: "absolute"
			})
		$('.currentHighlight').cornerz();
		$('.corner_nrm').cornerz();
	
		$('.menuItemNCurrent').hover(function(){
			var oldHeight = $('.currentHighlight').height();
			var oldWidth = $('.currentHighlight').width();
			var oldPosition = $('.currentHighlight').position();
	
			var newHeight = $(this).height();
			var newWidth = $(this).width();
			var newPosition = $(this).position();
	
			$('.currentHighlight').stop().animate({
				left: newPosition.left + 2,
				width: newWidth + 19}, 
				{
				duration: 350,
				easing: 'easeInOutQuint'
				});
		},
		function(){
			$('.currentHighlight').stop().animate({
				left: miPosition.left + 2,
				width: miWidth + 19}, 
				{
				duration: 350,
				easing: 'easeInOutQuint'
				});
		});
	
});



