function columna() {
	document.write('<td width="50%" height="170" bgcolor="#00303c">');
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('	<td width="100%" height="99" bgcolor="#00303c"><img src="/img/tb.gif" width="1" height="99"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('	<td width="100%" height="16" bgcolor="#000000"><img src="/img/tb.gif" width="1" height="16"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('	<td width="100%" height="55" bgcolor="#00303c"><img src="/img/tb.gif" width="1" height="55"></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
}

function recomendado(imagen,link,titulo,comentario) {
	document.write('<td width="168" height="170" bgcolor="#005266" align="left" valign="top">');
	document.write('<table width="168" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="168" height="99" bgcolor="#003b49" align="left"><a href="/videojuegos'+link+'" target="_top"><img src="/videojuegos/'+imagen+'" width="130" height="99" border="0"></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="168" height="16" bgcolor="#000000" align="left"><a href="/videojuegos'+link+'" target="_top" class="txt11b"><font color="#FFCF63"><b>'+titulo+'</b></font><br></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="168" height="55" bgcolor="#005266" align="left" valign="top"><img src="/img/tb.gif" width="168" height="1"><br><a href="/videojuegos'+link+'" target="_top" class="txt11b">'+comentario+'<br><font color="#FFCF63"><b>+info...</b></font></a><br><img src="/img/tb.gif" width="168" height="2"><br></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
}

function recomendado2(imagen,link,titulo,comentario) {
	document.write('<td width="168" height="170" bgcolor="#005266" align="left" valign="top">');
	document.write('<table width="168" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="168" height="99" bgcolor="#003b49" align="left"><a href="'+link+'" target="_top"><img src="/videojuegos/'+imagen+'" width="130" height="99" border="0"></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="168" height="16" bgcolor="#000000" align="left"><a href="'+link+'" target="_top" class="txt11b"><font color="#FFCF63"><b>'+titulo+'</b></font><br></a></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="168" height="55" bgcolor="#005266" align="left" valign="top"><img src="/img/tb.gif" width="168" height="1"><br><a href="'+link+'" target="_top" class="txt11b">'+comentario+'<br><font color="#FFCF63"><b>+info...</b></font></a><br><img src="/img/tb.gif" width="168" height="2"><br></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
}

function columna2() {
	document.write('<td width="9" height="170" bgcolor="#000000"><img src="/img/tb.gif" width="9" height="170"></td>');
}

function separador_normal() {
	document.write('<tr>');
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	document.write('<td width="522" height="7" colspan="5" bgcolor="#000000"><img src="/img/tb.gif" width="522" height="7"></td>');
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	document.write('</tr>');
}

function separador_vertical_1(posicion) {
	document.write('<tr>');
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	if ((posicion=="1")&&(posicion=="3")) {
		document.write('<td width="354" height="7" colspan="4" bgcolor="#000000"><img src="/img/tb.gif" width="354" height="7"></td>');
	} else {
		document.write('<td width="177" height="7" colspan="2" bgcolor="#000000"><img src="/img/tb.gif" width="177" height="7"></td>');
		document.write('<td width="177" height="7" colspan="2" bgcolor="#000000"><img src="/img/tb.gif" width="177" height="7"></td>');
	}	
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	document.write('</tr>');
}

function separador_vertical_2() {
	document.write('<tr>');
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	document.write('<td width="177" height="7" colspan="2" bgcolor="#000000"><img src="/img/tb.gif" width="177" height="7"></td>');
	document.write('<td width="50%" height="7" bgcolor="#00222a"><img src="/img/tb.gif" width="1" height="7"></td>');
	document.write('</tr>');
}

function promo_1x1(tipo,imagen,link) {
	document.write('<td width="168" height="170" bgcolor="#005266" align="left" valign="top">');
	if (tipo=="1") { // es tipo imagen 
		document.write('<a href="'+link+'" target="_top"><img src="'+imagen+'" width="168" height="170" border="0" alt=""></a>');
	} else { // es de tipo flash
		document.write('<object id="animacion"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="168" height="170">'); 
		document.write('<param name=movie value="'+imagen+'">');
		document.write('<param name=quality value=high>');
		document.write('<embed name="animacion" src="'+imagen+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="168" height="170">');
		document.write('</embed>');
		document.write('</object>');
	}
	document.write('</td>');
}

function promo_2x1(tipo,imagen,link) {
	document.write('<td width="345" height="170" colspan="3" bgcolor="#005266" align="center" valign="middle">');
	if (tipo=="1") { // es tipo imagen 
		document.write('<a href="'+link+'" target="_top"><img src="'+imagen+'" width="345" height="170" border="0" alt=""></a>');
	} else { // es de tipo flash
		document.write('<object id="animacion"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="345" height="170">'); 
		document.write('<param name=movie value="'+imagen+'">');
		document.write('<param name=quality value=high>');
		document.write('<embed name="animacion" src="'+imagen+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="345" height="170">');
		document.write('</embed>');
		document.write('</object>');
	}
	document.write('</td>');
}

function promo_1x2(tipo,imagen,link) {
	document.write('<td width="168" height="347" rowspan="3" bgcolor="#005266" align="center" valign="middle">');
	if (tipo=="1") { // es tipo imagen 
		document.write('<a href="'+link+'" target="_top"><img src="'+imagen+'" width="168" height="347" border="0" alt=""></a>');
	} else { // es de tipo flash
		document.write('<object id="animacion"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="168" height="347">'); 
		document.write('<param name=movie value="'+imagen+'">');
		document.write('<param name=quality value=high>');
		document.write('<embed name="animacion" src="'+imagen+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="168" height="347">');
		document.write('</embed>');
		document.write('</object>');
	}
	document.write('</td>');
}

function promo_2x2(tipo,imagen,link) {
	document.write('<td width="345" height="347" rowspan="3" colspan="3" bgcolor="#005266" align="center" valign="middle">');
	if (tipo=="1") { // es tipo imagen 
		document.write('<a href="'+link+'" target="_top"><img src="'+imagen+'" width="345" height="347" border="0" alt=""></a>');
	} else { // es de tipo flash
		document.write('<object id="animacion"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="345" height="347">'); 
		document.write('<param name=movie value="'+imagen+'">');
		document.write('<param name=quality value=high>');
		document.write('<embed name="animacion" src="'+imagen+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="345" height="347">');
		document.write('</embed>');
		document.write('</object>');
	}
	document.write('</td>');
}