
function printSizedImg(photo,aspect)
{


document.write("<img src='" + photo + currPicSize(aspect) + ".jpg'>");

}


function currPicSize(aspect)
{
width = document.getElementById("currPic").offsetWidth;
height = document.getElementById("currPic").offsetHeight;

size = width;
if (aspect=="t") size = height;

//alert(document.getElementById("currPic").offsetWidth);

picSize = "_b";

if (size<100)
	{
	picSize = "_s";
	}
else if (size<240)
	{
	picSize = "_t";
	}
else if (size<500)
	{
	picSize = "_m";
	}
else if (size<1024)
	{
	picSize = ""
	}

//document.write(width + "x" + height + " | " + picSize);	
return(picSize);
	
}

function collapseOptions()
{
curr=document.getElementById("galleryOptions").style.height;


if (curr=="auto")
	{
	document.getElementById("galleryOptions").style.height="0px";
	}
else document.getElementById("galleryOptions").style.height="auto";

}
