<!--
/********************************************************
 * SCRIPT NAME:  blurb.js				*
 * PURPOSE:      JAVASCRIPT FUNCTIONS FOR DISPLAYING	*
 *               OR HIDING PARAGRAPH BLURBS		*
 * AUTHOR:       ANTHONY SURALTA			*
 * CREATED:      APRIL 5, 2000				*
 ********************************************************/


// BROWSER AND OS CHECK 

	var sAgent   = navigator.userAgent
	var bIs95NT  = sAgent.indexOf("Windows 95") > -1 || sAgent.indexOf("Windows NT") > -1 || sAgent.indexOf("Win32") > -1 || sAgent.indexOf("Windows 98") > -1 || sAgent.indexOf("Windows 2000") > -1
	var bIsIE4   = sAgent.indexOf("IE 4") > -1 || sAgent.indexOf("IE 5") > -1
	var bIsIE432 = bIs95NT && bIsIE4



// DEFINE GLOBAL VARIABLES

	document.onclick     = doDocumentOnClick;
	document.onmouseover = doDocumentOnMouseOver;
	document.onmouseout  = doDocumentOnMouseOut;


  
// IF bIsIE432 IS TRUE, SET DISPLAY OF BLURBS TO NONE.
// ADD A STYLE RULE TO SET clsBlurb's DISPLAY TO "NONE"

	if (bIsIE4) {
		document.styleSheets[0].addRule(".clsBlurb","display:none;")
	}



// COLLAPSE OR EXPAND PARAGRAPHS

function collapseBlurbs() {
	if (bIsIE432) {
		for(i=0; i<document.all.length; i++) {
			if (document.all(i).id.indexOf('idBlurb') != -1)
				document.all(i).style.display = 'none';
		}
	}
}




// IF bIsIE432 IS TRUE, FIND OUT WHICH BLURB IS AFFECTED ONCLICK. 
// IF THE BLURB'S DISPLAY IS NONE, DISPLAY BLURB. 
// IF THE BLURB IS DISPLAYING, SET IT TO NOT DISPLAY.

function doDocumentOnClick() {
	if (bIsIE432) {
		var eSrc = window.event.srcElement;
		if (eSrc.className == "clsExpandToPrint") {
			for(i=0; i<document.all.length; i++) {
				if (document.all(i).id.indexOf('idBlurb') != -1)
					document.all(i).style.display = 'block';
				}
			}

			if (eSrc.className == "clsUndoExpand") {
				collapseBlurbs()   
			}

			if (eSrc.className == "clsHeader") {
				var sId = "idBlurb" + eSrc.id.substring(eSrc.id.length-2,eSrc.id.length);
				if (document.all(sId).style.display == "block") {
					document.all(sId).style.display = "none";
				}
			else {
				document.all(sId).style.display = "block";
			}
		}
		window.event.cancelBubble = true;
	}
}  


// CHANGE HEADLINE COLOR ONMOUSEOVER

function doDocumentOnMouseOver() {
	var eSrc = window.event.srcElement;
	if (eSrc.className == "clsHeader") {
		document.all(eSrc.id).style.color= "#6666FF"
	}
}



// CHANGE HEADLINE COLOR ONMOUSEOUT

function doDocumentOnMouseOut() {
	var eSrc = window.event.srcElement;
	if (eSrc.className == "clsHeader") {
		document.all(eSrc.id).style.color= "#000000"
	}
}

//-->

