var GeneralController = Class.create({
    initialize: function() {
    },
    
    /*
     * This method breaks out of lightview if necessary and redirects to
     * a url.
     * @param string url
     */
    loadUrl: function(url) {
       if(parent.Lightview) {
           parent.Lightview.hide();
       }
       parent.location.href = url;
       return false;	
    },
    
    loadContactAjax: function() {
        new Ajax.Request('/contact/ajaxsources', { 
            onSuccess: function(transport) {
                $('Sources1').innerHTML = '';
                $('Sources1').insert(transport.responseText);
            },
            parameters: { SourceVal: $('SourceMain').value } 
        });
    }
    
});

var g = new GeneralController();