function alteraTamanho(opt){
	document.getElementById('lnkTam12').className = 'lnk02';
	document.getElementById('lnkTam14').className = 'lnk02';
	document.getElementById('lnkTam16').className = 'lnk02';
	
	document.getElementById('contTexto').style.fontSize = opt;
	document.getElementById('lnkTam'+opt).className = 'lnk03';
}




function mudaFoto(opt,id,legenda) {
	var largura = 0;
	var altura = 0;
		
	parent.document.getElementById('loadImg').innerHTML = '<img src="../_img/galeria/' + opt + '" id="img' + id + '">';
	parent.document.getElementById('loadLegenda').innerHTML = legenda;
	
	//largura = parent.document.getElementById('img' + id).width;
	//altura = parent.document.getElementById('img' + id).height;
	
		
	//	if	(largura > altura)	{	parent.document.getElementById('img' + id).width = 230;		}
	//	if	(altura > largura)	{	parent.document.getElementById('img' + id).height = 230;	}

	
	//	if (largura == 28 && altura == 30) {
	//	if	(largura < altura)	{	parent.document.getElementById('img' + id).width = 230;		}
	//	if	(altura < largura)	{	parent.document.getElementById('img' + id).height = 230;	}
	//}
	
//	if (largura > 230)	{ 
//	parent.document.getElementById('img' + id).width = 230; 
//	} else if (altura > 230) {
//	parent.document.getElementById('img' + id).height = 230; 
//	}
//	
//	if (largura < 230)	{ 
//	parent.document.getElementById('img' + id).width = 230; 
//	} else if (altura < 230) {
//	parent.document.getElementById('img' + id).height = 230; 
//	}
//
//	
//		if (altura > 230)	{ 
//		parent.document.getElementById('img' + id).height = 230; 
//		} else if (largura > 230) {
//		parent.document.getElementById('img' + id).width = 230; 
//		}
//	
//
//	if (altura < 230)	{ 
//	parent.document.getElementById('img' + id).height = 230; 
//	} else if (largura < 230) {
//	parent.document.getElementById('img' + id).width = 230; 
//	}
	

}


function moveEsq() {
	window.iGaleria.scrollBy(52,0);
}
function moveDir() {
	window.iGaleria.scrollBy(-52,0);
}