// JavaScript Document
function playClip(s) {
//play video or audio clips.  Must be full path, including http:// prefix, to the file.
	if(s!="#"){  //# is dummy code to indicate no ram or rm file exists.
		location = s
	}
}
<!--
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

var PopMenuThread = setTimeout("MM_showHideLayers('PopMenu','','hide');",5000);  //used to remove popup menu
clearTimeout(PopMenuThread)

function timingex( ){
	//Used to remove the popup menu if user never mouseovers the popmenu.
	clearTimeout(PopMenuThread)
	//PopMenuThread = setTimeout("MM_showHideLayers('PopMenu','','hide');",5000);
	PopMenuThread = setTimeout("showPopMenu('');",5000);
	return true;
}

function restartPopMenuTimer(){
	//called on onmouseout event of menu links to restart the timer after which popup is removed.
	//b/c NS does not support onmouseout of the menu div.
	clearTimeout(PopMenuThread);
	//PopMenuThread = setTimeout("MM_showHideLayers('PopMenu','','hide');",5000)
	PopMenuThread = setTimeout("showPopMenu('');",1000);
	return true;
}

function haltPopMenuTimer(){
	//called on onmouseover event of menu links to restart the timer after which popup is removed.
	//b/c NS does not support onmouseout of the menu div.
	clearTimeout(PopMenuThread);
	return true;
}

//var arrPopMenus = new Array('POPMENUCS','POPMENU108XCONG');
//var arrPopMenus = new Array();

function showPopMenu(strPopMenuID){
	//First hide all popmenus.
	for(i=0;i<arrPopMenus.length;i++){
		MM_showHideLayers(arrPopMenus[i],'','hide');
	}
	//Now display the desired menu
	MM_showHideLayers(strPopMenuID,'','show');	
	//clearTimeout(PopMenuThread);
	//PopMenuThread = setTimeout("MM_showHideLayers(strPopMenuID,'','hide');",5000)
}
//-->

var arrPopMenus = new Array( );

	function MM_ROT_showHideLayers() { //v3.0
	  var i,p,v,obj,args=MM_ROT_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_ROT_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	    obj.visibility=v; }
	}
	function MM_ROT_findObj(n, d) { //v4.0
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_ROT_findObj(n,d.layers[i].document);
	  if(!x && document.getElementById) x=document.getElementById(n); return x;
	}


	var arrRotateDivs = new Array ('') //must instantiate this variable here for NS.  We assign the value later.
	var intCurdiv = 0;
	var strRotatorState = "PLAY"
	var intMSBeforeRotate = 10000
	var thread = setTimeout('playRotator()', intMSBeforeRotate);
	var blnMouseIsOverLink = false;

	function restartRotator(){
		//called on onmouseout event of rotator link to restart the cycle
		//if mode is "PLAY"
		blnMouseIsOverLink = false;
		if (strRotatorState == "PLAY"){
			clearTimeout(thread);
			thread = setTimeout('playRotator()', intMSBeforeRotate/2)
		}
	}

	function haltRotator(){
		//called on onmouseover event of rotator link so that rotator 
		//does not go to next div if user is trying to click this link.
		blnMouseIsOverLink = true;
		if (strRotatorState == "PLAY"){
			clearTimeout(thread);
		}
	}

	function playRotator(iForceImg) {
	  var args=playRotator.arguments;
	  var i;
	  
	  if (blnMouseIsOverLink==false){
		if (args.length != 0){
			//set intCurdiv to the forced number, minus 1 to make intCurdiv the array value
			intCurdiv = (iForceImg-1) % arrRotateDivs.length;
		}else{
			intCurdiv = (intCurdiv + 1) % arrRotateDivs.length;
		}

		//hide all divs, then show the current one.
		for(i=0;i<arrRotateDivs.length;i++){MM_ROT_showHideLayers(arrRotateDivs[i],'','hide')}
		MM_ROT_showHideLayers(arrRotateDivs[intCurdiv],'','show')

		clearTimeout(thread);
		thread = setTimeout('playRotator()', intMSBeforeRotate);
	  }
	}

	function nextRotator() {
	  playRotator();
	  clearTimeout(thread);
	  //thread = setTimeout('nextRotator()', intMSBeforeRotate);

		var imgStoporPlay, i;
		for(i=1;i<=arrRotateDivs.length;i++){
			imgStoporPlay = MM_ROT_findObj("imgStoporPlay" + i.toString())
			imgStoporPlay.src="/images/pause_sm2.gif"
			imgStoporPlay.alt='PLAY'
		}
		strRotatorState = "STOP"
	}

	function previousRotator() {
	  var i;

	  //Get current div.  If intCurdiv is -1 then set to the last one in array.
	  intCurdiv = (intCurdiv - 1) % arrRotateDivs.length;
	  if (intCurdiv == -1){intCurdiv = arrRotateDivs.length -1; }

	  //hide all divs, then show the current one.
	  for(i=0;i<arrRotateDivs.length;i++){MM_ROT_showHideLayers(arrRotateDivs[i],'','hide');}

	  MM_ROT_showHideLayers(arrRotateDivs[intCurdiv],'','show');
	  clearTimeout(thread);

		var imgStoporPlay, i;
		for(i=1;i<=arrRotateDivs.length;i++){
			imgStoporPlay = MM_ROT_findObj("imgStoporPlay" + i.toString())
			imgStoporPlay.src="/images/pause_sm2.gif"
			imgStoporPlay.alt='PLAY'
		}
		strRotatorState = "STOP"
	}
	  
	function pauseRotator(){
	    var imgStoporPlay;
	    var i;
	    
		if (strRotatorState == "STOP"){
			for(i=1;i<=arrRotateDivs.length;i++){
				imgStoporPlay = MM_ROT_findObj("imgStoporPlay" + i.toString())
				imgStoporPlay.src="/images/pause_sm.gif"
				imgStoporPlay.alt='PAUSE'
			}
			playRotator();
			//thread = setTimeout('playRotator()', intMSBeforeRotate);
			strRotatorState = "PLAY"
		}else{
			for(i=1;i<=arrRotateDivs.length;i++){
				imgStoporPlay = MM_ROT_findObj("imgStoporPlay" + i.toString())
				imgStoporPlay.src="/images/pause_sm2.gif"
				imgStoporPlay.alt='PLAY'
			}
			clearTimeout(thread);
			strRotatorState = "STOP"
		}
		return true;
	}

	//functions from OPTO for next/prev mouseover/mouseout events.	
	function newImage(arg) {
	    if (document.images) {
	            rslt = new Image();
	            rslt.src = arg;
	            return rslt;
	    }
	}

	function changeImages() {
		//alert('here in changeimages')
	    if (document.images && (preloadFlag == true)) {
				//alert('here inside if changeimages')
	            for (var i=0; i<changeImages.arguments.length; i+=2) {
	         		for(j=1;j<=arrRotateDivs.length;j++){
						imgBtn = MM_ROT_findObj(changeImages.arguments[i] + j.toString())
						imgBtn.src = changeImages.arguments[i+1];
					}
	            }
	    }
	}

	//this function and the preloadFlag is used to make sure the images for onMouseOver event exist
	var preloadFlag = true;
	function preloadImages() {
	    if (document.images) {
	            nav_prev_over = newImage("/images/prev_sm2.gif");
	            //nav_stop_over = newImage("/images/pause_sm2.gif");
	            nav_next_over = newImage("/images/next_sm2.gif");
	            preloadFlag = true;
	    }
	}
	preloadImages()
