http = getHTTPObject();
 
function getHTTPObject(){
  var xmlhttp;
 
  /*@cc_on
 
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
      try{
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }catch(E){
      xmlhttp = false;
    }
  }
  @else
    xmlhttp = false;
  @end @*/
 
  if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
    try {
      xmlhttp = new XMLHttpRequest();
    }catch(e){
      xmlhttp = false;
    }
  }
 
  return xmlhttp;
}
 
function image(im){
  var url = "image.php?im=" + im;
 
  http.open("GET", url, true);
  http.onreadystatechange = handleHttpResponse;
 
  http.send(null);
}
 
function handleHttpResponse(){
  if(http.readyState == 1){
    document.getElementById('image').innerHTML = '<img src="ajax-loader.gif" style="margin: 128px 200px; ">';
  }

  if(http.readyState == 4){
    document.getElementById('image').innerHTML = http.responseText;
  }
}
function thumbs(a){
if(a=='01'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita01_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'01'+"'"+')"><img src="galery/Mavita02_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'02'+"'"+')"><img src="galery/Mavita03_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'03'+"'"+')">';
image('01');
}
if(a=='02'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita04_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'04'+"'"+')"><img src="galery/Mavita05_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'05'+"'"+')"><img src="galery/Mavita06_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'06'+"'"+')">';
image('04');
}
if(a=='11'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita11_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'11'+"'"+')"><img src="galery/Mavita12_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'12'+"'"+')"><img src="galery/Mavita13_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'13'+"'"+')">';
image('11');
}
if(a=='12'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita14_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'14'+"'"+')"><img src="galery/Mavita15_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'15'+"'"+')"><img src="galery/Mavita16_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'16'+"'"+')">';
image('14');
}
if(a=='21'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita21_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'21'+"'"+')"><img src="galery/Mavita22_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'22'+"'"+')"><img src="galery/Mavita23_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'23'+"'"+')">';
image('21');
}
if(a=='22'){
document.getElementById('thumbs').innerHTML ='<img src="galery/Mavita24_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 10px 5px 0px;"  onclick="image('+"'"+'24'+"'"+')"><img src="galery/Mavita25_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 18px;"  onclick="image('+"'"+'25'+"'"+')"><img src="galery/Mavita26_t.jpg" style="cursor: pointer;cursor:hand;margin: 5px 0 5px 10px;"  onclick="image('+"'"+'26'+"'"+')">';
image('24');
}
}
