window.name = "mm";
browser = navigator.appName;
version = parseInt(navigator.appversion)
os = navigator.platform;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
mac = "MacPPC";
	
	if (document.all) //IE4,5
	 document.write('\<link rel=\"stylesheet\" href=\"style_ie.css\"\>');
	else if (document.layers) //NS4
	document.write('\<link rel=\"stylesheet\" href=\"style_nn.css\"\>');
	else if (document.getElementById) //NS6
	 document.write('\<link rel=\"stylesheet\" href=\"style_nn.css\"\>');
	else if (document.images) //NS3,IE4
	 document.write('\<link rel=\"stylesheet\" href=\"style_ie.css\"\>');
	else //NS2,IE3
	document.write('\<link rel=\"stylesheet\" href=\"style_ie.css\"\>');
	
// NS4Bug Fix 					
NS4 = document.layers;
if (NS4) {
	origWidth = innerWidth;
	origHeight = innerHeight;
}
		
	function reDo() {
	if (innerWidth != origWidth || innerHeight != origHeight)
		location.reload();
	}

	if (NS4) onresize = reDo;		


	function openWindow(pPageName,windowName,AvailResize,pWidth,pHeight,pTop,pLeft) {
				window.open(pPageName, windowName,'resizable='+AvailResize+',width='+pWidth+',height='+pHeight+',top='+pTop+',left='+pLeft+',toolbar=no,location=no,scrollbars=yes');
	}

					
//This function can be called by a drop down to autmatically jump to a new URL
//when a new selection is made.
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
 }		

// 1 IMAGE SWAP 
function imgSwap(daImage, daSrc){
	    daImage.src = daSrc;
	}


// 2 IMAGE SWAP 
function img2Swap(nav1, navSrc1, nav2, navSrc2){
	    nav1.src = navSrc1;
		nav2.src = navSrc2;
	}

//DATE
function ShowDate(style) {
	var mydate=new Date()
				var year=mydate.getYear()
				if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))		
					year="19" + year;
				if (navigator.appName == "Netscape")
					year=1900 + year;
				var day=mydate.getDay()
				var month=mydate.getMonth()
				var daym=mydate.getDate()
				if (daym<10)
						daym="0"+daym
				var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
				var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
				document.write("<span class='" +style+ "'> "+montharray[month]+" "+daym+", "+year+"</span>")
}



	
	