imgAnimateZoomIn = function( divObj, imgObj, width ) {
	if ( width/parseInt(imgObj.css( 'width'))*parseInt(imgObj.css('height') ) > 480 ) {
		width = 480/parseInt(imgObj.css('height'))*parseInt(imgObj.css('width'));
		}
	divObj.css('left', imgObj.position().left );
	divObj.css('top', imgObj.position().top );
	divObj.html( imgObj.parent().html() );
	divObj.show();
	divObj.children().first().animate({'width': width},400,'swing');
}

imgAnimateZoomOut = function( divObj, width) {
	divObj.children().first().animate({'width': width},400,'swing', function() { divObj.hide();divObj.html('') });
}

$(document).ready( function() {
	$('img.articleImg').mouseover( function(){
		imgAnimateZoomIn( $('div#helper'), $(this), '640');
	});
	$('div#helper').mouseout( function(){
		imgAnimateZoomOut( $('div#helper'), 100 );
	});
});
