var montpeliers = function(){
	
    return {
        init : function(){	
			//$(document).pngFix(); 
			
			var pageId = $("body").attr("id");
			
			switch (pageId) {
				// setup insider
				case "napier":
				case "insider":
					montpeliers.setupInsider();
					break;
			}
		},
		setupInsider : function() {
			
            // Options for SuperBGImage
            $.fn.superbgimage.options = {
                id: 'superbgimage', // id for the container
                z_index: 0, // z-index for the container
                inlineMode: 0, // 0-resize to browser size, 1-do not resize to browser-size
                showimage: 1, // number of first image to display
                vertical_center: 1, // 0-align top, 1-center vertical
                transition: 1, // 0-none, 1-fade, 2-slide down, 3-slide left, 4-slide top, 5-slide right, 6-blind horizontal, 7-blind vertical, 90-slide right/left, 91-slide top/down
                transitionout: 1, // 0-no transition for previous image, 1-transition for previous image
                randomtransition: 0, // 0-none, 1-use random transition (0-7)
                showtitle: 0, // 0-none, 1-show title
                slideshow: 0, // 0-none, 1-autostart slideshow
                slide_interval: 5000, // interval for the slideshow
                randomimage: 0, // 0-none, 1-random image
                speed: 'slow', // animation speed
                preload: 1
            };
			
			// initialise SuperBGImage
            $('#thumbs1').superbgimage();
			
			$("#accordion").accordion();

        },
    }
}();
    
$(document).ready(montpeliers.init);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

