// MAIN MENU code for IE because it doesnt know :hover
sfHover = function() {
    var sfEls = document.getElementById("glbMainNav").getElementsByTagName("li");     
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }     
    } 
} 
if (window.attachEvent) window.attachEvent("onload", sfHover); 

//Font Functions
function increaseFontSize()
{
    var dvContent = document.getElementById('MainContent').style.fontSize;
    if(dvContent == '' || dvContent == 'undefined' || dvContent == null)
    {
        dvContent = '95%';
    }
    //limit how large the text can go.
    if(parseFloat(dvContent) <= 130)
    {
        document.getElementById('MainContent').style.fontSize = parseFloat(dvContent) + 10 + '%';
    }
}
function decreaseFontSize()
{
    var dvContent = document.getElementById('MainContent').style.fontSize;
	
    if(dvContent == '' || dvContent == 'undefined' || dvContent == null)
    {
        dvContent = '95%';
    }
    //limit how large the text can go.
    if(parseFloat(dvContent) > 95)
    {
        document.getElementById('MainContent').style.fontSize = parseFloat(dvContent) - 10 + '%';
    }
}


//Bookmark this page function
function addBookmark() 
{ 
    var url = location.href;
    var name = document.title;
    if (window.external) 
    { 
        window.external.AddFavorite(url,name);
    } 
    else  if (window.sidebar) 
    {  
        document.write('<a href ="javascript:CreateBookmarkLink()");">Bookmark Page</a>');  
    } 
    else if (window.opera && window.print) 
    {	   
        document.write('<a href =     "javascript:CreateBookmarkLink()");">Add Bookmark</a>'); 
    } 
} 
//Email this page
function emailPage() 
{
    var URL = location.href;
    var theEmail = "";
    theEmail += "mailto:?subject=An Interesting Page From FNC, Inc.";
    theEmail += "&body=%0D%0AHere is a link to a page from FNC, Inc.%0D%0A%0D%0A";
    theEmail += "Click on the link to view the page, or cut and paste it into a browser: %0D%0A%0D%0A";
    theEmail += escape(URL);
	
    window.location = theEmail;
}
//Print This Page
function printThis()
{
    window.print();
}

//popup
function pop(whichPage)
{
    aWindow = window.open(whichPage, "FNC", "status=no,toolbar=no,location=no,menu=no,scrollbars=yes,screenX=0,screenY=0,width=792,height=567");
}
//close popup
function closeWindow()
{
    //window.opener='FNC';
    window.close();
}

