function showInstructors( val )
{
	var i = 0;
	for( ; i <= 100; i++ )
	{
		if (document.getElementById('class'+i))
			document.getElementById('class'+i).style.display = (val==-1 ? '' :'none');	
	}
		
	if( val == -1 )
	{
		document.getElementById('showAll').style.display = 'none';
		document.getElementById('hideAll').style.display = '';
	}
	else if( val == -2 )
	{
		document.getElementById('showAll').style.display = '';
		document.getElementById('hideAll').style.display = 'none';
	}
	else
	{
		if (document.getElementById('class'+val))
			document.getElementById('class'+val).style.display = '';	
	}
}
function showPic( obj, val )
{
	obj.style.backgroundColor='#EEE1AC';
	if( val != -1 )
	{
		if (document.getElementById('instructor'+val))
			document.getElementById('instructor'+val).style.display = '';
	}
}
function hidePic( obj, val )
{
	obj.style.backgroundColor='#fffff5';
	if( val != -1 )
	{
		if (document.getElementById('instructor'+val))
			document.getElementById('instructor'+val).style.display = 'none';
	}
}
function showClass( val )
{
	showInstructors(val);
}
function newsletterSignup()
{
	document.getElementById('hideContainer').style.display = '';
}
function hideContainer()
{
	document.getElementById('hideContainer').style.display = 'none';
}
function submitNewsletter()
{
	document.getElementById('newsletterBody').innerHTML = "Thank you for signing up";
	setTimeout(hideContainer, 5000);
}
function checkSearch( obj )
{
	if( obj.value == "Search..." )
		obj.value = "";
	else if( obj.value == "" )
		obj.value = "Search...";
}
function showDiv( val, obj )
{
	if( val ==0 || val==2 )
		document.getElementById('dropDiv'+val).style.display = '';
	obj.setAttribute("class", "navBG-H");
}
function hideDiv( val, obj )
{
	if( val ==0 || val==2  )
		document.getElementById('dropDiv'+val).style.display = 'none';
	obj.setAttribute("class", "navBG");
}
function highlightLink( val, obj )
{
	obj.style.backgroundColor = "#FFF9C8";	
}
function restoreLink( val, obj )
{
	obj.style.backgroundColor = "";
}
