var iframe1       = new Array();  // iFrame 1 Internet Explorer
var iframe2       = new Array();  // iFrame 2 other browsers
var footer        = new Array();  // Footer

////////////////////////////// Edit Below //////////////////////////////

// ==================== iFrame 1 ==================== //

iframe1[0]       = '<TABLE ALIGN="center" CELLPADDING="0" CELLSPACING="0" BORDER="0" SUMMARY="iFrame Table">';
iframe1[1]       = '<TR><TD CLASS="Border1">';
iframe1[2]       = '<IMG SRC="00.jpg" WIDTH="640" HEIGHT="480"><BR>';
iframe1[3]       = '</TD></TR>';
iframe1[4]       = '</TABLE>';

// ==================== iFrame 2 ==================== //

iframe2[0]       = '<TABLE ALIGN="center" CELLPADDING="0" CELLSPACING="0" BORDER="0" SUMMARY="iFrame Table">';
iframe2[1]       = '<TR><TD CLASS="Border1">';
iframe2[2]       = '<IMG SRC="00.jpg" WIDTH="640" HEIGHT="480"><BR>';
iframe2[3]       = '</TD></TR>';
iframe2[4]       = '</TABLE>';

// ==================== Footer ==================== //

footer[0]    = '<TABLE ALIGN="left" WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" SUMMARY="Copyright">';
footer[1]    = '<TR><TD ALIGN="left" VALIGN="bottom" WIDTH="41%" CLASS="CopyRight">';
footer[2]    = 'Copyright &copy;';
footer[3]    = '<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">';
footer[4]    = 'today = new Date();';
footer[5]    = 'year = today.getYear();';
footer[6]    = 'if (year < 2000) year = year + 1900;';
footer[7]    = 'document.write(year);';
footer[8]    = '</SCRIPT>';
footer[9]    = 'Rainbow Production.';
footer[10]   = '</TD><TD ALIGN="center" VALIGN="middle" WIDTH="18%" CLASS="CopyRight">';
footer[11]   = '<A HREF="javascript:history.back()"><IMG SRC="../shared/menu.gif" WIDTH="13" HEIGHT="9" BORDER="0" ALT="Back" TITLE="Back"><BR></A>';
footer[12]   = '</TD><TD ALIGN="right" VALIGN="bottom" WIDTH="41%" CLASS="CopyRight">';
footer[13]   = 'Pattaya-at-Night Picture Display';
footer[17]   = '</TD></TR>';
footer[18]   = '</TABLE>';

/////////////////////////////////// DO NOT EDIT BELOW ///////////////////////////

function show(i)
 {
  for (x in i)
  {
   document.write(i[x]+'\n')
  }
 }

// Which frame?
function showframe(){
if (browser == "Internet Explorer") {show(iframe1);}
else  {show(iframe2);}
}

// Check Browser.
var ua = navigator.userAgent.toLowerCase();
var os,browser,version,data;

if (detect('konqueror')) {browser = "Konqueror"; os = "Linux";}
else if (detect('safari')) browser = "Safari";
else if (detect('omniweb')) browser = "OmniWeb";
else if (detect('firefox')) browser = "Firefox";
else if (detect('opera')) browser = "Opera";
else if (detect('webtv')) browser = "WebTV";
else if (detect('icab')) browser = "iCab";
else if (detect('msie')) browser = "Internet Explorer";
else if (!detect('compatible')) {browser = "Netscape Navigator"; version = ua.charAt(8);}
else browser = "an unknown browser";

if (!version) version = ua.charAt(stringposition + data.length);

function detect(text) {
   stringposition = ua.indexOf(text) + 1;
   data = text;
   return stringposition;
}
function changeImage(FileName)
{
  mainimage = new Image;
  mainimage.src = FileName;
  document.images[0].src = mainimage.src;
}
