
 //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
 //                                                                        
 //  This file was created by rjc from system/js/tutorial.js
 //  on 2004/05/04 20:59:06.
 //                                                                        
 //    Copyright 1999-2004 Interactive Information Ltd, All Rights Reserved 
 //    http://information.overlaid.com
 //                                                                        
 //  It is almost certainly a bad idea to edit it.
 //  
 //  ------------------------------------------------------------------------
 //  
 //  Version:	2.4.1 for Weasel
 //  Features:	SELECT HSPOPUP HSSTATUS BEANINFO NS IE OPERA BRIGHTEN LABEL DATACOPYRIGHT LINEAR
 //  Scales:	linear
 //  Hotspots:	rect poly circle elipse
 //  Markers:	circle cross image
 //  
 //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

		

// Table of tutorials 

var tutorial_info=[];

var TutorialWindow = 'tutorial';
var TutorialWindowParams = 'width=500,height=600,menubar=yes,scrollbars=yes,resizable=yes';

function tutorialLink(link)
{
	return tutorialHref(link.href, link.target);
}

function tutorialHref(href, wname)
{
	if ( wname == null )
		wname = TutorialWindow;
	var win = window.open(href, wname, TutorialWindowParams);
        win.focus();
        return(false);
}

function showAnchor(win, a)
{
    if (a.y != null)
	win.scrollTo(0,a.y);
    else if (a.scrollIntoView != null)
	a.scrollIntoView();
}


var SourceWindow = 'source';
var SourceWindowParams = 'width=700,height=400,menubar=yes,scrollbars=yes,resizable=yes';

function sourceLink(link)
{
	return sourceHref(link.href);
}

var swin;
function sourceHref(href)
{
	swin = window.open(href, SourceWindow, SourceWindowParams);
        setTimeout('swin.focus();', 300);
        return(false);
}

function showAnchor(win, a)
{
    if (a.y != null)
	win.scrollTo(0,a.y);
    else if (a.scrollIntoView != null)
	a.scrollIntoView();
}

function openerLink(link)
{
   return openerHref(link.href);
}

function openerHref(href)
{
  var win = window.opener;

  win = win==null?window:win.top;

  win.location.href=href;
  return false;
}

function tutorial_link(target)
{
  var info = tutorial_info[target];

  if (info != null)
      document.writeln("<a target='_top' href='../"+target+"/index.html'>"+info[3]+" Tutorial</a>");
  else
     document.writeln("Unknown Tutorial ("+target+")");
}

function tutorial_name(target)
{
  var info = tutorial_info[target];

  if (info != null)
      document.writeln(info[3]+" Tutorial");
  else
     document.writeln("Unknown Tutorial ("+target+")");
}


function tutorial_links(me,crush,full)
{
 var info = tutorial_info[me];
 var prev = info[0];
 var next = info[1];

 var pinfo = tutorial_info[prev];
 var ninfo = tutorial_info[next];

 var ni = full==null?2:3;

document.writeln("<div align=center>");
document.writeln("<table "+(crush==null?"width='100%'":"")+"><tr>");
if (pinfo != null)
    document.writeln(" <td align=left width='30%'><a name=prevlink target='_top' href='../"+prev+"/index.html'>&lt;--<br>"+pinfo[ni]+"</a></td>");
else
    document.writeln(" <td align=left width='30%'></td>");

document.writeln(" <td align=center width='30%'><a name=uplink target='_top' href='../index.html'><br>Index</a></td>");

if (ninfo != null)
    document.writeln(" <td align=right width='30%'><a name=nextlink target='_top' href='../"+next+"/index.html'>--&gt;<br>"+ninfo[ni]+"</a></td>");
else
    document.writeln(" <td align=left width='30%'></td>");

document.writeln(" </tr></table>");
document.writeln(" </div>");
}

function tutorial_next(me, prefix)
{
 var info = tutorial_info[me];
 var next = info[1];
 var ninfo = tutorial_info[next];
 var up = "";

 if (prefix == null)
     {
	 prefix="";
	 up="../";
     }

document.writeln("<div align=center><table width='50%'>");
document.writeln("<tr>");
document.writeln("	<td align=left></td>");
if (next != null)
    document.writeln("	<td align=center><a href='../"+prefix+next+"/index.html' onClick='return openerLink(this);'>Go To The Next Tutorial<br>``"+ninfo[3]+"''</a></td>");
else
    document.writeln("	<td align=center><a href='../index.html' onClick='setTimeout(\"window.close()\",500);return openerLink(this);'>Go Back To The Tutorial Overview</a></td>");

document.writeln("	<td align=left></td>");
document.writeln("	</tr>");

document.writeln("	<tr><td colspan=3 align=center>or<br><a href='../"+up+"index.html' onClick='setTimeout(\"window.close()\",500);return openerLink(this);'>Exit The Tutorial</a></td></tr>");

document.writeln("</table></div>");

}

