function toggleLoginBox()
{
    window.addEvent('domready', function() {    
        var LoginBox = $('LoginBox');
        var LoginBoxSlider = new Fx.Slide('LoginBox', {mode: 'vertical'}).hide();
        //the slide effect flickers in IE7
        LoginBox.setStyle('visibility','hidden');
        LoginBox.setStyle('display','block');		                
        LoginBox.setStyle('visibility','visible');
        
        $('LoginBoxLink').addEvent('click', function(e){
            e = new Event(e);
            LoginBoxSlider.toggle();
            e.stop();
        });
    });     
 }
 
/* window.addEvent('domready', function() {

    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

    var req = new Request.HTML({url:'http://www.magnify.dk/request_test.html', 
        onSuccess: function(html) {
	        //Clear the text currently inside the results div.
	        $('NewsSearchArchive').set('text', '');
	        //Inject the new DOM elements into the results div.
	        $('NewsSearchArchive').adopt(html);
        },
        //Our request will most likely succeed, but just in case, we'll add an
        //onFailure method which will let the user know what happened.
        onFailure: function() {
	        $('NewsSearchArchive').set('text', 'The request failed.');
        }
    });

    req.get();
}); */