//	aulit2.js	//		alert("aulit2.js()");/*october 19, 2009-aulit2 & aupage2 are successors to the original javascript audiopage object.This succession amounts to a concession that the original concept ccan be implemented using basic html & javascript. Java, Flash, HTML5? even a compiled C internet client program remain possiblities for full and final implementation, which should also include, in time, video. These files make the following assumptions.No attempt to accommodate any sound controller other than Apple's QuickTime.The definition of a "robust" environment as a Safari browser operating in OSX.No use of inline frames except for the robust environment.And thus a totally "flat" implementation for non-robust environments.Thus robust environments will call frame and poem files,and these in turn, at least for the time being,need the original javascript files: aulit.js & aupage.js.Flat files need to invoke aulit2.js & aupage2.js.Any "calling" file, index files most likely, that use "switchLink" need only aulit2.js I think!? */			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 )
			{
		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;			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 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(date)	{		var osname=getOs();		var	htmlcode='<span style="font-size:11px; color:black;">';		if(osname=="Mac")	htmlcode+='<br>';		var	htmlcode=htmlcode+' &mdash; copyright &copy '+date+', Innerlea.com. <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");			}	}		//	alert("aulit2.js()");	//-----------------------------------		var	robust=false;	var theBrowser=getBrowserVersion();		if( (getOs()=="Mac") && (theBrowser.indexOf("Safari")!=-1)	)		robust=true;	//	robust=false;			function switchLink(urlfrag, nuwin)	{		var tag='<a href="'+urlfrag;		if(robust) 			tag+='frame';		else 			tag+='flat';		if(nuwin)			tag+='.html" target="_blank">';		else tag+='.html" target="_self">';		document.write(tag);	}				var remote=true;