function viewPicture(imageName,imageWidth,imageHeight,alt) 
{
	var top = screen.height/2 - imageHeight/2;
	var left = screen.width/2 - imageWidth/2;

	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+left+",top="+top);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" />');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function SetView(view)
{
	var photos = document.getElementById("model_photo_container");
	var snaps = document.getElementById("model_snaps_container");
	var setcard = document.getElementById("model_setcard_container");

	switch (view)
	{
		case "snaps":
			if (photos) photos.style.display = "none";
			if (snaps) snaps.style.display = "block";
			if (setcard) setcard.style.display = "none";
		break;

		case "setcard":
			if (photos) photos.style.display = "none";
			if (snaps) snaps.style.display = "none";
			if (setcard) setcard.style.display = "block";
		break;

		default:
			if (photos) photos.style.display = "block";
			if (snaps) snaps.style.display = "none";
			if (setcard) setcard.style.display = "none";
		break;
	}
}
