
		
	function initialize() 
	{
	  
	  
	   dhtmlHistory.initialize();
	   
	   dhtmlHistory.addListener(handleHistoryChange);
		
	   var currentLocation = dhtmlHistory.getCurrentLocation();
	  	  
	  if(currentLocation!="" )
	  {
		  
		  if(document.getElementById(historyLocSplit(currentLocation,'vpid'))){
				 // alert('current=='+currentLocation);
				if(historyLocSplit(currentLocation,'vtype')=='GET'){
					
					
					 simplepageRefresh(historyLocSplit(currentLocation,'vurl')+'.'+historyLocSplit(currentLocation,'vftype')+'?'+historyLocSplit(currentLocation,'vsend'),historyLocSplit(currentLocation,'vtype'),historyLocSplit(currentLocation,'vpid'),'',historyLocSplit(currentLocation,'vbusy'),historyLocSplit(currentLocation,'vhis'),currentLocation);
					 
				}
				else{
					simplepageRefresh(historyLocSplit(currentLocation,'vurl')+'.'+historyLocSplit(currentLocation,'vftype'),historyLocSplit(currentLocation,'vtype'),historyLocSplit(currentLocation,'vpid'),historyLocSplit(currentLocation,'vsend'),historyLocSplit(currentLocation,'vbusy'),historyLocSplit(currentLocation,'vhis'),currentLocation);
										
				}
		  }
		  else
		  	currentLocation="";
		
	  }
	//  displayLocation(currentLocation, null);
	}
	
	
	function handleHistoryChange(newLocation, historyData) 
	{
		
	   if (newLocation == "") 
		  newLocation = "noSection";

	
	   newLocation = newLocation.replace(/section\:/, "");
	   
	
	   displayLocation(newLocation, historyData);
	}
	
	
	function displayLocation(newLocation,sectionData) 
	{

	   var expohis2;

	   expohis2=historyLocSplit(newLocation,'vpid');
	   
	  
		if(document.getElementById(expohis2) && sectionData!=null)
		{
			//alert(newLocation+'****'+sectionData);

			var strHtml = sectionData;	
  		    	Zapatec.Transport.setInnerHtml({
			  		html: strHtml,
				  	container: expohis2
			});
	

			
		}
		
	}





