$(document).ready(function() {
function getPageSize(){

        var xScroll, yScroll;
        
        if (window.innerHeight && window.scrollMaxY) {
                xScroll = document.body.scrollWidth;
                yScroll = window.innerHeight + window.scrollMaxY;
        }
        else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
                xScroll = document.body.scrollWidth;
                yScroll = document.body.scrollHeight;
        }
        else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
                xScroll = document.body.offsetWidth;
                yScroll = document.body.offsetHeight;
        }
        
        var windowWidth, windowHeight;
        if (self.innerHeight) { // all except Explorer
                windowWidth = self.innerWidth;
                windowHeight = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
                windowWidth = document.documentElement.clientWidth;
                windowHeight = document.documentElement.clientHeight;
        }
        else if (document.body) { // other Explorers
                windowWidth = document.body.clientWidth;
                windowHeight = document.body.clientHeight;
        }
        
        // for small pages with total height less then height of the viewport
        if (yScroll < windowHeight) {
                pageHeight = windowHeight;
        }
        else {
                pageHeight = yScroll;
        }
        
        // for small pages with total width less then width of the viewport
        if (xScroll < windowWidth) {
                pageWidth = windowWidth;
        }
        else {
                pageWidth = xScroll;
        }
        
        return arrayPageSize = new Array(pageWidth, pageHeight, windowWidth, windowHeight)
        
}

  var tamanho =  getPageSize();
  var larg = tamanho[0];
  var alt = tamanho[1];
  if(larg < 1280) {
      $("#featureCarousel").featureCarousel({
      		carouselSpeed:400,
			largeFeatureWidth :602,
		    largeFeatureHeight:363,
			sidePadding: 50,
			counterStyle: 0,
			smallFeatureWidth: 431,
			smallFeatureHeight:	260,
			smallFeatureOffset:45,
			topPadding: 50
			  
      });	
     $(".navegacao").attr("id","navegacao_1024"); 
	 $(".footer").attr("id","footer_1024"); 
	 $(".inner").attr("id","inner_1024");
	 $(".slide").css("width","592px");
	 $(".menu").attr("id","menu_1024");
	 $(".hotel-bg").attr("id","hotel-bg-1024");
	 $(".acomodacoes-bg").attr("id","acomodacoes-bg-1024");
	 $(".restaurante-bg").attr("id","restaurante-bg-1024");
	 $(".praia-bg").attr("id","praia-bg-1024");
	 $(".localizacao-bg").attr("id","localizacao-bg-1024");
	 $(".opnioes-bg").attr("id","opnioes-bg-1024");
	 $(".footer-imprensa").attr("id","footer-imprensa");	 
	 $("#menu li a").css("background","url('../imagens/menu_1024.jpg') no-repeat");	
	 $(".footer-localizacao").attr("id","footer_localizacao_1024"); 
	 $(".localizacao").attr("id","localizacao_1024");
	 $(".link-home").attr("id","link-home-1024");
	 $(".mapa").attr("id","mapa_1024");
  }
  if(larg >= 1280) {
      $("#featureCarousel").featureCarousel({
      		carouselSpeed:400,
			largeFeatureWidth :722,
		    largeFeatureHeight:435,
			sidePadding: -80,
			counterStyle: 0,
			smallFeatureWidth: 508,
			smallFeatureHeight:	343,
			smallFeatureOffset:55
			  
      });	 
       
	 
  }

  

});










