var buttonDir = "buttons/softshadow/";
var buttonType = "png";

var myButton = new Array();


function buttonOver(buttonName)
{
document.images[buttonName].src = buttonDir + buttonName + "2." + buttonType;
}

function buttonOut(buttonName)
{
document.images[buttonName].src = buttonDir + buttonName + "1." + buttonType;
}

function makeButton(buttonName, buttonURL)
{
var t = "";

myButton[buttonName] = new Image;
myButton[buttonName].src = buttonDir + buttonName + "2" + buttonType;
t += sprintf("<p style='text-align:center; margin: 10px 0px 0px 0px;'><A HREF=%s ", buttonURL);
if(makeButton.arguments.length == 3) // for TARGET stuff
   t += sprintf(makeButton.arguments[2] + " ");
t += sprintf("onmouseover='buttonOver(\"%s\");' ", buttonName);
t += sprintf("onmouseout='buttonOut(\"%s\");'>", buttonName);
t += sprintf("<img src=%s%s1.%s name='%s'></A></p>", buttonDir, buttonName, buttonType, buttonName);

return t;
}

function makeButtons()
{
var txt="";
txt += makeButton("depthome", "home.htm");
txt +=makeButton("chairmsg", "chairmsg.htm");
txt +=makeButton("laprep", "http://www.lsus.edu/laprep/", "target='_top'");
txt +=makeButton("facstaff", "faculty.htm");
txt +=makeButton("mathclub", "mathclub/index.htm", "target='_top'");
txt +=makeButton("deptnews", "news.htm");
txt +=makeButton("mathlinks", "home.htm#links");
txt +=makeButton("contact", "home.htm#brochure");

return txt;
}



