﻿// function associated to the flash menu -- gives back values from the 0 to the 6 
function ClickOptions(id)
    {
    var sPath=document.location.href;
    var sFolder="";
    
    if (sPath.indexOf("Publication/")>=0 || sPath.indexOf("Publication\\")>=0){ sFolder="../"}
    
    switch(id)
        {
        case 0: // Home
          document.location.href= sFolder + 'index.htm';
          break
        case 1: // About
          document.location.href= sFolder + 'center.htm';
          break    
        case 2: // Academics
          document.location.href=sFolder + 'Academics.htm';
          break 
        case 3: // Publications
          document.location.href=sFolder + 'Publication.htm';
          break
        case 4: // Presentations
          document.location.href=sFolder + 'Presentations.htm';
          break
        case 5: // Staff
          document.location.href=sFolder + 'Staff.htm';
          break    
        case 6: // Contact Us
          document.location.href=sFolder + 'Contactus.htm';
          break             
        default:  
        }
    }
    
    function activateObjects()
{
	if (navigator.appName == "Microsoft Internet Explorer" || navigator.appName== "Opera")
	{
		//alert("Browser Name: " + navigator.appName)
		var arrElements = new Array(3); 
		arrElements[0] = "object"; 
		arrElements[1] = "embed"; 
		arrElements[2] = "applet"; 
		for (n = 0; n < arrElements.length; n++)
		{
			replaceObj = document.getElementsByTagName(arrElements[n]);
			for (i = 0; i < replaceObj.length; i++ )
			{		       
				parentObj = replaceObj[i].parentNode;		          
				newHTML = parentObj.innerHTML;		          
				parentObj.removeChild(replaceObj[i]);		          
				parentObj.innerHTML = newHTML;
			} 
		} 
	} 
}