<!--
	function alignDivs(input,target){
		var hSize = 0;
		var aInput = input.split("/");
		
		if (target == '')
			var aTarget = aInput;
		else
			var aTarget = target.split("/");
		
		for (var i=0; i<aInput.length; i++){
			if (document.getElementById(aInput[i]).scrollHeight > hSize)
				hSize = document.getElementById(aInput[i]).scrollHeight;
		}
		for (var i=0; i<aTarget.length; i++)
			document.getElementById(aTarget[i]).style.height = hSize+'px';
	}
	
	function redimImagem(imgPath,imgName,imgSize){
		var imgPath = imgPath;
		var imgSrc = new Image();
		imgSrc.src = imgPath;
		var picWidth=imgSrc.width;
		var picHeight=imgSrc.height;
	
		try{
			if ((picWidth != imgSize) || (picHeight != imgSize)){			
				if (picWidth > picHeight){
					picHeight = parseInt(imgSize*picHeight/picWidth);	
					picWidth = imgSize;					
				}
				else{
					picWidth = parseInt(imgSize*picWidth/picHeight);	
					picHeight = imgSize;				
				}
				imgName.style.width = picWidth+'px';
				imgName.style.height = picHeight+'px';
			}
		}
		catch(e){}
	}

	function enquadraImagem(input, largura, altura){
		var imgSrc = new Image();
		imgSrc.src = input.src;
		var picWidth = imgSrc.width;
		var picHeight = imgSrc.height;
	
		try{
			if (picWidth > largura) {			
				picHeight = parseInt(largura * picHeight / picWidth);	
				picWidth = largura;					
			}
			if (picHeight > altura){			
				picWidth = parseInt(altura * picWidth / picHeight);	
				picHeight = altura;				
			}
			input.style.width = picWidth + 'px';
			input.style.height = picHeight + 'px';
		}
		catch(e){}
	}

//-->
