// JavaScript Document

function divChange (ID, callback, pageLocation) {
	$('.changing_div').hide();
	$(ID).fadeIn(1000, function(){callback;});
	if (pageLocation) document.location.href='#'+pageLocation;
}

function setImg (ID, imgPath) {
	$(ID).attr('src', imgPath);
}

function sitemap(){
	tb_show('MKSE Sitemap', '/sitemap.php?TB_iframe=true&height=450&width=300',null);
}
function contact(){
	document.location.href = "/about-mkse/contact.php";
	//tb_show('MKSE Contact', '/contact.php?TB_iframe=true&height=400&width=600',null);
}
function privacyPolicy(){
	tb_show('MKSE Privacy Policy', '/privacy-policy.html?TB_iframe=true&height=600&width=500',null);
}

$(function(){
		
		$('.level_1').find('li').hover(function(){
			$(this).children('ul.level_2').css({display: 'block'});
		}, function() {
			$(this).children('ul.level_2').css({display: 'none'});
		});
		
	});
