function inicio()
{             
        alert("Inicio");

 
}                 
// expande la ventana del navegador de la nada al tamaño de la pantalla
 function expandir() {
        for(x = 0; x < 50; x++) {
        window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
        window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50);
        }
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth, screen.availHeight);
} 


// hay que poner estas líneas en el html para que lo abra
//<a href="javascript:AbrirFoto(5,'images/logo.gif', 267, 103)";>
//<img src="images/logo.gif" width=86 height=51></a>     
//
function AbrirFoto(timeout,URL, WIDTH, HEIGHT) {
        windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);

        text = "<html><head><title>Preview</title></head><body bgcolor='white'";

        if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

        text += "><center><img src='" + URL + "'>";

        if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

        text += "</center></body></html>";

        preview = window.open("", "preview", windowprops);
        preview.document.open();
        preview.document.write(text);
        preview.document.close();
}

function over(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = omo[no].src  ; 		
	}
}

function out(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = nrm[no].src
		window.status ="Mundoglobo";
	}
}


function versionNavegador()
{
  	version=navigator.appVersion;
	// buscamos la version del explorer, si no la encuentra, por defecto ponemos que 
	// actue como si fuese la versión 5
	dondeEsta = version.indexOf("MSIE");
	if (dondeEsta != -1){
		version = version.substring(dondeEsta+5,dondeEsta+6)
	}
	else
	{
		 version = 5;
	}
	iVersion=Number(version);
	return iVersion;
}               





                  
                  

function titulo() {   

        var barraSuperior = new Array();
	barraSuperior[0] = " Mundoglobo, preparación de fiestas S.L. ";
	barraSuperior[1] = " Mundoglobo, Productos para fiestas ";
	barraSuperior[2] = " Mundoglobo, Celebra tu cumpleaños ";
	barraSuperior[3] = " Mundoglobo, Somos profesionales de la decoración con globos ";
	barraSuperior[4] = " Mundoglobo, Venta de disfraces ";
	barraSuperior[5] = " Mundoglobo, Te ayudamos a celebrar tus eventos ";
	barraSuperior[6] = " Mundoglobo, Cumpleaños ";
	barraSuperior[7] = " Mundoglobo, Bodas, Bautizos, Comuniones, Bar/Bat Mizbath... ";
        barraSuperior[7] = " Mundoglobo, Te ayudamos en tus fiestas ";

        if (contador>=barraSuperior.length ) {
                 contador =0;
         }
         else {
              
              document.title=barraSuperior[contador];
              contador++
        }                
         setTimeout("titulo()", 5000);
 }





// agita la pantalla el número de veces que se le pase, un buén número es 2
function agitar(n) {
        if (parent.moveBy) {
                for (i = 10; i > 0; i--) {
                        for (j = n; j > 0; j--) {
                                parent.moveBy(0,i);
                                parent.moveBy(i,0);
                                parent.moveBy(0,-i);
                                parent.moveBy(-i,0);
                         }
                }
        }
}
     
     
     
     
                
        
function subir() {
        if (document.all) {
        document.all.topButton.style.pixelLeft = document.body.clientWidth - document.all.topButton.offsetWidth;
        document.all.topButton.style.visibility = 'visible';
        }
        else if (document.layers) {
        document.topButton.left = window.innerWidth - document.topButton.clip.width - 15;
        document.topButton.visibility = 'show';
        }
        else if (document.getElementById) {
        document.getElementById('topButton').style.left = (window.innerWidth - 35) + 'px';
        document.getElementById('topButton').style.visibility = 'visible';
           }
}    




