//----------------------------------------------------------------------------------------------------
//-- Pre loads images
//-- To use type the following on a page:
//-- jsLoadImages('/enterfoldername/enterimagename.gif or jpg',
//--              '/enterfoldername/enterimagename.gif or jpg');
//----------------------------------------------------------------------------------------------------
var images = new Array();

function jsLoadImages(){ 
	for (var i=0; i < jsLoadImages.arguments.length; i++){
		images[i] = new Image();
		images[i].src = jsLoadImages.arguments[i];
	}
}

jsLoadImages('/2005/shared/flash/1.jpg',
'/2005/shared/flash/2.jpg',
'/2005/shared/flash/3.jpg',
'/2005/shared/flash/4.jpg',
'/2005/shared/flash/5.jpg',
'/2005/shared/flash/6.jpg',
'/2005/shared/images/hom_design_on.gif',
'/2005/shared/images/hom_building_on.gif',
'/2005/shared/images/hom_sustainability_on.gif',
'/2005/shared/images/glb_sol_design_lfnav_on.jpg',
'/2005/shared/images/glb_sol_building_lfnav_on.jpg',
'/2005/shared/images/glb_sol_sustainability_lfnav_on.jpg'
);

//open a new window passing in the following parameters:

function photoPop(id, newWidth, newHeight) {
	var calcLeft = 100;
	var calcTop = 100;

	//newWidth = newWidth + 40;
	//newHeight = newHeight + 160;
	
	if (parseInt(navigator.appVersion) >= 4){
	  calcTop = screen.availHeight /2 - newHeight / 2;
	  calcLeft = screen.availWidth / 2 - newWidth / 2;}

   remoteWindow = window.open('/2005/popup.asp?id=' + id, + 'remote', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=' + newWidth + ',height=' + newHeight + ',left=' + calcLeft + ',top=' + calcTop);

	remoteWindow.focus();
}