document.write(''); function grande(cant) { if($('fotg1')) {$('fotg1').style.display = 'block';} if($('epig1')){$('epig1').style.display = 'block';} var init = 1; if($('izqa')) { $('izqa').style.cursor = $('dera').style.cursor = 'pointer'; $('dera').onclick = function() { $('fotg'+init).style.display = 'none'; if($('epig'+init)) {$('epig'+init).style.display = 'none';} if(init < cant) {init++;} else {init=1;} $('fotg'+init).style.display = 'block'; if($('epig'+init)) {$('epig'+init).style.display = 'block';} } $('izqa').onclick = function() { $('fotg'+init).style.display = 'none'; if($('epig'+init)) {$('epig'+init).style.display = 'none';} if(init > 1) {init--;} else {init=cant;} $('fotg'+init).style.display = 'block'; if($('epig'+init)) {$('epig'+init).style.display = 'block';} } } } function chica(cant,id) { if($('fotc'+id+'1')) {$('fotc'+id+'1').style.display = 'block'; $('fotc'+id+'1').init = 1;} if($('epic'+id+'1')) {$('epic'+id+'1').style.display = 'block';} if($('izq'+id)) { $('izq'+id).style.cursor = $('der'+id).style.cursor = 'pointer'; $('der'+id).onclick = function() { initemp = $('fotc'+id+'1').init; $('fotc'+id+initemp).style.display = 'none'; if($('epic'+id+initemp)) {$('epic'+id+initemp).style.display = 'none';} if(initemp < cant) {initemp++;} else {initemp=1;} $('fotc'+id+initemp).style.display = 'block'; if($('epic'+id+initemp)) {$('epic'+id+initemp).style.display = 'block';} $('fotc'+id+'1').init = initemp; } $('izq'+id).onclick = function() { initemp2 = $('fotc'+id+'1').init; $('fotc'+id+initemp2).style.display = 'none'; if($('epic'+id+initemp2)) {$('epic'+id+initemp2).style.display = 'none';} if(initemp2 > 1) {initemp2--;} else {initemp2=cant;} $('fotc'+id+initemp2).style.display = 'block'; if($('epic'+id+initemp2)) {$('epic'+id+initemp2).style.display = 'block';} $('fotc'+id+'1').init = initemp2; } } }