﻿/* Extra stuff to enable nav hovers in lame IE */
sfHover = function() {
	var sfEls = document.getElementById("topNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() { this.className+=" sfhover";	selectHide(); }
		sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); selectShow(); }
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

function selectHide(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) { selects[i].style.visibility = "hidden"; }
}

function selectShow(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) { selects[i].style.visibility = "visible"; }
}

function loadPersonalization()
{
    var url = "/dismal2/Personalization.aspx";
    $.ajax({
            type: "get",
            url: url,
            async: true,
            dataType: "text",
            success: function( s ){ 
                $("#personalizeDiv").append( s ).show();
            }
        });
}
function goLink( goHere )
{
    window.location = goHere;
}
