// <![CDATA[
Image1= new Image(10,12);
Image1.src = "http://www.onlinebuttonsecrets.com/covers/abv3Down.gif";
Image2= new Image(10,12);
Image2.src = "http://www.onlinebuttonsecrets.com/covers/abv3Over.gif";
Image3= new Image(10,12);
Image3.src = "http://www.onlinebuttonsecrets.com/covers/abv3Up.gif";

function alexButton(state, ID)
{
	switch(state)
	{
		case "press":
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Down.gif)';
			document.getElementById(ID).style.backgroundPosition='top';
			break;
		case "over":
			document.getElementById(ID).style.backgroundPosition='top';
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Over.gif)';
			break;
		case "up":
		default:
		// Up	
			document.getElementById(ID).style.backgroundPosition='bottom';
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Up.gif)';
			break;
	}
}

function linkify(URL,target, config)
{
	if(target != '')
	{
		// Open in a new window
		window.open(URL, target, config);
	}
	else
	{
		location.href=URL;
	}
}
// ]]>
// Close all <div class="close">
function classChange()
{
	for (i=0;i<document.getElementsByTagName("div").length; i++) 
	{
		if (document.getElementsByTagName("div").item(i).className == "close")
		{
			document.getElementsByTagName("div").item(i).style.display = "none";
		}
	}
}

function showDiv(ID, closeAll)
{
	if(closeAll == 'all') { classChange(); }
	
	// If there is no div, don't throw a JavaScript error
	if(!document.getElementById(ID)){ return false; }
	
	// Evaluate the current visibility status of the display box.
	if(document.getElementById(ID).style.display == 'none')
	{
		// The display box is not visible, so we want to display the box
		document.getElementById(ID).style.display='block';
	}
	else
	{
		// The display box is visible, so we want to hide the display box
		document.getElementById(ID).style.display='none';
	}
}