// JavaScript Document
function setMenuSelection(selectionNmbr){
	var lnkStyleRef = document.getElementById("lnk" + selectionNmbr).style;
	with(lnkStyleRef){
		color = "#030";
		fontWeight = "bold";
	}
	var bltRef = document.getElementById("blt" + selectionNmbr);
	bltRef.src = "img/bul_on.gif";
}
function showSubMenu(selection_nmbr){
	var subMenuRef = document.getElementById("submenu" + selection_nmbr);
	var subMenuStylesRef = subMenuRef.style;
	subMenuStylesRef.display = "block";
	subMenuStylesRef.borderBottom = "none";
	//alert(subMenuRef.childNodes[0].style.height);
	
/*	for(var i=0; i<subMenuRef.childNodes.length; i++){
        subMenuRef.childNodes[i].style.height = 30;
    }*/
	

}
function setSubMenuSelection(subSelectionNmbr){
	var subLinkStyleRef = document.getElementById("lnk" + subSelectionNmbr).style;
	with(subLinkStyleRef){
		color = "#fff";
		fontWeight = "bold";
	}
}
function setButtonSelection(selectionNmbr){
	document.getElementById("lnk" + selectionNmbr).style.color = "#000000";
	document.getElementById("lnk" + selectionNmbr).style.marginTop = "0";
	document.getElementById("btn" + selectionNmbr).style.backgroundImage = "url(img/psa1a_TBL_main_TR2_TD_center-col_TBL_menu_TD_Selected_bg.jpg)";
	document.getElementById("btn" + selectionNmbr).style.borderTopColor = "#ffffff";
	document.getElementById("btn" + selectionNmbr).style.borderRightColor = "#c4d0fb";
	document.getElementById("btn" + selectionNmbr).style.borderTopWidth = "thin";
}

function popScreen(screen_nmbr){
	var screenPath = "screens/" + screen_nmbr + ".htm";
	var win = window.open(screenPath,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=600");
	var xPos = (screen.width - 600)/2;
	var yPos = (screen.height - 600)/2;
	win.moveTo(xPos,yPos);
} 

var thumbs = ["placeholder_for_item_zero",
 "linearScheduling_216.jpg",
 "scheduleGrid_216.jpg",
 "nonLinearScheduling_216.jpg",
 "MediaXpress_thumb.jpg",
 "corporateXpress_216.jpg",
 "sarbanesOxley_216.jpg",
 "amortization_216.jpg",
 "liabilities_216.jpg",
 "programManagement_216.jpg",
 "trafficXpress_216.jpg",
 "mediaLibrary_216.jpg",
 "standardReports_216.jpg",
 "UserDefinedReports_216.jpg",
 "crtc_216.jpg",
 "customizableInterface_216.jpg",
 "SystemSecurityPage_216.jpg",
 "schedX_competitive_216.jpg",
 "global_rights_management_thumb.jpg",
 "PrepXpress_216.jpg"];
 
var prints = ["placeholder_for_item_zero",
 "linearScheduling_570.jpg",
 "scheduleGrid_570.jpg",
 "nonLinearScheduling_570.jpg",
 "MediaXpress_print.jpg",
 "corporateXpress_570.jpg",
 "sarbanesOxley_570.jpg",
 "amortization_570.jpg",
 "liabilities_570.jpg",
 "programManagement_570.jpg",
 "trafficXpress_570.jpg",
 "mediaLibrary_570.jpg",
 "standardReports_570.jpg",
 "UserDefinedReports_570.jpg",
 "crtc_570.jpg",
 "customizableInterface_570.jpg",
 "SystemSecurityPage_570.jpg",
 "schedX_competitive_570.jpg",
 "global_rights_management_print.jpg",
 "PrepXpress_570.jpg"];

function toggleScreenOn(screenNmbr){
var screenPrint = prints[screenNmbr];
var screenPrintPath = "screens/prints/" + screenPrint;
var outerDVref = document.getElementById("psa1a_DV_LAYER_popup_outer");
/*outerDVref.style.visibility = "visible";
outerDVref.style.backgroundcolor = #FF9900;*/
outerDVref.style.textAlign = "center";
var innerDVref = document.getElementById("psa1a_DV_popup_inner");
innerDVref.style.visibility = "visible";
innerDVref.style.backgroundColor = "#000066";
innerDVref.style.padding = "9px";
innerDVref.style.border = "3px solid #999999";
/*innerDVref.style.marginLeft = "90px";*/
var imgRef = document.getElementById("psa1a_DV_popup_IMG");
imgRef.src = screenPrintPath;
imgRef.style.margin = "12px";
imgRef.style.marginBottom = "30px";
/*imgRef.style.border = "12px solid #000000";*/
/*innerDVref.style.width = imgRef.style.width + 12;*/
document.getElementById('popupLink').innerHTML="Close";
document.getElementById('popupLink').href="JavaScript:toggleScreenOff(1)";
}
function toggleScreenOff(screenNmbr){
document.getElementById("psa1a_DV_popup_inner").style.visibility = "hidden";
var imgRef = document.getElementById("psa1a_DV_popup_IMG");
imgRef.src = "img/bullet_white_4x4.gif";
}
function showThumb(thumbNmbr){
var thumbImage = thumbs[thumbNmbr];
var thumbPath = "screens/thumbs/" + thumbImage;
var thumbElement = document.getElementById("curThumb");
thumbElement.src = thumbPath;	
}