// JavaScript Document

box_show = function (){
	Effect.Appear('box-bg', { duration: 0.5, from: 0, to: 0.7, afterFinish: function(){
																						box_lista_show();
																					   	} });  return false;
}


box_lista_show = function(){
	document.getElementById('box').style.display='inline';
	fAjax('video.php','','box-lv2');
	/*Effect.Appear('box', { duration: 0.5, from: 0, to: 1, afterFinish: function(){
																					   	} });  return false;*/
}

box_lista_close = function(){
	document.getElementById('box').style.display='none';
	document.getElementById('box-lv2').innerHTML ='';
	//Effect.Fade('box', { duration: 0.5, from: 1, to: 0, afterFinish: function(){ box_close(); } });  return false;
	box_close();
}
box_close = function() {
	//document.getElementById('box-lv2').innerHTML = ' ';
	Effect.Fade('box-bg', { duration: 0.5, from: 0.7, to: 0 });
}






function over(menu){
	document.getElementById(menu).style.background = 'url(images/submenu_over.png) repeat-y left #ffff6f';
}

function out(menu){
	document.getElementById(menu).style.background = 'none';
}




/* ******************** IMPRIMIR MAPA ************************ */

function impMapa() {
	var url = 'contactos_mapa.html';
	var title = 'Cambiar';
	var largo = 500;
	var altura = 700;
	var adicionales= '';
	var top = (screen.height-altura)/2;
	var iz = (screen.width-largo)/2;
	n_display=window.open(url,title,'width=500,height=550,top='+top+',left='+iz);
	n_display.focus();
}


function verMapa() {
	var url = 'ver_mapa.html';
	var title = 'Cambiar';
	var largo = 500;
	var altura = 700;
	var adicionales= '';
	var top = (screen.height-altura)/2;
	var iz = (screen.width-largo)/2;
	n_display=window.open(url,title,'width=500,height=550,top='+top+',left='+iz);
	n_display.focus();
}

