/*
// Precarga de imagenes del menu y rollover

function init()
{
	if (document.getElementById)
		var x = document.getElementById('oNavegacion').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['oNavegacion'].all.tags('IMG');
	else return;
		//alert(x[2].id)
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = 'img/'+ x[i].id + '.gif';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = 'img/'+ x[i].id + 'on.gif';
		preloads['o'+x[i].id].onerror = function () {this.src='img/x.gif'}

		if(x[i].src.indexOf('on') != -1 ){ preloads['n'+x[i].id].src =  'img/'+ x[i].id + 'on.gif'; } // aņadido por CarlosJ. Mantiene el estado encendido si en la ruta de la imagen encuentra un "on"

		if(x[i].id != '' ){ // If aņadido para que en IE6 las imagenes que existan que no tengan rollover no se rompan.
			x[i].onmouseover = function () {  this.src=preloads['o'+this.id].src; }

			x[i].onmouseout = function () { this.src=preloads['n'+this.id].src; }
		}
	}
}
//window.onload = init;
*/




$(function(){

	$("#selectIdioma").toggle(
      function () {
       $(".restoIdiomas").show();
      },
      function () {
        $(".restoIdiomas").hide();
      }
    );

}); // fin $(function inicial

function valores(campo,valor){
	if (campo.value==''){ campo.value=valor;}
}
function valores2(campo,valor){
	if (campo.value==valor){ campo.value='';}
}

function aviso_legal(url,alto,ancho){		
	topV=(screen.availHeight/2) - alto/2;
	leftV=(screen.availWidth/2) - ancho/2;
	win="fullscreen=0,directories=0,resizable=1,location=0,status=1,scrollbars=0,toolbar=0,menubar=0,width="+ancho+",height="+alto+",screenX="+leftV+",screenY="+topV+",top="+topV+",left="+leftV
	
	ven2=window.open(url,'ven2',win);
	window.ven2.focus();
}