
function abrirventana(theURL,thewidth,theheight,scroll) {
	var Sx=((screen.availWidth - thewidth)/2)-5;
	var Sy=((screen.availHeight - theheight)/2)-15;
	window.open (theURL,'Ventana','width=' + thewidth + 'px,height=' + theheight + 'px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=' + scroll + ',resizable=0');
}

function openfoto(foto) {
	var Sx=((screen.availWidth - 475)/2)-5;
	var Sy=((screen.availHeight - 400)/2)-15;
	window.open (foto,'Foto','width=475px,height=400px,top=' + Sy + 'px,left=' + Sx + 'px,status=0,scrollbars=1,resizable=1');
}

function imprimir() {
    window.print()
}

function enlace1frame(strCuerpo){
	parent.parent.frames['cuerpo'].location = strCuerpo;
}

function enlace2frame(strMenu,strCuerpo){
	parent.parent.frames['submenu'].location = strMenu;
	parent.parent.frames['cuerpo'].location = strCuerpo;
}

function enlace(lngMenu,strSubmenu,lngSubmenu,strCuerpo){

	parent.parent.frames['cabecera'].document.frmNav.Menu.value= lngMenu;
	parent.parent.frames['cabecera'].document.frmNav.SubMenu.value= lngSubmenu;
	parent.parent.frames['cabecera'].document.frmNav.StrSubmenu.value= strSubmenu;
	parent.parent.frames['menu'].location = 'menuprincipal.htm';
	parent.parent.frames['submenu'].location = strSubmenu;
	parent.parent.frames['cuerpo'].location = strCuerpo;
}

function enlace2(lngSubmenu,strCuerpo){

	parent.parent.frames['cabecera'].document.frmNav.SubMenu.value= lngSubmenu;
	parent.parent.frames['submenu'].location = parent.parent.frames['cabecera'].document.frmNav.StrSubmenu.value;
	parent.parent.frames['cuerpo'].location = strCuerpo;
}

function enlacegaleria(lngSubmenu,strCuerpo){

	parent.parent.frames['cabecera'].document.frmNav.Menu.value= '';
	parent.parent.frames['menu'].location = 'menuprincipal.htm';
	parent.parent.frames['cabecera'].document.frmNav.SubMenu.value= lngSubmenu;
	parent.parent.frames['cabecera'].document.frmNav.StrSubmenu.value= 'menugaleria.htm';
	parent.parent.frames['submenu'].location = 'menugaleria.htm';
	parent.parent.frames['cuerpo'].location = strCuerpo;
}



var strMenu=parent.parent.frames['cabecera'].document.frmNav.Menu.value
var strVineta;

function pintamenu(lngMenu,strTexto,strSubmenu,lngSubmenu,strCuerpo) {
	document.write('<a class="menuprincipal" href="javascript:enlace(\'' + lngMenu + '\',\'' + strSubmenu + '\',\'' + lngSubmenu + '\',\'' + strCuerpo + '\');" onmouseover="status=\'\';return true;">' + strTexto + '</a>');
}

function vinetamenu(smenu) {

	if (smenu==strMenu){
		strVineta="vinetamenu";
	} else {
		strVineta="void";
	}

	document.write('<img src="imagenes/' + strVineta + '.gif" width="5" height="9">');
}



var strSubmenu=parent.parent.frames['cabecera'].document.frmNav.SubMenu.value
var strVineta2;
var strEstilo;

function pintasubmenu(lngSubmenu,strTexto,strCuerpo) {

	if (lngSubmenu==strSubmenu){
		strEstilo="articlebodybold";
	} else {
		strEstilo="articlebody";
	}

	document.write('<a class="' + strEstilo + '" href="javascript:enlace2(\'' + lngSubmenu + '\',\'' + strCuerpo + '\');" onmouseover="status=\'\';return true;">' + strTexto + '</a>');
}

function vinetasubmenu(smenu) {

	if (smenu==strSubmenu){
		strVineta2="vinetap_on";
	} else {
		strVineta2="vinetap_of";
	}

	document.write('<img src="imagenes/' + strVineta2 + '.gif" width="10" height="14">');
}

function pintamenu2(lngMenu,strTexto,strSubmenu,lngSubmenu,strCuerpo) {
 document.write('<a class="link" href="javascript:enlace(\'' + lngMenu + '\',\'' + strSubmenu + '\',\'' + lngSubmenu + '\',\'' + strCuerpo + '\');" onmouseover="status=\'\';return true;">' + strTexto + '</a>');
}