<!--

var color_menus ="maroon"
var color_footer="#000050"
var color_header="navy"
var color_titulo="#000050"
var color_fondo ="#0000"
var backgr      ="images/maroonstrips.gif"
var afiliate="lacasadelosmagos"
var bravenet="968813071"
var webmaster='webmaster2';
    webmaster+='@';
    webmaster+='lacasadelosmagos.com';
var mymsg="Clic para mas informacion";
var ligas="|"
var cuenta=1;

//---- Hoja de Estilos ------

document.write('<style type=text/css>')
document.write('body {background-color: silver;')
document.write('/*background-image:url( url_de_la_imagen_de_background ); */')
document.write('background-attachment: fixed;')
document.write('padding-left:3;')
document.write('padding-right:3;')
document.write('text-align: justify;')
document.write('font-family: verdana, arial, helvetica;')
document.write('font-style: normal;')
document.write('font-size: 12px;')
document.write('color: navajowhite; }')
document.write('p {font-family: Verdana, "Trebuchet MS", Arial, sans-serif;')
document.write('font-size: 12px;')
document.write('text-decoration: none;')
document.write('color:navajowhite}')
document.write('td {font-family: Verdana, "Trebuchet MS", Arial, sans-serif;')
document.write('font-size: 12px;')
document.write('text-decoration: none}')
document.write('A {color: #ffcc33;')
document.write('font-family: Verdana, "Trebuchet MS", Arial, sans-serif;')
document.write('font-size: 11px;')
document.write('font-weight: normal;')
document.write('text-decoration: none}')
document.write('A:hover{color:white; text-decoration: none}')
document.write('</style>')

function Menu()
{
    document.write('<font face="verdana,arial"size="2"><b>')
    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Secciones<br>')
    opcion('Bienvenido','bienvenido.htm')
//    opcion('Agenda M&aacute;gica','agenda.htm')
    opcion('Librer&iacute;a','libreria.htm')
    opcion('Links','http://www.buscamagia.com"target="_blank')
//    opcion('Noticias en Ingl&eacute;s','insidemagicnews.htm')
    opcion('Downloads','downloads.htm')
    opcion('Premios','premios.htm')
    opcion('Humor','humor.htm')

    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Contrate un Mago<br>')
    opcion('Bar&oacute;n','baron.htm')
    opcion('Chen Kai','chenkai.htm')
    opcion('Ednovi','ednovi.htm')
    opcion('Erich Mum','erichmum.htm')
    opcion('Frank y Blas','frank.htm')
    opcion('Gamini','gamini.htm')
//    opcion('Jam','jam.htm')
    opcion('Kadima','kadima.htm')
    opcion('Kumedik Daniels','kumedik.htm')
    opcion('Misterix','Misterix.htm')
    opcion('Phily Mag&uacute;','philymagu.htm')
    opcion('Roch','roch.htm')
    opcion('Tri-x','trix.htm')
    opcion('Turandof','turandof.htm')

    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Aprenda Magia<br>')
    opcion('A.M.A.M','trebole.htm')
    //opcion('El Toque M&aacute;gico','dino2002.htm')//
    opcion('Icaro el Mago','icaro.htm')
    opcion('Mago Laurenti','laurenti.htm')
    opcion('Mag&oacute;polis','magopolis.htm')
    
    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Asociaciones<br>')
    opcion('ASAMAC','asamac.htm')
    opcion('Club de Magos AC','piramide.htm')
    opcion('I.B.M Ring #164','ring164.htm')
    opcion('Red de Magos Solidarios','redmaso.htm')
    opcion('World Alliance of Magicians','wam.htm')

    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Comercios<br>')
    opcion('Casa Mago Chams','chams.htm')
    opcion('La Librer&iacute;a M&aacute;gica','libreria.htm')


    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Publicaciones<br>')
    opcion('Artes M&aacute;gicas','artesmagicas.htm')
    //opcion('Directorio M&eacute;xico','directorio.htm')
    opcion('El Mundo M&aacute;gico','elmundomagico.htm')
    //opcion('La Osa Mayor','osamayor.htm')
    opcion('Magi','magi.htm')

    document.write('<hr size="1"width="90%">')
    document.write('&nbsp;Otros Servicios<br>')
    opcion('Alerta de Virus','virus.htm')

    document.write('<hr size="1"width="90%">')
    document.write('<br>')
}

