imageArray = new Array('topnav_products','topnav_support','topnav_applications','topnav_sales','topnav_investor','topnav_mediacenter','topnav_about');  
imagePath = "/images/"; 
function preloadImages() { 
	for(x=0;x<imageArray.length;x++) { 
		eval(imageArray[x] + 'off = new Image();'); 
		eval(imageArray[x] + 'off.src = "' + imagePath + imageArray[x] + '_on.gif";'); 
		eval(imageArray[x] + 'over = new Image();'); 
		eval(imageArray[x] + 'over.src = "' + imagePath + imageArray[x] + '_off.gif";'); 
	} 
} 
preloadImages(); 
 
function turnon(i) { 
	document[i].src = eval(i + "off.src") 
} 
function turnoff(i) { 
	if (i != currentSection) { 
		document[i].src = eval(i + "over.src") 
	} 
} 


// DYNAMIC MENUS 
// First element is the display name
// Second element is the URL to follow when clicked
// Third element is the height of the menu

topnav_products = new Array ( 
  ["Overview", "/products/","18"], 
  ["Nonvolatile Memory", "/products/nonvolatile-memory/","18"],
  ["Integrated Products", "/products/integrated/","18"],
  ["Wireless Memory/RFID", "/products/wireless-memory-rfid/","18"],
  ["Nonvolatile State Saver", "/products/nonvolatile-state-saver/","18"],
  ["Microcontrollers", "/products/microcontrollers/","18"], 
  ["Obsolete Products/Docs", "/products/obsolete-products.aspx","18"],
  ["Events", "/products/events.aspx","18"]
) 
 
topnav_support = new Array ( 
  ["Overview", "/support/","18"],
  ["Datasheets", "/support/datasheets.aspx","18"],
  ["Errata", "/support/errata.aspx","18"],
  ["IBIS Models", "/support/ibis-models.aspx","18"],  
  ["Application Notes", "/support/application-notes.aspx","18"],
  ["Technical Papers", "/support/technical-papers.aspx","18"],    
  ["Materials of Design &<br /><img src='/images/clear.gif' border=0 width=8>Construction Documents", "/support/materials.aspx","34"],
  ["FAQs", "/support/faqs.aspx","18"],
  ["Quality & Lead Free", "/support/quality-leadfree.aspx","18"],
  ["Subscription Center", "/support/subscription-center.aspx","18"],
  ["MCU Software Support<br><img src='/images/clear.gif' border=0 width=8>Tools Downloads", "/support/mcu-software.aspx","34"],
  ["Counterfeit F-RAM Devices", "/support/counterfeit-fram.aspx","18"],
  ["Learning Center", "/support/learning-center.aspx","18"]
)

topnav_applications = new Array (
  ["Overview", "/applications/","18"], 
  ["Automotive", "/applications/automotive.aspx","18"],
  ["Computing", "/applications/computing.aspx","18"], 
  ["Metering", "/applications/metering.aspx","18"],
  ["Industrial/Scientific/Medical", "/applications/industrial.aspx","18"],
  ["Wireless Memory/RFID", "/applications/wireless-memory-rfid.aspx","18"]
)

topnav_sales = new Array ( 
  ["Overview", "/sales/","18"],
  ["Sales Contacts", "/sales/buy-now.aspx","18"],
  ["Order Samples", "/sales/order-samples.aspx","18"],
  ["Submit a Question", "/sales/submit-question.aspx","18"],
  ["Corporate Sales Offices", "/sales/sales-offices.aspx","18"]
)

topnav_investor = new Array ( 
  ["Overview", "/investor-relations/","18"],
  ["Investor Briefcase", "/investor-relations/investor-briefcase/","18"],
  ["Investor Services", "/investor-relations/investor-services/","18"],
  ["Investor FAQs", "/investor-relations/faqs/","18"],
  ["SEC Filings", "/investor-relations/sec-filings/","18"],
  ["Financial Press Releases", "/investor-relations/press-releases/","18"],
  ["Corporate Governance", "/investor-relations/corporate-governance/","18"],
  ["Calendar of Events", "/investor-relations/calendar-events/","18"],
  ["Investor Relations Contacts", "/investor-relations/contacts/","18"]
)

topnav_mediacenter = new Array ( 
  ["Overview", "/press-center/","18"],
  ["Press Releases", "/press-center/press-releases.aspx","18"],
  ["Press Clippings", "/press-center/press-clippings.aspx","18"],
  ["FAQs", "/press-center/faqs.aspx","18"],
  ["Press Contacts", "/press-center/press-contacts.aspx","18"],
  ["Image Bank", "/press-center/image-bank.aspx","18"]
)

