// JavaScript Document
	var div_info = new Array(); 
		div_info[0]='updateDiv'; 
		div_info[1]='html_backup';
	
function $(id) { return document.getElementById(id); }

function createXMLHttpRequest()
{
	try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
	try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
	try { return new XMLHttpRequest(); } catch (e) {}
	for(i=0;i<div_info.length;i++){$('updateDiv').style.display = 'none';}$('html_backup').style.display = 'block';
	return null;
}
			
function showDiv(url, eff)
{	
	var xhr = createXMLHttpRequest();
	xhr.onreadystatechange = function ()
		{	
		if (xhr.readyState==4) { // Request is finished
			if (xhr.status==200)
			{
				$('updateDiv').innerHTML = xhr.responseText;
				$('updateDiv').style.display = 'block';
			}
			else
			{
				for(i=0;i<div_info.length;i++)
				{ 
					$('updateDiv').style.display = 'none'; 
				}
				$('html_backup').style.display = 'block';
			}
		}
	}
	xhr.open("GET", "pages/"+ url +".html", true);
	xhr.send(null);
}