function imagechange(imagePath,imageID,imageName) 
{
   document.images[imageID].src = imagePath + "buttons/" + imageName + ".gif";
}


function m_on(imagename)
{
	if (document.images)
	{
		document [imagename].src = eval(imagename + "_MO.src");
	}
}

function m_out(imagename)
{
	if (document.images)
	{
		document [imagename].src = eval(imagename + ".src");
	}
}


function popup(file,options,width,height)
{
	if ((width != 0 || width !=null) && (height != 0 || height !=  null))
		{
			options = options+",width="+width+",height="+height;
		}
		var textWindow=window.open(file,"TextWindow",options);
}

function HideShowOver(elem)
{
	elem.style.cursor='hand';
	elem.style.textDecoration='underline';
	elem.style.color='orange';
}

function HideShowOut(elem)
{
	elem.style.textDecoration='none';
	elem.style.color='#C6C3C6';
}
	
if (document.images)
{
	home = new Image();
	home.src = "images/menu_home_off.jpg";
	home_MO = new Image();
	home_MO.src = "images/menu_home_on.jpg";
	
	riding = new Image();
	riding.src = "images/menu_riding_off.jpg";
	riding_MO = new Image();
	riding_MO.src = "images/menu_riding_on.jpg";
	
	walkbehind = new Image();
	walkbehind.src = "images/menu_walkbehind_off.jpg";
	walkbehind_MO = new Image();
	walkbehind_MO.src = "images/menu_walkbehind_on.jpg";

	chainsaw = new Image();
	chainsaw.src = "images/menu_chainsaw_off.jpg";
	chainsaw_MO = new Image();
	chainsaw_MO.src = "images/menu_chainsaw_on.jpg";
	
	snowblowers = new Image();
	snowblowers.src = "images/menu_snowblowers_off.jpg";
	snowblowers_MO = new Image();
	snowblowers_MO.src = "images/menu_snowblowers_on.jpg";
	
	commercial = new Image();
	commercial.src = "images/menu_commercial_off.jpg";
	commercial_MO = new Image();
	commercial_MO.src = "images/menu_commercial_on.jpg";
	
	inventory = new Image();
	inventory.src = "images/menu_inventory_off.jpg";
	inventory_MO = new Image();
	inventory_MO.src = "images/menu_inventory_on.jpg";
	
	about = new Image();
	about.src = "images/menu_about_off.jpg";
	about_MO = new Image();
	about_MO.src = "images/menu_about_on.jpg";
	
	contact = new Image();
	contact.src = "images/menu_contact_off.jpg";
	contact_MO = new Image();
	contact_MO.src = "images/menu_contact_on.jpg";
}
