;
if (servername == null){
	var servername="";
}

//increases and decreases the text size by switching style sheets
var typeState = "0";
//var ssName = servername + "/css/smstyle.css";
var ssName = servername + "/css/style_hcp.css";
typeCookie = document.cookie;
strBegin = typeCookie.indexOf("largeFonts=");
if (strBegin >= 0){
	typePref = typeCookie.substring((strBegin + 11), (strBegin + 12));
	if (typePref == "1"){
		ssName = servername + "/css/style_hcp_small.css";
		typeState = "1";
   	}	
	else if(typePref == "2"){
		ssName = servername + "/css/style_hcp_large.css";
		typeState = "2";
	}
}
else{
   document.cookie = "largeFonts=0;path=/";
}
document.write('<link href="'+ssName+'" rel="stylesheet" type="text/css">');
//increases the text size by switching style sheets
function increaseSizeBiggest(){
	ssName = servername + "/css/style_hcp_large.css";
	typeState = "2";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
	//this.style.textDecoration="underline";
}
//increases the text size by switching style sheets
function increaseFontSize(){
	ssName = servername + "/css/style_hcp.css";
	typeState = "0";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
}
//decreases the text size by switching style sheets
function decreaseFontSize(){
	ssName = servername + "/css/style_hcp_small.css";
	typeState = "1";
	document.cookie = "largeFonts="+typeState+";path=/";
	document.location.reload();
}
