
function showTeachingNotes () {
	if (!document.styleSheets) return;

	//// get all the rules...
	var theRules = new Array();
	if (document.styleSheets[0].cssRules) {
		theRules = document.styleSheets[0].cssRules;
	} else if (document.styleSheets[0].rules) {
		theRules = document.styleSheets[0].rules;
	} else {
        window.alert('returning');
		return;
	}
	/// for each rule...
    for (i=0;i<theRules.length;i++) {
        if (theRules[i].selectorText != null &&
			(theRules[i].selectorText.indexOf('teachingnotes') > -1 ||
			theRules[i].selectorText.indexOf('teachingNotes') > -1 ||
			theRules[i].selectorText.indexOf('teachingDiv') > -1 ||
			theRules[i].selectorText.indexOf('teachingdiv') > -1)
			)
		{
            var current = theRules[i].style.visibility;
			if (current == 'hidden') {
    				theRules[i].style.visibility = 'visible';
    				theRules[i].style.overflow = 'visible';
    				theRules[i].style.width = '100%';
    				theRules[i].style.height = 'auto';
			} else {
    				theRules[i].style.visibility = 'hidden';
    				theRules[i].style.overflow = 'hidden';
    				theRules[i].style.width = '0';
    				theRules[i].style.height = '0';
			}
		}
	}
}


function showClassNotes () {
	if (!document.styleSheets) return;

	//// get all the rules...
	var theRules = new Array();
	if (document.styleSheets[0].cssRules) {
		theRules = document.styleSheets[0].cssRules;
	} else if (document.styleSheets[0].rules) {
		theRules = document.styleSheets[0].rules;
	} else {
		return;
	}
	/// for each rule...
    	for (i=0;i<theRules.length;i++) {
        	if (theRules[i].selectorText != null &&
			( theRules[i].selectorText.indexOf('classNotes') > -1 ||
			 theRules[i].selectorText.indexOf('classnotes') > -1 )
			)
		{
    			var current = theRules[i].style.visibility;
			if (current == 'hidden') {
    				theRules[i].style.visibility = 'visible';
    				theRules[i].style.overflow = 'visible';
    				theRules[i].style.width = '100%';
    				theRules[i].style.height = 'auto';
			} else {
    				theRules[i].style.visibility = 'hidden';
    				theRules[i].style.overflow = 'hidden';
    				theRules[i].style.width = '0';
    				theRules[i].style.height = '0';
			}
		}
	}
}


function showAllNotes () {
	if (!document.styleSheets) return;

	//// get all the rules...
	var theRules = new Array();
	if (document.styleSheets[0].cssRules) {
		theRules = document.styleSheets[0].cssRules;
	} else if (document.styleSheets[0].rules) {
		theRules = document.styleSheets[0].rules;
	} else {
		return;
	}
	/// for each rule...
    	for (i=0;i<theRules.length;i++) {
        	if (theRules[i].selectorText != null &&
			(theRules[i].selectorText.indexOf('teachingNotes') > -1 ||
			theRules[i].selectorText.indexOf('teachingnotes') > -1 ||
			theRules[i].selectorText.indexOf('teachingdiv') > -1 ||
			theRules[i].selectorText.indexOf('classnotes') > -1 ||
			theRules[i].selectorText.indexOf('classNotes') > -1 ||
			theRules[i].selectorText.indexOf('teachingDiv') > -1)
			)
		{
    			var current = theRules[i].style.visibility;
			if (current == 'hidden') {
    				theRules[i].style.visibility = 'visible';
    				theRules[i].style.overflow = 'visible';
    				theRules[i].style.width = '100%';
    				theRules[i].style.height = 'auto';
			} else {
    				theRules[i].style.visibility = 'hidden';
    				theRules[i].style.overflow = 'hidden';
    				theRules[i].style.width = '0';
    				theRules[i].style.height = '0';
			}
		}
	}
}


