

	function popUp(type,whichId){
	// Cause the pop up text to magically appear (type>0) or disappear (type<1)
	// which comes in as, e.g., Cases, appropriate for the id=popCases statement
	// Determine its status
		var vstatus = (type==0? 'hidden' : 'visible');
	// Hide all pop-ups
		hidePops();
	// Change the element's status
	if(is.ie5up || is.gecko) { // good for IE5+ and NS6+
		if(document.getElementById(whichId)){
		document.getElementById(whichId).style.visibility=vstatus; }}
	if(is.ie4) { // good for IE4 only
	   if(document.all[ whichId ]){
		document.all[ whichId ].style.visibility=vstatus; }}
	if(is.nav4) { // good for NS4 only
	   if(document[whichId]){
		document[whichId].visibility=vstatus; }}
	return;		
	}
	
	function hidePops(){
	// Hides all pop-ups that may be, well, popped up
	var vstatus='hidden';
	for(i=1;i<10;i++){
	if(is.ie5up || is.gecko) { // good for IE5+ and NS6+
		if(document.getElementById('pop'+i)){
		document.getElementById('pop'+i).style.visibility=vstatus; }}
	if(is.ie4) { // good for IE4 only
		if(document.all[ 'pop'+i ]){
		document.all[ 'pop'+i].style.visibility=vstatus; }}
	if(is.nav4) { // good for NS4 only
		if(document['pop'+i]){
		document['pop'+i].visibility=vstatus; }	}
	}
	return;
	}
	
	function popOpen(popName) {
		popURL = '';
		popWin = window.open( '', popName, 'toolbar=no,width=260,height=310,resizable,location=no,directories=no,status=yes,menubar=yes,scrollbars');
		popWin.focus();
		return false;
	}	
	
	// Pre-load the background image for the pop-up card
	card_bg = new Image();
	card_bg.src = 'mages/media/card/middle.gif';
	