var fotos=	new Array (	new Array("b_01_index.gif", "b_01b_index.gif"), 
						new Array("b_02_implantes.gif", "b_02b_implantes.gif"), 
						new Array("b_03_ortodoncia.gif", "b_03b_ortodoncia.gif"), 
						new Array("b_04_gestion.gif", "b_04b_gestion.gif"), 
						new Array("b_05_radiologia.gif", "b_05b_radiologia.gif"), 
						new Array("b_06_centros_rx.gif", "b_06b_centros_rx.gif"),
						new Array("b_07_laboratorio.gif", "b_07b_laboratorio.gif"),
						new Array("b_08_servicios.gif", "b_08b_servicios.gif"));
						

for(i=0; i<8; i++){
eval("images"+i+"a=new Image;");
eval("images"+i+"b=new Image;");
eval ("images" + i + "a.src = " + "\"img/" + fotos[i][1] + "\";"); 
eval ("images" + i + "b.src = " + "\"img/" + fotos[i][0] + "\";"); 
}

function f_webs(){
for(i=6; i<8; i++){
eval("images"+i+"a=new Image;");
eval("images"+i+"b=new Image;");
eval ("images" + i + "a.src = " + "\"fotos/" + fotos[i][0] + "\";"); 
eval ("images" + i + "b.src = " + "\"fotos/" + fotos[i][1] + "\";");
}
}
function f_info(){
for(i=8; i<11; i++){
eval("images"+i+"a=new Image;");
eval("images"+i+"b=new Image;");
eval ("images" + i + "a.src = " + "\"fotos/" + fotos[i][0] + "\";"); 
eval ("images" + i + "b.src = " + "\"fotos/" + fotos[i][1] + "\";");
}
}
function f_diseno(){
for(i=11; i<15; i++){
eval("images"+i+"a=new Image;");
eval("images"+i+"b=new Image;");
eval ("images" + i + "a.src = " + "\"fotos/" + fotos[i][0] + "\";"); 
eval ("images" + i + "b.src = " + "\"fotos/" + fotos[i][1] + "\";");
}
}

function f_tv(){
images15a=new Image;
images15b=new Image;
eval ("images15a.src = " + "\"fotos/" + fotos[15][0] + "\";"); 
eval ("images15b.src = " + "\"fotos/" + fotos[15][1] + "\";");
}

function f_localizacion(){
images16a=new Image;
images16b=new Image;
eval ("images16a.src = " + "\"fotos/" + fotos[16][0] + "\";"); 
eval ("images16b.src = " + "\"fotos/" + fotos[16][1] + "\";");
}

var cual=0;
function cambiar(cual){
	eval("document.foto"+cual+".src=images"+cual+"b.src;");
}

function restablecer(cual){		
	eval("document.foto"+cual+".src=images"+cual+"a.src;");
}

function show(texto){
texto.style.visibility="visible";
}

function hide(texto){
texto.style.visibility="hidden";
}

function grande(id){
id.style.width="20px";
id.style.height="20px";
id.style.border="solid 1px #ffffff";
}

function peque(id){
id.style.width="15px";
id.style.height="15px";
id.style.border="solid 1px #ff9900";
}

function volver(){
window.history.go(-1);
}
var i=0;
function showimage() {
	i=i+10;
	foto.style.filter="alpha(opacity="+ i +")";
	if(i<100){
		setTimeout('showimage()',100); 
	}else{
		
	}
}
function abrirVentana(){
var alto_screen=window.screen.height;
var alto=(alto_screen-385)/2;
var ancho_screen=window.screen.width;
var ancho=(ancho_screen-550)/2;
ventana=window.open("imprimir.html", "ventana", "toolbar=no, scrollbars=1, menubar=no, location=no, status=no, width=550, height=400, top="+ alto +", left="+ ancho +", resizable=0");
}
function abrirVentana2(){
var alto_screen=window.screen.height;
var alto=(alto_screen-390)/2;
var ancho_screen=window.screen.width;
var ancho=(ancho_screen-606)/2;
ventana=window.open("mapa-localizacion.html", "ventana", "toolbar=no, scrollbars=0, menubar=no, location=no, status=no, width=606, height=404, top="+ alto +", left="+ ancho +", resizable=0");
}

function printit(){  
    window.print() ;  
}

function smallad_over(o) { smallad_toggle(o, 'over') }
function smallad_out(o) { smallad_toggle(o, 'out') }
function smallad_toggle(o, st) {
  if (st == 'over') {
    o.src = o.src.replace(/\.gif/, '_over.gif')
  } else {
    o.src = o.src.replace(/\_over/, '')
  }
}

