
/* display year */
var date = new Date();
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;

function centeredPopUpWindow(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// random page images
/* var theImages = new Array()

theImages[0] = 'main-photo-1.jpg'
theImages[1] = 'main-photo-2.jpg'
theImages[2] = 'main-photo-3.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="img/home/'+theImages[whichImage]+'" alt="Weyland Capital Management, LLC" />');
} */ 