
// This script is © Aephid Technologies www.aephid.com.

function cAephidLinkBlock()
{
  this.m_TextAboveString = "_caption_";
  this.m_ButtonString = "download";
  this.m_UrlString = "_somewhere.html_";
  this.m_TextBelowString = "";
  
  this.Write =
  function()
    {
      document.writeln("<p align = center>" + this.m_TextAboveString);
      document.writeln("<br>");

      WriteAephidWebLink(this.m_ButtonString, this.m_UrlString);

      document.writeln("<br>");
      document.writeln(this.m_TextBelowString);

      document.writeln("</p>");
    }
}

function WriteAephidWebLink(Caption, WebLink)
{
  Caption = "[" + Caption + "]";

  document.writeln("<a href = '" + WebLink + "'>" + Caption + "</a>");
}

function WriteAephidEmailUrl(Caption, EmailUser)
{
	document.writeln("<a href = ");
	document.writeln("");
	document.writeln("	mailto:" + EmailUser + "@aephid.com");
	document.writeln("");
	document.writeln(">" + Caption + "</a>");
}

function WriteAephidUrlUnterminated(EmailUser)
{
	document.writeln("<a href = ");
	document.writeln("");
	document.writeln("	mailto:" + EmailUser + "@aephid.com");
}

function Redirect(Url)
{
  location = Url;
}

function RedirectPhotokeeper(Url)
{
  Url = "http://www.aephid.com/photokeeper/" + Url;
  Redirect(Url);
}

function Write2ColumnStart()
{
	document.writeln("<center>");
	document.writeln("<table cellspacing = 0 cellpadding = 0 border = 0 width = 100%>");
	document.writeln("<tr>");
	document.writeln("<td width = 50% valign = top>");
} 

function Write2ColumnMiddle()
{
	document.writeln("<br clear = all>");
	document.writeln("<p>&nbsp</p>");
	document.writeln("</td>");
	document.writeln("<td width = 20>");
	document.writeln("	&nbsp");
	document.writeln("</td>");
	document.writeln("<td width = * valign = top>");
}

function Write2ColumnEnd()
{
	document.writeln("</td>");
	document.writeln("</tr>");
	document.writeln("</table>");
	document.writeln("</center>");
	document.writeln("<br clear = all>");
}  

function WriteTableNbspSpaceColumn()
{
  document.writeln("&nbsp &nbsp &nbsp");
}

function WriteSpacerTable(pixelWidth, pixelHeight)
{
  document.writeln("<table border = 0 cellpadding = 0 cellspacing = 0 ");
  
  if(pixelWidth > 0)
  {
    document.writeln("width = " + pixelWidth);
  }

  if(pixelHeight > 0)
  {
    document.writeln("height = " + pixelHeight);
  }

  document.writeln("><tr><td></td></tr></table>");
}