/*jslint evil: false, strict: false, undef: true, white: false, onevar:false, browser:true, plusplus:false */
/*global jQuery,window:true */
(function($, app){
    "use strict";
    
	var initModelMenu = function(){		
		$('#modelmenu').attach( 
			app.ModelMenu,
			20 // this padding corresponds to the padding defined in menus.css for #modelmenu li a
		);	
	};
	
	var initTeasers = function(){
		$('#teasers').attach( app.Teasers );
	};
	
	var initCarousel = function(){
		$("#stage .carousel").carouFredSel({
			//auto : false,
			auto : 6000,
			prev : "#prev",
			next : "#next",
			scroll: {
				pauseOnHover: true
			}
		});
	};
	
	// once the dom is ready, start initializing stuff
	$(document).ready( function(){
		initModelMenu();
		initTeasers();
		initCarousel();
	});	
}( jQuery, window.SEAT ));
