if (typeof(UNIQUE) == 'undefined') {
	UNIQUE		= {};
	UNIQUE.UI	= {};
}

UNIQUE.UI.Navigation = function() {
	
	var init	= function() {	
		$('body').addClass('dynamic');
		processExternalLinks();
	}
	
	var processExternalLinks	= function() {
		$('a').each(function(i, obj){
			if (obj.getAttribute('href') && obj.getAttribute('href').indexOf('http')==0 && obj.getAttribute('href').indexOf(window.location.hostname)==-1 ) {
				$(obj).click(function(e){
					e.preventDefault();
					window.open(this.href);
					return false;
				});
			}
		});
	}
	
	return {
		init: init
	}

}();

jQuery(function($) { UNIQUE.UI.Navigation.init(); });