// JavaScript Document

function showMenu(obj){
	if (document.all[obj].style.display ==""){
	  document.all[obj].style.display ="block";
	  document.all[obj].style.visibility="visible";
	}else {
	  document.all[obj].style.display ='';
	  document.all[obj].style.visibility="hidden";	
	}
	mas.src="../images/extras/menos.gif";
}

  function nToggle(id,issub) {
   var mye;
   if (document.getElementById) {mye=document.getElementById(id);} else if (document.all) {mye = eval("document.all."+id);}
   if (!mye) return;
   im=document.images["arrow_"+id];
   if (mye.style.display.indexOf("none")>=0){
    mye.style.display="";
    if (im) im.src="images/extras/menos.gif";
   } else if (mye.style.display=="") {
    mye.style.display="none";
    if (im) im.src="images/extras/mas.gif";
   }
  }

function open_calendar(calendar) {
        var calendarwindow;
	url = calendar+".htm";
	calendarwindow = window.open(url,"thewindowcal","toolbar=no,LEFT=200,TOP=200,WIDTH=159,HEIGHT=134,status=no,scrollbars=no,resize=no,menubar=no");
 	calendarwindow.focus();
}    

function popup(url,anchura,altura){
		configuracion="toolbar=no,location=no,status=no,menubar=no,resizable=yes,top=10,left=10,scrollbars=yes,width="+anchura+",height="+altura;
		 window.open(url, "_blank",configuracion); 
}


 var movieName = "testcommand";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}


function playmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}


function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}

function golabel() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/","redframe");
  }
}




