var showImgBig = function ()
{
	this.imgBig = null;
	this.thumbGroup = null;		
	
	this.targLeg = null;
	this.showLeg = null;
	
	this.execOnClick = null;
	
	this.show = function(){		
		var agt=navigator.userAgent.toLowerCase();/*verificar navegador*/
		var imgB = this.imgBig;
		var img = this.thumbGroup.getElementsByTagName("img");
		var tLeg = this.targLeg;
		var swLeg = this.showLeg;
		var execOnClick = this.execOnClick;
		
		for (i = 0; i<img.length; i++){
			img[i].onclick = function(){
				imgB.src = this.src;
						
				eval(execOnClick);
				/*
				var i = 0;				
				if (agt.indexOf("firefox") != -1){ imgB.style.MozOpacity = .0; }else{ imgB.style.filter = "alpha(opacity=0)";	}
				setInterval(
					function(){						
						if (i<=10){
							if (agt.indexOf("firefox") != -1){ 
								imgB.style.MozOpacity = (i<10)?eval('.'+i):'1'; 
							}else{ 
								imgB.style.filter = (i<10) ? 'alpha(opacity=' + (i * 10) + ')' : 'alpha(opacity=100)' ; 
							}
						}
						i++	;
					}
				,90);
				*/
				//exibir legenda ?
				if(swLeg==true){
					try{
						tLeg.innerHTML = this.title;
					}catch(err){
						alert(err);
					}
				}				
			}
		}		
	}	
}
