// JavaScript Document
	
function loadPage(buttonId, pageUrl)
{
	var menuTable = top.document.getElementById('menuList');
	
	var buttons = menuTable.getElementsByTagName('div');
	
	for (var i = 0; i < buttons.length; i++)
	{
		var button = buttons[i];
		
		if (button.className == "menuListSelected")
			button.className = "";
			
		if (button.id == buttonId
			|| (button.id != "" && buttonId.search(button.id) == 0) )
				button.className = "menuListSelected";
	}
	
	if (pageUrl)
	{
		var iframe = top.document.getElementById('contents');
		iframe.src = pageUrl;
	}
}

function ensureInsideFrame()
{
	var doc_location = top.document.location.href;
	
	if (doc_location.search(/index\.html/) < 0 && top.document.location.href.search(/html/) > 0)
		document.location = '../index.html';
}

function dummy() {
	var dummy = 0;
}

function ie6loadbug()
{
	top.document.getElementById('contents').src='fr/contact.html';
	top.document.getElementById('contents').src='fr/dojos.html';
}