/*
##################################
##################################
### Prophet.co.uk -- JavaScript Functionality
###		Coded by Michael Dean
##################################
##################################	
*/

var clearDrop = new Array();

function revealDropDown(dropID, sourceID)
{

	if (document.getElementById(dropID).style.display !== "none") 
	{
		document.getElementById(dropID).style.display = "none";
		window.clearTimeout(clearDrop[dropID]);
	}
	else
	{
		document.getElementById(dropID).style.top = document.getElementById(sourceID).offsetTop + 45;
		document.getElementById(dropID).style.left = document.getElementById(sourceID).offsetLeft + 13;
		document.getElementById(dropID).style.display = "block";
		
		clearDrop[dropID] = window.setTimeout("revealDropDown('" + dropID + "', '" + sourceID + "')", 8000);
	}	

}

function revealNews(sourceID)
{

	if (eval("document.getElementById('newsItem" + sourceID + "').className == \"hidden\"")) 
	{
		document.getElementById('newsItem' + sourceID).className = "show";
		document.getElementById('newsLink' + sourceID).innerHTML = "<a href=\"javascript:revealNews('" + sourceID + "')\" title=\"Click to read less\">Read Less</a>";
		
	}
	else
	{
		document.getElementById('newsItem' + sourceID).className = "hidden";
		document.getElementById('newsLink' + sourceID).innerHTML = "<a href=\"javascript:revealNews('" + sourceID + "')\" title=\"Click to read more\">Read More</a>";
	}	

}

function window_onload()
{
	document.getElementById('productsTab').style.display = 'none';
	document.getElementById('uniqueTab').style.display = 'none';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
