var UseMenus = (document.getElementById);
var CurMenu = 0;

function showMenu (N) {
	if (UseMenus && CurMenu != N) {
		hideMenu();
		document.getElementById('Menu' + N).style.display = "block";
		CurMenu = N;
		}
	}

function hideMenu() {
	if (CurMenu > 0) document.getElementById('Menu' + CurMenu).style.display = "none";
	CurMenu = 0;
	}


if (UseMenus) {
	document.write ('<table cellspacing="3" cellpadding="0"><tr>',
	'<td><span id="Menu1" class="SubMenu"><a href="index.html#news">What\'s New</a></span>',
	'<a href="index.html" onmouseover="showMenu(1)">Home</a></td>',
	'<td><span id="Menu2" class="SubMenu"><a href="jfs.html">Product Overview</a><a href="projects.html">Project List</a><a href="gallery.html">Photo Gallery</a></span>',
	'<a href="jfs.html" onmouseover="showMenu(2)">Joint Free Slabs</a></td>',
	'<td><span id="Menu3" class="SubMenu"><a href="files/JFS Specification.pdf">JFS Specification</a><a href="files/JFS Construction Guideline.pdf">Construction Guidelines</a><a href="files/JFS Construction Checklist.pdf">Construction Checklist</a><a href="files/JFS Design and Doc Guideline.pdf">Design &amp; Documentation Guidelines</a><a href="controljoints.html">Control Joints</a></span>',
	'<a href="documents.html" onmouseover="showMenu(3)">Documents</a></td>',
	'<td><span id="Menu4" class="SubMenu"><a href="intl.html#usa">USA</a><a href="intl.html#croatia">Croatia</a><a href="intl.html#nz">New Zealand</a><a href="intl.html#uae">United Arab Emirates</a></span>',
	'<a href="intl.html" onmouseover="showMenu(4)">International</a></td>',
	'<td><a href="about.html" onmouseover="hideMenu()">About Us</a></td>',
	'<td><a href="mailto:email@jointfreeslabs.com" onmouseover="hideMenu()">Contact</a></td>',
	'</tr></table>');
	}
