
/* Get nav links and apply status script */
/*function prepareNavLinks() {

/* Graceful Degrade */
/*	if (!document.getElementsByTagName) return false;
	if (!document.getElementById) return false;
	if (!document.getElementById("holder2")) return false;
	var contentopen = document.getElementById("holder2").firstChild;

	contentopen.href = '#';
	contentopen.onclick = function() {
		GoToPage('About_James_Ireland');
	}
}


function prepareNavLinks() {
for(var i=0; i<document.getElementById('displayMenu').getElementsByTagName('li').length; i++){
var span = document.getElementById('displayMenu').getElementsByTagName('li')[i];
var contentloc = span.firstChild.firstChild;
var contenthref = span.firstChild.firstChild.href;
	var contenthref = contenthref.replace(new RegExp(/http:\/\/www\.jiai.dev\//i),"");
	alert(contenthref);
	contentloc.onclick = function() {
		GoToPage(contenthref);
	contentloc.href = '#';
	}
}
}

*/

function liClickHandler(e){
    if(typeof(e)=="undefined"&&
       typeof(window.event)!="undefined") {
	e=window.event;
    }
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();
    GoToPage(this.contenthref);
    return true;
}

function prepareNavLinks() {
    for(var i=0; i<document.getElementById('displayMenu').getElementsByTagName('li').length; i++){
	var span = document.getElementById('displayMenu').getElementsByTagName('li')[i];
	var contentloc = span.firstChild.firstChild;
	//var contenthref = span.firstChild.firstChild.href;
	contenthref = contentloc.href;
	//contenthref = contenthref.replace(new RegExp(/http:\/\/www\.jiai.dev\//i),"");
	contentloc.contenthref = contenthref;
	contentloc.href='#';
	contentloc.onclick = liClickHandler;
    }
}

