<!--
//  BROWSER DETECTION
var NS;
var IE;
var PC;
var MAC;

if(document.all)
 {
  NS = false;
  IE = true;
 }
  else
 {
  NS = true;
  IE = false;
 }

if(navigator.platform.indexOf("Win32") != -1)
 {
 PC = true;
 MAC = false;
 } else
 {
 PC = false;
 MAC = true;
 }

var LayerObject = (document.layers)? true:false;
var DocumentObject = (document.all)? true:false;


//*****************************************************************
// RANDOM BANNER GENERATOR
// Banners will display in page at location of loadRandomIMAGE()

function randomNumber(arrayLength)
{
 randomIndex = Math.floor(Math.random()*arrayLength);
 return randomIndex;
}

function loadRandomIMAGE()
{
 imageSrcSet = new Array();
 urlSet = new Array();
 altTagSet = new Array();
 imageWidth = 428;
 imageHeight = 325;
 imageBorder = 0;

 imageSrcSet[0] = "images/photo01a.jpg";
 urlSet[0] = "photo01.htm";
 altTagSet[0] = '"Photo Gallery - Item #1"';

 imageSrcSet[1] = "images/photo02a.jpg";
 urlSet[1] = "photo02.htm";
 altTagSet[1] = '"Photo Gallery - Item #2"';

 imageSrcSet[2] = "images/photo03a.jpg";
 urlSet[2] = "photo03.htm";
 altTagSet[2] = '"Photo Gallery - Item #3"';

 imageSrcSet[3] = "images/photo04a.jpg";
 urlSet[3] = "photo04.htm";
 altTagSet[3] = '"Photo Gallery - Item #4"';

 imageSrcSet[4] = "images/photo05a.jpg";
 urlSet[4] = "photo05.htm";
 altTagSet[4] = '"Photo Gallery - Item #5"';

 imageSrcSet[5] = "images/photo06a.jpg";
 urlSet[5] = "photo06.htm";
 altTagSet[5] = '"Photo Gallery - Item #6"';

 imageSrcSet[6] = "images/photo07a.jpg";
 urlSet[6] = "photo07.htm";
 altTagSet[6] = '"Photo Gallery - Item #7"';

 imageSrcSet[7] = "images/photo08a.jpg";
 urlSet[7] = "photo08.htm";
 altTagSet[7] = '"Photo Gallery - Item #8"';

 randomIndex = randomNumber(imageSrcSet.length);

 document.writeln("<a href=" +urlSet[randomIndex] +">");
 document.write("<img src=" +imageSrcSet[randomIndex]);
 document.write(" width=" +imageWidth);
 document.write(" height=" +imageHeight);
 document.write(" border=" +imageBorder);
 document.writeln(" alt=" +altTagSet[randomIndex] +"></a>");
}


/******************************************************************************/
// OPEN POP-UP WINDOW

function showPopupAD()	{ 
	window.open("popup.htm", "", "width=220,height=245")
}


