<!--
function MM_findObj(n, d) { //v3.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); return x;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function makeRemoteCAL() {
	remote = window.open("","unlcalmainwindow", "height=540,width=600,innerheight=540,innerwidth=600,scrollbars=1,resizable=1,status=0,toolbars=0");
	remote.location.href = "http://ucommxsrv1.unl.edu/unlcalv1/entry3list.htm";
	   if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "calopener";
}

function makeRemoteQTVR() {
	remote = window.open("","remotewinQTVR", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=794,height=594");
	remote.location.href = "http://www.unl.edu/unlpub/tour/frame3/index_fullpage.shtml";
	   if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "touropener";
}

function makeRemoteHOF() {
	remote = window.open("","remotewinQTVR", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=794,height=594");
	remote.location.href = "http://www.unl.edu/unlpub/tour/frame2/indexHOF.shtml";
	   if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "touropener";
}
			
function setUNLCookie(phrase){
	var now = new Date();
	now.setTime(now.getTime() - 1000 * 60 * 60 * 24);
	document.cookie = phrase + ";expires=" + now.toGMTString();
	
	var expiration = new Date()
	expiration.setTime(expiration.getTime() + 1000 * 60 * 60 * 24 * 730);
	document.cookie = phrase + "; expires=" + expiration.toGMTString() + "; path=/; domain=.unl.edu;";
}

function rotateImg(imgArray_str,elementId_str,secs_int,thisNum_int){
	function showIt() {
		if(obj.src!=null && eval(imgArray_str+"["+thisNum_int+"][0]")!=null)
			obj.src=eval(imgArray_str+"["+thisNum_int+"][0]");
		if(obj.alt!=null && eval(imgArray_str+"["+thisNum_int+"][1]")!=null)
			obj.alt=eval(imgArray_str+"["+thisNum_int+"][1]");
		if(obj.parentNode.href!=null && eval(imgArray_str+"["+thisNum_int+"][2]")!=null) {
			obj.parentNode.href=eval(imgArray_str+"["+thisNum_int+"][2]");
			if(eval(imgArray_str+"["+thisNum_int+"][3]")!=null) {
				var clickEvent = eval(imgArray_str+"["+thisNum_int+"][3]");
				obj.parentNode.onclick=function() {eval(clickEvent);}
			}
			else
				obj.parentNode.onclick=null;
		}
		else
			obj.parentNode.href='#';
	}
	if(thisNum_int==null)
		thisNum_int=Math.floor(Math.random()*eval(imgArray_str+".length"));
	if(thisNum_int >= eval(imgArray_str+".length"))
		thisNum_int = 0;
	if(eval(imgArray_str+"["+thisNum_int+"]")!=null){
		// Try and set img
		var obj = MM_findObj(elementId_str);
		showIt();
	}
	thisNum_int++;
	if(secs_int>0) {
		return setTimeout("rotateImg('"+imgArray_str+"','"+elementId_str+"',"+secs_int+","+thisNum_int+")",secs_int*1000);
	} else {
		return true;
	}
}
//-->
