////////////////
//
// FICompany.js
//
////////////////


var _companyDivArray = new Array ( 'CompanyDiv', 'MissionDiv', 'MteamDiv', 'ContactDiv' );
var _companySubArray = new Array ( 'SubSelect0', 'SubSelect1', 'SubSelect2' );

function selectCompanySub( selectionDiv_, selectionSub_ )
{
	// first make everything hidden, then turn on what we want
	if ( document.all ) {
		for ( var index = 0; index < _companyDivArray.length; index++ ) 
			document.all[ _companyDivArray[index]].style.visibility = "hidden";
		for ( var index = 0; index < _companySubArray.length; index++ )
			document.all[ _companySubArray[index]].style.visibility = "hidden";

		document.all[ selectionSub_ ].style.visibility = "visible";
		document.all[ selectionDiv_ ].style.visibility = "visible";
	}
	else 
	{
		for ( var index = 0; index < _companySubArray.length; index++ )
			document.getElementById(_companySubArray[index]).style.visibility = "hidden";

		for ( var index = 0; index < _companyDivArray.length; index++ ) 
			document.getElementById( _companyDivArray[ index ]).style.visibility = "hidden";

		document.getElementById( selectionSub_ ).style.visibility = "visible";
		document.getElementById( selectionDiv_ ).style.visibility = "visible";
	}
}

function selectDetails( selection_ )
{
	var windowParams = "toolbar=no,location=no,directories=no,status=no,menubar=no"
		+ ",copyhistory=no,resizable=no";
	var windowName = "Partners";
	var htmlFile = "";
	if ( selection_ == "pointcarbon" ) {
		windowParams += ",scrollbars=yes,width=820,height=700";
		htmlFile = "http://www.pointcarbon.com/events/conferences/cmia09";
	}
	else if ( selection_ == "investmentbank" ) {
		windowParams += ",scrollbars=yes,width=515,height=500";
		htmlFile = "../html/IBDetails.htm";
	}
	else if ( selection_ == "CFD_IB" ) {
		windowParams += ",scrollbars=yes,width=515,height=500";
		htmlFile = "../html/CFD_IBDetails.htm";
	}
	window.open( htmlFile, windowName, windowParams );
}

