function changeImage(imageName, imageReplacer) {
	if(document.images) {
		document.images[imageName].src = base + imageReplacer;
	}
}

function Show(which,what) {
	document.getElementById("menu").value=what;
	if (what==1) {
		Hide('1');
		document.getElementById("mainMenu"+which).style.backgroundColor = ('#71BF44');
		document.getElementById("mainMenu"+which).style.color = ('#003333');
		document.getElementById("menu"+which).style.visibility = ('visible');
	} else {
		setTimeout("Hide('0');",8000);
	}
}
		
function popwin(url, w, h, options) {
	var winleft = (screen.width - w) / 2;
	var wintop = (screen.height - h) / 2;
	
	if(!options) {
		var options = 'status=no,resizable=no,scrollbars=no,menubar=no,toolbar=no';
	}
	options = options + ', width=' + w + ',height=' + h + ',top=' + wintop + ',left=' + winleft + '';
	popje = window.open(url, 'newwin', options);
	popje.focus();
}


function image_open(image_loc, img) {
  HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><a href='javascript:window.close();'><img src='"+ image_loc +"' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></a></body></html>";
  popupImage = window.open('','_blank','toolbar=no,scrollbars=no');
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
  obj_img = document.getElementById(img);
  obj_img.src= obj_img.src;
}

function isBlank(v) {
	var i;
	for(i = 0; i < v.length; i++) {
		var c = v.charAt(i);
		if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
	}
	return true;
}

function showFlash(filename,width,height) {
	document.write ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+filename+'" WIDTH="'+width+'" HEIGHT="'+height+'" ALIGN="middle">');
   	document.write ('		<PARAM NAME="movie" VALUE="'+filename+'"> ');
	document.write ('		<param name="menu" value="false" />');
	document.write ('		<param name="quality" value="high" />');
	document.write ('		<param name="wmode" value="transparent" />');
	document.write ('		<param name="wmode" value="transparent" />');
	document.write ('		<embed src="'+filename+'" menu="false" quality="high" bgcolor="#FFFFFF" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write ('		</embed>');
	document.write ('</OBJECT>');
}