/////////////////////////////////////////////////
// menu.js
// hbklaw.com
//
// Preload images for scroll-over menu and define
// the image swap function.
/////////////////////////////////////////////////

//set a variable to the path to images
// create string for source

base_dir = "http://www.hbklaw.com/images/";

aop = new Image(164,14)
aop.src = base_dir + "areas_practice.gif"
aop_h = new Image(164,14)
aop_h.src = base_dir + "areas_practice_highlight.gif"

att = new Image(119,14)
att.src = base_dir + "attorneys.gif"
att_h = new Image(119,14)
att_h.src = base_dir + "attorneys_highlight.gif"

bg = new Image(151,14)
bg.src = base_dir + "firm.gif"
bg_h = new Image(151,14)
bg_h.src = base_dir + "firm_highlight.gif"

con = new Image(113,14)
con.src = base_dir + "contact.gif"
con_h = new Image(113,14)
con_h.src = base_dir + "contact_highlight.gif"

news = new Image(149,14)
news.src = base_dir + "news_events.gif"
news_h = new Image(149,14)
news_h.src = base_dir + "news_events_highlight.gif"

rc = new Image(99,14)
rc.src = base_dir + "cases.gif"
rc_h = new Image(99,14)
rc_h.src = base_dir + "cases_highlight.gif"

function swap(a,b)
{document.images[a].src = b.src; return true;}