
	function SwapPic(link) {
			if (document.images) {
			document.mainpic.src = 'images/gallery/' + link;
			document.mainpic.style.visibility = "visible"; 
			}
		}
	
	function showPic (whichpic) {
		if (document.getElementById) {
			document.getElementById('mainpic').src = whichpic.href;
			return false;
		} else {
		return true;
		}
	}

	function popUp(URL, pageWidth, pageHeight) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + pageWidth + ",height=" + pageHeight + "');");
	}


	function InsertQTVR(fileLocation, vrHeight, vrWidth)
	{
		document.write('			<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="' + vrWidth + '" HEIGHT="' + vrHeight+ '" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n');
		document.write('				<PARAM name="SRC" VALUE="' + fileLocation +'">\n');
		document.write('				<PARAM name="AUTOPLAY" VALUE="true">\n');
		document.write('				<PARAM name="CONTROLLER" VALUE="true">\n');
		document.write('				<PARAM name="CACHE" VALUE="true">\n');
		document.write('				<EMBED SRC="' + fileLocation +'" WIDTH="' + vrWidth + '" HEIGHT="' + vrHeight+ '" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">\n');
		document.write('				</EMBED>\n');
		document.write('			</OBJECT>\n');
	}
