//	aulit.js		function testaulit()	{		alert("aulit.js()");	//	alert("opener: "+opener);	}		function spaceSub( thecount	)	{		outstring="";		for(i=0; i<thecount; i++)			outstring=outstring+"&nbsp;";		return(outstring);	}		function sp( thecount	)	{		var outstring=spaceSub( thecount	);		document.write( outstring);	}		function scaleImage(url, width, height, scale )
			{
				//	alert("scaleImage");		var imageRef='<img src="'+url+'" width="'+scale*width+'" height="'+scale*height+'" hspace="0" vspace="0">';
		document.write(imageRef);
			}		//-----------------------------------		function getOs()	{		if (navigator.appVersion.indexOf("Mac") > 0) return( "Mac"	);		if (navigator.appVersion.indexOf("Win") > 0) return( "Win"	);		if (navigator.appVersion.indexOf("X11")!=-1) return( "UNIX"	);		if (navigator.appVersion.indexOf("Linux")!=-1) return( "Linux"	);		return( "Unknown OS"	);	}	function	getBrowserVersion()	{		var nVer = navigator.appVersion;		var nAgt = navigator.userAgent;				var fullVersion = parseFloat(nVer);		var majorVersion = parseInt(nVer);				var browser;	//	alert(	"nAgt: "+nAgt);			if ((verOffset=nAgt.indexOf("Safari"))!=-1) 		{			browser="Safari";			fullVersion = parseFloat(nAgt.substring(verOffset+7,nAgt.length));		}			// In Internet Explorer, the true version is after "MSIE" 			if ((verOffset=nAgt.indexOf("MSIE"))!=-1) 		{			browser="MSIE";			fullVersion = parseFloat(nAgt.substring(verOffset+5,nAgt.length));			majorVersion = parseInt(''+fullVersion);		}			if ((verOffset=nAgt.indexOf("Firefox"))!=-1) 		{			browser="Firefox";			fullVersion = parseFloat(nAgt.substring(verOffset+7,nAgt.length));		}			if ((verOffset=nAgt.indexOf("Opera"))!=-1) 		{			browser="Opera";			fullVersion = parseFloat(nAgt.substring(verOffset+6,nAgt.length));			majorVersion = parseInt(''+fullVersion);		}		var returnval=browser+' '+fullVersion;		return( returnval	);	}		//-----------------------------------		function	adjustFontsize(	fontsize	)	{		var osname=getOs();		if(osname=="Win")		{			fontsize-=1;	//was: 2		}		return(	fontsize	);	}		function makeNoteDiv()	//	also a possibilty: "makeUSpan()"	{		var	htmlcode;		var fontsize=16;		fontsize=adjustFontsize(	fontsize	);		var	htmlcode='<div style="font-size:'+fontsize+'px; margin-left:80px;">';	//	alert("makeNoteDiv(): "+htmlcode);		document.write(htmlcode);	}		function makeUDivSub(	fontsize, etc, centered	)	{	//	alert("makeUDiv");		var	htmlcode;		fontsize=adjustFontsize(	fontsize	);		var	htmlcode='<div style="font-size:'+fontsize+'px; '+etc;				if(centered) 			htmlcode+=" text-align:center; ";				htmlcode+='">';		return(htmlcode);	}		function makeUDiv(	fontsize, etc, centered	)	//	also a possibilty: "makeUSpan()"	{	//	alert("makeUDiv");		var	htmlcode;		fontsize=adjustFontsize(	fontsize	);		var	htmlcode='<div style="font-size:'+fontsize+'px; '+etc;				if(centered) 			htmlcode+=" text-align:center; ";				htmlcode+='">';		document.write(htmlcode);	}		function makeUSpanSub(fontsize, etc)	{		var	htmlcode;		fontsize=adjustFontsize(	fontsize	);		var	htmlcode='<span style="font-size:'+fontsize+'px; '+etc+'">';		return(htmlcode);	}		function makeUSpan(fontsize, etc)	{		var	htmlcode;		fontsize=adjustFontsize(	fontsize	);		var	htmlcode='<span style="font-size:'+fontsize+'px; '+etc+'">';		document.write(htmlcode);	}			function makepoemDiv(centered)	{	//	generic formatting for "poem.html" in greatpoems project!	//	sets a standard font-size per OS, and alignment.			var	htmlcode;		var style="text-align:";				if(!centered) 			style="margin-left:16px; text-align:left; font-size:"		else			style=" text-align:center; font-size:";				var osname=getOs();		if(osname=="Mac")			style+="17px; ";		if(osname=="Win")				style+="16px; ";	//was: "15px;"				htmlcode='<div style="'+style+'" align="center">';					document.write(htmlcode);	}		function makeBreak(targetOs)	{		var osname=getOs();		if(	osname==targetOs	)			document.write("<br>");			}		function makecopynotice()	{		var osname=getOs();		var	htmlcode='<span style="font-size:11px; color:black;">';	//	if(osname=="Mac")	htmlcode+='<br>';		var	htmlcode=htmlcode+' &mdash; copyright &copy 2005, G. S. Lipon. <b>All Rights Reserved</b>. &mdash;</span>';		document.write(htmlcode);	}	//-----------------------------------		function	genWindowOpen(theWind, thePath, theName, theWidth, theHeight, theLeft, theTop, resizable)	{		var statusline="width="+theWidth+",height="+theHeight+",left="+theLeft+",top="+theTop;		statusline+=",resizable="+resizable;	//	alert("genWindowOpen(): statusline="+statusline);	//	alert("genWindowOpen(): thePath="+thePath);				theWind = window.open(thePath,theName,statusline);		// Open a document in the window to display plain text.		var theBrowser=getBrowserVersion();	//	alert("browser:"+theBrowser);		var theOffset=theBrowser.indexOf("Safari")	//	alert("browser:theBrowser.indexOf="+theOffset);				if(theBrowser.indexOf("Safari")==-1)		{				//		alert('theBrowser.indexOf("Safari")!=1')			theWind.document.open("text/plain");			}	}		//-----------------------------------	//	variables defined for each "garden"-window, each file that evokes "garden.js":		//-----------------------------		function aulitHeader(	path,	title	)	{	//	a generic constructor of "simple, linked, table-based, headers"	//	uses a std margin, color, width(as percentage), fontsize(19px).	//	KEEP: MAY BE BASIS FOR A MORE GENERAL HEADER CONSTRUCTOR 10-19-05!!			//	alert("aulitHeader()");			var osname=getOs();		var	htmlcode='<div style="margin-left:.3in">';		htmlcode+='<table width="80%" bgcolor="#999999">';		htmlcode+='<tr><a href="'+path+'">';		htmlcode+='<td ><script>makeUSpan(19, "");sp(3);</script>'+title+'<br></span></td></a></tr></table></div><br>';		document.write(htmlcode);	}	//-----------------------------------	var remote=true;
