<!--
function fotos(url,ventana,w,h) {
var miPopup;
//w = 640;
//h = 480;
x4 = screen.width/2 - (w/2);
y4 = screen.height/2 - (h/2) - 20;
miPopup = window.open(url, ventana, 'height='+h+',width='+w+',scrollbars=0,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
miPopup.focus();
}

function fotosgrandes(url) {
var miPopup;
w = 420;
h = 420;
x4 = screen.width/2 - (w/2);
y4 = screen.height/2 - (h/2) - 20;
miPopup = window.open(url, 'ventana', 'height='+h+',width='+w+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=1,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
miPopup.focus();
}

function ventana(url, ventana, w, h) {
var miPopup;
//w = 500;
//h = 375;
x4 = screen.width/2 - (w/2);
y4 = screen.height/2 - (h/2) - 20;
miPopup = window.open(url, ventana, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
miPopup.focus();
}

function ct(url, ventana) {
var miPopup;
w = 370;
h = 350;
x4 = screen.width/2 - (w/2);
y4 = screen.height/2 - (h/2) - 20;
miPopup = window.open(url, ventana, 'height='+h+',width='+w+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
miPopup.focus();
}


/* Menu ------------------------------------------------------------------------------ */

var menuids=["treemenu1"]; //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal() {
	for (var i=0; i<menuids.length; i++){
		var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul");
		for (var t=0; t<ultags.length; t++){
			if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
				ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"; //dynamically position first level submenus to be height of main menu item
				ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon";
			} else { //else if this is a sub level menu (ul)
				ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"; //position menu to the right of menu item that activated it
				ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon";
			}
			ultags[t].parentNode.onmouseover=function(){
				this.getElementsByTagName("ul")[0].style.visibility="visible";
			}
			ultags[t].parentNode.onmouseout=function(){
				this.getElementsByTagName("ul")[0].style.visibility="hidden";
			}
		}
	}
}

if (window.addEventListener) {
	window.addEventListener("load", buildsubmenus_horizontal, false);
} else if (window.attachEvent) {
	window.attachEvent("onload", buildsubmenus_horizontal);
}

/* Menu ------------------------------------------------------------------------------ */


// -->