
 //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
 //                                                                        
 //  This file was created by rjc from system/js/tutorial.js%
 //  on 2003/08/27 09:13:44.
 //                                                                        
 //    Copyright 1999-2002 Interactive Information Ltd, All Rights Reserved 
 //    http://information.overlaid.com
 //                                                                        
 //  It is almost certainly a bad idea to edit it.
 //  
 //  ------------------------------------------------------------------------
 //  
 //  Version:	2.3.0 for Map Weasel
 //  Features:	SELECT HSPOPUP HSSTATUS BEANINFO NS IE OPERA BRIGHTEN LABEL DATACOPYRIGHT
 //  Scales:	linear latlong
 //  Hotspots:	rect poly
 //  Markers:	circle cross image
 //  
 //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

		

// Table of tutorials 

var tutorial_info=[];

var TutorialWindow = 'tutorial';
var TutorialWindowParams = 'width=500,height=600,menubar=yes,scrollbars=yes,resize=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,resize=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+"'>"+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><a name=prevlink target='_top' href='../"+prev+"'>&lt;--<br>"+pinfo[ni]+"</a></td>");
if (ninfo != null)
	document.writeln(" <td align=right><a name=nextlink target='_top' href='../"+next+"'>--&gt;<br>"+ninfo[ni]+"</a></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];

 if (prefix == null)
	prefix="";

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+"' onClick='return openerLink(this);'>Go To The Next Tutorial<br>``"+ninfo[3]+"''<br>--&gt;</a></td>");
else
	document.writeln("	<td align=center><a href='../' onClick='setTimeout(\"window.close()\",500);return openerLink(this);'>Go Back To The Tutorial Overview</a></td>");
document.writeln("</table></div>");

}
