;(function($, window) {
	/** Settings **/

	// List of background images to use, the default image will be the first one in the list
        var local=urlsite+'/uploads/imagens/background/';
	var backgrounds = [
            local+'bg1.jpg'
        ];


	// Background options - see documentation
	backgroundOptions = {

	},

	// The text inside the view map button when map is visible
	hideMapButtonText = 'Hide map';

	/** End settings **/

	Cufon.replace('h1, h2, h3, h4, h5');

	
/*
	$(document).ready(function() {
		$.fullscreen(
			$.extend(backgroundOptions, {
				backgrounds: window.backgrounds || backgrounds,
				backgroundIndex: window.backgroundIndex
			})
		);

		// Initialise the menu
		$('ul.sf-menu').superfish({ speed: 0 });

		// Bind the view map button to slide down / up the map
		var $viewMapButton = $('.view-map'),
		$mapImg = $('.hidden-map'),
		$contactInfoWrap = $('.contact-info-wrap'),
		viewMapButtonText = $('.view-map').text();

		$viewMapButton.click(function() {
			if (!$mapImg.add($contactInfoWrap).is(':animated')) {
				if (!$mapImg.hasClass('map-visible')) {
					$contactInfoWrap.slideUp(600, function() {
						$mapImg.slideDown(600, function() {
							$mapImg.addClass('map-visible');
							$viewMapButton.text(hideMapButtonText);
						});
					});
				} else {
					$mapImg.removeClass('map-visible').slideUp(600, function() {
						$contactInfoWrap.slideDown(600, function() {
							$viewMapButton.text(viewMapButtonText);
						});
					});
				}
			}
			return false;
		});

		// Bind any links with the class 'scroll-top' to animate the scroll to the top
		var scrollElement = 'html, body';
		$('html, body').each(function () {
		    var initScrollTop = $(this).attr('scrollTop');
		    $(this).attr('scrollTop', initScrollTop + 1);
		    if ($(this).attr('scrollTop') == initScrollTop + 1) {
		        scrollElement = this.nodeName.toLowerCase();
		        $(this).attr('scrollTop', initScrollTop);
		        return false;
		    }
		});

		$('a.scroll-top').click(function () {
			if ($(scrollElement).scrollTop() > 0) {
				$(scrollElement).animate({ scrollTop: 0 }, 1000);
			}
			return false;
		});

		// Make the form inputs and search fields clear value when focused
		$('.toggle-val').toggleVal({ populateFrom: 'label', removeLabels: true });

		// Create the gallery rollover effect
		$('li.one-portfolio-item a').append(
			$('<div class="portfolio-hover"></div>').css({ opacity: 0, display: 'block' })
		).hover(function() {
			$(this).find('.portfolio-hover').stop().fadeTo(400, 0.6);
		}, function() {
			$(this).find('.portfolio-hover').stop().fadeTo(400, 0.0);
		});
	}); */// End (document).ready
        // End (window).load
	// Any images to preload
	window.preload([
 		urlsite+'/html/img/minimise1.png',
 		urlsite+'/html/img/2-col-hover.png',
 		urlsite+'/html/img/3-col-hover.png',
 		urlsite+'/html/img/4-col-hover.png',
 		urlsite+'/html/img/5-col-hover.png',
 		urlsite+'/html/img/6-col-hover.png',
 		urlsite+'/html/img/grid-hover.png',
 		urlsite+'/html/img/opacity-80-rep.png'
	]);
})(jQuery, window);
