<!--
var ajaxCaller={
shouldDebug:false,
getXML:function(url,callbackFunction){
var ff=document.formulario;
var xmlhttp=false;
try{
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){
xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){
xmlhttp=new XMLHttpRequest();}
ord=Math.random()*10000000000000000;
var Car=url.substring(0,1);
if(Car=="/")
{
var TheURL;
TheURL=host(url);
url=TheURL;}
xmlhttp.open("GET",url+"&ord="+ord,true);
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4){
eval(callbackFunction+"(xmlhttp)");}}
xmlhttp.send(null)}};
function host(url){
return url;};
var NombreControl="_ctl0_ContentPlaceHolder1_";
var SC;
var IM;
var JM=-96;
function cargarFoto(Foto)
{
var Objeto="imgFotogrande";
document.getElementById(Objeto).src=Foto;}
function ScrollUp(speed){
if(document.getElementById){
if(parseInt(IM.style.marginTop)<=0)
IM.style.marginTop=(parseInt(IM.style.marginTop)+speed)+"px";
document.getElementById('TimerId').value=setTimeout("ScrollUp("+speed+")",10);
document.getElementById('IconUp').src=document.getElementById(NombreControl+'imgUpRoller').value;}}
function ScrollDown(speed){
if(document.getElementById){
if(parseInt(IM.style.marginTop)>=(parseInt(SC.style.height)-parseInt(IM.style.height)))
{
IM.style.marginTop=(parseInt(IM.style.marginTop)-speed)+"px";
document.getElementById('TimerId').value=setTimeout("ScrollDown("+speed+")",10);
document.getElementById('IconDown').src=document.getElementById(NombreControl+'imgDownRoller').value;}
else
{
IM.style.marginTop=parseInt(SC.style.height)-parseInt(IM.style.height);}}}
function ScrollStop(tipo){
if(document.getElementById){
if(tipo==1)
{
document.getElementById('IconUp').src=document.getElementById(NombreControl+'imgUpOriginal').value;}
else
{
document.getElementById('IconDown').src=document.getElementById(NombreControl+'imgDownOriginal').value;}
clearTimeout(document.getElementById('TimerId').value);}}
function ScrollInit(){
if(document.getElementById("divIMG")!=null)
{
if(document.getElementById){
SC=document.getElementById("DivScroll");
IM=document.getElementById("divIMG");
document.getElementById("divIMG").style.marginLeft=0;}}}
function ScrollInit2(){
if(document.getElementById("divIMG")!=null)
{
if(document.getElementById){
SC=document.getElementById("DivScroll");
IM=document.getElementById("divIMG");
posicion=(pos-2)*JM
if(posicion>0){
IM.style.marginTop='0px';}
else{
IM.style.marginTop=(posicion)+'px';}
document.getElementById("imagen_"+pos).style.border='2px solid red';}}}
if(document.getElementById(NombreControl+"posicion").value!=""){
var pos=document.getElementById(NombreControl+"posicion").value;
window.onload=ScrollInit2;
if(document.getElementById("jump").value!=""){
JM=document.getElementById("jump").value;}}
else{
window.onload=ScrollInit;}
document.onkeyup=KeyCheck;
function KeyCheck(e)
{
var KeyID=(window.event)?event.keyCode:e.keyCode;
switch(KeyID){
case 37:
case 38:
location.href=document.getElementById(NombreControl+'urlprevious').value;
break;
case 32:
case 39:
case 40:
location.href=document.getElementById(NombreControl+'urlnext').value;
break;}}
//--->