$(document).ready(function()
{
	var images = [
		"images/bg.jpg",
		"images/bg-2.jpg",
		"images/bg-3.jpg",
		"images/bg-4.jpg",
		"images/bg-5.jpg",
		"images/bg-6.jpg",
		"images/bg-7.jpg"
	];
	
	$("img.random").attr("src", images[Math.floor(Math.random()*7)]);
	
	if ($.browser.msie && $.browser.version == '6.0')
	{
		$('.bg').remove();
		$(document).pngFix();
	}
	else
	{
		$('.bg').maxImage({
			isBackground: true,
			verticalAlign: 'top',
			horizontalAlign: 'left',
			maxAtOrigImageSize: true
		});
		$('html').css('overflow-y', 'auto');
		$('html').css('overflow-x', 'auto');
	}
	
	$(".activateDropdownAnimation a:first").click(function()
	{
		$(this).parent().find("ul:first").slideToggle(500);
		
		return false;
	});
});