topnav_about = new Array ( 
  ["Overview", "/about-us/"],
  ["Corporate Overview", "/about-us/corporate-overview.aspx","18"],
  ["What is F-RAM", "/about-us/what-is-f-ram.aspx","18"],
  ["Ramtron Worldwide", "/about-us/worldwide.aspx","18"],
  ["Leadership", "/about-us/leadership.aspx","18"],
  ["History", "/about-us/history.aspx","18"],
  ["Careers", "/about-us/careers.aspx","18"]
)

var NS4 = false 
var IE4 = false 
var DOM = false 
var IE = false 
var NS6 = false 

oldIE = ( navigator.appName.indexOf('Microsoft') >= 0 && navigator.appVersion.indexOf('MSIE 4.') >= 0) ? true:false 
if (document.getElementById) { DOM = true; browser="DOM"; } 
if (document.layers && !DOM) { NS4 = true; browser="NS4"; } 
if (document.all && !DOM) IE4 = true 
if (navigator.appName.indexOf("Microsoft Internet Explorer") > -1) IE = true 
if (DOM && !IE) NS6 = true

navArrow = '<img src="/images/clear.gif" border=0 width=8>'; 
menuWidth = 175
menuHeight = 18 
menuColor = "#DFDFDF" 
menuHighlight = "#F2F2F2" 
menuborderColor = "#000000" 
borderStyle1 = ' border-top-width: 1px; border-left-width: 1px; border-bottom-width: 0px; border-right-width: 1px; border-color: ' + menuborderColor + '; border-style: solid; ' 
borderStyle2 = ' border-top-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; border-color: ' + menuborderColor + '; border-style: solid;  width:' + menuWidth + 'px; height:' + menuHeight + 'px; ' 
 
//if ((IE))
	menuVposition = new Array (101,101,101,101,101,101,101)
//else
//	menuVposition = new Array (25,25,25,25,25,25,25)
if ((IE))	
    menuHposition = new Array (227,322,411,530,599,759,800)
else 
    menuHposition = new Array (225,320,409,528,597,757,798)
    
menuArray = new Array ('topnav_products','topnav_support','topnav_applications','topnav_sales','topnav_investor','topnav_mediacenter','topnav_about') 
 
URLpath = new String( window.location.pathname ); 
currentSection = "" 
 
function getSection() { 
	for ( var i=0; i < menuArray.length; i++ ) { 
		if( URLpath.indexOf( menuArray[i] ) >= 0 ) { 
			currentSection = menuArray[i]; 
			turnon(menuArray[i]) 
			break; 
		} 
	} 
	if (currentSection == "") { 
		for (i=0;i<appSection.length; i++) { 
			if( URLpath.indexOf( appSection[i][0] ) >= 0 ) { 
				currentSection = appSection[i][1]; 
				turnon(currentSection) 
				break; 
			} 
		}				 
	} 
	if (currentSection == "") { 
		for (i=0;i<cgiSection.length; i++) { 
			if( URLpath.indexOf( cgiSection[i][0] ) >= 0 ) { 
				currentSection = cgiSection[i][1]; 
				turnon(currentSection) 
				break; 
			} 
		}				 
	} 
} 
 
active=false 
menusReady = false 
currentMenu = "" 
currentMenu = ""
 
