// mYm global.js 2.2 - by brent@mimoYmima.com - edited April 22, 2008

// Add Print Link to the Page Nav when js is available ~ by Brent Lagerman
function addPgNavLnk() {
	if (!document.getElementById) return false;
	if (!document.getElementById("PageNav")) return false;
	var pgNav = document.getElementById("PageNav");
	var pgNavLnk = document.createElement("a");
	var lnkTxt = document.createTextNode("print");
	pgNavLnk.setAttribute("href", "");
	pgNavLnk.setAttribute("id", "PrintLink");
	pgNavLnk.appendChild(lnkTxt);
	pgNav.appendChild(pgNavLnk);
	pgNavLnk.onclick = function(){
		window.print();
		return false;	
	}
}

// javascript indicator

function JSIndicator() {
	if (!document.getElementById) return false;
	if (!document.getElementById("JSIndicator")) return false;
	var jsBtn = document.getElementById("JSIndicator");
	jsBtn.style.display="none";
}

//jQuery Stuff - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// custom show-hide script in jQuery
$(document).ready(function() {
	// hides stuff with the class of 'Hide' as soon as the DOM is ready
	$('.Hide').hide();
	
	// add the class to make the headings look like links
	$('.Toggle').addClass('MakeLink');
	
	// toggles the Hidden content upon clicking the link 
	$('.Toggle').click(function() {
    	$(this).next().slideToggle('normal');
	});
	
});
