var Site = {

	// this vars should be set in <head> server-side
	config : {
		base_url : 'http://www.tlcinvitations.com/',
		site_url : 'http://www.tlcinvitations.com/'
	},
	
	// this method is called on every page
	start : function() {

		// On Dom Ready
		jQuery(function($) {
			$("#nav_main").mouseover(function () {
				$('#nav_sub').slideDown();
				$("#nav_sub").mouseenter(function () {
					$("#nav_sub").mouseleave(function () {
						$("#nav_sub").slideUp();
					});
				});
			});
			$('#ajax_nav li a').each(function () {
				$(this).click(function () {
					$('#' + $(this).attr('title')).load($(this).attr('href'));
					return false;
				});
			});
			$('#feature_slideshow').cycle({ 
			    fx:    'fade', 
			    speed:  1000,
			 	timeout: 4000
			 });
			$('a[rel*=facebox]').facebox();
		});
		
		// Load Immediately
		(function($) {
		
		})(jQuery);


		// On Window Load
		jQuery(window).load(function($) {

		});

	}
	
};

Site.start();