var Site = {

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

		// On Dom Ready
		jQuery(function($) {

			$('#latest_tweet_link').toggle(function() {
				$('#the_tweet:hidden').fadeIn();
			},function() {
				$('#the_tweet:visible').fadeOut();
			});
			
		});
		
		// Load Immediately
		(function($) {
		
		})(jQuery);


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

		});

	},
	
	forum : function() {
		
		// On Dom Ready
		jQuery(function($) {

			$('#tweet_insert').load('/blog/wp-content/themes/brandstack/tweeter_insert.php');
			
		});
		
	}
	
};

Site.start();

var Nav = {
	showSub: function (el_id){
		var el = $(el_id);
		if (!el) return;
		el.show();
		//$(el).parentNode.childNodes.each(function(s){ s.style.color = '#ccc'; });
	},
	
	hideSub: function (el_id){
		var el = $(el_id);
		if (!el) return;
		el.hide();
		//$(el).parentNode.childNodes.each(function(s){ s.style.color = '#fff'; });
	}
};