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";

	agents = new Image();
	agents.src = "images/menu_agents_off.jpg";
	agents_MO = new Image();
	agents_MO.src = "images/menu_agents_on.jpg";

	contact = new Image();
	contact.src = "images/menu_contact_off.jpg";
	contact_MO = new Image();
	contact_MO.src = "images/menu_contact_on.jpg";
}

