	//load on start up distributions
	function addLoadEventForDistributions(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function')
			window.onload = func;
		else
		{
			window.onload = function() {
				if (oldonload)
					oldonload();
				func();
			}
		}
	}
	
	//function to load distribution sections into the  animatedcollapse object
	function initalizeDistributionSections ()
	{
		//if animated collapse object is not available then exit
		if (animatedcollapse == null){
			return;
		}
		//get all divs on page
		var divz = document.getElementsByTagName('div');
		
		//go through all div's
		for (var i=0;i<divz.length;i++)
		{
			//if the div's class matches the togglable_distribution_section class we are looking for
			if (divz[i].className == 'togglable_distribution_section')
			{
				//add the id of the object to our animated collapse object list
				animatedcollapse.addDiv(divz[i].id, 'fade=1,height=auto');
			}
		}
		
		//we're done adding all elements to the animated collapse object
		//initialize the object
		animatedcollapse.init();
	}
	
	//load distribution expand/collapse sections on startup
	/*
	addLoadEventForDistributions(  
	      initalizeDistributionSections()
  );
  */
  jQuery(document).ready(function(event) {
    jQuery(document).ready(function() { 
      initalizeDistributionSections()
    }); 
  })  

