// JavaScript Document

var detect = navigator.userAgent.toLowerCase();
var browser,total,thestring;

if (checkIt('msie')) {
	document.write('<link rel="stylesheet" type="text/css" href="CSS/stylesheetIE.css">');
}
else{
	document.write('<link rel="stylesheet" type="text/css" href="CSS/stylesheet.css">');
}
// preload images

MM_reloadPage(true);
	
function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function unHide() {
document.getElementById('loading').style.display = "none";
document.getElementById('homecontainer').style.display = "block";
}
document.write('<p id="loading">Loading ...</p>');

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

