// Copyright 2001 Idocs.com      
// Distribute this script freely, but keep this notice in place
//BACKBUTTON SCRIPT

// backlink object initializer
function backlink() {
	this.text = 'Go Back';
	this.type = 'link';
	this.write = backlink_write;
	this.form = true;
}
// write method
function backlink_write() {
	if (! window.history) return;
	if (window.history.length == 0)return;

	this.type = this.type.toLowerCase();
	if (this.type == 'button') {
		if (this.form)
			document.write('<FORM>');
		document.write('<INPUT TYPE=BUTTON onClick="history.back(-1)" VALUE="', this.text, '"');
		if (this.otheratts) document.write(' ', this.otheratts);
		document.write('>');
		if (this.form)document.write('<\/FORM>');
	} else {
		document.write('<A HREF="javascript:history.back(-1)"');
		if (this.otheratts)
			document.write(' ', this.otheratts);
		document.write('>');
		if (this.type == 'image' || this.type == 'img') {
			document.write('<IMG SRC="', this.src, '" ALT="', this.text, '"');
			if (this.width) document.write(' WIDTH=', this.width);
			if (this.height) document.write(' HEIGHT=', this.height);
			if (this.otherimgatts) document.write(' ', this.otherimgatts);
			document.write(' BORDER=0>');
		}
		else
			document.write(this.text);
		document.write('<\/A>');
	}
}


// POP UP WINDOW SCRIPT
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
// ROLLOVER SCRIPT

// copyright 1999 Idocs, Inc. http://www.idocs.com/tags/

// Distribute this script freely, but please keep this 

// notice with the code.


var rollOverArr=new Array();


function setrollover(OverImgSrc,pageImageName)

{

if (! document.images)return;

if (pageImageName == null)

    pageImageName = document.images[document.images.length-1].name;

rollOverArr[pageImageName]=new Object;

rollOverArr[pageImageName].overImg = new Image;

rollOverArr[pageImageName].overImg.src=OverImgSrc;

}



function rollover(pageImageName)

{

if (! document.images)return;

if (! rollOverArr[pageImageName])return;

if (! rollOverArr[pageImageName].outImg)

    {

    rollOverArr[pageImageName].outImg = new Image;

    rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;

    }

document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;

}


function rollout(pageImageName)

{

if (! document.images)return;

if (! rollOverArr[pageImageName])return;

document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;

}

<!--


// MainLvlBtns
	setrollover('pics/HmPg/btns/AboutUsBtnOvr.jpg', 'AboutUs');
	setrollover('pics/HmPg/btns/SrvcsBtnOvr.jpg', 'Services');
	setrollover('pics/HmPg/btns/MntrngBtnOvr.jpg', 'Monitoring');
	setrollover('pics/HmPg/btns/CntctBtnOvr.jpg', 'ContactUs');
	setrollover('pics/HmPg/btns/1CstmrBtnOvr.jpg', 'Customer');

//-->
