$(document).ready(
function()
{
	$('#menu li').bind('click', function(event)
	{
		event.stopPropagation();
		window.location.href = $(this).children('a').attr('href');
	});
	
	$('#menu div.submenu li').bind('click', function()
	{
		event.stopPropagation();
		window.location.href = $(this).children('a').attr('href');
	});
	
	$('.hasSubmenu').bind('mouseenter mouseleave', function()
	{
		var submenu = $(this).children('.submenu');
		
		submenu.fadeIn(200, function(){});
	});
	
	$('.hasSubmenu').bind('mouseleave', function()
	{
		var submenu = $(this).children('.submenu');
		
		submenu.fadeOut(350, function(){});
	});
	
	if ($('#slideshow'))
	{
		var s = $('div#slideshow');
		
		s.cycle(
		{
			fx: 'fade',
			timeout: 5000,
			speed: 2000
		});
	}

	$('a.openWindow').bind('click', function(){ window.open($(this).attr('href')); return false;} );

	if ($.browser.msie && $.browser.version < 8)
	{
		$(function()
		{
			var zIndexNumber = 1000;
			$('div').each(function()
			{
				$(this).css('zIndex', zIndexNumber);
				zIndexNumber -= 10;
			});
		});
	}

	if (window.setMap)
	{
		setMap();
	}
});
							

