    
    document.write('<scr' + 'ipt src="/library/js/frameworks/protoExtensions.js" type="text/javascript"><\/scr' + 'ipt>');
    
    document.write('<scr' + 'ipt src="/library/js/config.js" type="text/javascript"><\/scr' + 'ipt>');
    document.write('<scr' + 'ipt src="/library/js/help.js" type="text/javascript"><\/scr' + 'ipt>');
    document.write('<scr' + 'ipt src="/library/js/pageManager.js" type="text/javascript"><\/scr' + 'ipt>');
    
    document.write('<scr' + 'ipt src="/library/js/application.js" type="text/javascript"><\/scr' + 'ipt>');
	                        
	Event.onDOMReady(
		function()
		{
		    Application.loading.setup();
		    Application.modalBox.setup();
		
		
		    //-> DEBUG MODE PROCESS
		    if(DEBUG_MODE)
		    {
			    var showSource = new Element("a", {className:"button"}).insert(new Element("span").update('Source code')).observe("click", function(){
				    w = window.open();
				    w.document.write(document.body.innerHTML);	
				    w.document.close();
			    });
    			    			
			    
			    $(document.getElementsByClassName("actionBar")[0] || document.body).insert({top:showSource});
    			
		    }
		    
		    //-> MENU ACTIVATION FOR IE(<7?) ONLY
		    if(window.attachEvent && $("nav"))
		    {
			    sfHover();
		    }
		    
		    
		    
		    //-> PRINT BUTTON
		    if($("print"))
		    {
                this.printButton = new ActionButton("print");
                this.printButton.addListener("print", "click", function(e){
                    // DEBUG
                    //alert("IJDC VALIDATION");
                    window.print();
                
                }.bindAsEventListener(this));
                this.printButton.enable();
		    }
		    
    		
			            
		}
	);
	

	sfHover = function()
	{
		var sfEls = $("nav").getElementsByTagName("li".toUpperCase());
		for(var i=0; i<sfEls.length; i++)
		{
			sfEls[i].onmouseover = function(){this.className += " sfhover"}
			sfEls[i].onmouseout  = function(){this.className = this.className.replace(new RegExp(" sfhover\\b"), "")}
		}
	}
	



	