function Look_and_Feel_1(){
	//--- Inicia tabla principal ---
    	document.write('<center><table width="100%"cellpadding="0"cellspacing="0"borderwidth="0"border="0"valign="top">')
	document.write('<tr valign=top>')
	//-- Columna Izquierda ------
	Menu_izq()
	//-- Columna Central ------
	document.write('<td width="472"valign="top"bgcolor="'+color_fondo+'"background="images/telon.jpg">')
	//--- Encabezado ---------
	Titulo();
	//--- Contenido ----
	document.write('<center><table width="95%"height="740"border="0"cellpadding="0"cellspacing="0"><td valign="top">')
}

function Look_and_Feel_2(){
    	document.write('</td></table>')
	//--- Pie de pagina ------
	Footer();
	//--- Columna Derecha ----
	Menu_der();
	//--- Columna de relleno para 1024x768 ---
	document.write('<td>&nbsp;</td>')
	//--- Termina tabla principal ---
	document.write('</tr></table>')
	Micromenu()
}

function Titulo()
{
    document.write('<table width="100%"bgcolor="'+color_header+'"><tr height="70"><td width="100%"align="center">')
    document.write('<table width="100%"bgcolor="silver"cellspacing="0"><td><img src="images/lacasadelosmagos1.jpg" width="468" height="60" alt="La Casa de Los Magos" border="1"></td></table>')
    document.write('</td></tr></table>')
    document.write('<br><table bgcolor="'+color_titulo+'"width="100%"border="0"cellspacing="0"><tr height="10"><td>')
    document.write('<td><font color="navajowhite"size="2">&nbsp;&nbsp;'+Titulo_Pagina+'</font></td><td>&nbsp;</td><td align="right"><font color="navajowhite"size="2">'+Ciudad+'&nbsp;&nbsp;</font>')
    document.write('</td></table><br>')
}

function Menu_izq()
{
    document.write('<td background="'+backgr+'"bgcolor="'+color_menus+'"width=150"><img src="images/curve.gif" width="12" height="19"border="0"><br>')
	document.write('<center><img src="images/abanico_s.gif" width="103" height="77" alt="" border="0"><BR>')
	//--- Fecha y Hora ---
	var Hours;var Mins;var Time;var tx_dia;var tx_mes;Stamp = new Date();year = Stamp.getYear();
	if (year < 2000) year = 1900 + year;dia=Stamp.getDay();
	if (dia==1){tx_dia="Lunes"};if (dia==2){tx_dia="Martes"};if (dia==3){tx_dia="Miércoles"};if (dia==4){tx_dia="Jueves"};if (dia==5){tx_dia="Viernes"};if (dia==6){tx_dia="Sábado"};if ((dia==7)||(dia==0)){tx_dia="Domingo"};
	mes=(Stamp.getMonth() + 1);if (mes==1){tx_mes="enero"};if (mes==2){tx_mes="febrero"};if (mes==3){tx_mes="marzo"};if (mes==4){tx_mes="abril"};if (mes==5){tx_mes="mayo"};if (mes==6){tx_mes="junio"};if (mes==7){tx_mes="julio"};if (mes==8){tx_mes="agosto"};if (mes==9){tx_mes="septiembre"};if (mes==10){tx_mes="octubre"};if (mes==11){tx_mes="noviembre"};if (mes==12){tx_mes="diciembre"};
	document.write('<font face="Arial"style="text_size:8px;"color="navajowhite">' +tx_dia +' ' + Stamp.getDate() +" de "+ tx_mes + " "+ year );
	Hours = Stamp.getHours();if (Hours >= 12) {Time=" pm";}else {Time=" am";}
	if (Hours > 12) {Hours -= 12;};if (Hours == 0) {Hours = 12;};
	Mins = Stamp.getMinutes();if (Mins < 10) {Mins = "0" + Mins;};
	document.write(', ' + Hours + ":" + Mins + Time);
	document.write('<a href="emails.htm">.</a></font></center>')

    	Menu();
    	Boletin();
	Copyright();

	document.write('</td>')
}

