// 0 is the default, replace with static image link i.e election image
function randombox(){

/*
image0="images/vote.jpg";
href0="http://www.youtube.com/watch?v=quCnGMSGFt4";
alt0="Watch the Video";
txt0="Watch the Video";
*/

image0="images/box0.jpg";
href0="committees/index.html";
alt0="Learn about Committees";
txt0="Learn about Committees";

image1="images/box1.jpg";
href1="committees/antipoverty.html";
alt1="Anti-Poverty Committee";
txt1="Anti-Poverty Committee";

image2="images/box2.jpg";
href2="committees/communications.html";
alt2="Communications Committee";
txt2="Communications Committee";

image3="images/box3.jpg";
href3="committees/conditions.html";
alt3="WLC Committee";
txt3="WLC Committee";

image4="images/box4.jpg";
href4="committees/index.html";
alt4="Learn about Committees";
txt4="Learn about Committees";

image5="images/box5.jpg";
href5="committees/aboriginal.html";
alt5="Aboriginal Ed Committee";
txt5="Aboriginal Ed Committee";

image6="images/box6.jpg";
href6="committees/development.html";
alt6="Pro. D Committee";
txt6="Pro. D Committee";

image7="images/box7.jpg";
href7="committees/index.html";
alt7="Learn about Committees";
txt7="Learn about Committees";

image8="images/box0.jpg";
href8="committees/exec.html";
alt8="Vesta Executive Committee";
txt8="Vesta Executive Committee";

image9="images/box6.jpg";
href9="committees/health.html";
alt9="Health and Safety Committee";
txt9="Health and Safety Committee";

image10="images/box5.jpg";
href10="committees/pride.html";
alt10="Pride Committee";
txt10="Pride Committee";

image11="images/box1.jpg";
href11="committees/status.html";
alt11="Status of Women Committee";
txt11="Status of Women Committee";

image12="images/box2.jpg";
href12="committees/sustainability.html";
alt12="Sustainability Committee";
txt12="Sustainability Committee";

image11="images/box3.jpg";
href11="sections/technology.html";
alt11="Technology Section";
txt11="Technology Section";

image12="images/box4.jpg";
href12="committees/toc.html";
alt12="TOC Committee";
txt12="TOC Committee";



// set len to 1 and it wil not rotate: it will display image/text/link for 0 above
len=12;

now=new Date();
now=now.getSeconds();
rnd=now%len;

image=eval("image"+rnd);
href=eval("href"+rnd);
alt=eval("alt"+rnd);
txt=eval("txt"+rnd);

// use this in HTML as random link and href // document.write("<a href='" + href + "'>'"+ txt + "'</a>");
// use this in HTML as random href and href // document.write("<a href='" + href + "'>"); //
// use this in HTML as div with random txt // document.write("<div>'" + txt + "'</div>");//
// use this in HTML as random div with txt and href // document.write("<div>'" + txt + "'</div>" + "<a href='" + href + "'>");
// use this in HTML as random image with alt and href // document.write("<img src='" + image + "' alt='" + alt + "'><\/a>");
// use this in HTML as random image with alt only // document.write("<img src='" + image + "' alt='" + alt + "'>");

}