function url_pdf(valor, id){


var url="amd/logo_seguro/"+valor;
window.open(url,'window','params');



}
// JavaScript para sub menus 

/***** para cargar las noticias de sub menu  ***/
function cargar_noticia(){

FAjax('muestra_noticias.php','mnoticias','','get');

document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="block";

}


function carga_noticias(pag){
FAjax('muestra_noticias.php?pag='+pag,'mnoticias','','get');



}
function ver_albumes(){

document.getElementById("listado_fotos").style.display="block";

document.getElementById("mnoticias").style.display="none";
}


function color1(x){

document.getElementById(x).style.backgroundColor="#FFFFFF";
document.getElementById(x).style.border="1px solid red";
}

function color2(x){


document.getElementById(x).style.backgroundColor="#FFFFFF";
document.getElementById(x).style.border="1px none red";
}



function color11(x){
var data="h"+x;
document.getElementById(data).style.backgroundColor="rgb(215,255,255)";

document.getElementById(data).style.border="1px NONE #FFFFFF";
}

function color22(x){
var data="h"+x;

document.getElementById(data).style.backgroundColor="#FFFFFF";
document.getElementById(data).style.border="1px none #cccccc";
}

// funciones de paginacion de datos  de los videos 

function VErSonaVideos(){

//FAjax('tabla_videos.php?pag1='+pag,'muestra_videos01','','GET')
var cat=1;

document.getElementById("mnoticias").style.display="block";
FAjax('amd/tabla_catvideo.php','mnoticias','pag='+cat,'POST');

document.getElementById("listado_fotos").style.display="none";
}


function pavideo(pag,cat){

//FAjax('tabla_videos.php?pag1='+pag,'muestra_videos01','','GET');
FAjax('amd/tabla_videos.php','muestra_videos01','pag1='+pag+'&id_categoria='+cat,'POST');
}

function pavideo2(pag,cat){

//FAjax('tabla_videos.php?pag1='+pag,'muestra_videos01','','GET');
FAjax('amd/tabla_videos.php','muestra_videos01','pag1='+pag+'&id_categoria='+cat,'POST');
}




/// funccion para paginar datos

/***** funcion para visualizar albumes desde   link de enlaces ******/

/// funccion para paginar datos

function pprealbum(pag){

FAjax('listado_foto_albunes_presenta.php?pag1='+pag,'id_noticia','','GET');

}

function presentaalbumes(){
	
	/*FAjax('listado_fonto_albunes_presenta.php','muestra_album','','POST');
	*/
	FAjax('listado_foto_albunes_presenta.php','muestra_album','','GET');
	document.getElementById("id_noticia").style.display="none";
	document.getElementById("listado_noticia33").style.display="none";
	document.getElementById("muestrafotos").style.display="none";
	
	
	}



function Contendo_isa(){
	
	/*FAjax('listado_fonto_albunes_presenta.php','muestra_album','','POST');
	*/

	FAjax('contenido_isa2.php','muestra_album','','GET');
	document.getElementById("id_noticia").style.display="none";
	document.getElementById("listado_noticia33").style.display="none";
	document.getElementById("muestrafotos").style.display="none";
	document.getElementById("muestra_album").style.display="block";
	
	
	}


function paginar1(pag){

FAjax('listado_foto_albunes2.php?pag1='+pag,'listado_fotos','','GET');

}

function paginar2(pag){

FAjax('listado_foto_albunes2.php?pag1='+pag,'listado_fotos','','GET');

}




function url_foto(id_albun){

location.href="listado_eventos_isa.php?id_albun="+id_albun;
}


var win=null;


function NewFotos(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}



function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}



function NewWindow1(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

/****  para los sub menus */
function get_foto(idalbum){

location.href='portador_contenido_album.php?id_albun='+idalbum;

//NewWindow1('portador_contenido_album.php?id_albun='+idalbum,'Muestra DE Seguros','980','800','yes','center');return false;
/*
document.getElementById("id_noticia").style.display="none";				
document.getElementById("muestrafotos").innerHTML="<iframe id='iffotos' width='100%'; height='650px' frameBorder='0'></iframe> ";
document.getElementById("iffotos").style.visibility="visible";

document.getElementById("iffotos").src="contenido_albumes.php?id_albun="+idalbum;

*/


}



/*** para mostrar los seguros  **/
function get_Seguro(id_seguro,id2,id3){

//document.getElementById("muestra_album").style.display="block";

FAjax('Listado_Seguros.php?id_grupo='+id_seguro,'id_noticia','','GET');

document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="block";	
//document.getElementById("listado_noticia33").style.display="none";	

cargar_noticia();
}
/***** para los submenus  de noticias ********************/

function get_paginas(url){


//document.getElementById("id_noticia").style.display="block";
FAjax(url,'id_noticia','','GET');

document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="block";	
//document.getElementById("listado_noticia33").style.display="none";	
cargar_noticia();
}


function verbuscar(){
FAjax('Busqueda web/busquedaentrada.php','mnoticias','','GET');

document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="block";			
/*document.getElementById("mnoticias").innerHTML="<iframe id='iffotos' width='100%'; height='650px' frameBorder='0'></iframe> ";
document.getElementById("iffotos").style.visibility="visible";

document.getElementById("iffotos").src="historial_noticia.php";

*/

}




function verhnoticia(){
FAjax('historial_noticia.php','mnoticias','','GET');

document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="block";			
/*document.getElementById("mnoticias").innerHTML="<iframe id='iffotos' width='100%'; height='650px' frameBorder='0'></iframe> ";
document.getElementById("iffotos").style.visibility="visible";

document.getElementById("iffotos").src="historial_noticia.php";

*/

}
/***** ver Bannner de sub menus *************************************/
function ver_banner(){
FAjax('banners_alusibos.php','mnoticias','','GET');
document.getElementById("listado_fotos").style.display="none";
document.getElementById("mnoticias").style.display="block";
document.getElementById("id_noticia").style.display="none";
	
}


function openmypage(valor,msg,parametros){ //Define arbitrary function to run desired DHTML Window widget codes



//NewWindow1(valor, msg,'800','450','yes','center');return false;
/*ajaxwin=dhtmlwindow.open("ajaxbox", "ajax",valor, msg,parametros)
document.getElementById("id_noticia").style.display="none";*/
location.href=valor;

/*
ajaxwin.onclose=function(){return window.confirm("Cerrar EL BANNER ?");document.getElementById("id_noticia").style.display="block";
} //Run custom code when window is about to be closed
*/
}



function ver_eventos(capa, url,id1){


FAjax('Eventos_isa.php',capa,'','GET');

document.getElementById(capa).style.display="block";
document.getElementById(id1).style.display="none";

}

function ocultar_capa(capa){
document.getElementById(capa).style.display="none";	
	}
