$.urlParam = function(name) {
	var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
	if (!results) {
		return 0;
	}
	return results[1] || 0;
};

function displaySubNavigation() {
	$(".subnavigation").stop().not($(this).children(".subnavigation")).slideUp(10);
	// $(this).children(".subnavigation").slideDown(100);
	$(this).children(".subnavigation").css({
		"width" : "0",
		"display" : "block"
	});
	$(this).children(".subnavigation").animate({
		"width" : "100%"
	}, 10);
	// $("#navigation > ul > li > a").css("font-weight", "normal");
	// $(this).children("a").css("font-weight","bold");
}

function hideSubNavigation() {
	$(".subnavigation").stop().slideUp(10);
	// $("#navigation > ul > li > a").css("font-weight", "normal");
}

$(document).ready(function() {
	// $("#navigation").mouseover(mouseOver);
	$("#navigation > ul > li").hover(function() {
		$(this).children(".subnavigation").css({
			"width" : "0",
			"display" : "block"
		});
		$(this).children(".subnavigation").animate({
			"width" : "100%"
		}, 10);
	}, function() {
		$(this).children(".subnavigation").stop().slideUp(10);
	});
	//$("#navigation").mouseout(hideSubNavigation);
});

