
jQuery(
  function ($) { 
	var URI 		= new URIParser($),
		$wrapper 	= $('div#wrapper');

	init();
	/*initNav();
	initContent();
	initScroller();*/
	
   	function init(){
   		
   		$body = $('html,body').attr('scrollTop',0);
   		
   		
   		
   		preload();
   		
   		$.ajaxSetup({
			cache: false,
			dataType: 'html',
			global: false,
			timeout: 5000
		});
   	}
   	
   	function preload(){
   		$wrapper
   			.css({height:0,overflow:'hidden'})
   		
     	$(window).bind('load',on_load)
   		
   	}
   	
   	function on_load(e){
		$wrapper
			.css({height:'auto',overflow:'auto'})
			
		$('div#preloader')
			.css({display:'none'})
			.remove();
			
   		if (URI.segment(1)!='')
   			$('body').triggerHandler('ACTIVATE_NAV',URI.segment(1));
   	}

  }
);

function URIParser($){
	
	this.Hash 			= location.hash;
	this.HashObjects	= this.Hash.split("/");
		
	initialize();
	
	function initialize(){
		
	}
	
}




