function noError ()
{
	return(true);
}

onerror=noError;

function mail (srcDoc)
{
	var image;
	var name = "softly";
	var domain = "xworks.ca";

	switch (srcDoc)
	{
	case "main":
		image = "mail.gif";
		break;
	case "app":
		image = "../mail.gif";
	}

	document.write ("<a href=\"mailto:" + name + "@" + domain + "\">");
	document.write ("<img src=\"" + image + "\" alt='Contact'>" + "</a>");
}

function navbar (srcDoc)
{
	var path;
	switch (srcDoc)
	{
	case "main":
		path = "./";
		break;
	case "app":
		path = "../";
	}

	document.write ('<div id="logo"><img src="' + path + 'xworkslogo.gif" alt="Xworks"/></div>');
	document.write ('<div class="navbar" style="right:1cm; top:0.5cm">');
	mail(srcDoc);
	document.write ('</div>');

	document.write ('<div class="navbar" style="left:25%"><a href="' + path + 'index.html">Home</a></div>');
    document.write ('<div class="navbar" style="left:50%">');
	document.write ('<a href="' + path + 'artsage/index.html">ArtSage </a>');
    document.write ('<a href="' + path + 'shelf/index.html">Sh\'elf </a>');
	document.write ('<a href="' + path + 'sutra/index.html">Sutra </a>');
	document.write ('<a href="' + path + 'voicings/index.html">Voicings </a>');
	document.write ('<a href="' + path + 'vstaff/index.html">VStaff</a>');
    document.write ('</div>');
}

function breakout_of_frame ()
{
	if (top.location != location)
	{
		top.location.href = document.location.href;
	}
}

