var Page = [ "L&amp;L", "Mirabilia", "Paula Vaughan", "EMS", "Lanarte", "Free Patterns", "Patchwork", "Weaving", "Links" ];
var PageAddress = [ "index.html", "mirabilia.htm", "vaughan.htm", "ems.htm", "lanarte.htm", "patterns.htm", "patchwork.htm","weaving.htm", "links.htm" ];
var PageTitle = [ "Finished cross stitch by L &amp; L", "Finished cross stitch by Mirabilia", "Finished cross sticth by Paula Vaughan", "Finished cross stitch by Ellen Maurer Stroh", "Finished cross stitch by Lanarte", "Free patterns", "Handmade patchwork", "Weaving", "" ];
var IDPrefix = [ "L&amp;L", "Mirabilia", "Paula Vaughan", "EMS", "Lanarte", "Free Patterns", "Handmade patchwork", "Weaving", "" ];
var SubjectPrefix = [ "L and L", "Mirabilia", "Paula Vaughan", "EMS", "Lanarte", "Free Patterns", "Handmade patchwork", "Weaving", "" ];
var PageIndex = -1;

var EmailAddress = "dejan@paviljon.com";

function Navigation()
{
   var SpaceWidth = 80;
   // document.write( "<TR><TD COLSPAN=" + NumberOfColumns + ">" );
   document.write( "<CENTER>" );
   if( PageIndex > 0 )
      document.write( "<A HREF=\"" + PageAddress[PageIndex-1] + "#Gallery\">&lt;&nbsp;&nbsp;Previous Page</A>" );
   else
      document.write( "&lt;&nbsp;&nbsp;Previous Page" );
   document.write( "<IMG SRC=\"images/dot.gif\" WIDTH=" + SpaceWidth + " HEIGHT=1>" );
   document.write( "<A HREF=\"" + PageAddress[0] + "\">Home</A>" );
   document.write( "<IMG SRC=\"images/dot.gif\" WIDTH=" + SpaceWidth + " HEIGHT=1>" );
   if( PageIndex < Page.length - 2 )
      document.write( "<A HREF=\"" + PageAddress[PageIndex+1] + "#Gallery\">Next Page&nbsp;&nbsp;&gt;</A>" );
   else
      document.write( "Next Page&nbsp;&nbsp;&gt;" );
   document.write( "</CENTER>" );
   // document.write( "</TD></TR>" );
}

function StartTable( ind )
{
   PageIndex = ind;
   var MainBorder;
   if( PageIndex < Page.length - 1 )
      MainBorder = 0;
   else
      MainBorder = 1;
   document.write( "<P><A NAME=\"Gallery\"></A>" );
   document.write( "<TABLE WIDTH=\"100\%\" BORDER=" + MainBorder + " BORDERCOLORDARK=\"#CC9933\" BORDERCOLORLIGHT=\"#FFCC00\">" );
   if( PageIndex < Page.length - 1 )
      document.write( "<TR><TD>&nbsp;</TD><TD VALIGN=\"TOP\"><H2><FONT COLOR=\"GOLD\">" + PageTitle[PageIndex] + "</FONT></H2></TD></TR>" );
   document.write( "<TR><TD VALIGN=\"TOP\">" );
   document.write( "<BIG><B>Our pages:</B></BIG>" );
   for( i = 0; i < Page.length; i++ )
      document.write( "<P><A HREF=\"" + PageAddress[i] + "#Gallery\">" + Page[i] + "</A>" );
   document.write( "<P><A HREF=\"http://www.gobelin.info/sale.htm\">Wiehler gobelin</A>" );
   document.write( "<P><A HREF=\"http://www.dsv.su.se/~henrikbe/stitch/download.shtml\">Free software</A>" );
   document.write( "<P><A HREF=\"http://www.gobelin.info/message_board.asp\">Message board</A>" );
   document.write( "<P><A HREF=\"http://www.topcrossstitchsites.com/cgi-bin/auto/rankem.cgi?id=slavadej\">TOP CROSS STITCH SITES</A>" );
   document.write( "<P><A HREF=\"mailto:" + EmailAddress + "?subject=Cross Stitch\">Contact us</A>" );
   document.write( "</TD>" );
   if( PageIndex < Page.length - 1 )
      document.write( "<TD WIDTH=\"80\%\">" );
   else
      document.write( "<TD WIDTH=\"80\%\" VALIGN=\"TOP\">" );
}

function FinishTable()
{
   if( PageIndex < Page.length - 1 )
      Navigation();
   document.write( "</TD></TR></TABLE>" );
}

function Description( idstr, namestr, width, height, pricestr )
{
   Result = "<B>" + IDPrefix[PageIndex] + " #" + idstr + "</B><BR>" + namestr + "<BR>" +
            width + "&quot;&nbsp;x&nbsp;" + height + "&quot;" + "<BR>";
   if( pricestr == "" )
      Result += "<A HREF=\"mailto:" + EmailAddress +"?subject=Cross stitch: " + SubjectPrefix[PageIndex] + " #" + idstr + ", " + namestr + "\">Ask for the price</A>";
   else
      Result += pricestr;
   return Result;
}

function AskForInfo()
{
   document.write( "<P>" );
   document.write( "For more information, please write to our info address: " );
   document.write( "<A HREF=\"mailto:" + EmailAddress + "?subject=Cross Stitch\">" + EmailAddress + "</A>." );
   document.write( "<P><HR>" );
}

