browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) { roll = 'true'; }
else { roll = 'false'; }

if (roll == 'true') {

var imglist = new Array (
"images/pix.gif",
"images/pix_dgray.gif",
"images/pix_lgray.gif",
"images/pix_white.gif"
);
var imgs = new Array();

var count;
if (document.images)
 for (count=0; count<imglist.length; count++)
  {imgs[count]=new Image(); imgs[count].src=imglist[count];}
}

function msover1(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
function msout1(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } }
function msclick1(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } }

function openWin(url, name, w, h) {
    popupWin = window.open(url, name, '' + 'width=' + w + ', height=' + h);
}

function navChange(formName, popupName, target) {
	var popup = document[formName].elements[popupName];
	if (popup.options[popup.selectedIndex].value != "") {
		window.open(popup.options[popup.selectedIndex].value, target);
		popup.selectedIndex=0;
	}
}

function formatDate()
{
	var strFormatDate;
	var strRawDate;
	var strRawYear;
	var strValidYear;

	// Month name lookup array
	astrMonthNames = new Array('January','February','March','April','May','June','July','August','September','October','November','December')
	
	// get the system date 
	datRawDate = new Date();

	// Check and fix the year because Netscape sucks and interprets 2000 as 100
	strRawYear = datRawDate.getYear();
	strValidYear = strRawYear;

	if ( 2000 < strRawYear <= 100 ) 
	{
		// pull off the last two digits and append them to a '20', this should work fine until the year 2100
		var strTwoDigitYear;
		strRawYear =  "" + strRawYear;
		strTwoDigitYear = strRawYear.substring( (strRawYear.length - 2), strRawYear.length );
		strValidYear = "20" + strTwoDigitYear;
	}

	// format the date for return
	strFormatDate = astrMonthNames[datRawDate.getMonth()] + " " + datRawDate.getDate() + ", " + strValidYear;

	return strFormatDate;
}

/*
Highlight Table Cells Script
*/

function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor)
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement))
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}

//Suppress all error messages.
window.onerror=null


/*
Bread Crumbs
*/

var strBreadCrumbs = '   ';

function addItem(strText,strLink){

strBreadCrumbs += '<a href="'+ strLink + '" class="BreadCrumbs">' + strText + '</a> &gt; ';
}

function createBreadCrumbs(){
	strBreadCrumbs += ''
	document.write(strBreadCrumbs);
}
