/**
 * @author Mario
 * www.marioblock.com.ar
 */
var imglist = new Array ("index_gallery/1-th.jpg", "index_gallery/1.jpg", "index_gallery/2-th.jpg", "index_gallery/2.jpg", "index_gallery/3-th.jpg", "index_gallery/3.jpg", "index_gallery/4-th.jpg", "index_gallery/4.jpg", "index_gallery/5-th.jpg", "index_gallery/5.jpg", "index_gallery/6-th.jpg","index_gallery/6.jpg");
    var imgs = new Array();
    var name;
    var count;
    if (document.images)
       for (count=0; count < imglist.length; count++){
			imgs[count]=new Image(); imgs[count].src=imglist[count];
		}
 
function cambiarImagen(imagennew,wid,hei,prov,th){
	//document.getElementById('link').href="javascript:showImage('" + imagennew + "','"+wid+"','"+hei+"')";
	//alert(imagennew);
	var image= new Image;
	image.src= imagennew;
	image.width = wid;
	image.hei = hei;
	var th1= new Image;
	th1.src=th;
	th1.width = wid;
	th1.hei = hei;
	/*if (wid>=hei) {
		var coeficient = 320 / wid;
	    image.width = 320;
	    image.height = hei * coeficient;
	}else{
		var coeficient = 320 / hei;
		image.hei = 320;
		image.width = wid * coeficient;
	}*/
	document.images['prove'].src=image.src;
	document.images[prov].src=th1.src;
	
}
function cambiarImagen2(imagennew,wid,hei,pro){
            var image= new Image;
			image.src= imagennew;
			image.wid=wid;
			image.height = hei;
			document.images[pro].src=image.src;
			
			
		}  
	