function moveImg() {
	//console.log(window.innerWidth);
	var imgleft = 0;
	var small = false;

	if(window.innerWidth < 590){
		//console.error('window too small');
		small = true;
		img = 0;
	}
	else if(window.innerWidth < 606){
		img = 30;
	}
	else if(window.innerWidth < 651){
		img = 32;
	}
	else if(window.innerWidth < 727){
		img = 38;
	}
	else if(window.innerWidth < 777){
		img = 40;
	}
	else if(window.innerWidth < 850){
		img = 42;
	}
	else if(window.innerWidth < 930){
		img = 43;
	}
	else if(window.innerWidth < 1050){
		img = 45;
	}
	else if(window.innerWidth < 1060){
		img = 47;
	}
	else if(window.innerWidth < 1181){
		img = 48;
	}
	else if(window.innerWidth < 1269){
		img = 50;
	}
	else { 
		img = 52;
	}
	
	//console.log(small);
	//console.log(img);
	if(small){
		//$('.rside img').css("left", 0);
		$('#content').css("width", "25%");
	}else{
		$('#content').css("width", img+"%");
	}
};

var resizeTimer = null;
$(function() {
	
	moveImg();

	$(window).bind('resize', function() {
		if (resizeTimer) clearTimeout(resizeTimer);
		resizeTimer = setTimeout(moveImg, 100);
	}); 
});
