$(window).load(function(){
	$('.zoom img').each(function(){
		$(this).hover(function(){
			$(this).stop().animate({opacity:0.5},'slow');
		},
		function(){$(this).stop().animate({opacity:1.0},'slow');
		})
	});
	
});



jQuery(document).ready(function() {	
	$('#sitemap').stop().fadeOut(100,function() {$(this).css('display','block');});
	$('#sitemapinner').css('display','none');
	$('#close').stop().fadeOut(100);

	$('#sitemap').click(function() {
		$('#sitemapout').stop().animate({'height':320},400,'linear',function() {;
		 $('#sitemapinner').stop().fadeIn(100,function() {$(this).css('display','block');});
		 $('html,body').animate({scrollTop: $('#container').innerHeight()}, 1000);
		 $('#close').stop().fadeTo(300,1);
		 $('#sitemap').stop().fadeOut(100,function() {$(this).css('display','none');});
		});
	});
	
	
	$('#close').click(function(e) {
		e.preventDefault();
		$('#close').stop().fadeTo(300,0,function() {
		$('#sitemapinner').stop().fadeOut(100,function() {$(this).css('display','none');});
		$('#sitemapout').stop().animate({'height':0},400,'linear',function() {
		$('#sitemap').stop().fadeIn(100);
		});
		});
	});
		
});



$(document).ready(function(){
		 $('.slider').bind("mouseenter", function() {
						$(this).find('a').eq(0).addClass("active");
					  $(this).find('ul').stop().fadeTo('1000', '1',function() { return false; });
					});
					
					$('.slider').bind('mouseleave',function() {
						$(this).find('a').eq(0).removeClass("active");
						$(this).find('ul').stop().fadeTo('1000', '0', function() { $(this).css('display','none'); return false; });
					});
					
					$('#pixaround').flash({swf:'flash/panorama.swf',height:244,width:726,
					flashvars:{
					 image1: "images/pixaround/panorama.jpg",
					 infinite: 'true',
					 locatorMode: 'off'
					},
					params: {
					  wmode: 'opaque',
					  menu: 'false',
					  scale: 'noScale'
					}
				  });
					
					
}); 


