// ----------------  //

function keyPress(e)
{
	key = event.keyCode;
	if (key == 27) {
		closeUp()
	}		

}

// ----------------  //
function popupPage(w, h, p) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  var windowprops = "location=yes,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,left=" + winl + ",top=" + wint + ",width=" + w + ",height=" + h;
  var URL = p;
  
  popup = window.open(URL,"Portfolio",windowprops);
}

// ----------------  //

		
function ToggleDisplay2(id, specificID)
  {

    var elem2 = document.getElementById(specificID + id);

    if (elem2) 
    {
      
      if (elem2.style.display != 'block') 
		{
        //Check for the Master nav
        
        if (specificID == "m"){
			// All Master menus send the letter m
			// Below we are going to close all of the MasterElements
			// then open the one that we are looking to open
			var MasterElement = "";
			for(var i = 1; i <= liMasterNavCounter; i++)
			{
			
        		MasterElement = document.getElementById(specificID + i);
				MasterElement.style.display = 'none';
				MasterElement.style.visibility = 'hidden';
        	
			}
        	
        }
        

        elem2.style.display = 'block';
        elem2.style.visibility = 'visible';
        
      } 
      else
      {
      if (specificID == "m"){
			
			var MasterElement = "";
			for(var i = 1; i <= liMasterNavCounter; i++)
			{
			
        		MasterElement = document.getElementById(specificID + i);
				MasterElement.style.display = 'none';
				MasterElement.style.visibility = 'hidden';
        	
        }
        	
        }
        elem2.style.display = 'none';
        elem2.style.visibility = 'hidden';

      }
    }
  }

if (document.images) {
var login=new Image(); 
login.src="images/loginh.jpg";
}



