var itv;
var msover=null;
function fadeIn(cine, lmt, tmp, fps)
{
	document.getElementById(cine).style.visibility='visible';
	try{clearInterval(itv)}catch(e){};
	document.getElementById(cine).style.opacity=0.0;
	try{document.getElementById(cine).filters.alpha.opacity=0;}catch(e){};
  if(parseFloat(document.getElementById(cine).style.opacity)<lmt)
	 {
		 var nrstp=(tmp/1000)*fps;
		 var stp=(document.getElementById(cine).style.opacity+lmt)/nrstp;
		 stp=parseInt(stp*100)/100;
		 document.getElementById(cine).style.opacity=0.0;
		 try{document.getElementById(cine).filters.alpha.opacity=0;}catch(e){};
		 document.getElementById(cine).style.visibility='visible';
		 if(navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1)
		 {
			window.defaultStatus="Internet Exploder"+" -> "+navigator.userAgent; 
		 itv=setInterval('fiIE("'+cine+'", '+lmt*100+', '+stp*100+')', 1000/fps);
		 }
		 else
		 {
			window.defaultStatus="A serious browser"+" -> "+navigator.userAgent; 
		 itv=setInterval('fi("'+cine+'", '+lmt+', '+stp+')', 1000/fps);
		 }
	 }
}

function fiIE(c, l, s)
{
  if((parseFloat(document.getElementById(c).filters.alpha.opacity)+s)<l)
   {
    document.getElementById(c).filters.alpha.opacity = parseInt(document.getElementById(c).filters.alpha.opacity) + parseInt(s);
   }
  else
   {
    document.getElementById(c).filters.alpha.opacity=l;
    try{clearInterval(itv);} catch(e){}
   }
}

function fi(c, l, s)
{
  if((parseFloat(document.getElementById(c).style.opacity)+s)<l)
   {
    document.getElementById(c).style.opacity = parseFloat(document.getElementById(c).style.opacity) + parseFloat(s);
   }
  else
   {
    document.getElementById(c).style.opacity=l;
    try{clearInterval(itv);} catch(e){}
   }
}

function showMenu(idd, opaq)
{
	document.getElementById(idd).style.display='block';
	document.getElementById(idd).style.opacity=opaq;
	try
	{
		document.getElementById(idd).filters.alpha.opacity=opaq*100;
	}
	catch(e){};
}

function chImg(idd, isrc)
{
	document.getElementById(idd).src=isrc;
}

function appear(idd)
{
	document.getElementById(idd).style.visibility='visible';
}

function vanish(idd)
{
	document.getElementById(idd).style.visibility='hidden';
}