function setvar(name, value, exp, path, domain, secure)
  {
  document.cookie = name + "=" + escape(value) +
  ((exp) ? "; expires=" + exp.toGMTString() : "") +
  ((path) ? "; path=" + path : "") +
  ((domain) ? "; domain=" + domain : "") +
  ((secure) ? "; secure" : "");
  }

function getvar(Name)
 {var search = Name+"=";
  if (document.cookie.length > 0)
	{offset = document.cookie.indexOf(search);
	 if (offset != -1)
	  {offset += search.length;
		end = document.cookie.indexOf(";", offset);
		if (end == -1) end = document.cookie.length;
		return unescape(document.cookie.substring(offset, end));
	  }
	}
 }

function init(picnum, len, wid)
{
eval ("but"+picnum+"l = new Image("+len+","+wid+")");
eval ("but"+picnum+"h = new Image("+len+","+wid+")");
eval ("but"+picnum+"w = new Image()");
eval ("but"+picnum+"l.src = './images/but"+picnum+"l.gif'");
eval ("but"+picnum+"h.src = './images/but"+picnum+"h.gif'");
return true;
}

x = init(1,52,15);
x = init(2,76,15);
x = init(3,78,15);
x = init(4,52,15);
x = init(5,52,15);
x = init(6,76,15);
x = init(7,78,15);
x = init(8,52,15);
but1w = "Back to previous page...";
but2w = "Back to previous section...";
but3w = "Back to contents page...";
but4w = "Forward to next section...";
but5w = "Back to previous page...";
but6w = "Back to previous section...";
but7w = "Back to contents page...";
but8w = "Forward to next section...";

function lowlight(imagename)
 {
 document[imagename].src = eval(imagename + "l.src");
 window.status='Document: Done';
 }

function highlight(imagename)
 {
 document[imagename].src = eval(imagename + "h.src");
 window.status = eval(imagename + 'w');
 }

function backbutton()
 {
 if (navigator.appName == 'Netscape' && navigator.appVersion.substr(0,1) < '5')
  {
  back();
  }
 else
  {
  top.history.back();
  }
 }

function rollover(place,imagename,stat)
 {
 document[place].src = eval(imagename+".src");
 if (stat == 'over')
  {window.status = eval(imagename + 'w');}
 else
  {window.status='Document: Done';}
 }

function popup(loc,h,w,tname)
 {
 newWindow = window.open(loc,tname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+'');
 if (!newWindow.closed) newWindow.close();
 newWindow = window.open(loc,tname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+'');
 }

function popone(loc,h,w,tname)
 {
 newWindow = window.open(loc,tname,'toolbar=no,screenX=1,screenY=1,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h+'');
 }

function popmax(doc)
 {
 hsize = window.screen.availHeight - 30;
 wsize = window.screen.availWidth - 10;
 popone(doc,hsize,wsize,'Docs');
 }

function slidepop()
 {
 hsize = window.screen.availHeight - 100;
 wsize = window.screen.availWidth - 100;
 setvar('zpackage',hsize+'^'+wsize+'^'+top.dir+'^'+top.desc+'^'+top.slidenum);
 setvar('zw',0);
 setvar('zh',0);
 popone('newparslidepopup.htm',hsize,wsize,'Slide');
 }
