jQuery(document).ready(function() {
		jQuery(".expandable").hide();
		
		var myFile = document.location.toString();
		
		if (myFile.match('#')) { 
		  var myAnchor = myFile.split('#')[1];		  		  
		  jQuery("#post_" + myAnchor  + "_expandable").show();
		  jQuery("#post_" + myAnchor + "_link").attr('class', 'expand_link_active')
		}
	});
		

function teaser_module_expand(para_Id, link_Id)
{
	if(jQuery("#"+para_Id).css('display') == "none")
	{
		// para is hidden, show it
		jQuery("#"+para_Id).show();
		jQuery("#"+link_Id).attr('class', 'expand_link_active');
	}
	else
	{
		// para is shown, hide it
		jQuery("#"+para_Id).hide();
		jQuery("#"+link_Id).attr('class', 'expand_link');
	}
}

//General scripts running on documnet complete
jQuery(document).ready(function(){
	jQuery("#toggle-sitemap").click(function(){
		jQuery(".sitemap-container").slideToggle("slow");
		jQuery("#toggle-sitemap").toggleClass("highlight");
		return false;
	});
	
	jQuery(".sitemap-header").click(function(){
		jQuery(".sitemap-container").slideToggle("slow");
		jQuery("#toggle-sitemap").toggleClass("highlight");
		return false;
	});
});       
			
