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";

	pool = new Image();
	pool.src = "images/button_pool_off.jpg";
	pool_MO = new Image();
	pool_MO.src = "images/button_pool_on.jpg";
	
	spas = new Image();
	spas.src = "images/menu_spas_off.jpg";
	spas_MO = new Image();
	spas_MO.src = "images/menu_spas_on.jpg";

	accessories = new Image();
	accessories.src = "images/menu_accessories_off.jpg";
	accessories_MO = new Image();
	accessories_MO.src = "images/menu_accessories_on.jpg";
	
	chemical = new Image();
	chemical.src = "images/menu_chemical_off.jpg";
	chemical_MO = new Image();
	chemical_MO.src = "images/menu_chemical_on.jpg";
	
	testimonial = new Image();
	testimonial.src = "images/menu_testimonial_off.jpg";
	testimonial_MO = new Image();
	testimonial_MO.src = "images/menu_testimonial_on.jpg";
	
	contact = new Image();
	contact.src = "images/menu_contact_off.jpg";
	contact_MO = new Image();
	contact_MO.src = "images/menu_contact_on.jpg";
}
