
function downloadFile(windowName) {

	var element = $(windowName);

	if (element.visible()) {
		element.blindUp({
			beforeStart: function() {
				animatingList = true;
			},
			afterFinish: function() {
			},
			duration: Math.sqrt(element.getHeight())/40
		});
		
	} else {
		element.blindDown({
			beforeStart: function() {
				animatingList = true;
			},
			afterFinish: function() {	
				animatingList = false;
			},
			
			duration: Math.sqrt(element.getHeight())/40
		});
	}

	return true;
}
