//begin RSH functions

function loadpage(url){
	//menuclick($(url+'-tab'));
	//new Ajax.Updater('main_div', url, {asynchronous:true, evalScripts:true, method:'get'});
	new Ajax.Request(url, {asynchronous:true, evalScripts:true, method:'get'})
}

function addhistory(url){
	if (url != dhtmlHistory.getCurrentLocation()){
		dhtmlHistory.add(url);
	}	
}

function loadcurrent(){
	//alert("loadcurrent");
  	var initialLocation = dhtmlHistory.getCurrentLocation();    
  	if (initialLocation) {
		//alert("initiallocation");
		loadpage(initialLocation);
	}  
}

//end RSH functions
