function loadApp() {
  var loadApp = 
  window.open('http://www.malevolentwhispers.org/application.php','','scrollbars=yes,menubar=no,height=600,width=800,resizable=no,toolbar=no,directories=no,location=no');
}

function loadReview() {      
  var loadReview = 
  window.open('http://www.malevolentwhispers.org/review.php','','menubar=no,height=500,width=800,resizable=no,toolbar=no,directories=no,location=no');
}

window.addEvent('domready', function() {
//CSS style to determine what opens the menu section
var toggles = $$('div.toggle'); 
//CSS style to determine what is shown while open
var content = $$('div.content'); 
//How to determine which menu block is open when a link is clicked
var defaultdisp = get_url_param('d'); 
 
var menuObject = new Accordion(toggles, content, {
	//cheap hack to allow to display different parts by default based on link clicked
	display: defaultdisp, 
	//make it vertically opening
	height : true, 
	//Allow all parts of menu to close
	alwaysHide: true 
});

//Parse URLs for specific part to find out what menu section to open
function get_url_param(name)
{ 
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 
    var regexS = "[\\?&]"+name+"=([^&#]*)"; 
    var regex = new RegExp( regexS ); 
    var results = regex.exec( window.location.href ); 
    if( results == null )    
	    return 0; 
    else 
	    return results[1];
}

});
