// JavaScript Document


function adjustLeftRightColumns()
{
  //find the height of the internal page
  //var nav_height=document.getElementById('navWrapperTertiary').offsetHeight;
  
	  
  var right_height=document.getElementById('rightWrapper').offsetHeight;
	    var user_height=document.getElementById('userContentWrapper').offsetHeight;
	//var left_height=nav_height+content_height;
	var left_height=document.getElementById('leftWrapper').offsetHeight;
	var total_height=document.getElementById('mainWrapper').offsetHeight;
	
	if(left_height>right_height)
	{
		var the_height=left_height;
	}
	else if(left_height<right_height)
	{
		var the_height=right_height;
	}
 	
	
	document.getElementById('rightWrapper').style.height=the_height-36+"px";
	document.getElementById('userContentWrapper').style.height=the_height-108-66+"px";
	
	
	document.getElementById('leftColumn').style.height=the_height-108+"px";
	document.getElementById('userLeftSubNav').style.height=the_height-108+"px";
	
	document.getElementById('leftColumn').style.width="100%";
	document.getElementById('rightColumn').style.width="100%";
	document.getElementById('rightColumn').style.height=total_height-193+"px";
   
}

function showForInvestorsNav(){
	
	resetNavs();
	document.getElementById('forNavBottomFill').style.backgroundColor ="#EDA21C";
	document.getElementById('forInvestorsTab').style.backgroundColor ="#EDA21C";
	document.getElementById('forInvestorsTopTab').style.backgroundColor ="#EDA21C";
	document.getElementById('subNav').style.display ="block";
	document.getElementById('navForInvestorsSub').style.display ="block";
	
}
function showForDevelopersNav(){
	
	resetNavs();
	document.getElementById('forNavBottomFill').style.backgroundColor ="#EDA21C";
	document.getElementById('forDevelopersTab').style.backgroundColor ="#EDA21C";
	document.getElementById('forDevelopersTopTab').style.backgroundColor ="#EDA21C";
	document.getElementById('subNav').style.display ="block";
	document.getElementById('navForDevelopersSub').style.display ="block";
}
function showAssetMangNav(){
	
	resetNavs();
	document.getElementById('assetMangTab').style.backgroundColor ="#EDA21C";
	document.getElementById('assetMangTopTab').style.backgroundColor ="#EDA21C";
	document.getElementById('subNav').style.display ="block";
	document.getElementById('navAssetMangSub').style.display ="block";
}
function showAttorneysNav(){
	
	resetNavs();
	document.getElementById('attorneysTab').style.backgroundColor ="#EDA21C";
	document.getElementById('attorneysTopTab').style.backgroundColor ="#EDA21C";
	document.getElementById('subNav').style.display ="block";
	document.getElementById('navAttorneysSub').style.display ="block";
}

function showAccountantsNav(){
	
	resetNavs();
	document.getElementById('accountantsTab').style.backgroundColor ="#EDA21C";
	document.getElementById('accountantsTopTab').style.backgroundColor ="#EDA21C";
		document.getElementById('subNav').style.display ="block";
	document.getElementById('navAccountantsSub').style.display ="block";
}

function resetNavs(){
	document.getElementById('forNavBottomFill').style.backgroundColor ="transparent";
	document.getElementById('forInvestorsTab').style.backgroundColor ="transparent";
	document.getElementById('forInvestorsTopTab').style.backgroundColor ="#ffffff";
	
	document.getElementById('forDevelopersTab').style.backgroundColor ="transparent";
	document.getElementById('forDevelopersTopTab').style.backgroundColor ="#ffffff";
	
	document.getElementById('assetMangTab').style.backgroundColor ="transparent";
	document.getElementById('assetMangTopTab').style.backgroundColor ="#ffffff";
	
	document.getElementById('attorneysTab').style.backgroundColor ="transparent";
	document.getElementById('attorneysTopTab').style.backgroundColor ="#ffffff";
	
	document.getElementById('accountantsTab').style.backgroundColor ="transparent";
	document.getElementById('accountantsTopTab').style.backgroundColor ="#ffffff";
	
	document.getElementById('subNav').style.display ="none";
	document.getElementById('navForInvestorsSub').style.display ="none";
	document.getElementById('navForDevelopersSub').style.display ="none";
	document.getElementById('navAssetMangSub').style.display ="none";
	document.getElementById('navAttorneysSub').style.display ="none";
	document.getElementById('navAccountantsSub').style.display ="none";
		
}
function showProjectsNav(){
	
	//resetSecNavs();
	document.getElementById('projectsLinkTopTab').style.backgroundColor ="#EDA21C";
	document.getElementById('projectsLink').style.backgroundColor ="#EDA21C";
}
function showContactDirectoryNav(){
	
	//resetSecNavs();
	document.getElementById('contactDirectoryLinkTab').style.backgroundColor ="#EDA21C";
	document.getElementById('contactDirectoryLink').style.backgroundColor ="#EDA21C";
}
function showNewsRoomNav(){
	
	//resetSecNavs();
	document.getElementById('newsRoomLinkTab').style.backgroundColor ="#EDA21C";
	document.getElementById('newsRoomLink').style.backgroundColor ="#EDA21C";
}
function showAboutNEFNav(){
	
	//resetSecNavs();
	document.getElementById('aboutNEFLinkTab').style.backgroundColor ="#EDA21C";
	document.getElementById('aboutNEFLink').style.backgroundColor ="#EDA21C";
}
function resetSecNavs(){
	document.getElementById('projectsLinkTopTab').style.backgroundColor ="#ffffff";
	document.getElementById('projectsLink').style.backgroundColor ="transparent";
	document.getElementById('contactDirectoryLinkTab').style.backgroundColor ="#ffffff";
	document.getElementById('contactDirectoryLink').style.backgroundColor ="transparent";
	document.getElementById('newsRoomLinkTab').style.backgroundColor ="#ffffff";
	document.getElementById('newsRoomLink').style.backgroundColor ="transparent";
	document.getElementById('aboutNEFLinkTab').style.backgroundColor ="#ffffff";
	document.getElementById('aboutNEFLink').style.backgroundColor ="transparent";
}
function showFlash(){
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
	document.write('width="138" height="134">');
	document.write('<param name="movie" value="/flash/secondarySpiral.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/flash/secondarySpiral.swf" quality="high" ');
	document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ');
	document.write('width="138" height="134" wmode="transparent"></embed></object>');
	
}
// JavaScript Document
userSubSubNavHover = function() {
	var sfEls = document.getElementById("userSubSubNav").getElementsByTagName("li");
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

<!-- calls your IE patch to show the LI rollover hover-->
if (window.attachEvent) window.attachEvent("onload", userSubSubNavHover);
//-->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}