function popUp(image,horiz,vert) {
// Copyright (c) 2002 Paul Gabriel All Rights reserved
lE=(window.width)?(screen.width-400)/2:100;
tE=(window.height)?(screen.height-650)/2:100;
	Mwin=window.open("",'bigger','width='+(horiz+25)+',height='+(vert+25)+',left='+lE+',top='+tE+'screenX='+lE+',screenY='+tE+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,');
	Mwin.document.open();
  	Mwin.document.write("<HEAD><TITLE>Larger View</TITLE>\n</HEAD>\n		<BODY marginwidth=\"0\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\" bgcolor=\"#ffffff\" onblur=\"window.close()\">\n\n");
    Mwin.document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\" height=\"100%\">\n    <tr>\n      <td align=\"center\" valign=\"middle\">\n");
	Mwin.document.write("<div align=\"center\"><a href=\"javascript:window.close();\"><img src=\"./");
	Mwin.document.write(image);
	Mwin.document.write("\" width=\""+horiz+"\" height=\""+vert+"\" border=\"0\"></a></div>");
	Mwin.document.write("</td>\n    </tr>\n  </table>");
	Mwin.document.writeln("\n\n</BODY>\n</HTML>");
	Mwin.document.close();
	return (Mwin);

}

if (document.getElementById)
document.documentElement.className = 'jsclass'; //hide content for DOM capable browsers


var randomcontentdisplay={
	divholders:new Object(),
	masterclass: "randomcontent",

	init:function(){
		if (!document.getElementById)
			return
		var alldivs=document.getElementsByTagName("div")
		var randomcontentsearch=new RegExp(this.masterclass+"\\s+(group\\d+)", "i") //check for CSS class="randomcontent groupX" (x=integer)
		for (var i=0; i<alldivs.length; i++){
			if (randomcontentsearch.test(alldivs[i].className)){
				if (typeof this.divholders[RegExp.$1]=="undefined") //if array to hold this group of divs doesn't exist yet
					this.divholders[RegExp.$1]=new Array() //create array first
					this.divholders[RegExp.$1].push(alldivs[i]) //add this div to the array
			}
		}
	this.showone()
	},

	showone:function(){
		for (group in this.divholders){ //loop thru each array within object
			var chosenOne=Math.floor(Math.random()*this.divholders[group].length) //randomly pick one entry from array
			this.divholders[group][chosenOne].style.display="block" //display content corresponding to the chosen entry
		}
	}
}


