Event.observe(window, 'load', function() {
	new BoardView();
});
var BoardView = Class.create({
	initialize: function() {
		$$('#sectionView .content img').each( function( unit ) {
			if (unit.getWidth() > 640 ) {
				unit.width = 640;
				unit.observe('click',this.viewImage.bind(this));
				unit.setStyle({
					'display': 'block',
					'clear': 'both'
				});
			} else if (unit.getWidth() > 360 ) {
				unit.setStyle({
					'display': 'block',
					'clear': 'both'
				});
			}
		}.bind(this));
	},
	viewImage: function( ev ) {
		ev.stop();
	}
});

