document.domain="firstrade.com";

var menu1=new Array()
menu1[0]='<a href="http://www.firstrade.com">Home</a>'
menu1[1]='<a href="/public/en_us/welcome/whyfirstrade/" title="online stock trading">Why Choose Firstrade?</a>'
menu1[2]='<a href="/public/en_us/welcome/interactivedemo/" title="discount online brokerage">Interactive Demo</a>'
menu1[3]='<a href="/public/en_us/welcome/aboutfirstrade/" title="online stock trading">About Firstrade</a>'
menu1[4]='<a href="/public/en_us/welcome/promotions/" title="discount broker">Promotions</a>'
menu1[5]='<a href="/public/en_us/welcome/newsletter/" title="online stock broker">Firstrade Newsletter</a>'
menu1[6]='<a href="http://freetime.firstrade.com/blog/" target="_blank">Firstrade Blog</a>'

var menu2=new Array()
menu2[0]='<a href="/public/en_us/productsservices/investmentchoices/" title="online trading">Investment Choices</a>'
menu2[1]='<a href="/public/en_us/productsservices/accounttypes/" title="online investing">Account Types</a>'
menu2[2]='<a href="/public/en_us/productsservices/toolsresearch/" title="online investing">Tools & Research</a>'
menu2[3]='<a href="/public/en_us/productsservices/waystotrade/" title="online brokerages">Ways to Trade</a>'
menu2[4]='<a href="/public/en_us/productsservices/options/" title="online options trading">Options</a>'
menu2[5]='<a href="/public/en_us/productsservices/complexoptions/">Complex Options</a>'
menu2[6]='<a href="/public/en_us/productsservices/internationalinvestors/" title="international investors">International Investors</a>'

var menu3=new Array()
menu3[0]='<a href="/public/en_us/pricing/commissions/" title="trading stock">Commissions</a>'
menu3[1]='<a href="/public/en_us/pricing/marginrates/" title="margin interest rates">Margin Rates</a>'
menu3[2]='<a href="/public/en_us/pricing/specialservices/" title="discount online brokerage">Special Services</a>'
menu3[3]='<a href="/public/en_us/pricing/brokercomparison/" title="online broker comparison">Broker Comparison</a>'

var menu5=new Array()
menu5[0]='<a href="/public/en_us/retirement/traditionalira/" title="traditional ira">Traditional IRA</a>'
menu5[1]='<a href="/public/en_us/retirement/rothira/" title="roth ira">Roth IRA</a>'
menu5[2]='<a href="/public/en_us/retirement/rolloverira/" title="401k">Rollover IRA</a>'
menu5[3]='<a href="/public/en_us/retirement/sepira/" title="sep ira">SEP IRA</a>'
menu5[4]='<a href="/public/en_us/retirement/simpleira/" title="simple ira">SIMPLE IRA</a>'
menu5[5]='<a href="/public/en_us/retirement/coverdellesa/" title="coverdell esa">Coverdell ESA</a>'
menu5[6]='<a href="/public/en_us/knowledgecenter/taxcenter/taxretirement/" title="online investing">Tax Center</a>'

var menu6=new Array()
menu6[0]='<a href="/public/en_us/knowledgecenter/investmentguides/" title="online trading">Investment Guides</a>'
menu6[1]='<a href="/public/en_us/knowledgecenter/securitycenter/" title="internet stock trading">Security Center</a>'
menu6[2]='<a href="/public/en_us/knowledgecenter/taxcenter/" title="online investing">Tax Center</a>'
<!--menu6[2]='<a href="/public/en_us/knowledgecenter/usingfirstrade/">Using Firstrade</a>'-->
menu6[3]='<a href="/public/en_us/support/faqs/" title="trading stock">FAQs</a>'
menu6[4]='<a href="/public/en_us/knowledgecenter/glossary/" title="trading stock">Glossary</a>'
menu6[5]='<a href="http://www.invest-store.com/firstrade" target="_blank">Bookstore</a>'
<!--menu6[6]='<a href="/public/en_us/knowledgecenter/podcasts/">Podcasts</a>'-->
<!--menu6[7]='<a href="/public/en_us/knowledgecenter/firstradewiki/">Firstrade Wiki</a>'-->

var menu7=new Array()
menu7[0]='<a href="/public/en_us/Support/" title="discount broker">Contact Us</a>'
menu7[1]='<a href="/public/en_us/support/livechat/" title="trading stock">Live Chat</a>'
menu7[2]='<a href="/public/en_us/support/fundyouraccount/" title="trading stock">Fund Your Account</a>'
menu7[3]='<a href="/public/en_us/support/transfertofirstrade/" title="trading stock">Transfer To Firstrade</a>'
menu7[4]='<a href="/public/en_us/support/faqs/" title="trading stock">FAQs</a>'
menu7[5]='<a href="/public/en_us/support/glossary/" title="trading stock">Glossary</a>'
menu7[6]='<a href="/public/en_us/support/formscenter/" title="trading stock">Forms Center</a>'

var menuwidth='170px' //default menu width
var menubgcolor='#FFFFCC'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

function swapImgRestore() {
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages() {
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() {
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
<!--
// Copyright 1999 - 2002 by Ray Stott, Pop-up Windows Script ver 2.0
// OK to use if this copyright is included
// Script is available at http://www.crays.com/jsc   
var popWin = null    // use this when referring to pop-up window
var winCount = 0
var winName = "popWin"
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
  var d_winLeft = 20  // default, pixels from screen left to window left
  var d_winTop = 20   // default, pixels from screen top to window top
  winName = "popWin" + winCount++ //unique name for each pop-up window
  closePopWin()           // close any previously opened pop-up window
  if (openPopWin.arguments.length >= 4)  // any additional features? 
    winFeatures = "," + winFeatures
  else 
    winFeatures = "" 
  if (openPopWin.arguments.length == 6)  // location specified
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
  else
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
  popWin = window.open(winURL, winName, "width=" + winWidth 
           + ",height=" + winHeight + winFeatures)
  }
function closePopWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popWin != null) if(!popWin.closed) popWin.close() 
  }
function getLocation(winWidth, winHeight, winLeft, winTop){
  return ""
  }
//-->