function showDiv(sDiv)
{
	hideSubNav();
	var sDiv = document.getElementById(sDiv);
	sDiv.className = "show";
}

function hideSubNav()
{
	var dAbout = document.getElementById('about');
	var dInvestor = document.getElementById('investor');
	dAbout.className = "hidden";
	dInvestor.className = "hidden";
}

/********************************************************************************/
/*  FUNCTION to check CSS Navigation Elements
/********************************************************************************/
function init()
{
    cssjsmenu('sitesPullDown');
    if (document.getElementById)
    {
      var kill = document.getElementById('hoverJS'); 
      kill.disabled = true;
    }
}


// Show Hide Function for investor page

function showHideDiv(sDivId,hDivId)
{
	var sDiv = document.getElementById(sDivId);
	var hDiv = document.getElementById(hDivId);
	
	sDiv.className = "show";
	hDiv.className = "hidden";
}

function openCenterWindow(url, width, height, isScrollable) {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - width)/2, yOffset = (yMax - height)/2;

	var name = 'myNewWindow';
    var mywin = window.open(url, name, 'width='+width+',height='+height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+isScrollable+',resizable=1');
	if(mywin) {
		mywin.name = name;
		mywin.focus();
		if (mywin.opener == null) mywin.opener = self;
	} else { // if popup blocker, load in current page
		window.document.location = url;
	}
}
