function header (code,level) {

// HEADER 
// Code gives the page designation
// Level is the heirarchy
//  1 = main level (home, prospective students, current students, etc.
//  2 = level given by the navigation map menu on level one pages
//        and in capital letters on the sidebar menu [sidebar (0)]
//  3 = level given by the navigation map sub menu on level one pages
//        and in blue on the sidebar menu 
//  4 = level not given by the navigation map on level one pages
//        and in grey on the sidebar menu 

    document.write ("<table border=0 width =700 cellpadding=0 cellspacing=0 marginwidth=0><tr>")
    document.write ("<td rowspan=3 width=49 valign=top align=left>")
    document.write ("<a href='http://www.uiuc.edu'><img src='../images/headers/i-block2.gif' width=50 height=85 border=0></a></td>")
    document.write ("<td width=300 valign=top align=left>")
    document.write ("<a href='../default.aspx'><img src='../images/headers/finance.gif' width=300 height=30 border=0></a></td>")

    //inside menu

     document.write ("<td width=155 height=85 rowspan=3 valign=top align=left></td>")
     document.write ("<td width=195 height=85 rowspan=3 valign=top align=left>")
     document.write ("<img src='images/phd.gif' width=195 height=85></td></tr>")

  //College and UI 
    document.write ("<tr><td valign=top align=left>")
    document.write ("<a href='http://www.cba.uiuc.edu'><img src='../images/headers/cba.gif' width=300 height=30 border=0></a></td>")
    document.write ("</tr><tr>")
    document.write ("<td valign=top align=left>")
    document.write ("<a href='http://www.uiuc.edu'><img src='../images/headers/uiuc.gif' width=300 height=20 border=0></a></td>")
    document.write ("</tr>")

     //horizontal page header with photograph

    if (level == 5) {
       document.write ("<tr><td colspan=4 valign=top>")
       document.write ("<img src='../images/headers/curve2.gif' width=700 height=24 border=0>")
       document.write ("</td></tr>")
    } else {
       document.write ("<tr><td colspan=4 valign=top>")
       document.write ("<img src='../images/headers/"+code+"-top.gif' width=700 height=100 border=0></td>")
       document.write ("</tr><tr>")
       document.write ("<td width=505 height=40 colspan=3 align=right>")
       document.write ("<img id=faces src='../images/headers/curve3.gif' width=505  height=40 useMap=#Faces border=0 name=faces>")

       document.write ("</td>")
       document.write ("<td width=195 height=40 align=right>")
       document.write ("<img src='../images/headers/"+code+"-bottom.gif' width=195 height=40 border=0>")
       document.write ("</td></tr>")
    }
    document.write ("</table>")

    document.write("<map name='faces'>")
    document.write("<area shape=rect coords=3,0,34,37 alt='Professor Roger Cannaday' href='../../faculty/cannaday.html'>")
    document.write("<area shape=rect coords=35,0,63,37 alt='Professor Louis Kuo Chi Chan' href='../../faculty/chan.html'>")
    document.write("<area shape=rect coords=66,0,96,37  alt='Professor Stephen DArcy' href='../../faculty/darcy.html'>")
    document.write("<area shape=rect coords=99,0,129,37  alt='Professor Michael Dyer' href='../../faculty/dyer.html'>")
    document.write("<area shape=rect coords=133,0,163,37 alt='Professor Virginia Grace France' href='../../faculty/france.html'>")
    document.write("<area shape=rect coords=164,0,195,37 alt='Professor James Gentry' href='../../faculty/gentry.html'>")
    document.write("<area shape=rect coords=198,0,225,37 alt='Professor Charles Kahn' href='../../faculty/kahn.html'>")
    document.write("<area shape=rect coords=230,0,256,37 alt='Professor George Krueger III' href='../../faculty/krueger.html'>")
    document.write("<area shape=rect coords=262,0,290,37 alt='Professor Josef Lakonishok' href='../../faculty/lakonishok.html'>")
    document.write("<area shape=rect coords=293,0,322,37 alt='Professor Charles Linke' href='../../faculty/linke.html'>")
    document.write("<area shape=rect coords=324,0,352,37 alt='Professor Ward McDonald' href='../../faculty/mcdonald.html'>")
    document.write("<area shape=rect coords=357,0,383,37 alt='Professor Hun Park' href='../../faculty/park.html'>")
    document.write("<area shape=rect coords=387,0,415,37 alt='Professor Neil Pearson' href='../../faculty/pearson.html'>")
    document.write("<area shape=rect coords=416,0,446,37 alt='Professor Phillip Rushing' href='../../faculty/rushing.html'>")
    document.write("<area shape=rect coords=448,0,477,37 alt='Professor Sarabjeet Seth' href='../../faculty/seth.html'>")
    document.write("<area shape=rect coords=480,0,505,37 alt='Professor David Sinow' href='../../faculty/sinow.html'>")
    document.write("</map>")

}


