/**
 * swap_image is for changing image from thumbnails to big picture. Used in ICDS project
 * created by Ondrej Letacek Ondrej@nestdesign.com 
 **/

  function swap_image(index){
    //alert('dfefe');
    mycontainer = document.getElementById('mainColumn');
    if (mycontainer != null){
      //* find all images in container
      imgtags = mycontainer.getElementsByTagName("img");

      //* replace src in first image
      if(typeof(imgtags[index]) == 'object'){
        imgtemp = imgtags[0].src 
        imgtags[0].src = imgtags[index].src;
        imgtags[index].src = imgtemp;
      }
    } 
  }
