
var ns4=false;
if ((parseInt(navigator.appVersion)==4) && (navigator.appName=="Netscape")) ns4=true;
var ie4=(document.all)? true:false;
var dom=(document.getElementById)? true:false;
var mac=(navigator.platform == "MacPPC")? true:false;
var win=(navigator.platform == "Win32")? true:false;
//if (navigator.userAgent.indexOf("Opera")!=-1) dom=false;
var winie55up=false;
if ((dom) && (win) && (navigator.appVersion.indexOf("MSIE")!=-1))
{
	var temp=navigator.appVersion.split("MSIE");
	if (parseFloat(temp[1])>=5.5) winie55up=true;
}

var topz=110;
var dragged=0;
var dragoffset=0;

function hidenote(num)
{
	if (dom) document.getElementById("note"+num).style.visibility="hidden";
}

function totop(num)
{
	topz++;
	if (dom) document.getElementById("note"+num).style.zIndex=topz;
	else return true;
	return false;
}

function stylestart()
{
	document.writeln('<link rel="stylesheet" type="text/css" href="n4.css" media="screen" />');
	document.writeln('<style type="text/css" media="screen">');
	if (ie4)
	{
		document.writeln('.close,.button{cursor:hand} body{overflow:auto}');
		document.writeln(".paper7 {filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand',M11=0.981627,M12=-0.190809,M21=0.190809,M22=0.981627)}");
	}
	if (mac)
	{
		document.writeln('.imgleft,.imgright {display:none}');
	}
}

function styleend()
{
	document.writeln('</style>');
}
