/**
 * jQuery.resizeOthers
 */

(function($) {
	$.fn.resizeOthers = function() {
		return this.each(function() {
			var target = $(this);
			var othersWidth = $(window).width() - 1045;
			var othersHeight = $("#contents").height() - 134;
			target.css({
				"width": othersWidth,
				"height": othersHeight,
				"overflow": "hidden"
			});
			function windowChange() {
				var othersWidth = $(window).width() - 1045;
				target.css({
					"width": othersWidth,
					"overflow": "hidden"
				});
			}
		$(window).bind("resize", windowChange);
		});
	}
})(jQuery);


//function resizeOthers(e) {
//	var othersWidth = $(window).width() - 1045;
//	var othersHeight = $("#contents").height() - 108;
//	(function(jq) {
//		for(var i = 0; i < jq.length; i++) {
//			jq[i].css({
//				"width": othersWidth,
//				"height": othersHeight,
//				"overflow": "hidden"
//			});
//		}
//	})(new Array($("#others")));
//}
