// JavaScript Document

function date() {

// Array of day names
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
//Array of month names
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//object
var date = new Date();


//Date Main Code
document.write(dayNames[date.getDay()] + ", " + monthNames[date.getMonth()] + " " + date.getDate() + ", " + date.getFullYear());

}

//-------------------------------Right Side Windows------------

numWindow = 3;
windowLayerName = "windowLayer";
windowName = "window";

function toggleWindow(layerID){
	if (!(navigator.appName == "Netscape" && navigator.appVersion.substr(0, 1) < 5)){
		thisWindowLayer = document.getElementById(windowLayerName + layerID);
		thisWindow = document.getElementById(windowName + layerID);
		if (thisWindowLayer.className == 'menu_subHide'){
			thisWindowLayer.className = 'menu_subShow';
			thisWindow.className = 'right_title';
			thisWindow.style.color = '';
//			thisWindow.style.backgroundColor = '#9FBFDF';
		}
		else {
			thisWindowLayer.className = 'menu_subHide';
			thisWindow.className = 'right_title';
			thisWindow.style.color = '#990000';
//			thisWindow.style.backgroundColor = '';			
		}
	}
}

function minWindow(){
	for(x = 0; x < numWindow; x++){
		theWindowLayer = document.getElementById(windowLayerName + (x + 1));
		theWindow = document.getElementById(windowName + (x + 1));
		theWindowLayer.className = 'menu_subHide';
		theWindow.style.color = '#990000';
	}
}

function maxWindow(){
	for(x = 0; x < numWindow; x++){
		theWindowLayer = document.getElementById(windowLayerName + (x + 1));
		theWindow = document.getElementById(windowName + (x + 1));
		theWindowLayer.className = 'menu_subShow';
		theWindow.style.color = '';
	}
}


