var tid;
var speed = 74;

function _minimize_pic () {
	pic = document.getElementById ( "topimg" );
	pic.height -= speed;
	
	if ( pic.height <= 0 ) {
		
		clearInterval ( tid );
		
	}	

}
function minimize_pic (img) {
	pic = document.getElementById ( "topimg" );
	
	pic.height --;
	tid = setInterval ( "_minimize_pic()", 1 );
}


function _maximize_pic () {
	pic = document.getElementById ( "topimg" );
	
	pic.height += speed;
	
	if ( pic.height >= 222 ) {
		pic.height = 222;
		clearInterval ( tid );
	}
}

function maximize_pic () {
	pic = document.getElementById ( "topimg" );
	pic.height ++;
	
	tid = setInterval ( "_maximize_pic()", 1 );
}
