
function estilos ()
{
	document.write('<link rel="stylesheet" href="includes/estilos.css" type="text/css">');	
}

function estilos_admin ()
{
	document.write('<link rel="stylesheet" href="../includes/estilos.css" type="text/css">');	
}

function over(nombre, imagen)
{
	nombre.src = imagen;
}

function iniTable ()
{
	if (screen.width > 800)
	{
		document.write ("<table cellspacing='0' cellpadding='0' border='0' width='998' height='100%'>");
		document.write ("<tr>");
		document.write ("	<td width='80'><img src='images/shim.gif' width='80' height='1'></td>");
		document.write ("	<td width='33'>");
		document.write ("		<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>");
		document.write ("		<tr>");
		document.write ("			<td width='25' height='100%'>");
		document.write ("				<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>");
		document.write ("				<tr>");
		document.write ("					<td valign='top' height='26'><img src='images/shim.gif' width='1' height='26'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td height='1' valign='top' bgcolor='#B8B8B8'><img src='images/shim.gif' width='1' height='1'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td valign='middle'><img src='images/mira.gif'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td height='1' valign='bottom' bgcolor='#B8B8B8'><img src='images/shim.gif' width='1' height='1'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td valign='bottom' height='48'><img src='images/shim.gif' width='1' height='48'></td>");
		document.write ("				</tr>");
		document.write ("				</table>");
		document.write ("			</td>");
		document.write ("			<td width='8'><img src='images/shim.gif' width='8' height='1'></td>");
		document.write ("		</tr>");
		document.write ("		</table>");
		document.write (" </td>");
	}
	else
	{
		document.write ("<table cellspacing='0' cellpadding='0' border='0' width='778' height='100%'>");
		document.write ("<tr>");
		document.write ("	<td width='3'><img src='images/shim.gif' width='3' height='1'></td>");
	}
}

function finTable ()
{
	if (screen.width > 800)
	{
		document.write ("	<td width='33'>");
		document.write ("		<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>");
		document.write ("		<tr>");
		document.write ("			<td width='8'><img src='images/shim.gif' width='8' height='1'></td>");
		document.write ("			<td width='25' height='100%'>");
		document.write ("				<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>");
		document.write ("				<tr>");
		document.write ("					<td valign='top' height='26'><img src='images/shim.gif' width='1' height='26'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td height='1' valign='top' bgcolor='#B8B8B8'><img src='images/shim.gif' width='1' height='1'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td valign='middle'><img src='images/mira.gif'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td height='1' valign='bottom' bgcolor='#B8B8B8'><img src='images/shim.gif' width='1' height='1'></td>");
		document.write ("				</tr>");
		document.write ("				<tr>");
		document.write ("					<td valign='bottom' height='48'><img src='images/shim.gif' width='1' height='48'></td>");
		document.write ("				</tr>");
		document.write ("				</table>");
		document.write ("			</td>");
		document.write ("		</tr>");
		document.write ("		</table>");
		document.write (" </td>");
		document.write ("	<td width='80'><img src='images/shim.gif' width='80' height='1'></td>");
		document.write ("</tr>");
		document.write ("</table>");
	}
	else
	{
		document.write ("	<td width='3'><img src='images/shim.gif' width='3' height='1'></td>");
		document.write ("</tr>");
		document.write ("</table>");
	}
}

var sumaAncho = 0;
var sumaAlto = 0;

function dibuja_espaciov()
{
	if (screen.height > 600)
	{
    sumaAlto = 75;
		document.write ("<tr><td height='1' colspan='3'><img width='1' src='images/shim.gif' height='75'></td></tr>")
	}
}

function dibuja_espacioh()
{
	if (screen.width > 800)
	{
    sumaAncho = 114;
		document.write ("<td width='114'><img src='images/shim.gif' width='114' height='1'></td>")
	}
}

function abrePopup (url,ancho,alto,scroll)
{
	var scrollValue = 0;
	if (scroll)
		scrollValue = 1;
	var dimensiones = "height=" + alto + ",width=" + ancho + ",resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,top=80,left=170,scrollbars=" + scrollValue;
	window.open(url,"",dimensiones);
}

function abrirWin(VentanaFotos,width,height)
{
  var top=150;
  var left=screen.width/2-200;
  var win = window.open(VentanaFotos,'win','resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,top='+top+',left='+left+',width='+width+',height='+height);
  win.focus();
}

function redimension(){
		window.resizeTo(foto.offsetWidth + 10, foto.offsetHeight + 30)
}
