<!--  
function flashplayer(movie,bgcolor,wmode,width,height) {
	document.write(
	' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ' +
	' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ' +
	' width="' + width + '"' +
	' height=' + height + '"' +
	' id="gameid" ' +
	' align="middle">' +
	' <param name="allowScriptAccess" value="sameDomain" />' +
	' <param name="movie" value="' + movie + '" />' +
	' <param name="quality" value="high" />' +
	' <param name="bgcolor" value="' + bgcolor + '" />' +
	' <param name="wmode" value="' + wmode + '" />' +
	' <embed src="' + movie + '" ' +
	' quality="high" ' +
	' bgcolor="' + bgcolor + '"' +
	' width=' + width + '"' +
	' height=' + height + '"' +
	' align="middle" ' +
	' allowscriptaccess="sameDomain" ' +
	' type="application/x-shockwave-flash" ' +
	' pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
	' wmode="' + wmode + '" />' +
	'</object>'
	)
}
var txt;
function showA(e,o){
    var oX = 0;
    var oY = 0;
    if (!e) var e = window.event; 
    if (e.pageX || e.pageY) {
        oX = e.pageX;
        oY = e.pageY;
    }
    else if (e.clientX || e.clientY) {
        oX = e.clientX + document.body.scrollLeft;
        oY = e.clientY + document.body.scrollTop;
    } 
	oY += 20;
	var theWidth;
	if (window.innerWidth)
		{theWidth = window.innerWidth}
	else if (document.body)
		{theWidth = document.body.clientWidth}
	d=document.getElementById('altext');
//	d.firstChild.nodeValue=o.alt;
	d.innerHTML=o.alt;
	if (oX>theWidth-120)
		d.style.left=theWidth-120+"px";
	else	
		d.style.left=20+oX+"px";
	d.style.top=oY+"px";
	d.style.display='block';
	txt=o.alt;
	o.alt="";
}
function hideA(o){
	o.alt=txt;
	document.getElementById('altext').style.display='none';
}
function clickhere() {}

var http_request = false;

function makeRequest(url) {

	http_request = false;

	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/xml');
		}
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
			http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}

	if (!http_request) {
		alert('Giving up : Cannot create an XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = alertContents;
	http_request.open('GET', url, true);
	http_request.send(null);

}

function alertContents() {

	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			var xmldoc = http_request.responseXML;
			var exp_node = xmldoc.getElementsByTagName('exp').item(0);
			var entry;
			if (entry=document.getElementById('start')) {
				var name_node = xmldoc.getElementsByTagName('name').item(0);				
    			entry.innerHTML=name_node.firstChild.data + ". " + exp_node.firstChild.data;
			} 
			else {
				entry=document.getElementById('altext');
    			entry.innerHTML="<a href='javascript:closebox();'  accesskey='x'><img align='right' border = '0' src='../../gifs/close.gif'></a>"
				+ exp_node.firstChild.data;
				entry.style.display='block';
				entry.style.left=mouseX+"px";
				entry.style.top=mouseY+"px";
			}
		} else {
			alert('There was a problem with the request.');
		}
	}
}

var mouseX = 0;
var mouseY = 0;

function getExp(e,sFile) {
    if (!e) var e = window.event; 
    if (e.pageX || e.pageY) {
        mouseX = e.pageX;
        mouseY = e.pageY;
    }
    else if (e.clientX || e.clientY) {
        mouseX = e.clientX + document.body.scrollLeft;
        mouseY = e.clientY + document.body.scrollTop;
    } 
	if (sFile)
	 	makeRequest("../../misc/glossary/items/" + sFile + ".xml")
	else 
		alert ("Word not found in glossary")
}
function closebox() {
	document.getElementById('altext').style.display='none';
}
function showToolTip(e,pText){
    var oX = 0;
    var oY = 0;
    if (!e) var e = window.event; 
    if (e.pageX || e.pageY) {
        oX = e.pageX;
        oY = e.pageY;
    }
    else if (e.clientX || e.clientY) {
        oX = e.clientX + document.body.scrollLeft;
        oY = e.clientY + document.body.scrollTop;
    } 
	var theWidth;
	if (window.innerWidth)
		{theWidth = window.innerWidth}
	else if (document.body)
		{theWidth = document.body.clientWidth}
	d=document.getElementById('altext');
	d.innerHTML=pText;
	if (oX>theWidth-120)
		d.style.left=theWidth-120+"px";
	else	
		d.style.left=20+oX+"px";
	d.style.top=oY+"px";
	d.style.display='block';
}
function hideToolTip(){
	document.getElementById('altext').style.display='none';
}
var myCookieHandler = new MyCookieHandler('highcontrast');
if (myCookieHandler.readCookie() == "Y") {
	document.write('<link href="../../css/highcontrast.css" type="text/css" rel="stylesheet" />')
// for home page only :
	document.write('<link href="css/highcontrast.css" type="text/css" rel="stylesheet" />')
}
//-->
