//	notate.js//	routines to implement an "commentary-page": , etc.	//	variables defined for each "audio"-window, each file that evokes "notate.js":		//-----------------------------------	var noteWind;		function makeNoteLinkUr(fileID,	theWidth,	theHeight	)	{		//	alert("smartNoteOpen(); (fileID)= "+fileID);				var theOs=getOs();		if(theOs=="Win")			document.write('<a href="notes/'+fileID+'.html" target="_blank">');		if(theOs=="Mac")		{			var mypath="'notes/"+fileID+".html'";			var command='<a href="#" onClick="noteopen(	'+mypath+', '+theWidth+', '+theHeight+');">';			document.write(command);		}	}		function makeNoteLink(fileID,	theWidth,	theHeight,	caption	)	{		//	new version to allow for "pop-up" captions for text!!!!!(07-10-05)		//	alert("smartNoteOpen(); (fileID)= "+fileID);					//	if(caption!="") alert("caption: "+caption);	//	if(caption==undefined) alert("caption undefined "+caption);						var theOs=getOs();		if(theOs=="Win")		{			if(caption=="")				document.write('<a href="notes/'+fileID+'.html" target="_blank">');			else				document.write('<a href="notes/'+fileID+'.html" target="_blank" title="'+caption+'">');		}		if(theOs=="Mac")		{			var command;			var mypath="'notes/"+fileID+".html'";			if(caption=="")				command='<a href="#" onClick="noteopen(	'+mypath+', '+theWidth+', '+theHeight+');">';			else				command='<a href="#" title="'+caption+'" onClick="noteopen(	'+mypath+', '+theWidth+', '+theHeight+');">';			document.write(command);		}	}				function noteopen(	path,	myWidth,	myHeight	)	{				var myleft= (2*(screen.width-myWidth))/32;		var mytop= (5*(screen.height-myHeight))/32;				noteWind=genWindowOpen(noteWind, path, "gamma", myWidth, myHeight, myleft, mytop, "yes");	}			function noteload()	{		var	nuHt=myHeight;		var	winNoteOverhead=90;				if(getOs()=="Win")		{			nuHt+=winNoteOverhead		}				var myleft= (2*(screen.width-myWidth))/32;		var mytop= (7*(screen.height-nuHt))/32;				moveTo( myleft, mytop );		resizeTo( myWidth, nuHt	);	}		//-----------------------------------		function makenoteDiv()	{		var	htmlcode;		var osname=getOs();		if(osname=="Mac")				var	htmlcode='<div class="macN">';		if(osname=="Win")				var	htmlcode='<div class="winN">';		document.write(htmlcode);	}		function makeNoteHeader(	title,	author	)	{	//	var osname=getOs();		var	htmlcode='<div style="font-size:15px; margin-left:5px; margin-right:20px; ">';		htmlcode=htmlcode+'Notes for<br> ';		htmlcode=htmlcode+'<span style="font-size:18px; font-weight:bold;">';		htmlcode=htmlcode+title;				htmlcode=htmlcode+"</span><br>"+spaceSub(3);		htmlcode=htmlcode+' by <span style="font-size:17px; ">';		htmlcode=htmlcode+author;		htmlcode=htmlcode+'</span><br></div>';		//	alert("htmlcode="+htmlcode);		document.write(htmlcode);	}		function makeScanHeader(	title,	author	)	{	//	var osname=getOs();		var	htmlcode='<div style="font-size:15px; margin-left:5px; margin-right:20px; ">';		htmlcode=htmlcode+'A Scansion of<br> ';		htmlcode=htmlcode+'<span style="font-size:18px; font-weight:bold;">';		htmlcode=htmlcode+title;				htmlcode=htmlcode+"</span><br>"+spaceSub(3);		htmlcode=htmlcode+' by <span style="font-size:17px; ">';		htmlcode=htmlcode+author;		htmlcode=htmlcode+'</span><br></div>';		//	alert("htmlcode="+htmlcode);		document.write(htmlcode);	}						function makeNoteHeader2(	title,	author, dates	)	{	//	var osname=getOs();		var	htmlcode='<div style="font-size:15px; margin-left:5px; margin-right:20px; ">';		htmlcode=htmlcode+'Notes for<br> ';		htmlcode=htmlcode+'<span style="font-size:18px; font-weight:bold;">';		htmlcode=htmlcode+title;				htmlcode=htmlcode+"</span><br>"+spaceSub(3);		htmlcode=htmlcode+' by <span style="font-size:17px; ">';		htmlcode=htmlcode+author;		htmlcode=htmlcode+'</span>';			htmlcode=htmlcode+'<span style="font-size:12px; ">';		htmlcode=htmlcode+dates;		htmlcode=htmlcode+'</span><br></div>';		//	alert("htmlcode="+htmlcode);		document.write(htmlcode);	}						