function Menu_der()
{
    document.write('<td width="150"background="'+backgr+'"bgcolor="'+color_menus+'"><center>')
    document.write('<hr size="1"width="90%">')
    document.write('<A HREF="http://www.amazon.com/exec/obidos/redirect-home/'+afiliate+'"')
    document.write('target="_blank"onMouseover="self.status=mymsg;return true;"onMouseout="clearmsg();"><IMG ')
    document.write('SRC="images/pdm-search-logo-126x32.gif" width="126" height="32" BORDER="0"')
    document.write('HSPACE="0" VSPACE="0" ALT="In Association with Amazon.com"></a><hr size="1"width="90%">')
	//--- Libro recomendado ---
	this_banner = randomBanner();
	document.write('<hr size="1"width="90%">')
	
	Busqueda();
	document.write('<hr size="1"width="90%">')	
	//--- Los Mejores 50 Sitios de Magia -------
	document.write('<a href="http://casamagica.mytopsitelist.com/magia"target="_blank"><img width="120"height="60"src="images/Top50-1.jpg"border="1"alt="Conozca Los Mejores 50 Sitios de Magia"></a><hr size="1"width="90%">')
	//--- Boton de Portalmix -------
	document.write('<a href="http://www.portalmix.com/portal10/curiosidades_magia.shtml"target="_blank"><img src="images/Portalmix_Boton.gif" border=0 alt="Top 10 Portalmix"width="96"height="36"></a><hr size="1"width="90%">')
	//--- Pedofilia-no.org -------
	document.write('<a href="http://www.pedofilia-no.org" target="_blank"><img src="images/banner4.gif" border="0" width="120" height="60"alt="Combata la pornografia infantil en internet"></a><hr size="1"width="90%">')
	//--- Merlin El Buscador de Magia -------
	document.write('<a href="http://www.buscamagia.com"target="_blank"><img src="images/merlin-boton.gif"border="0"width="100"height="35"')
	document.write('alt="El Buscador de P&aacute;ginas M&aacute;gicas en Espa&ntilde;ol"></a><hr size="1"width="90%">')
	//--- Revista Mystica -------
	document.write('<a href="http://www.bazardemagia.com/home.php?p=categoria&idCategoria=20"target="_blank"><img src="images/linkmistica3.jpg" border=0 alt="Suscribase a Mystica"width="120"></a><hr size="1"width="90%">')
	//--- Revista Magi -------
	document.write('<a href="http://www.revistamagi.com.br/"target="_blank"><img src="images/magi.gif" border=0 alt="Suscribase a Magi"width="120"></a><hr size="1"width="90%">')
	//--- Red de Magos Solidarios -------
	document.write('<a href="http://www.redmaso.com.ar"target="_blank"><img src="images/redmaso.gif" border=0 alt="Red de Magos Solidarios"width="120"></a><hr size="1"width="90%">')
	//--- Anti-Spam -------
	document.write('<a href="http://www.lacasadelosmagos.com/antispam/"target="_blank"><img src="images/antispamlogo.jpg" width="106" height="70" alt="Di NO al correo no solicitado"border="0"></a><hr size="1"width="90%">')


	document.write('</td>')
}

function Footer()
{
 	document.write('<table width="100%"cellspacing="0"cellpadding="0"><td bgcolor="'+color_footer+'"align="center"valign="top">')
        //Siteanouncer();
	//Banner();
    document.write('</td></table></td>')
}

function opcion(liga,url)
        {
        document.write('<table cellpadding="0"cellspacing="0"><tr height="5"><td valign="top">')
        document.write('&nbsp;&nbsp;<img src="images/triangle.gif"border="0"heigth="7"width="7">&nbsp;</td>')
        document.write('<td align="left"><a href="'+url+'">'+liga+'</a></td></tr></table>')
        ligas+='&nbsp;<nobr><a href="'+url+'"style="font-size:9px;">'+liga+'</a> |</nobr>'
        cuenta++
        if (cuenta == 9){  
        ligas+='<br> |';cuenta=0;
        }
        }

