function gotoProfile(profileURL)
{
	window.location=profileURL;
}


function divSwap( div, arDiv ) 
{
	for( var i = 0; i < arDiv.length; i++ ) 
	{
		document.getElementById( arDiv[i] ).style.display = 'none';
	}
		document.getElementById( div ).style.display = 'block';
}


function changeText(formSection, text_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		
	    document.getElementById(text_id).innerHTML = '&raquo; Expand Details';
	}
	else
	{
	    document.getElementById(text_id).innerHTML = '&raquo; Collapse Details';
	}
} 


function displayOrHideFormSection(formSection, img_id)
{
	if (document.getElementById(formSection).style.display == 'block')
	{
		hideFormSection(formSection);
		document.getElementById(img_id).src = 'images/btn.expand.gif';
	}
	else
	{
		displayFormSection(formSection);
	    document.getElementById(img_id).src = 'images/btn.collapse.gif';
	}
}


function hideFormSection(formSection)
{
	document.getElementById(formSection).style.display = 'none';
}



function displayFormSection(formSection)
{
	document.getElementById(formSection).style.display = 'block';
}


/* Hide/Show Function Specific to the Homepage Bubbles */
function displayBubbleInfo ( bubbleId )
{
	//alert(dateSection);
	var bubbleArr = ['bubble1','bubble2','bubble3','bubble4','bubble5','bubble6','bubble7', 'bubble8'];	
	
	for (var i=0; i<8; i++)
	{
		
		if (bubbleArr[i] == bubbleId)
		{	
			document.getElementById(bubbleArr[i]).style.display = 'block';
		}
		else
		{
			document.getElementById(bubbleArr[i]).style.display = 'none';	
		}
	}
}

