// <!--


browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;



if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) {
ns4 = false;
ie4 = true;
ns6 = false;
}
else if (browser_type == "Netscape" && (browser_version >= 4 && browser_version < 5)) {
ns4 = true;
ie4 = false;
ns6 = false;
}
else if (browser_version < 4){
document.write('Your browser is not supported by this website, please upgrade your internet browser');
}

else {
ns6 = true;
ns4 = false;
ie4 = false;
}


if (ns4==true)
{
//location.replace('http://www.uwplatt.edu/disted/textonly/index.html');
window.onresize = window.refresh;
}



function show(id) {
	if (ns4==true) document.layers[id].visibility = "show";
	else if (ie4==true) document.all[id].style.visibility = "visible";
	else if (ns6==true) document.getElementById(id).style.visibility = "visible";

}

function hide(id) {
	if (ns4==true) document.layers[id].visibility = "hide";
	else if (ie4==true) document.all[id].style.visibility = "hidden";
	else if (ns6==true) document.getElementById(id).style.visibility = "hidden";
}



//footer
function footer() {
	

document.write("<p align='center' style='font-size:10px;font-weight:100; text-align=center; line-height: 1em;display:block; width: 100%;'>Copyright &copy 2006, University of Wisconsin - Platteville<br />"+
"&amp; The Board of Regents - University of Wisconsin System"+"<br />Page Maintained By:</font> <a href='mailto:fagers@uwplatt.edu?subject=Distance Learning Web Site'>"+
"<i>S. J. Fager</i></a><br /><br /><a href='http://www.uwplatt.edu/disted/' target='_top'>UWP Distance Education Home</a> | <a href='http://www.uwplatt.edu/' target='_top'>UWP Home</a></p>");
}


//footer optional

function footer2(){
document.write("<tr><td colspan='2' class='tableColor'><p align='center' style='color: #FFFFFF; padding: 5px; font-size:x-small;font-weight:100; text-align=center; line-height: 1em;display:block; width: 100%;'>Copyright &copy 2006, University of Wisconsin - Platteville<br />"+"&amp; The Board of Regents - University of Wisconsin System"+"</p></td></tr></table><br /><p align='center' style='color: #FFFFFF; font-size:x-small;font-weight:100; text-align=center; line-height: 1.5em;display:block; width: 100%;'>Page Maintained By: </font><a style='text-decoration: none;' href='mailto:fagers@uwplatt.edu?subject=Distance Learning Web Site'>"+"<i>S. J. Fager</i></a><br /><a style='text-decoration: none;' href='http://www.uwplatt.edu/disted/' target='_top'>UWP Distance Education Home</a> | <a style='text-decoration: none;'  href='http://www.uwplatt.edu/' target='_top'>UWP Home</a></p>");
}




///////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////////////



function readCookie(cookies) {

	var cookies=document.cookie;
	var startname=cookies.indexOf(name+"=");
	var startvalue=cookies.indexOf("=", startname)+1;
	var endvalue=cookies.indexOf(";",startvalue);
	

	if(endvalue==-1) {
		endvalue=cookies.length;
	}
	var cvalue=cookies.substring(startvalue, endvalue);//alert("cvalue="+ cvalue);
	if (cvalue=='') {
		cvalue='menu';
		}
	 if (cvalue=='default') {
		cvalue='content3';
		}
if (cvalue=='null*') {
		cvalue='registra';
		}
	
	document.write('<form name=frm> <input type=hidden value=');
	document.write(cvalue);
	document.write(' name=crummie></form>');


	var ID=document.frm.crummie.value;
	//alert(document.frm.crummie.value);
	cvalue='';

	return ID,cookies;
}



function assignCookie(cookie) {
var cName=cookie;
	document.cookie="cookie1="+cName+";path=/;expires="

}

function CookieRemove(Cookies) {

	Cookies='';
	document.frm.crummie.value='';
	return Cookies;
	}	 

///////////////////////////////////////////////////////////////

function toggler(id){

if (ie4==true){
  if (document.all[id].style.display == 'none') {
     document.all[id].style.display = '';
  } 
  else {
   document.all[id].style.display = 'none';
  }
	}
else if(ie4!=true && ns4!=true){

  if (document.getElementById(id).style.display == 'none') {
     document.getElementById(id).style.display = '';
  } 
  else if(document.getElementById(id).style.display == ''){
   document.getElementById(id).style.display = 'none';
  }
}
}

// -->