/*

    achilScript.js
    
    Description:
    
    This module provides basis popup-window display and hiding, and is used for the Careers
    and Management pages.
    
    Functions:
    
    function ShowPop( popName ) 
     
        sets the 'visible' or 'visibility' attribute of the named popup element appropriately so the
        element will be displayed.   
        
    function HidePop( popName )
    
        sets the 'visible' or 'visibility' attribute of the named popup element appropriately so the
        element will be hidden.   

    function ClossPop(n)
    
        finds all elements with 'popWin_0' + n name and hides them.
        
        
    function crsClossPop()
    
        closes 1  (n=2, loop goes to n-1) pop elements - used in Careers page
        
    function mangClossPop()
    
        closes 5 pop elements (n=6, loop goes to n-1) - used on Management page 

    function mailPage()
        calls pageMail.aspx

*/

// JavaScript Document
    function ShowPop(popName)
	{
		if	(document.layers) {
			document.layers[popName].visibility="visible";
		} else if (document.getElementById) {
			document.getElementById(popName).style.display="";
			document.getElementById(popName).style.visibility="visible";
		} else if (document.all) {
			document.all(popName).style.display="";
			document.all(popName).style.visibility="visible";
		}
	}

	function HidePop(popName)
	{
		if	(document.layers) {
			document.layers[popName].visibility="hidden";
		} else if (document.getElementById) {
			document.getElementById(popName).style.display="none";
			document.getElementById(popName).style.visibility="hidden";
		} else if (document.all) {
			document.all(popName).style.display="none";
			document.all(popName).style.visibility="hidden";
		}
	}


	function ClossPop(n)
	{
		for (var i = 1; i < n; i++)
		{
			var popName = "popWin_0" + i;

			var elmPop = null;

			if	(document.layers) {
				try {
					document.layers[popName].visibility="hidden";
				} catch(e) {
					// actually, just let it slide.
				}
			} else if (document.getElementById) {

				elmPop = document.getElementById(popName);

				if ( elmPop != null ) {

					elmPop.style.display="none";
					elmPop.style.visibiity = "hidden";

				}

			} else if (document.all) {

				elmPop = document.all(popName);

				if( elmPop != null) {

					elmPop.style.display="none";
					elmPop.style.visibiity = "hidden";

				}

			}
		}
	}
	// careers
	function crsClossPop()
		{
			ClossPop(2);
		}

	// management
	function mangClossPop()
		{
			ClossPop(7);
		}

	// maile
	function mailPage()
	{
	var w = 550;
  	var h = 565;
    var t = parseInt("" + (screen.height-h)/2);
    var l = parseInt("" + (screen.width-w)/2);
  	var disp_setting="fullscreen=no, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no, directories=no, location=no, width="+w+", height="+h+", left="+l+", top="+t+"";
	window.open("PL/pageMail.aspx","mailWin",disp_setting);
	}

function showProductSubmenu() {

    try {

        document.getElementById('product_header').style.display = 'none';
        document.getElementById('pipeline_sub').style.display = 'block';

    } catch(e) { }

}

//-->
