slidebar = {	
	nav: function() {
		var timeout = null;

		$('#nav li a').click(function() {
			$link = $(this);
			var ul = next = $link.next();

			if (ul.length > 0) {
				ul.slideToggle(600);

			return false;
			}
		});


		$('#nav li a').show(function() {
			$link = $(this);
			var ul = next = $link.next();

			if (/\/musicvideos\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.musicvideos ul').show();
				}
			}

			if (/\/documentation\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.documentation ul').show();
				}
			}

			if (/\/shorts\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.shorts ul').show();
				}
			}

			if (/\/designstyling\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.designstyling ul').show();
				}
			}

			if (/\/press\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.press ul').show();
				}
			}

			if (/\/info\//.test(window.location)) {
				if (ul.length > 0) {
					$('#nav li.info ul').show();
				}
			}

		});
		
	}
}
