function SinMouse_texto(objeto){
CambiaProp(objeto,"color",'"#FFFFFF"');
return true;
}

function ConMouse_texto(objeto){
CambiaProp(objeto,"color",'"#000000"');
return true;
}

function SinMouse_celda(objeto){
CambiaProp(objeto,"background",'"#CC0000"');
return true;
}
	
function ConMouse_celda(objeto){
CambiaProp(objeto,"background",'"#FFFFFF"');
return true;
}

function OcultarSubMenus()
{
   sm2.style.visibility = "hidden";
   sm3.style.visibility = "hidden";
   stop_time();
}

var timer = false;

function stop_time()
{
	if(timer)      
		clearInterval(timerID);
	timer = false;
}

function MostrarSubMenu(objeto,num)
{
	var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	  } else {
		if( document.documentElement &&
			( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		  //IE 6+ in 'standards compliant mode'
		  myWidth = document.documentElement.clientWidth;
		  myHeight = document.documentElement.clientHeight;
		} else {
		  if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		  }
		}
		}
	
	if (myWidth>650)
	{
		if (num==2) { objeto.style.left = (myWidth-650)/2+266; }
		if (num==3) { objeto.style.left = (myWidth-650)/2+385; }
	}
	else
	{
		if (num==2) { objeto.style.left = 266; }
		if (num==3) { objeto.style.left = 385; }
	}
   objeto.style.visibility = "visible";
   stop_time();
}

function GetFecha()
{
			today = new Date();
			day = today.getDay();
			date = today.getDate();
			month = today.getMonth();
			year = today.getYear();			
			
			if (month == 0) monthName = "January"
			else if (month == 1) monthName = "February"
			else if (month == 2) monthName = "March"
			else if (month == 3) monthName = "April"
			else if (month == 4) monthName = "May"
			else if (month == 5) monthName = "June"
			else if (month == 6) monthName = "July"
			else if (month == 7) monthName = "August"
			else if (month == 8) monthName = "September"
			else if (month == 9) monthName = "October"
			else if (month == 10) monthName = "November"
			else monthName = "December"
			
			if (day == 0) dayName = "Sunday"
			else if (day == 1) dayName = "Monday"
			else if (day == 2) dayName = "Tuesday"
			else if (day == 3) dayName = "Wednesday"
			else if (day == 4) dayName = "Thursday"
			else if (day == 5) dayName = "Friday"
			else dayName = "Saturday"
			
			return(dayName + ", " + monthName + " " + date + ", ");
}
function openWindow(url)
{
popupWin = window.open(url,'new_page','width=400,height=440')
}
