$(window).load(function(){
	/*
	$('#navSide > ul > li').hover(function(){
		if(!$(this).find('a').hasClass('active')){
			$(this).find('ul').css({ 'display':'none' });
		}
		return false;
	}, function(){
		if($(this).find('a').hasClass('active')){
			$(this).find('ul').css({ 'display':'block' });
		}
		return false;
	});
	*/
	$('#navSide > ul > .current_page_parent').find("a").addClass('active');
	$('#navSide > ul > .current_page_parent').hover();
	
	$('#navSide > ul > li > a').click(function(){
		$('#navSide > ul > li > a').not(this).removeClass("active").parent().find("ul").hide(200);
		$(this).toggleClass("active");
		$(this).parent().find('ul').toggle(200);
		return false;
	});
	$("#header > .background").css({ opacity: 0.8 });
	$("#header").slideshow({
		interval: 5,
		transition: 2
	});
	
	$('.gallery a').lightBox();
});

