function ShowPageControls()
{
	
	document.write ("<div align=right>");
	document.write ("<table border=0 cellspacing=0 cellpadding=0>");
	document.write ("<tr>");
	document.write ("<td class=\"paginate\"><span class=\"paginate1\"><b>Page:</b></span></td>");
	
    if ( CurrentPage != 1 )
    {
		document.write ("<td class=\"paginate\"><a href=" + pageid + ".html?page=" + String(CurrentPage-1) + "><img src=http://site.azaleasf.com/graphics/paginate-prev.gif width=13 height=13 alt=\"Previous Page\" border=0></a></td>");
    }
    for (var i = 0; i < pages.length; i++ )
    {
      if ( i != CurrentPage - 1 )
      {
        document.write ("<td class=\"paginate\"><a href=" + pageid + ".html?page=" + String(i + 1) + "  class=\"paginate\">" + (i+1) + "</a></td>")
      }
      else
      {
        document.write ("<td class=\"paginate\"><span class=\"paginate2\"><b>" + String(i+1) + "</b></span></td>")
      }
    }
	
	if ( CurrentPage != pages.length )
    {
        document.write ("<td class=\"paginate\"><a href=" + pageid + ".html?page=" + String(CurrentPage+1) + "><img src=http://site.azaleasf.com/graphics/paginate-next.gif width=13 height=13 alt=\"Next Page\" border=0></a></td>")
    }
	
	document.write ("<td class=\"paginate\"><img src=http://site.azaleasf.com/graphics/paginate-div.gif width=19 height=13 border=0></td>");
	document.write ("<td><a href=" + pageid + ".html?page=0><img src=http://site.azaleasf.com/graphics/btnviewall.gif width=58 height=13 alt=\"View All\" border=0></a></td>");	
    document.write ("</tr>")
	document.write("</table>");
    document.write ("</div>");
}

function ShowPage()
{
  if ( pages.length > 1 && CurrentPage > 0 ) 
  {
    ShowPageControls();
    document.write("<br>");
  }
  if ( CurrentPage > 0 )
  {
    document.write( String(pages[CurrentPage - 1]).replace(/`/gi, "'") );
  }
  else
  {
    for (var i = 1; i <= pages.length; i++ )
    {
        document.write( String(pages[i - 1]).replace(/`/gi, "'") );
    }
  }
  if ( pages.length > 1 && CurrentPage > 0 ) 
  {
  	document.write("<br>");
    ShowPageControls();
  }
}