var MiClip=0;

var colorTxtSupOn="red"
var colorTxtSupOff="000077"

var colorFilaMenuIzdaOn="1CE81C"
var colorFilaMenuIzdaOff="25c925"

var colorFilaMenuIzda2On="25c925"
var colorFilaMenuIzda2Off="1CE81C"

var txtFontWeightOn="bold";
var txtFontWeightOff="normal";

// overMenuLeft=new Boolean(false);
var overMenuLeft=false;

var bieHome=document.URL.substr(0, (window.location.protocol.length + 3 + window.location.hostname.length));
var bieHome="http://www.semealabok.net/";


// De momento hay un solo idioma. Forzamos que el idioma sea el euskera.
var idiomaActual=bieHome+"eus";
// Cuando haya mas de un idioma hay que quitar la linea de arriba y poner lo siguiente:
// var idiomaActual=document.URL.substr(0, (window.location.protocol.length + 3 + window.location.hostname.length + 3));

var Netscape = (navigator.appName == "Netscape")?true:false;
var velocidad = 8;
var altura;
var anchura;
var nTimer;


	function out(){
		for (i=1;i<5;i++)
			(Netscape)?eval("document.menu"+i+"act.visibility='hidden';"):eval("menu"+i+"act.style.visibility='hidden'");			
	}

	function over(capa){
		out();
		(Netscape)?eval("document."+capa+".visibility='visible';"):eval(capa+".style.visibility='visible'");
	}


function colorFilaOff (rowName) {
	document.getElementById(item)(rowName).bgColor=colorFilaMenuSupOff;
}

function colorFilaOn (rowName) {
    document.getElementById(item)(rowName).bgColor=colorFilaMenuSupOn;
}

function outTexto (idtexto) {
	document.getElementById(item)(idtexto).style.color=colorTxtSupOff;
	// document.getElementById(item(idtexto).style.fontWeight=txtFontWeightOff;
}

function overTexto (idtexto) {	
    document.getElementById(item)(idtexto).style.color=colorTxtSupOn;
	// document.getElementById(item(idIdioma).style.fontWeight=txtFontWeightOn;
}

function colorFilaMenu (menuName, rowName, rowStatus) {

var colorFila="";
var tipoFuente="normal";

    switch (menuName) {
	    case "MenuLeft" :
		    if (rowStatus == "on") {
                // Se apaga el resto de submenus
                // ApagaSubmenus(menuName);
			    colorFila=colorFilaMenuIzdaOn;
				tipoFuente=txtFontWeightOn;
			}
			else {
			    colorFila=colorFilaMenuIzdaOff;
				tipoFuente=txtFontWeightOff;
			}
		break;

	    case "MenuLeft2" :
		    if (rowStatus == "on") {
                // Se apaga el resto de submenus
                // ApagaSubmenus(menuName);
			    colorFila=colorFilaMenuIzda2On;
				tipoFuente=txtFontWeightOn;
			}
			else {
			    colorFila=colorFilaMenuIzda2Off;
				tipoFuente=txtFontWeightOff;
			}
		break;

		default: ;	
	}

	// Se pone color en la fila
	document.getElementById(item)(rowName).bgColor=colorFila;
	// Se cambia el tipo de letra en la fila
	document.getElementById(item)('txt'+rowName).style.fontWeight=tipoFuente;
}

function putOpaco(cur,modo)
{
    if (modo==0)
        cur.filters.alpha.opacity=100;
    else
        cur.filters.alpha.opacity=60;
}


function cambiaIdioma(nuevoLenguaje)
{
    // Se cambia en el caso de que el idioma elegido sea distinto al actual
	// window.location.pathname.substr(0, 3)
    if (idiomaActual != nuevoLenguaje) {
		// idiomaActual=miHomePath+nuevoLenguaje;
		idiomaActual='http://www.semealabok.net//'+nuevoLenguaje;
	    location.replace(idiomaActual+document.URL.substr(27 +  3));
	}
}

function abreVentana(pathRelativo, donde)
{ 
    window.open(idiomaActual+"/"+pathRelativo, donde);
}

function goikopartea (sakonera)
{
	var fecha 	= 	new Date();
	var dia		=	fecha.getDate();
	var mes		=	parseInt(fecha.getMonth())+1;
	var ano		=	parseInt(fecha.getFullYear());

document.write('<div id="Logo" style="position:absolute; left:'+(posX+2)+'px; top:2px; width:0px; height:1px; z-index: 2;"><a href="http://www.ikastola.net/"><img src="'+sakonera+'images/bie_logo_75.jpg" width="84" height="67" border="0"></a></div>');

document.write('<div id=superior3 style="HEIGHT: 67px; LEFT: '+(posX+88)+'px; POSITION: absolute; TOP: 2px; WIDTH: 672px; background-image: url('+sakonera+'images/barraLRk.jpg); z-index: 1;"></div>');

document.write('<DIV style="HEIGHT: 18px; LEFT: '+(posX+690)+'px; POSITION: absolute; TOP: 6px; WIDTH: 80px; Z-INDEX: 2;"><A id="txtFechaActual" class="txtFecha">'+ano+'.'+mes+'.'+dia+'</A></DIV>');

document.write('<DIV style="HEIGHT: 18px; LEFT: '+(posX+690)+'px; POSITION: absolute; TOP: 20px; WIDTH: 80px; Z-INDEX: 2;"><A class="txtHome" id="txtHome" onclick="abreVentana(\'../index.htm\',\'_self\')" style="CURSOR: pointer">home</A></DIV>');

document.write('<DIV style="HEIGHT: 18px; LEFT: '+(posX+690)+'px; POSITION: absolute; TOP: 34px; WIDTH: 80px; Z-INDEX: 2;"><A class="txtHome" id="txtHome" onclick="abreVentana(\'legeoharra.asp\',\'_self\')" style="CURSOR: pointer">lege oharra</A></DIV>');

//	document.write('<DIV style="HEIGHT: 18px; LEFT: '+(posX+690)+'px; POSITION: absolute; TOP: 34px; WIDTH: 80px; Z-INDEX: 2;"><A class="txtSuscription" id="txtSuscribete" style="CURSOR: hand" onclick="abreVentana(\'formulario.asp\',\'_self\')">harpidetza</A></DIV>');
//	document.write('<DIV id="emailBie" style="HEIGHT: 17px; LEFT: '+(posX+690)+'px; POSITION: absolute; TOP: 50px; WIDTH: 83px; z-index: 2;"><A id="txtEmail" class="txtMailTo_k" href="mailto:bie@ikastola.net">e-posta</A></DIV>');
}	

