	/////////////////////////////////////////////
	// SET FLASHOBJECT
	function setFlashObject(set_flash)
	{
		w = 424;
		h = 316;
		var foo = new FlashObject(url_root+"inc/pic_switcher.swf?"+set_flash, "7", "424", "316", "#FFFFFF");
	    foo.addParam("loop",true);
	    foo.write("flashcontent");
	}

	function hide(id)
	{
		document.getElementById(id).style.display = "none";
		return false;
	}

	function new_freecap()
	{
		// loads new freeCap image
		if(document.getElementById)
		{
			// extract image name from image source (i.e. cut off ?randomness)
			thesrc = document.getElementById("freecap").src;
			thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
			// add ?(random) to prevent browser/isp caching
			document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
		} else {
			alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
		}
	}