function initLayers() { 
 
if (IE || DOM) { 
	for (x=0; x<menuArray.length; x++) { 
		layerName = menuArray[x] + 'Layer' 
		useArray = eval(menuArray[x])
		menu = '<div id="' + layerName + '" style="position: absolute; width: ' + menuWidth + 'px; z-index: 20; background-color: ' + menuHighlight + '; visibility: hidden;" onmouseout="unLock(\'' + menuArray[x] + 'Lyr\')" onmouseover="lock(\'' + menuArray[x] + 'Lyr\')">';
		for (v=0;v<useArray.length;v++) { 
			//menu += '<div id="' + layerName + v + '" style="position: relative; background-color: ' + menuColor + '; z-index: ' + x + 30 + '; height:' + menuHeight + 'px; ' + borderStyle1 
			menu += '<div id="' + layerName + v + '" style="position: relative; background-color: ' + menuColor + '; z-index: ' + x + 30 + '; height:' + useArray[v][2] + 'px; ' + borderStyle1 
			menu += (NS6) ? 'width:' + (menuWidth - 1) + 'px; ' : 'width:' + menuWidth + 'px; ' 
			menu += (v == useArray.length - 1) ?  " border-bottom-width: 1px;" : " border-bottom-width: 0px;" 
			menu += '" onmouseover="highlight(\'' + menuArray[x] + v + 'Lyr\')" onmouseout="unhighlight(\'' + menuArray[x] + v + 'Lyr\')" onclick="linkto(\'' + useArray[v][1] + '\')"><table cellspacing=2><tr><td>' + navArrow + '<span class="dhtmllink"><a href="' + useArray[v][1] + '">' + useArray[v][0] + '<\/a></span><\/td><\/tr><\/table><\/div>'; 
		} 
		menu += '<\/div>\n'; 
		document.write(menu); 
	} 
} 
 
if (NS4) { 
	document.write('<style type="text/css">\n') 
	document.write('all.menuItem1 {' + borderStyle1 + ' width:' + menuWidth + 'px; }\n') 
	document.write('all.menuItem2 {' + borderStyle2 + '}\n') 
	document.write('all.dhtmllink { padding-left: 2px; padding-top: 0px;}</style>') 
	for (x=0; x<menuArray.length; x++) { 
		layerName = menuArray[x] + 'Layer' 
		useArray = eval(menuArray[x]) 
		menu = '<layer id="' + layerName + '" width=' + menuWidth + ' z-index=20 visibility=hide onmouseout="unLock(\'' + menuArray[x] + 'Lyr\')" onmouseover="lock(\'' + menuArray[x] + 'Lyr\')">'; 
		for (v=0;v<useArray.length;v++) { 
			menu += '<ilayer id="' + layerName + v + '" bgcolor=' + menuColor + '><layer class=' 
			menu += (v == useArray.length - 1) ?  'menuItem2' : 'menuItem1' 
			menu += ' z-index=' + (x + 30 - v) + ' onmouseover="highlight(\'' + menuArray[x] + v + 'Lyr\')"' 
			menu += ' onmouseout="unhighlight(\'' + menuArray[x] + v + 'Lyr\')"><a href="' + useArray[v][1] + '" class=dhtmllink>' + navArrow + useArray[v][0] + '<\/a><\/layer></ilayer><br>'; 
		} 
		menu += '<\/layer>\n'; 
		document.write(menu); 
	} 
} 

for (x=0; x<menuArray.length; x++) { 
	layerName = menuArray[x] + 'Layer' 
	useArray = eval(menuArray[x]) 

	eval(menuArray[x] + 'Lyr = new domObject(\'' + layerName + '\')'); 
	for (v=0;v<useArray.length;v++) { 
		eval(menuArray[x] + v + 'Lyr = new domObject(\'' + layerName + v + '\',\'' + layerName + '\')') 
	} 

	eval(menuArray[x] + 'Lyr.sty.left = ' + String.fromCharCode(39) + menuHposition[x] + 'px' + String.fromCharCode(39)) 
	eval(menuArray[x] + 'Lyr.sty.top = ' + String.fromCharCode(39) + menuVposition[x] + 'px' + String.fromCharCode(39)) 
} 
menusReady = true; 
} 
 
if (!oldIE) initLayers() 
 
function domObject(theName,nestedLayer,frame) { 
	if (DOM || NS4) { 
		if (DOM) { 
			this.sty = document.getElementById(theName).style 
		} 
		 if (NS4) { 
			if (nestedLayer) { 
				this.sty = eval('document.' + nestedLayer + '.document.' + theName) 
			} else { 
				this.sty = document.layers[theName] 
			} 
		} 
	} 
	if (IE4) { 
		this.sty = this.frame.document.all[theName].style 
	} 
	this.theName = theName 
	this.active = false 
	this.locked = false 
} 
 
 
function showMenu(theMenu) { 

	theName = theMenu.replace(/Lyr/, "") 
	if (menusReady && !oldIE) { 
		if (currentMenu != theName && currentMenu != "") { 
			dropit(theMenu); 
		} 
		currentMenu = theName; 
		argMenu = theMenu 
		eval(theMenu + ".active = true") 
		show = setTimeout("showIt(argMenu)", 100) 
	} 
} 
 
function dropMenu(theMenu) { 

	eval(theMenu + ".active = false") 
	whichMenu = theMenu 
	wait = setTimeout("dropit(whichMenu)", 0) 
	//dropit(theMenu) 
} 
 
