$(document).ready(function(){
								   
	$('#widget').innerfade({ speed: 'slow', timeout: 5000, type: 'sequence', containerheight: '170px' });
	
	$(function(){
		$.superbox();
	});
	
	$("#breadCrumb").jBreadCrumb();

	$("#nav ul").hide();
	
	$("#nav li a:has(ul)").each(function() {
		$(this).children().slideUp(400);
	});
	
	$("#nav li.p1:has(ul)").click(function(event){
		if (this == event.target) {
			var current = this;
			$("#nav a:has(ul)").each(function() {
				if (this != current) $(this).children().slideUp(400);
			});
			$("ul:first", $(this)).slideToggle(400);
		}
	});
	
	$("#nav li.p2:has(ul)").click(function(event){
		if (this == event.target) {
			var current = this;
			$("li.p2:has(ul)").each(function() {
				if (this != current) $(this).children().slideUp(400);
			});
			$("li.p3:has(ul)").each(function() {
				if (this != current) $(this).children().slideUp(400);
			});
			$("ul:first", $(this)).slideToggle(400);
		}
	});

});