function smallfix() {
  var screen_width = $(window).width();
  var screen_height = $(window).height();
  var c = $("#container");
  var q = $("#nauQ");

  if (screen_width <= 1000) {
    c.css("left", 0);
	c.css("margin-left", 10);
		
    q.css("left", 810);
    q.css("margin-left", 0);
    
  }else{
    c.css("left", "50%");
    c.css("margin-left", "-475px");
    
    q.css("left", "50%");
    q.css("margin-left", 330);

  }
  if( screen_height <= 600){
		c.css("top", 0);
		c.css("margin-top", 10);
		
	  q.css("top", 560);
	  q.css("margin-top", 0);
	}else{
		//c.css("top", "50%");
		c.css("margin-top", "60px");
		
		//q.css("top", "50%");
		q.css("margin-top", 580);
	}

};

$(document).ready(function(){  
  $(window).resize(smallfix);
  smallfix();
  $("#carousel").CloudCarousel(		
		{			
			xPos: 475,
			yPos: 50,
			autoRotate: 'right',
			autoRotateDelay: 0,
			FPS: 50,
			speed: 0.01
		}
	);
   
});

