/*menu*/

function exMenu(tName)
{
        tMenu = document.all[tName].style;
        if (tMenu.display == 'none') tMenu.display = "block";
		else tMenu.display = "none";
}

function exMenu(tName)
{
        tMenu = document.getElementById(tName).style;
        if (tMenu.display == 'none') tMenu.display = "block";
		else tMenu.display = "none";
}

function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
	    if(current == slideList.length-1)
			current = 0;
 		switchImage(image, slideList[current]);
	    clearTimeout(timer);
    	timer = setTimeout(name+'.play()', speed);
		current++;
  }
}

function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
