function setStylesheet(css_title)
{
	var style_links = document.getElementsByTagName("link");
	for (i = 0; i < style_links.length; i++) {
		var this_style = style_links[i];
		if (this_style.getAttribute("title") == css_title) {
			this_style.disabled = false;}
		else { this_style.disabled = true; }
	}
}

function sniffBrowser()
{
	var browser_type = navigator.userAgent;

	if (browser_type.indexOf('Gecko') > -1) {
		setStylesheet("css2+");
		}
	else if (browser_type.indexOf('Safari') > -1) {
		setStylesheet("css2+");
		}
	else {
		setStylesheet("default");
	}
}


function quickSelect(the_page)
{
	top.sidebar.location = the_page + "_sidebar.htm";
	top.content.location = "pages/" + the_page + "_001.htm";
	top.banner.combo_form.combo_select.options[0].selected = true;
}

function changePage(the_page)
{
	top.sidebar.location = "../" + the_page + "_sidebar.htm";
	top.content.location = the_page + "_001.htm";
}

function altQuickSelect(the_page)
{
	top.sidebar.location = the_page + "_sidebar.htm";
	top.content.location = "pages/" + the_page + "_001.htm";
	top.banner.combo_form.combo_select.selectedIndex = 0;
}


function popupNote(the_url, the_name)
{
	var the_window = window.open(the_url, 'notes', 'scrollbars,resizable,height=200,width=400')
}




var info_display = false;

function toggleInfo(item_id) {

	var the_item

if (info_display == false) {
	if (window.document.getElementById) {
		the_item = window.document.getElementById(item_id).style;
	} else if (window.document.all)	{
		the_item = window.document.all.item_id.style;
	} else if (document.layers) {
		the_item = window.document.item_id;
		return;
	}
	
	the_item.display = "block";
	info_display = true;
	}
	
else {
	if (window.document.getElementById) {
		the_item = window.document.getElementById(item_id).style;
	} else if (window.document.all)	{
		the_item = window.document.all.item_id.style;
	} else if (document.layers) {
		the_item = window.document.item_id;
		return;
	}
	
	the_item.display = "none";
	info_display = false;
	}
}



var help_display = false;

function toggleHelp(item_id) {

	var the_item

if (help_display == false) {
	if (window.document.getElementById) {
		the_item = window.document.getElementById(item_id).style;
	} else if (window.document.all)	{
		the_item = window.document.all.item_id.style;
	} else if (document.layers) {
		the_item = window.document.item_id;
		return;
	}
	
	the_item.display = "block";
	help_display = true;
	}
	
else {
	if (window.document.getElementById) {
		the_item = window.document.getElementById(item_id).style;
	} else if (window.document.all)	{
		the_item = window.document.all.item_id.style;
	} else if (document.layers) {
		the_item = window.document.item_id;
		return;
	}
	
	the_item.display = "none";
	help_display = false;
	}
}

