function selectCam(ht, wt, showText) {

var activeCams = 3;
	var indx = Math.round(1000 * Math.random() ) % activeCams;

	var camPic = new Array("quad","servery","walker" );
	var camURL = new Array("quad","coles-jewett","walker");
	var camQx = new Array("Bowdoin Quad","Thorne Servery","Art Museum" );
	var camTxt = new Array("Bowdoin Campus Quad",
				 "Thorne Servery","Art Museum Construction")

	var ccc = new Array("http://webcam1.bowdoin.edu:4200/axis-cgi/jpg/image.cgi?resolution=320x240","http://webcam4.bowdoin.edu:4200/axis-cgi/jpg/image.cgi?resolution=320x240","http://webcam3.bowdoin.edu:4200/axis-cgi/jpg/image.cgi?resolution=320x240");

	document.open();
	document.write("<table border='0'><tr><td colspan='"+activeCams+"' align='center'>");
document.write("<a href='/webcams/"+camURL[indx]+"/'><img src='"+ccc[indx]+"' border='1' width='"+wt+"' height='"+ht+"'></a><br />");
//	document.write("<a href='/webcams/"+camURL[indx]+"/'><img src='/webcams/img/"+camPic[indx]+".jpg' border='1' width='"+wt+"' height='"+ht+"'></a><br>");
	document.write("<span class='caption'>"+camTxt[indx]+"</span></td></tr>");

        if(showText) {
   	  document.write("<tr><td class='caption'>");
	  for(var i=0; i< activeCams; i++) {
		document.write("&nbsp;<a href='/webcams/"+camURL[i]+"'>"+camQx[i]+"</a>&nbsp;<br />");
	  }
	  document.write("</td></tr>");
	}



	document.write("</table>");
	document.close();

}
