function setCaption(aImg)
{		
	var x=document.getElementById("caption");	
	x.firstChild.nodeValue = aImg.getAttribute('alt');		
}

function processImages()
{	
	processThumbs();
}

function clearCaption(aImg)
{
var x=document.getElementById("caption");
	if(x==null)
	{
		return;
	}
	else
	{
	x.firstChild.nodeValue = "";
	}
}

/*heightGreaterThanWidth:  returns true if image.height is greater
than image.width*/
function heightGreaterThanWidth(img)
{	
	
	return img.height > img.width;
}

function processMainView()
{
	var img = document.getElementById("largeview");
	if(img==null)
	{
		return;
	}
	else
	{
	if(heightGreaterThanWidth(img))
	{
		img.height = 400	
	}
	else
	{
		img.width = 450
	}
	}
}

function processThumbs()
{
	
	var imageList = document.getElementsByName("thumbs");
	if(imageList==null)
	{
		return;
	}
	else
	{
	
	for(picNum=0;picNum<imageList.length;picNum++)
		{
			imageList[picNum].height = 100;
		
		}
	
	}
}







