function addEvents()
{
	//mouseover on images
	if (document.getElementById("leftFeature"))
	{
		document.getElementById("leftFeature").onmouseover = function()
		{
			this.firstChild.src = this.firstChild.src.replace(".jpg", "_over.jpg");
		}
		document.getElementById("leftFeature").onmouseout = function()
		{
			this.firstChild.src = this.firstChild.src.replace("_over", "");
		}
	}
	if (document.getElementById("rightFeature"))
	{
		document.getElementById("rightFeature").onmouseover = function()
		{
			this.firstChild.src = this.firstChild.src.replace(".jpg", "_over.jpg");
		}
		document.getElementById("rightFeature").onmouseout = function()
		{
			this.firstChild.src = this.firstChild.src.replace("_over", "");
		}
	}
	if (document.getElementById("freeTrialFeature")) {
		document.getElementById("freeTrialFeature").onmouseover = function() {
			this.firstChild.src = this.firstChild.src.replace(".jpg", "_over.jpg");
		}
		document.getElementById("freeTrialFeature").onmouseout = function() {
			this.firstChild.src = this.firstChild.src.replace("_over", "");
		}
	}
	//product rollovers
	divs = document.getElementsByTagName("a");
	for (i=0; i < divs.length; i++)
	{
		if (divs[i].className == "productRolls")
		{
			divs[i].onmouseover = function()
			{
				this.getElementsByTagName("p")[0].style.display = "none";
				this.getElementsByTagName("span")[0].style.display = "block";
				this.firstChild.src = this.firstChild.src.replace(".jpg", "_over.jpg");
			}
			divs[i].onmouseout = function()
			{
				this.getElementsByTagName("p")[0].style.display = "block";
				this.getElementsByTagName("span")[0].style.display = "none";
				this.firstChild.src = this.firstChild.src.replace("_over", "");
			}
		}
	}
	//if there are columns then display h1 element
	if (document.getElementsByTagName("h1"))
	{
		go = function()
		{
			try{
				document.getElementsByTagName("h1")[0].style.display = "block";
			}catch(e){return true;}
		}
		setTimeout("go()", 1);
	}
}

//faq
function toggleDisplay(objectID) {
	object = document.getElementById(objectID);
	state = object.style.display;
	
	if (state == 'block') {
		object.style.display = 'none';
	}
	else if (state != 'block') {
		object.style.display = 'block';
	}
}
//faq : close displayed answer
function setDisplay(objectID,state) {
	object = document.getElementById(objectID);
	object.style.display = state;
}

