//popup window functions////////////////////////////////////////////////
	function popupWindow(page,winName,wd,ht,sbars) {
	//self.name = 'mainWindow';
   if (!sbars)sbars='auto';
		var remoteWin = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+sbars+',resizable=0,width='+ wd +',height='+ ht +'';
		OpenWindow = window.open(page,winName,remoteWin);
		OpenWindow.focus();
	}


	function showMovie(pageTitle,movieFile,autoStart){
		if (!autoStart) autoStart='1';
			movieWin = window.open ('','movieWindow','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=no,resizeable=no,copyhistory=no,width=340,height=310');
			movieWin.document.open();
			movieWin.document.writeln('<html><head><title>' + pageTitle + '<\/title>');
			movieWin.document.writeln('<style type="text\/css"><!--');
			movieWin.document.writeln('   html, body {margin: 0px;padding: 0px;border: 0px;}');
			movieWin.document.writeln('\/\/--><\/style>');
			movieWin.document.writeln('<\/head><body onload="self.focus(); window.status=\'' + pageTitle+ '\'" bgcolor=black>');
			movieWin.document.writeln('<center><object id="MediaPlayer" width="320" height="285" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" TYPE="application\/x-oleobject">');
				movieWin.document.writeln('<param name="FileName" value="' + movieFile + '">');
				movieWin.document.writeln('<param name="autostart" value="' + autoStart + '">');
				movieWin.document.writeln('<param name="showcontrols" value="1">');
				movieWin.document.writeln('<param name="EnableContextMenu" value="0">');
				movieWin.document.writeln('<embed type="application\/x-mplayer2" SRC="' + movieFile + '" width="320" height="285" autostart="' + autoStart + '" SHOWCONTROLS="1"><\/embed>');
				movieWin.document.writeln('<\/object><\/center>');
			movieWin.document.writeln('<\/body><\/html>');
			movieWin.window.status = pageTitle;
			movieWin.document.close();
		return;
	}

	function showVidLog(pageTitle,vidFile,autoStart){
		if (!autoStart) autoStart='false';
			vidWin = window.open ('','vidWindow','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=no,resizeable=no,copyhistory=no,width=320,height=260');
			vidWin.document.open();
			vidWin.document.writeln('<html><head><title>' + pageTitle + '<\/title>');
			vidWin.document.writeln('<script type="text\/javascript" language="JavaScript" src="..\/functions.js"><\/script>');
			vidWin.document.writeln('<style type="text\/css"><!--');
			vidWin.document.writeln(' html, body {margin: 0px;padding: 0px;border: 0px;}');
			vidWin.document.writeln('\/\/--\><\/style>');
			vidWin.document.writeln('<\/head><body onload="self.focus(); window.status=\'' + pageTitle+ '\'" bgcolor=black>');

			vidWin.document.writeln('<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="320" HEIGHT="240" id="' + vidFile + '">');
			vidWin.document.writeln('<PARAM NAME=movie VALUE="' + vidFile + '.swf">');
			vidWin.document.writeln('<PARAM NAME=quality VALUE=high>');
			vidWin.document.writeln('<PARAM NAME=loop VALUE=false>');
			vidWin.document.writeln('<PARAM NAME=bgcolor VALUE=#000000>');
			vidWin.document.writeln('<PARAM NAME=play VALUE=' + autoStart + '>');
			vidWin.document.writeln('<EMBED src="' + vidFile + '.swf" quality=high bgcolor=#FFFFFF WIDTH="320" HEIGHT="240" NAME="' + vidFile + '" ALIGN="" TYPE="application\/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
			vidWin.document.writeln('<\/EMBED><\/OBJECT>');
			vidWin.document.writeln('<br><a href="javascript:popupWindow(\''+vidFile+'.htm\',\'transcript\',320,260,\'yes\')">Transcript<\/a>');
			vidWin.document.writeln('<\/center><\/body><\/html>');
			vidWin.window.status = pageTitle;
			vidWin.document.close();
		return;
	}

//Image Functions/////////////////////////////////////
	function ChangeImages() {
		if (document.images){
			for (var i=0; i<ChangeImages.arguments.length; i+=2){
				document[ChangeImages.arguments[i]].src = eval(ChangeImages.arguments[i+1] + '.src');
			}
		}
	}

   if (document.images) {
      prevmon_on = new Image(71,29); prevmon_on.src = '../graphics/menu/rp_prev_on.gif';
      prevmon_off = new Image(71,29); prevmon_off.src = '../graphics/menu/rp_prev_off.gif';
      nextmon_on = new Image(71,29); nextmon_on.src = '../graphics/menu/rp_next_on.gif';
      nextmon_off = new Image(71,29); nextmon_off.src = '../graphics/menu/rp_next_off.gif';
   }

//Scrollbar functions////////////////
   function cssHorScrolls(val){document.body.style.overflowX = val}
   function cssVerScrolls(val){document.body.style.overflowY = val}

//Misc functions//////////////////////////////////////////
	function FND(SearchWord,sType){
      if (sType[0].checked) {findSearchWord(SearchWord);}
      else {findSearchWordPicture(SearchWord)}
	}
