// shared scripts
var menuTimer = '';

function placeMenu(){
	menu_obj = document.getElementById('flashMenu');
	menu_placeholder_obj = document.getElementById('menuPlaceholder'); 
	table_obj = document.getElementById('mainTable'); 
	
	//alert(menu_placeholder_obj.offsetLeft);
	h=menu_placeholder_obj.offsetLeft;
	v=menu_placeholder_obj.offsetTop;
	//h = ((document.body.clientWidth - table_obj.clientWidth) / 2) + menu_placeholder_obj.offsetLeft;
	menu_obj.style.left=h;
	menu_obj.style.top=v;
	menu_obj.style.visibility='visible';
}
function showMenu(){
	menu_obj = document.getElementById('flashMenu');
	
	clearTimeout(menuTimer);
	menu_obj.style.height=200;
}
function hideMenu(){
	menu_obj = document.getElementById('flashMenu');
	menuTimer = setTimeout('menu_obj.style.height=50',500);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function expandRow(rowID,rowClass,rowExpandedClass,expandRowID){

	if (row_obj = document.getElementById(rowID)) row_obj.className = (row_obj.className == rowClass ? rowExpandedClass : rowClass);
	if (expandrow_obj = document.getElementById(expandRowID)) expandrow_obj.style.display = (expandrow_obj.style.display == 'block' ? 'none' : 'block');

}
