function showPopup(where,which_item,directoryName){
	
	if (file_info[which_item]){

	popup = document.getElementById('popup_div');
		var x = 0;
		var y = 0;
		var o = where;
		while(o){
			x += o.offsetLeft;
			y += o.offsetTop;
			o = o.offsetParent;
		}
		
		
		text_output = '<div class="f_listing" style="float:left;background:url(graphics/TabTile.gif);">'+
			'<img src="graphics/tabFront.gif" width="30" height="23" align="absmiddle">'+
			directoryName +
			'<a href="#" onclick="document.getElementById(\'popup_div\').style.display=\'none\';return false;"><img src="graphics/tabTop.gif" width="57" height="23" align="absmiddle" border="0" style="margin-left:25px;"></a></div>'+
			'<br style="clear:both;">';
			
		text_output += '<table border="0" cellspacing="0" cellpadding="0" class="f_table">'+
			'<thead><tr><th>Filename</th>'+
			'<th>File Type</th><th width="50">Size</th>'+
			'<th width="120">Date Posted</th><th width="50">Action</th></tr></thead><tbody>';
			
			
		text_output += file_info[which_item]+"</tbody></table>";
		
		popup.innerHTML = text_output;
		//popupHelp.style.visiblity = 'hidden';
		popup.style.display = '';
		y -= 3;
		x -= 30;
		//y += (popup.clientHeight-2)-10;
		popup.style.left = x+'px';
		popup.style.top = y+'px';
	}
}

function hidePopup(){
	popup = document.getElementById('popup_div');
	popup.style.display = 'none';		
}

menu_item = new Array();
menu_item["about"] = '<ul class="menu"><li><a href="index.php?area=investment_criteria">Investment Criteria</a></li><li><a href="index.php?area=creating_value">Creating Value</a></li><li><a href="index.php?area=our_investors">Our Investors</a></li><li><a href="index.php?area=our_mission">Our Mission</a></li></ul>';
menu_item["team"] = '<ul class="menu"><li><a href="index.php?area=partners">Partners</a></li></ul>';
menu_item["portfolio"] = '<ul class="menu"><li>Portfolio by Industry<ul style="margin:0;padding:0;"><li><a href="index.php?area=current_financial">Financial Services</a></li><li><a href="index.php?area=current_healthcare">Healthcare Services</a></li></ul></li><li><a href="index.php?area=current_alphabetical">Alphabetical</a></li><li><a href="index.php?area=prior_portfolio">Prior Portfolio Companies</a></li></ul>';
menu_item["news"] = '<ul class="menu"><li><a href="index.php?area=press_releases">CCP Equity Partners Press Releases</a></li><li><a href="index.php?area=portfolio_press_releases">Portfolio Company Press Releases</a></li></ul>';
menu_item["contact_us"] = '<ul class="menu"><li><a href="index.php?area=contact_us">Contact Information</a></li><li><a href="index.php?area=directions">Map &amp; Directions</a></li></ul>';

function showMenu(where,which_item){
	if (menu_item[which_item]){
		popup = document.getElementById('menu_div');
		var x = 0;
		var y = 0;
		var o = where;
		while(o){
			x += o.offsetLeft;
			y += o.offsetTop;
			o = o.offsetParent;
		}
		
		popup.innerHTML = menu_item[which_item];
		//popupHelp.style.visiblity = 'hidden';
		popup.style.display = '';
		y -= 8;
		x = 140;
		popup.style.left = x+'px';
		popup.style.top = y+'px';
		rollover();
	}
}

timer = 0;

function rollout(){
	timer = setTimeout("closeMenu()",500);
}

function rollover(){
	clearTimeout(timer);
}

function closeMenu(){
	popup = document.getElementById('menu_div');
	popup.style.display = 'none';
}

function rolloverRow(which){
	which.style.backgroundColor="#ffc";
}

function rolloutRow(which){
	which.style.backgroundColor="";
}

