var width = 800;
var last_width = 800;
var resizeTimer = null;
function getWidth() {
    width = $(document).width();
};


$(document).ready(function(){
	$(window).bind('resize', function() {
		if (resizeTimer) clearTimeout(resizeTimer);
		resizeTimer = setTimeout(resizing, 1);
	}); 
	resizing();
});

function resizing(){
	//alert(width);
	var show = 10;
	if(width < 1450) {
		show = 9;
	}
	if(width < 1320) {
		show = 8;
	}
	if(width < 1190) {
		show = 7;
	}
	if(width < 1060) {
		show = 6;
	}
	$(".line_image").hide();
	getWidth();
	for(var i=0;i<show;i++){
		$('#image_'+i).show();
		$('#image_'+(i+10)).show();
	}
	if(last_width!=width){
		last_width = width;
		resizing();
	}
	last_width = width;
	/*var cont_height = parseInt($('.image_container_1').height());
	//alert(cont_height);
	if(cont_height>140) {
		$(".line_image").show();
		var i=0;
		while(parseInt($('.image_container_1').height())>140){
			$('#image_'+i).hide();
			$('#image_'+(i+10)).hide();
			i++;
		}
	}*/
}
// > 1450 = 0
// >