//
//==========================================
// elGuille.js
// (c)Guillermo 'guille' Som, 1998-2006
// Última revisión:           (30/Mar/2006)
//==========================================
function validarGuille(valor){
	if(valor=="")
		return false;
    fBuscarGuille.B3.value=valor;
    fBuscarGuille.Op.value="150";
    return true;
}
function validarGuille2(valor){
	if(valor=="")
		return false;
    fBuscarGuille2.B3.value=valor;
    fBuscarGuille2.Op.value="150";
    return true;
}
// Solo si se debe poner la cabecera (valor por defecto) (26/Jun/07)
// ///////////////////////////
// isDefined (o para saber si está definida la variable)
// http://jehiah.cz/archive/javascript-isdefined-function
// El que funciona es lo que dice Marton
// ///////////////////////////
sinCabecera = window.sinCabecera ? window.sinCabecera : false;
	
if( sinCabecera == false )
{
document.write("<table border='1' width='100%'>" +
"  <tr>" +
"    <td valign='middle' align='middle' width='200' rowspan=2>" +
"       <a href='"+gsPath+"default.aspx'>" +
"       <img src='"+gsPath+"imagenes/el_guille.gif' alt='ir al indice principal' border='0'></a>" +
"    </td>" +
"    <td align='middle'>" +
"       <font face='Comic Sans MS' color='#000080' size='4'><strong><a href='"+gsPath+"el_guille.aspx' style='color:navy'><acronym title='Quien es el Guille?'>el Guille</acronym></a>, la Web del Visual Basic, C#, .NET y m&aacute;s...</strong></font>" +
"    </td>" +
"  </tr>" +
"   <tr>" +
"       <td align='middle' height=20 background='"+gsPath+"imagenes/barra_grisclaro.png'><b><font face='Verdana' size='1'>&nbsp;"+
"       <a href='"+gsPath+"lonuevo/Default.aspx'><acronym title='Lo Nuevo de este mes'>Lo+</acronym></a> -" +
"       <a href='"+gsPath+"NET/WinFX/default.aspx'><acronym title='Indice de WinFX, WPF, WWF, WCF y .NET 3.0'>WinFX</acronym></a> -" + 
"       <a href='"+gsPath+"NET/default.aspx'><acronym title='El indice de punto NET'>.NET</acronym></a> -" +
"       <a href='"+gsPath+"NET/ADONET/Default.aspx'><acronym title='Bases de datos de punto NET'>ADO.NET</acronym></a> -" +
"       <a href='"+gsPath+"NET/ASPNET/Default.aspx'><acronym title='Paginas y servicios Web en punto NET'>ASP.NET</acronym></a> -" +
"       <a href='"+gsPath+"NET/comodotnet.aspx'><acronym title='Como... en punto NET'>C&oacute;mo...</acronym></a> -" +
"       <a href='"+gsPath+"colabora/colabora.htm'><acronym title='Las colaboraciones'>Colabora</acronym></a> -" +
"       <a href='"+gsPath+"vb/default.aspx'><acronym title='El indice de Visual Basic 6'>VB6</acronym></a> -" +
"       <a href='"+gsPath+"vb/VB_API.HTM'><acronym title='API de Windows (VB6)'>API</acronym></a> -" +
"       <a href='"+gsPath+"HTMLscripts/HTML_Tip.aspx'><acronym title='Lenguajes Scripts y HTML'>HTML</acronym></a> -" +
"       <a href='"+gsPath+"sistema/Vista/Default.aspx'><acronym title='Articulos y trucos para Windows Vista'>Vista</acronym></a> -" +
"       <a href='"+gsPath+"otrositios/Default.aspx'><acronym title='Otros sitios'>Links</acronym></a>&nbsp;-" +
"       <a href='"+gsPath+"foros_guille.aspx'><acronym title='Los foros del Guille'>Foros</acronym></a>" +
"       &nbsp;</font></b></td>" +
"   </tr>" +
"</table>");
}
// Por si se indica sin anuncios (05/Feb/11)
sinAnunciosJS = window.sinAnunciosJS ? window.sinAnunciosJS : false;

if( sinAnunciosJS == false )
{

// Mostrar alternando lo que había con lo del hosting (07/Mar/06)
var hoyBanArriba = new Date();
var mBanSegundos = hoyBanArriba.getSeconds(); // .getMinutes();
// var bannerMSjul = false;

// Para probar el anuncio del sponsor
//mBanSegundos = 11
//mBanSegundos = 56 


// El 15/Jun/2010 13.35 pongo 4 anuncios: Domitienda, SolidQ, Luarna y Microsoft
// El de Microsoft no se ve... lo quito... 15/Jun/10 15.34

// El 20/May/2010 23.20 pongo solo 3 anuncios (Domitienda, SolidQ y Luarna)
// el 04/Ago/2010 08.11 pongo 4, para incluir el de Aula Vulcan de dotnetmania
// el 09/Nov/2010 18.24 pongo nuevamente 3, quito Aula Vulcan

if( mBanSegundos < 15 )
{
// Banner SolidQ, iniciado el 21/May/2010
// Pongo el 14/May/11 18:05 el del summit 2011
document.write(""+
"<div class='colorClaro' style='border:0px teal solid; padding:0.5em 0em; text-align:center; margin:1em 3.0em'>"+
"<a href='http://www.solidq.com/' target='_blank'>"+
"<img alt='SolidQ' height='120' longdesc='SolidQ - SQL Server, Business Intelligence, Collaboration Training, Mentoring and Consulting' "+
"src='"+gsPath+"sponsors/soliq_banner_logoheader_10jun11.png' width='670' style='border: 0px;' /></a>"+
"</div>");
}
else if( mBanSegundos < 30 )
{
// Luarna
// septiembre 2011 gratis, contrata de oct'11 a mar'12
document.write(""+
"<div style='margin:4px'>"+
"<center>"+
"<a href='http://www.luarna.com/ebooks/' target='_blank'>"+
"<img alt='Luarna eBooks' height='120' src='"+gsPath+"sponsors/luarna_Guille201109.gif' width='670' style='border-width:0px' /></a>"+
"</center>"+
"</div>");
}

else if( mBanSegundos < 50 )
{
// Oferta de alojamiento (nuevo banner 17/Sep/2011, la imagen está alojada en el servidor de domitienda)
document.write(""+
"<div style='text-align:center'>"+
"<p><a href='http://www.domitienda.com/' target='_blank'>"+
"<img alt='Ofertas de alojamiento en DomiTienda' height='250' src='http://www.domitienda.com/promociones/guille.gif' width='300' style='border:0px transparent none' /></a>...</p>"+
"</div>");

}
else
{
// Domitienda
document.write(""+
"<div class='colorClaro' style='border:2px green solid; padding:0.5em; text-align:center; margin:3.0em'>"+
"<h3>Tus planes de alojamiento (hosting)<br/>"+
"con .NET Framework 4.0: ASP.NET 4.0 y MVC3<br/>"+
"<a href='http://www.domitienda.com/Comparativa.aspx' target='_blank'>Contr&aacute;talos en&nbsp;<img alt='DomiTienda.com' height='20' src='http://www.elguille.info/imagenes/domitienda.jpg' width='185' style='border:0px transparent none' /></a><br />"+
"indicando &quot;elGuille&quot;</h3>"+
"</div>");
}
}

