/*jQuery(document).ready(function(){
	//global navigation
	jQuery("#global-nav li a").hover(function(){
		jQuery(this).css({'background': 'transparent url(/images/nav-highlight.png) repeat-x 0 0px;'});
	});
});*/

jQuery(document).ready(function() {
	
	/* sidebar on secondary pages */
	//hide child page
	jQuery('#sidebar ul li.page_item ul').hide();
	//when navigate to a child page show all pages
	jQuery('#sidebar ul li.current_page_item').parent("ul").show();
	//show page list when toggle
	jQuery('#sidebar ul li.active ul').show();
	//show cerrent page's child page
	jQuery('#sidebar ul li.current_page_item ul').show();
	
	jQuery('#sidebar ul li').click(function() { 
		jQuery(this).addClass("active");
		jQuery(this).children('ul').slideToggle("slow"); 
	});
	
});