//js code for representation.com
//coder:  sota, questions? ask him.

//browser translator (DOM)
//submenu code
var div_array = new Array("divOne", "divTwo", "divThree", "divFour");
function changeDiv(the_div, the_change)
{
	if (document.all)
	{
		div_string = "document.all['" + the_div + "'].style";
	}
	else if (document.layers)
	{
		div_string = "document.layers['" + the_div + "']";
	}
	else if (document.getElementById)
	{
		div_string = "document.getElementById('" + the_div + "').style";
	}
	the_div = eval(div_string);
	the_div.visibility = the_change;
}

function closeAll()
{
	for (var loop=0; loop < div_array.length; loop++)
		{
		changeDiv(div_array[loop], "hidden");
		}
}

//rollover code
var img_name;
var new_image;
function nav_on(img_name, new_image)
{
	img_name.src = new_image;	 
}

function nav_off(img_name, new_image)
{
	img_name.src = new_image;
}


