function HandleOver(elem, clr)
{
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#FFFFFF";
	elem.style.cursor = 'hand';
}

function HandleOut(elem, clr)
{
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#808080";
}

function HandleDown(elem, clr)
{
	elem.style.backgroundColor = clr;
	elem.children.tags('A')[0].style.color = "#FFFFFF";
}

function UpdateFrame(pagename) {
	parent.main.location = "photos/" + pagename;
}

function OpenPopup(url){
	window.open(url,'','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')
}

function UpdateFrames(submenu, pagename) {

	/*Update the main frame page*/
	parent.main.location = pagename + ".html";
	
	//Commenting out as we are not using submenu in the left bottom frame.
	
	/*
	// If there is no submenu for this link then clear the submenu frame by setting it to 'blank.html'.
	if(submenu == 'none')
	{
		//Check if the previously displayed page is blank
		
		//Extracting the name of the page previously loaded into the frame.
		var oldurl = parent.submenu.location.href;
		var oldpage = oldurl.substring(oldurl.lastIndexOf("/") + 1, oldurl.length);
		
		//update the frame only if it was not blank
		if(oldpage != "blank.html")
		{
			parent.submenu.location = "blank.html";
		}
	}
	else
	{
		parent.submenu.location = submenu + ".html";
	}
	*/
}

