<!--
function ShowDate() {
	var currentTime = new Date()
	var weekday = currentTime.getDay()
	var month = currentTime.getMonth()
	var day = currentTime.getDate()
	var year = currentTime.getFullYear()
	
	switch(weekday) {
		case 0: weekday = "Sunday"; break;
		case 1: weekday = "Monday"; break;
		case 2: weekday = "Tuesday"; break;
		case 3: weekday = "Wednesday"; break;
		case 4: weekday = "Thursday"; break;
		case 5: weekday = "Friday"; break;
		case 6: weekday = "Saturday"; break;
		default: weekday = ""; break;
	}
	
	switch(month) {
		case 0: month = "January"; break;
		case 1: month = "February"; break;
		case 2: month = "March"; break;
		case 3: month = "April"; break;
		case 4: month = "May"; break;
		case 5: month = "June"; break;
		case 6: month = "July"; break;
		case 7: month = "August"; break;
		case 8: month = "September"; break;
		case 9: month = "October"; break;
		case 10: month = "November"; break;
		case 11: month = "December"; break;
		default: month = ""; break;
	}
	
	document.write(weekday + ", " + month + " " + day + ", " + year)
}

var arrTemp = self.location.href.split("?"); 
var picUrl = (arrTemp.length>0)?arrTemp[1]:""; 
var NS = (navigator.appName=="Netscape")?true:false;

function FitPic() { 
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);
	//window.moveTo((screen.width / 2) - (document.images[0].width / 2), (screen.height / 2) - (document.images[0].height / 2));
	self.focus();
 }

function PopupPic(sPicURL) {
	var winProp = 'width=50,height=50,left=200,top=200,scrollbars=0,resizable=1,menubar=no';
	window.open("Popup.asp?"+sPicURL, "", winProp);
}

function Popup(sURL,sName,sWidth,sHeight) {
	var winProp = 'width=' + sWidth + ',height=' + sHeight + ',left=200,top=200,scrollbars=0,resizable=1,menubar=no';
	window.open(sURL, sName, winProp);
}

function FormatPhone(x) {
	var vphone = /^\D*([1-9]\d{2})\D*(\d{3})\D*(\d{4})\D*$/

	if (x.value != 0){
		if(vphone.test(x.value)){
			x.value=x.value.replace(vphone,'($1) $2-$3');
		}
		else {
			alert('Invalid phone number!');
		}
	}
}

//function that shows or hides a layer
function ShowHideLayer(lay) {
    var elem = document.getElementById(lay);

	if (elem.style.display == "") {
		elem.style.display = "none";
	} else {
		elem.style.display = "";
	}
}

// preload ButtonOn Images to improve initial swap time
var aButtons = new Array();

aButtons[0] = new Image();
aButtons[0].src = "Images/nav_home_on_01.png";
aButtons[1] = new Image();
aButtons[1].src = "Images/nav_about_on_01.png";
aButtons[2] = new Image();
aButtons[2].src = "Images/nav_business_on_01.png";
aButtons[3] = new Image();
aButtons[3].src = "Images/nav_industry_on_01.png";
aButtons[4] = new Image();
aButtons[4].src = "Images/nav_contact_on_01.png";
aButtons[5] = new Image();
aButtons[5].src = "Images/subnav_company_on_01.png";
aButtons[6] = new Image();
aButtons[6].src = "Images/subnav_corporate_on_01.png";
aButtons[7] = new Image();
aButtons[7].src = "Images/subnav_structured_on_01.png";
aButtons[8] = new Image();
aButtons[8].src = "Images/subnav_what_we_on_01.png";
aButtons[9] = new Image();
aButtons[9].src = "Images/subnav_business_plan_on_01.png";

// SwapButton is called from the WebMenu OnShow and OnHide events
// state is "on" or "off" and id is the WM.Group ID property
function SwapButton(id, state) {
	if(state == "on")
		eval(id + ".src='../Images/" + id + "_on_01.png'");
	else if(state == "off")
		eval(id + ".src='../Images/" + id + "_01.png'");
}
// -->