function preload() { 
var a = preload.arguments;
document.imageArray = new Array(a.length);
	for (var n=0 ; n<a.length ; n++)
  	{
    document.imageArray[n] = new Image;
    document.imageArray[n].src = a[n];
}
}

function popwin(href, width, height, left, top) {
	// if left or top args are not a number, center the window
	if(isNaN(left)) {
     left = (screen.width - width) * .5;
	}
	if(isNaN(top)) {
     top = (screen.height - height) * .5;
	}
	//give it a depth so it wont target itself
	strdepth = "popup" + 1;
	// open the window
	var popup = open(href, strdepth, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,width='+width+',height='+height+',left='+left+', top='+top+'');
}
