   // set all global variables
   // os and browsers conditional variables
	browser = navigator.appName;
	version = navigator.appVersion;
	os = navigator.platform;
	ie = "Microsoft Internet Explorer";
	mac = "MacPPC";
	
	// site ID variables
	var companyName = "Reliance Build Inc.";
	var companyAddress = "281 N.Roosevelt Ave.";
	var companyCity = "Chandler";
	var companyStateZip = "AZ 85226";
	var companyPhoneNumber = "";

	// site Page variables
	var pageName = "";
	var pageTitle = "";
	var pageCaption = "";
	
	


// Image Flipper -  Cameron Gregory - http://www.bloke.com/
// http://www.bloke.com/javascript/Flipper/
// http://www.bloke.com/javascript/Flipper/link.html

function changeImage(r,i)
{
r.src=i;
}

function goFlipURL()
{
  document.location = urlSet[currentFlip];
}

function flipFlipper(imageSet,speed)
{
  currentFlip ++;
  if (currentFlip == imageSet.length)
    currentFlip=0;
  changeImage(document.flip,imageSet[currentFlip]);
  setTimeout("flipFlipper(imageSet,speed)", speed)
}

function FlipperLong(width,height,s,images)
{
/* si: start index
** i: current index
** ei: end index
** cc: current count
*/
 speed = s;
 si = 0;
 ci=0;
 cc=0;
 imageSet = new Array();
 ei = images.length;
  for (i=1;i<ei;i++) {
    if (images.charAt(i) == ' ') {
      imageSet[cc] = images.substring(si,i);
      cc++;
      si=i+1;
      }
    }
  currentFlip = 0;

 document.write("<img name='flip'");
 if (width >0)
    document.write("width="+width);
 if (height >0)
    document.write(" height=" +height);
  document.writeln(" src=" +imageSet[0]+ ">");

  setTimeout("flipFlipper(imageSet,speed)", speed)
}

function Flipper(width,height,images)
{
  speed=2000;
  FlipperLong(width,height,speed,images);
}


function FlipperLinkLong(width,height,s,images,urls)
{
/* si: start index
** i: current index
** ei: end index
** cc: current count
*/
 speed = s;
 imageSet = new Array();
 urlSet = new Array();

 si = 0;
 ci=0;
 cc=0;
 ei = images.length;
  for (i=1;i<ei;i++) {
    if (images.charAt(i) == ' ') {
      imageSet[cc]= images.substring(si,i);
      cc++;
      si=i+1;
      }
    }

 si = 0;
 ci=0;
 ccu=0;
 ei = urls.length;
  for (i=1;i<ei;i++) {
    if (urls.charAt(i) == ' ') {
      urlSet[ccu]= urls.substring(si,i);
      ccu++;
      si=i+1;
      }
    }

  currentFlip = 0;

 document.write("<a href=\"javascript:goFlipURL()\"><img name='flip'");
 document.write("<img name='flip'");
 if (width >0)
    document.write("width="+width);
 if (height >0)
    document.write(" height=" +height);
  document.writeln(" src=" +imageSet[0]+ "></a>");

  setTimeout("flipFlipper(imageSet,speed)", speed)
}

function FlipperLink(width,height,images,urls)
{
  speed=5000;
  FlipperLinkLong(width,height,speed,images,urls);
}


	
// build all global functions

function makeCopyRight() {
	document.write("Copyright &copy;&nbsp;" + year + "&nbsp;" + companyName + "&nbsp;" + companyAddress + "&nbsp;"  + companyCity +  ",&nbsp;" + companyStateZip);
}


function createPageObject(pName, pTitle, pCaption) {

	//alert("You are now opening \n page name = " + pName + " \n page title = " + pTitle + " \n page caption = " + pCaption + "");

pageName = pName; 
pageTitle = pTitle;
pageCaption = pCaption;

if ( pageName == "") {
alert("page name is missing");
}
if ( pageTitle == "") {
alert("page title is missing");
}
if ( pageCaption == "") {
alert("page caption is missing");
}
}

// time and date variables (TODO: add more here when needed)
var now = new Date();
var year = now.getYear();
if (year < 2000)		// Y2K
year = year + 1900;		//Fix

// Array of day names
var dayNames = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");

// Array of month Names
var monthNames = new Array(
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var monthLongNames = new Array('January','Febuary','March','April','May','June','July','August','September','October','November','December');

function writeDay() {
	document.write(dayNames[now.getDay()] + ",&nbsp;" + monthNames[now.getMonth()] + "&nbsp;" + now.getDate() + ",&nbsp;" + year);
}

// function that displays status bar message
function displayStatusMsg(msgStr) {
  top.status=msgStr;
  top.returnValue = true;
}
//	Use these for messages to be passed into status bar
//	<a href="#" title="message" 
//	onMouseOut="displayStatusMsg('');return top.returnValue" 
//	onMouseOver="displayStatusMsg('message');return top.returnValue">click</a> 
