currentTime = new Date()
year = currentTime.getFullYear()

function swapCell(id)
{
	curCell = id + "Cell";
	if (curCell == lastCell)
	{
		document.getElementById(curCell).style.display = "block";	
	}
	else
	{
		document.getElementById(curCell).style.display = "block";
		document.getElementById(lastCell).style.display = "none";
	}
	lastCell = curCell;
}
function hideDropDown(){
document.getElementById("toBeHidden").style.display = "none";
}

function showDropDown(){
document.getElementById("toBeHidden").style.display = "inline";
}
function hideFor(id){
	var x = cssQuery("a[class='thumbnails']");
	var totalPic = x.length;
	num = id.substr(3);
	switch(totalPic)
	{
	case 6:
		if (num==5){hideDropDown();}
		break;
	case 5:
		if (num==5){hideDropDown();}
		break;
	case 4:
		if (num==3){hideDropDown();}
		break;
	case 3:
		if (num==3){hideDropDown();}
		break;
	case 2:
		if (num==1){hideDropDown();}
		break;
	case 1:
		if (num==1){hideDropDown();}
		break;
	}
}

	sfHover = function() 
	{
		var x = cssQuery("ul[id='menu']");
		var sfEls = cssQuery("li", x);
		for (var i=0; i<sfEls.length; i++)
		{
			sfEls[i].onmouseover=function() 
			{
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() 
			{
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);


function toggle(id)
{
	document.getElementById(id).style.color="#008893";
	target = id.substring(1) + "Div";
	if (document.getElementById(target).style.display == "block")
	{
		document.getElementById(target).style.display = "none";
		document.getElementById(id).style.color="#01585f";
	} 
	else 
	{
		document.getElementById(target).style.display = "block";
		document.getElementById(id).style.color="#008893";
	}
	
}


