	var ContentHandler = new Class
(
	{
		currentId: "",
		checkInterval: "",
		periodic: 200,
		loading: false,
		
		
		initialize: function()
		{
			
			this.init();
			
		},
		
		
		init: function(){
			
			 
			 
			
			 
			 setTimeout(this.start.bind(this),1400);
			 	
			 
			 
		},
			
		
		start: function(){
			 
			this.GetHash.periodical(this.periodic, this);
		},	
		
		
		
		Reload: function(){
		
			 this.currentId = "";
			
		},
		
		GetHash: function(){

		 	this.periodic = 300;
		 	
		 	
		 	
		 	if(window.location.hash.indexOf('static') < 0){
		 		
                if(window.location.hash.replace('#','') !=  this.currentId)
                
                {
                	
                	 
                	
                	var params = new Object();
                	
                	var paramsArray;
                	var paramsArray = window.location.hash.replace('#','').split('&');
                		
                		$(paramsArray).each(function(e){
                			 params[paramsArray[e].split('=')[0]] = paramsArray[e].split('=')[1]	
                		})
                	   
                	this.currentId = window.location.hash.replace('#','');
        			
        			document.Global.main.objHandler.LoadContent(params);
        			this.loading = true;
        			        			
        		} else {
        			//if(this.currentId!="")
        			//window.location.hash = '#'+this.currentId;
        		}
        		
        	}
        	 	        
        }		
	}
	
);