// BEGIN T opens the main body table, sets up the menu bar on the left, and opens the center table portion
//               used in level one pages

function beginT (c,ht) {
    document.write ("<DIV align=left>")
    document.write ("<TABLE width=700 border=0 cellpadding=0 cellspacing=0>")
    document.write ("<TR valign=top><TD width=120>")
    document.write ("<IMG id=image"+c+" src='menu/menu-"+c+".gif' width=120  height="+ht+" useMap=#Map border=0 name=menu-"+c+">")
    document.write ("<p><IMG src='../images/photos/photo-"+c+".jpg' width=120>")
    document.write ("</TD><TD width=5>&nbsp;</TD><TD width=380>")
    document.write ("<table cellpadding=2 cellspacing=2 border=0>")
    document.write (" <tr valign=top><td valign=top>")
}

// END T opens the main body table and sets up the menu bar on the left 

function endT (code) {
    document.write ("</td></tr></table>")
    document.write ("</TD><TD width=195 background='../images/gradient.gif' align=right>")
    document.write ("<img src='../images/headers/"+code+"-side.gif' width=195 height=400 alt='photographs' border=0>")
    document.write ("</TD></TR></TABLE>")
    document.write ("</DIV>")
}



// Places the photograph sidebar on level 2 pages

function closelevel (code) {
    document.write ("</td><td width=195 background='../images/gradient.gif' align=left>")
    document.write ("<img src='../images/headers/"+code+"-side.gif' width=195 height=400 alt='photographs' border=0 align=right style='position:absolute; top:249; left:505;'>")
}

function when () {
    when=document.lastModified
    document.write ("</td></tr></table>")
    document.write ("<hr width=700 align=left><font face='Verdana' size=1 color='#999999'>")
    document.write ("&copy;2003<br>Last Modified: "+when+"<br>")
    document.write ("All rights reserved by the Department of Finance, University of Illinois at Urbana Champaign")
    document.write ("</font><p>")
    document.write ("&nbsp;[<a href='../index.htm'>Finance Home</a>]&nbsp;")
    document.write ("&nbsp;[<a href='index.htm'>PhD Home</a>]&nbsp;")
    document.write ("&nbsp;[<a href='../directory.asp'> Faculty Directory</a>]&nbsp;")
    document.write ("&nbsp;[<a href='research.htm'> Research</a>]&nbsp;")
    document.write ("&nbsp;[<a href='faq.asp'>FAQs</a>]&nbsp;")
    document.write ("&nbsp;[<a href='contacts.htm'>Contacts</a>]&nbsp;")
    document.write ("&nbsp;[<a href='mailto:oltheten@uiuc.edu'>WebMaster</a>]&nbsp;")
    document.write ("<p>")
}


function hits (code) {
    document.write ("<p><img src='/broker/cgi-bin/counter.exe?link=http://www.cba.uiuc.edu/finance/"+code+".htm&style=neat&bgcolour=trans'>")
}

function acrobat () {
    document.write ("<p><a href='http://www.adobe.com/products/acrobat/readstep2.html'><img src='../images/getacrobat.gif' width=88 height=31 border=0 align=left></a>")
    document.write("Your browser should already include Acrobat Reader. If you are unable to open the .pdf files from this page then you will need to download and install Acrobat Reader. Just click on the icon and follow the instructions.")
}