// JavaScript Document

//Show / Hide sub navigation divs
function showSubNav( div )
{
	//Hide all sub menus
	document.getElementById('about_div').style.display 		= 'none';
	document.getElementById('investors_div').style.display	= 'none';
	document.getElementById('news_div').style.display 		= 'none';
	document.getElementById('careers_div').style.display 	= 'none';

	//Show sub menu by passed div in function
	document.getElementById(div).style.display 		 	= 'block';
}

//Swap an image function for another image
function changeImage(img_name, img_src)
{
	document.getElementById(img_name).src = img_src;
}

//Opens popup window - Investor flash movie
var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) 
{
	if (newWin != null && !newWin.closed)
	newWin.close();
	var strOptions="";
	if (strType=="console")
	strOptions="resizable,height="+strHeight+",width="+strWidth;
	if (strType=="fixed")
	strOptions="status,height="+strHeight+",width="+strWidth;
	if (strType=="elastic")
	strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;
	newWin = window.open(strURL, 'newWin', strOptions);
	newWin.focus();
}
