
/* -----------------------------------------------
BASE
----------------------------------------------- */
function init() {
	document.body.className += " loading js";
}

$(function() {
	Setup.init();
	Footer.init();
	
});

var Body = null;
var Setup = {	
	Body: null,
	init: function() {
		var cc = this;
		Body = $(document.body);
		Body.addClass('jsReady');
		Body.removeClass('loading');
		// global 

		// utility classes
		$("ul li:first-child").addClass("first");
		$("ul li:last-child").addClass("last");
		
		$("a[rel='external']").each(function() {
			var link = $(this);
			link .click(function() {
				return !window.open(link.attr('href'));
			});
		});
	}
};

var Footer = { 
	Container: null,
	init: function() {
		var cc = this;
		cc.Container = $("#Footer");
		cc.render();
		$(window).resize(function() {
			cc.render();
		});
	},
	render: function() {
		var cc = this;
		if($(window).height()  > 700) {
			cc.Container.show();
		}
		else {
			cc.Container.hide();
		}
	}
}
