//<script type="text/javascript">

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
    toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';
    var w = window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
    w.focus();
}

//Contents for menu 1
var menu1=new Array()
menu1[0]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=1\", 200,200,660,550, 0,0,0,0,0);'>How to use a Checking Account? </a>"
menu1[1]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=2\", 200,200,660,550, 0,0,0,0,0);'>How does a credit report work?</a>"
menu1[2]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=3\", 200,200,660,550, 0,0,0,0,0);'>How to use a 401k?</a>"
menu1[3]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=4\", 200,200,660,550, 0,0,0,0,0);'>How does a credit card work?</a>"
menu1[4]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=5\", 200,200,660,550, 0,0,0,0,0);'>How to Buy and Sell Stocks?</a>"
menu1[5]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=6\", 200,200,660,550, 0,0,0,0,0);'>How does an ATM card work?</a>"
menu1[5]="<a href='javascript:open_window(\"howto\", \"/HowTo/index.aspx?opt=7\", 200,200,660,550, 0,0,0,0,0);'>How is the Certificate of Deposit work?</a>"

var menuwidth='165px' //default menu width
var menubgcolor='#ECE6E6'  //menu bgcolor
var disappeardelay=150  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

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)
}

function showFlashObject(id,width,height,movie,flashvars,wmode)
{
	var s = '<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" width="'+width+'" height="'+height+'" >';
	s = s + '<param name="movie" value="'+movie+'"/>';
	s = s + '<param name="menu" value="false"/>';
	s = s + '<param name="quality" value="high"/>';
	s = s + '<param name="allowScriptAccess" value="sameDomain"/>';
	s = s + '<param name="play" value="true"/>';
	s = s + '<param name="wmode" value="'+wmode+'"/>';
	s = s + '<param name="flashvars" value="'+flashvars+'"/>';
	s = s + '<embed swLiveConnect="true" flashvars="'+flashvars+'" src="'+movie+'" quality="high" bgcolor="" wmode="transparent" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	s = s + '</embed>';
	s = s + '</object>';
	document.write(s);
}

if (hidemenu_onclick=="yes")
    document.onclick=hidemenu

//</script>