
//  7/12/2007
//  Contains All functions relating to the showing and hiding of the contents of mba_index.php
//  Does not include those functions relating to the left hand menu. 

function doIndexMouseOver(indexID)
{
	
	document.getElementById(indexID).style.background='#c9d5de';
}

function doIndexMouseOut(indexID)
{
	
	document.getElementById(indexID).style.background='#e6e6e6';
}

function doIndexEntryMouseOver(indexID)
{
	
	document.getElementById(indexID).style.background='#c9d5de';
}

function doIndexEntryMouseOut(indexID)
{
	
	document.getElementById(indexID).style.background='#ffffff';
}
function NewWindowInfo(IndexID,MembershipID,Heading)
{
	//not implementesd yet
	window.open("mba_entry_popup.php?MembershipID="+MembershipID+"&IndexID="+IndexID+"&Heading="+Heading,"MBA", "status=1, toolbar=0, menubar=1, resizable=1, scrollbars=1, height=550px, width=780px");
}
function expandInfo(indexID,heading)
{

	hideContact(indexID,heading);
	if(document.getElementById(indexID+"_row0"+heading))
	{
		if(document.getElementById(indexID+"_row0"+heading).style.display=='')
		{
			document.getElementById(indexID+"_row0"+heading).style.display='none';
		}else{
			document.getElementById(indexID+"_row0"+heading).style.display='';
		}
	}
	
	for(x=1;x<=9;x++)
	{
		if(document.getElementById(indexID+"_row"+x+""+heading))
		{
			if(document.getElementById(indexID+"_row"+x+""+heading).style.display=='')
			{
			document.getElementById(indexID+"_row"+x+""+heading).style.display='none';
		}else{
			document.getElementById(indexID+"_row"+x+""+heading).style.display='';
			}
		}
	}
	
}

function hideContact(indexID,heading)
{

	for(y=1;y<=3;y++)
	{
		for(x=1;x<=9;x++)
		{
			if(document.getElementById(indexID+"_Contact_"+y+"_Row"+x+""+heading))
			{
			document.getElementById(indexID+"_Contact_"+y+"_Row"+x+""+heading).style.display='none';
			}
			
		}
	}
	
}

function expandContact(indexID,heading)
{


	
	for(y=1;y<=3;y++)
	{
		for(x=1;x<=9;x++)
		{
			if(document.getElementById(indexID+""+y+"_Row"+x+""+heading))
			{
				if(document.getElementById(indexID+""+y+"_Row"+x+""+heading).style.display=='')
				{
					document.getElementById(indexID+""+y+"_Row"+x+""+heading).style.display='none';
				}else{
					document.getElementById(indexID+""+y+"_Row"+x+""+heading).style.display='';
			}
		}
	}
	}
	
}