function Busqueda()
{
    document.write('<center><FORM METHOD="get" ACTION="http://www.amazon.com/exec/obidos/external-search"target="_blank">')
    document.write('<TABLE BORDER="0" CELLPADDING="1" cellspacing="0" BGCOLOR="black"width="126"><TR><TD>')
    document.write('<TABLE BORDER="0" CELLPADDING="2" cellspacing="0" align="center" BGCOLOR="beige"width="126">')
    document.write('<TR><TD><font face="verdana,arial,helvetica" size="-2"color="black"><B>Search:</B></font><br>')
    document.write('<SELECT NAME="mode"style="font-size:9px;">')
    document.write('<OPTION VALUE="blended" selected>All Products')
    document.write('<OPTION VALUE="books">Books')
    document.write('<OPTION VALUE="music">Popular Music')
    document.write('<OPTION VALUE="classical-music">Classical Music')
    document.write('<OPTION VALUE="vhs">Video')
    document.write('<OPTION VALUE="dvd">DVD')
    document.write('<OPTION VALUE="toys">Toys & Games')
    document.write('<OPTION VALUE="videogames">Computer Games')
    document.write('<OPTION VALUE="videogames">Video Games')
    document.write('<OPTION VALUE="electronics">Electronics')
    document.write('<OPTION VALUE="software">Software')
    document.write('<OPTION VALUE="universal">Tools & Hardware')
    document.write('<OPTION VALUE="garden">Outdoor Living')
    document.write('<OPTION VALUE="kitchen">Kitchen & Housewares')
    document.write('<OPTION VALUE="photo">Camera & Photo')
    document.write('<OPTION VALUE="wireless-phones">Wireless Phones')
    document.write('</SELECT></TD><TR><TD><font face="verdana,arial,helvetica" size="-2"color="black"><B>Keywords:</B></font>')
    document.write('<br><center><INPUT TYPE="text" NAME="keyword" SIZE="10" VALUE="">')
    document.write('<INPUT TYPE="hidden" NAME="tag" VALUE="'+afiliate+'">')
    document.write('<INPUT TYPE="image" WIDTH="21" HEIGHT="21" BORDER="0" VALUE="Go" NAME="Go"src="images/pdm-search-go-btn.gif">')
    document.write('</font></TD></TR><TR><TD ALIGN="center" BGCOLOR="black">')
    document.write('<A HREF="http://www.amazon.com/exec/obidos/redirect-home/'+afiliate+'"')
	document.write('target="_blank"onMouseover="self.status=mymsg;return true;"onMouseout="clearmsg();"><IMG ')
    document.write('SRC="images/pdm-search-logo-126x32.gif" width="126" height="32" BORDER="0"')
    document.write('HSPACE="0" VSPACE="0" ALT="In Association with Amazon.com"></a></TD>')
    document.write('</TR></TABLE></TD></TR></TABLE></FORM></center>')
}

function Copyright()
{
    document.write('<center><table width="140"bgcolor="#000060"cellpadding=3 cellspacing=0  valign=top border="1" >')
    document.write('<tr><td><center>')
    document.write('<font size="1"color="navajowhite">&copy; Copyright, Derechos Reservados 1999-2010 La Casa de los Magos')
    document.write('<hr size="1"><img src="images/bandera_mexico.gif" width="32" height="22" alt="Viva M&eacute;xico"align="left" border="0"hspace="3">&nbsp;Webmaster:<br><a href="mailto:'+webmaster+'">&nbsp;Tri-x</a>')
    document.write('</td></tr></table></center><hr size="1">')
}

function Boletin()
{
 	//--- Suscripcion a boletin ---
    document.write('<center><form method=GET action="http://groups.yahoo.com/subscribe/casamagica"target="_blank">')
    document.write('<table width="90%"border="1"bgcolor="#000060"cellspacing="0"cellpadding="3"bordercolorlight="#cccccc"bordercolordark="#000060">')
    document.write('<tr><td align="center"><font size="1">Subscr&iacute;base a nuestro<br> bolet&iacute;n &nbsp;')
    document.write('<font color="white"<b>El Mundo M&aacute;gico</b></font><br>')
    document.write('<input value="e-mail"type="text" name="user"  size="12">')
    document.write('<br><input type=submit value="Suscribir"name="Click here to join casamagica"></td></tr></table></form>')
}

function Siteanouncer()
{
    // Actualizado a los nuevos servidores de Bravenet ---
    document.write('<center><FORM action="http://pub12.bravenet.com/announce/send.asp" method="post"><INPUT type="hidden" name="usernum" value="'+bravenet+'"><INPUT type="hidden" name="cpv" value="1">')
    document.write('<br><TABLE width="450"bgcolor="'+color_menus+'"cellpadding="2" cellspacing="0" border="1" bordercolor="silver"><TR><TD ALIGN="CENTER">')
    document.write('<FONT face="Verdana,Arial" size="1"color="gold"><b>Recomienda esta p&aacute;gina y GANA UN PREMIO</b>')
    document.write('</TD></TR>')
    document.write('<TR><TD align="center"><FONT face="Verdana,Arial"size="1"color="navajowhite">')
    document.write("E-mail de tu amigo:&nbsp;&nbsp;<INPUT type=text name=emailaddress size=15 maxlength=100>")
    document.write('<BR>Tu nombre: &nbsp;<INPUT type="text"name="name"size="15"maxlength="50">')
    document.write('&nbsp;&nbsp;Tu e-mail:&nbsp;<INPUT type="text"name="youremail" size="15" maxlength="50">')

    document.write('<br>Comentarios:&nbsp;&nbsp;<TEXTAREA name="yourmessage" cols="30" rows="2"wrap="soft"></TEXTAREA>')
    document.write('<br>Recibir copia:<INPUT type="checkbox"name="metoo" value="yes">&nbsp;&nbsp;&nbsp;')
    document.write('<INPUT type="submit" name="submit"value="Enviar"></TD></TR></TABLE> ')
    document.write('</FORM></CENTER>')
}

