// define varables for browser handling
var doc;
var doc2;
var doc3;
var sty;
var img_dir = "images/"; //location of image directory
var img_load = false;	//image loaded control variable

function Brow_Type()
{
	if (document.layers)
	//netscape 4
	{
		doc = "document.";
		doc2 = "";
		doc3 = "";
		sty = "";
	}
	else
		if (document.all)
		//MSIE 4 to 6
		{
			doc = "document.all.";
			doc2 = "";
			doc3 = "";
			sty = ".style";
		}
		else
			if (document.getlementById)
			//W3C DOM browsers
			{
				doc = "document.getElementById('";
				doc2 = "')";
				doc3 = "')";
				sty = ".style";
			}
}

//image pre load function
function preload()
{
	aimages = new Array(); //create an array to hold images
	aimages[0] = new Image;
	aimages[0].src = img_dir + "logo.gif"
	//repeat for all images
	img_load = true;
}

//function to handle rollovers
function rollit(obj,state)
{
	//check for images loaded
	if (loaded == true)
	{
		if (document.layers)
		{
			source = eval( doc + 'chart' + doc2 + obj);
		}
		else
		{
			source = eval( doc + obj + doc2);
		}
		newpic = eval( source + "_" + state	);
		source.src = newpic.src;
	}	
}