function showIt(theMenu) { 
	if (eval(theMenu + ".active") == true) { 
		eval(theMenu + '.sty.visibility = (NS4)? "show" : "visible"') 
		theName = theMenu.replace(/Lyr/, "")			
		turnon(theName)
		// Hide FORM and AD Elements -- Added by JAM 4/03/03
		// Hide FORM and AD Elements -- Added by JAM 4/03/03
		if (document.getElementById('dropDown') && (theMenu=="topnav_supportLyr" || theMenu=="topnav_applicationsLyr")) { document.getElementById('dropDown').style.visibility='hidden' }
		if (document.getElementById('advert') && theMenu=="topnav_estoreLyr" ) { document.getElementById('advert').style.visibility='hidden' } 
	} 
} 
 
function dropit(theMenu) { 
	if (!oldIE && eval(theMenu + ".locked") == false) { 
		eval(theMenu + '.sty.visibility = (NS4)? "hide" : "hidden"') 
		currentMenu = "";
		theName = theMenu.replace(/Lyr/, "") 
		turnoff(theName) 
		// Show FORM and AD Elements -- Added by JAM 4/03/03
		// Show FORM and AD Elements -- Added by JAM 4/03/03
		if (document.getElementById('dropDown') && (theMenu=="topnav_supportLyr" || theMenu=="topnav_applicationsLyr")) { document.getElementById('dropDown').style.visibility='visible' }
		if (document.getElementById('advert') && theMenu=="topnav_estoreLyr" ) { document.getElementById('advert').style.visibility='visible' }
	} 
} 

function showMenuActive(theMenu) { 

	theName = theMenu.replace(/Lyr/, "") 
	if (menusReady && !oldIE) { 
		if (currentMenu != theName && currentMenu != "") { 
			dropitActive(theMenu); 
		} 
		currentMenu = theName; 
		argMenu = theMenu 
		eval(theMenu + ".active = true") 
		show = setTimeout("showItActive(argMenu)", 100) 
	} 
}
 
function dropMenuActive(theMenu) { 

	eval(theMenu + ".active = false") 
	whichMenu = theMenu 
	wait = setTimeout("dropitActive(whichMenu)", 0) 
	//dropitActive(theMenu) 
} 
 
function showItActive(theMenu) { 
	if (eval(theMenu + ".active") == true) { 
		eval(theMenu + '.sty.visibility = (NS4)? "show" : "visible"') 
		theName = theMenu.replace(/Lyr/, "")		
		// Hide FORM and AD Elements -- Added by JAM 4/03/03
		// Hide FORM and AD Elements -- Added by JAM 4/03/03
		if (document.getElementById('dropDown') && (theMenu=="topnav_supportLyr" || theMenu=="topnav_applicationsLyr")) { document.getElementById('dropDown').style.visibility='hidden' }
		if (document.getElementById('advert') && theMenu=="topnav_estoreLyr" ) { document.getElementById('advert').style.visibility='hidden' } 
	} 
} 
 
function dropitActive(theMenu) { 
	if (!oldIE && eval(theMenu + ".locked") == false) { 
		eval(theMenu + '.sty.visibility = (NS4)? "hide" : "hidden"') 
		currentMenu = "" 
		theName = theMenu.replace(/Lyr/, "") 
		//turnoff(theName)
		// Show FORM and AD Elements -- Added by JAM 4/03/03
		// Show FORM and AD Elements -- Added by JAM 4/03/03
		if (document.getElementById('dropDown') && (theMenu=="topnav_supportLyr" || theMenu=="topnav_applicationsLyr")) { document.getElementById('dropDown').style.visibility='visible' }
		if (document.getElementById('advert') && theMenu=="topnav_estoreLyr" ) { document.getElementById('advert').style.visibility='visible' }
	} 
} 
 
function highlight(theMenu) { 
	if (IE || DOM) { 
		eval(theMenu + '.sty.backgroundColor = "' + menuHighlight + '"') 
		eval(theMenu + '.sty.cursor = "hand"') 
	} 
	if (NS4) { 
		eval(theMenu + '.sty.bgColor = "' + menuHighlight + '"') 
	} 
} 
 
function unhighlight(theMenu) { 
	if (IE || DOM) { 
		eval(theMenu + '.sty.backgroundColor = "' + menuColor + '"') 
		eval(theMenu + '.sty.cursor = "auto"') 
	} 
	if (NS4) { 
		eval(theMenu + '.sty.bgColor = "' + menuColor + '"') 
	} 
} 
 
function lock(theMenu) { 
	eval(theMenu + ".locked = true") 
} 
 
function unLock(theMenu) {
	eval(theMenu + ".locked = false")
	if (theMenu == currentMenu)
		dropMenuActive(theMenu)
	else
		dropMenu(theMenu) 
} 
 
function linkto(link) { 
	location = link 
}
function setActiveMenu(theMenu){
	currentMenu = theMenu
}