function Banner()
{
    document.write('<hr><A HREF="http://www.acmemagic.com/cgibin/banners/rd2.cgi?a=11p1&s=468x60"target="_blank"><IMG ')
    document.write('SRC="http://www.acmemagic.com/cgibin/banners/bi2.cgi?a=11p1&s=468x60"WIDTH="468" height="60" border=1 HSPACE=0 VSPACE="0"')
    document.write('alt="magic banner exchange"></A><br>')
    document.write('<a href="http://www.acmemagic.com/banners/index.html"target="_blank"><small>Acme Magic Exchange</small></a><hr>')
}

function Micromenu()
{
    document.write('</center><br><table width="640"border="1"cellspacing="0"cellpadding="0"bordercolorlight="silver"><td align="center" width="500" bgcolor="'+color_footer+'">')
    document.write('<b><a href="#top""><img src="images/triangle_up.gif"border="0"width="14"height="14">Inicio de la p&aacute;gina</a></b><hr size="1"color="silver"width="90%">');
    document.write(ligas)
    document.write('<hr size="1"color="silver"width="90%"></td></table></center>')
}

function click() {
if (event.button==2){alert('Hmmm...')}
}
document.onmousedown=click

function clearmsg()
        {self.status="";return true;}


//---- Random Banner Picker ---
function banner(imgSource,url,alt,chance) {
	this.imgSource = imgSource;
	this.url = url;
	this.alt = alt;
	this.chance = chance;
}
function dispBanner() {
	with (this)
	document.write("<A HREF=" + url + "target='_blank'><IMG SRC='" +imgSource + "' BORDER=1 ALT='" + alt + "'></A>");
}

banner.prototype.dispBanner = dispBanner;
banners = new Array();
banners[0] = new banner("images/0806994541.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0806994541/lacasadelosmagos",
                        "Mystifying Card Tricks",
                        10);
banners[1] = new banner("images/0811908259.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0811908259/lacasadelosmagos",
                        "Mastering Magic : 100 Secrets of the Great Magicians",
                        10);
banners[2] = new banner("images/0812885651.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0812885651/lacasadelosmagos",
                        "Magic with Everyday Objects",
                        10);
banners[3] = new banner("images/0806993472.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0806993472/lacasadelosmagos",
                        "The Little Giant Encyclopedia of Card & Magic Tricks",
                        10);
banners[4] = new banner("images/0486405303.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0486405303/lacasadelosmagos",
                        "Ellis Stanyon's Best Card Tricks",
                        10);
banners[5] = new banner("images/0806995483.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0806995483/lacasadelosmagos",
                        "Magic Step-By-Step",
                        10);
banners[6] = new banner("images/0394722027.01.MZZZZZZZ.jpg",
                        "http://www.amazon.com/exec/obidos/ASIN/0394722027/lacasadelosmagos",
                        "Now You See It, Now You Don't : Lessons in Sleight of Hand",
                        10);


sum_of_all_chances = 0;
for (i = 0; i < banners.length; i++) {
	sum_of_all_chances += banners[i].chance;
}
function randomBanner() {
	chance_limit = 0;
	randomly_selected_chance = Math.round((sum_of_all_chances - 1) *
	Math.random()) + 1;
	for (i = 0; i < banners.length; i++) {
	chance_limit += banners[i].chance;
	if (randomly_selected_chance <= chance_limit) {
	document.write('<A HREF="'+ banners[i].url+'"target="_blank"><IMG SRC="'+banners[i].imgSource+'" BORDER=0 ALT="'+banners[i].alt +'"></A>');
	return banners[i];break;
    }
  }
}


//End of Code-->
