menu_status = new Array();

function showHide(theid)
{
    if (document.getElementById) 
	{
    	var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

/************************************************************************
Script made by Martial Boissonneault © 2001 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*************************************************************************/
var ie5=(document.getElementById && document.all);
var ns6=(document.getElementById && !document.all);

nPlus = 5   //the % of fading for each step
speed = 450  //the speed

// You don't have to edit below this line
nOpac = 100
function FadeImg()
{
    if(document.getElementById)
	{
		if(document.getElementById('img1'))
		{
			if(document.getElementById('img2'))
			{
				document.getElementById('img1').style.visibility="visible";
				imgs = document.getElementById('img2');
			 
				opacity = nOpac+nPlus;
				nOpac = opacity;
				setTimeout('FadeImg()',speed);
				if(opacity>100 || opacity<0)
				{
					nPlus=-nPlus;
				}
				if(ie5)
				{
					imgs.style.filter="alpha(opacity=0)";
					imgs.filters.alpha.opacity = opacity;
				}
				if(ns6)
				{
					imgs.style.MozOpacity = 0 + '%';
					imgs.style.MozOpacity = opacity + '%';
				}
			}
	  	}
  	}
}
onload=FadeImg;
