/* Javscript Document  */
/*
window.addEvent('domready', function() {
	alert ($('debug'));
	if ($('debug') == null) {
    var debugDiv = new Element('div', {
    		'id': 'debug', 
    		html: 'turn grid: <a href=\'\' id=\'togglegrid\' onclick=\'toggle_grid();\'>' + gridstate() + '</a>',
    		styles: {
    			position: "absolute",
    		bottom: "0" }
    		})
    $('container').adopt(debugDiv);
  }
});

function toggle_grid () {
    $('container').toggleClass("showgrid");
    $('togglegrid').setProperty('html', gridstate());
    return true;
}

function gridstate () {
    if ($('container').hasClass("showgrid")) {
        return 'off';
    } else {
        return 'on';
    };
}
*/
sfHover = function() {
var sfEls = document.getElementById("navtop").getElementsByTagName("LI");
for (var i=0; i < sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" over";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" over\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
