function switchImg(m_sImageName, m_sState)
{
	if (document.images)
	{
		imgSource = document[m_sImageName].src;
		if (m_sState == "on")
		{
			onState = imgSource.replace(/_off/i,"_on");
			document[m_sImageName].src = onState;
		}
		else 
		{
			offState = imgSource.replace(/_on/i,"_off");
			document[m_sImageName].src = offState;
		}
	}
}


  
  main_on = new Image(); main_on.src = "images/button_main.jpg";
  story_on = new Image(); story_on.src = "images/button_story.jpg";
  collections_on = new Image(); collections_on.src = "images/button_collections.jpg";
  press_on = new Image(); press_on.src = "images/button_press.jpg"
  instore_on = new Image(); instore_on.src = "images/button_instore.jpg"
  contact_on = new Image(); contact_on.src = "images/button_contact.jpg"
  
  

function actmap(imgName, mapname) {
        if (document.images) {
                document[mapname].src = eval(imgName + '.src')
        };
}

function inactmap(imgName, mapname) {
        if (document.images) {
                document[mapname].src = eval(imgName + '.src')
        };
}

function rollOn(imgName)
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + '_on.src');
	}
}

function rollOff(imgName)
{
	if (document.images)
	{ 
		document[imgName].src = eval(imgName + '_off.src');
	}
}