
// directory of where all the images are
var cmThemePanelBase = '';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myThemePanelBase)
	{
		cmThemePanelBase = myThemePanelBase;
	}
}
catch (e)
{
}

var cmThemePanel =
{
	prefix:	'ThemePanel',
  	// main menu display attributes
  	//
  	// Note.  When the menu bar is horizontal,
  	// mainFolderLeft and mainFolderRight are
  	// put in <span></span>.  When the menu
  	// bar is vertical, they would be put in
  	// a separate TD cell.

  	// HTML code to the left of the folder item
  	mainFolderLeft: '',
  	// HTML code to the right of the folder item
  	mainFolderRight: '',
						//<img alt="" src="' + cmThemePanelBase + 'guino.gif">
	// HTML code to the left of the regular item
	mainItemLeft: '',
	// HTML code to the right of the regular item
	mainItemRight: '',
						//<img alt="" src="' + cmThemePanelBase + 'guino.gif">

	// sub menu display attributes

	// HTML code to the left of the folder item
	folderLeft: '',
	// HTML code to the right of the folder item
	folderRight: '',
					//<span style="border: 0; width: 24px;"><img alt="" src="' + cmThemePanelBase + 'guino.gif"></span>
	// HTML code to the left of the regular item
	itemLeft: '',
			
	// HTML code to the right of the regular item
	itemRight: '',
				//<img alt="" src="' + cmThemePanelBase + 'guino.gif">
	// cell spacing for main menu
	mainSpacing: 0,
	// cell spacing for sub menus
	subSpacing: 0,

	subMenuHeader: '<div class="ThemePanelSubMenuShadow"></div><div class="ThemePanelSubMenuBorder">',
	subMenuFooter: '</div>',

	// move the first lvl of vbr submenu up a bit
	offsetVMainAdjust:	[0, -2],
	// also for the other lvls
	offsetSubAdjust:	[0, -2]

	// rest use default settings
};

// for sub menu horizontal split
var cmThemePanelHSplit = [_cmNoClick, '<td colspan="3" class="ThemePanelMenuSplit"><div class="ThemePanelMenuSplit"></div></td>'];
// for vertical main menu horizontal split
var cmThemePanelMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemePanelMenuSplit"><div class="ThemePanelMenuSplit"></div></td>'];
// for horizontal main menu vertical split
var cmThemePanelMainVSplit = [_cmNoClick, '|'];

/* IE can't do negative margin on tables */
/*@cc_on
	cmThemePanel.subMenuHeader = '<div class="ThemePanelSubMenuShadow" style="background-color: #aaaaaa;filter: alpha(opacity=50);"></div><div class="ThemePanelSubMenuBorder">';
@*/

function clock() 
				{
					var digital = new Date();
					var hours = digital.getHours();
					var minutes = digital.getMinutes();
					var seconds = digital.getSeconds();
					var amOrPm = "AM";
					if (hours > 11) amOrPm = "PM";
					if (hours > 12) hours = hours - 12;
					if (hours == 0) hours = 12;
					if (minutes <= 9) minutes = "0" + minutes;
					if (seconds <= 9) seconds = "0" + seconds;
					dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;
					basicclock.innerHTML = dispTime;
					setTimeout("clock()", 1000);
				}
				clock();


function fecha()
{
	var mydate=new Date()
				var year=mydate.getYear()
				if (year < 1000) year+=1900
				var day=mydate.getDay()
				var month=mydate.getMonth()
				var daym=mydate.getDate()
				if (daym<10) daym="0"+daym
				var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
				var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
				document.write("&nbsp;&nbsp;&nbsp;"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year)
	}

