var index = function(){
	//CONSTANTS
	//PRIVATE VARS
	

    //PRIVATE METHODS
    
	var _handler = {
		
		process : function(event) {
						var t=event.target
						switch(event.type)
						{
						case 'click' :
							if(t.id == 'logo_btn') { $.goTo('http://www.ahshealing.nl/index.php')}
							
							break;
							
						case 'resize' :
							//if(t == self || t == window.document) { handler.handleResize_window(t);}
							break;
						}
					},
					
					
		handleResize_window : function(t) {

					}
	};
	
	var _getMelding = function(){
	    
	    $.fancybox.load({
	                            'width'			    : '75%',
                                'height'			: '75%',
                                'scrolling'         : 'no',
                                'hideOnContentClick': true,
                                'type'				: 'ajax',
                                'overlayOpacity'	:  0.2,
                                'overlayColor'		: '#ccc',
                                'href'              : 'melding.php'
							    });
	}

	//PUBLIC INTERFACE
	var o = {

		
		
		init : function(){
			$('body').click(_handler.process);
            $("#cnt_right_nav").doFloat({x:"current",y:"current"});
            if(!LOADED){
               setTimeout(_getMelding,3000);   
            }
            
            
	   }

	
	};
	
	return o;

}();

//========= start ===========      
$(document).ready(function(){
	$.extend(Util);//tools object
	$.extend(RequestManager);//xhr object
	$.logInit();//logger
	
	index.init();
});

