/*
Copyright 2009 Caleb Begly
Div Object Version 1.0

Note:
The div is hidden by default

Functions:
Div::show() 	Show the div	
Div::hide()		Hide the div
Div::Div(id)	This is the constructor
*/
function Div(id)
{	
	this.elementToShow = document.getElementById(id); //get the div element
	if(!this.elementToShow) //element doesn't exist
	{
		return false; // chuck them out of here
	}
	
	this.hide();
	return true;
}

Div.prototype.show = function()
{
	this.elementToShow.style.display = "inline";	//display the div
}

Div.prototype.hide = function()
{	
	this.elementToShow.style.display = "none"; 	//hide the div
}

Div.prototype.setOpacity = function(opacity)
{
	this.elementToShow.style.filter = "alpha(opacity=" + opacity + ")";	//set the IE filter for the opacity
	this.elementToShow.style.opacity = opacity/100;			//set the opacity for everyone else
}