// JavaScript Document
// Tab Nav Hover

<!--//--><![CDATA[//><!--

//sfHover = function() {
//	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
//	for (var i=0; i<sfEls.length; i++) {
//		sfEls[i].onmouseover=function() {
//			this.className+=" sfhover";
//		}
//		sfEls[i].onmouseout=function() {
//			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
//		}
//	}
//}
//if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

// style sheet numbers
var tmpcss = document.cookie.search("style=");

var cssCurrent = "";
if (tmpcss == -1) {
	cssCurrent = "";
} else {
	cssCurrent = document.cookie.charAt(document.cookie.search("style=") + 6);
}


var next="";
var showBtns="<a href=\"javascript: document.cookie='style=1'; window.location.reload();\"><img src=\"imgs/icons/font_switcher.gif\" alt=\"Change Font Size\" border=\"0\" title=\"Change Font Size\" /></a>";
if (cssCurrent==""){
    next = "1";
	showBtns="<a href=\"javascript: document.cookie='style=" +next+ "'; window.location.reload();\"><img src=\"imgs/icons/font_switcher.gif\" alt=\"Change Font Size\" border=\"0\" title=\"Change Font Size\" /></a>";
}else if (cssCurrent=="1"){
	next = "2";
	showBtns="<a href=\"javascript: document.cookie='style=" +next+ "'; window.location.reload();\"><img src=\"imgs/icons/font_switcher.gif\" alt=\"Change Font Size\" border=\"0\" title=\"Change Font Size\" /></a>";
}else if (cssCurrent=="2"){
	next = "";
	showBtns="<a href=\"javascript: document.cookie='style=" +next+ "'; window.location.reload();\"><img src=\"imgs/icons/font_switcher.gif\" alt=\"Change Font Size\" border=\"0\" title=\"Change Font Size\" /></a>";
}

var StyleFile = "style" + cssCurrent + ".css";


document.writeln('<link rel="stylesheet" type="text/css" media="screen" href="global/css/' + StyleFile + '">');
function reloadLink() {document.write(showBtns);}