<!--

        defsWin = true;
        function openAdmin(windowURL) { 
         if (defsWin) {
		      defsWin = window.open(windowURL,"admin", "toolbar=yes,status=0,location=yes,directories=0,menubar=yes,scrollbars=yes,resizable=yes"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }         



var winopts =
	"toolbar=no,location=no,directories=no,status=no"
	+ ",menubar=no,scrollbars=yes,resizable=yes,"

function SizeNewWindow (Where, Wide, High) {
         var u = Where;
         var w = Wide;
         var h = High;
//         alert(u + "\n" + h + "\n" + w);
         winopts = winopts + "width=" + w + "," +  "height=" + h;
         CtrlWin = this.open(u, "CtrlWindow", winopts);
}



function NoSelect(i)
     {
          alert("Please make a Selection from the Drop Down List");
     }

var winopt =
	"toolbar=yes,location=yes,directories=no,status=no"
	+ ",menubar=yes,scrollbars=yes,resizable=yes"
	+ ",width=700,height=525"
function GoNewWindow (i) {
         var u = i;
//         alert(u);

                CtrlWin = this.open(u, "CtrlWindow", winopt);

//               CtrlWin.IMAWin = this;
}

        defsWin = true;
        function openWinLarge(windowURL) { 
         if (defsWin) {
      defsWin = window.open(windowURL,"1", "width=500,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=no"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        } 
//        defsWin = true;
//        function openWinMedium(windowURL) { 
//         if (defsWin) {
//      defsWin = window.open(windowURL,"2", "width=750,height=550,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
//         } else {
//          defsWin.location =  windowURL;
//         }
//      // defsWin.focus();
//        } 


        function OpenPuffsWindow(windowURL) { 
         if (defsWin) {
      defsWin = window.open(windowURL,"1", "width=650,height=600,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        } 
        
        defsWin = true;
        function OpenEmailUtility(windowURL) 
        { 
        		var myindex = document.EmailDropDown.eType.selectedIndex;
				var windowURL = "EmailMember.asp?eType="+document.EmailDropDown.eType.options[myindex].value;
	         if (defsWin) 
	         {
			      defsWin = window.open(windowURL,"1", "width=625,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         	} 
         	else 
         	{
          		defsWin.location =  windowURL;
         	}
      // defsWin.focus();
        } 
        
        
        
        


        function openFleet(windowURL) { 
         if (defsWin) {
         windowURL = windowURL+"?FleetKey="+document.Fleet.FleetKey.value;
//         alert(windowURL);
      defsWin = window.open(windowURL,"1", "width=750,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }         

        function openSurvey(windowURL) { 
         if (defsWin) {
         windowURL = windowURL;
//         alert(windowURL);
      defsWin = window.open(windowURL,"1", "width=750,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }                 
        
        function openFleetMaint(windowURL) { 
         if (defsWin) {
         	windowURL = windowURL+"?FleetKey="+document.FleetMaint.FleetMaintKey.value;
//          alert(windowURL);
      		defsWin = window.open(windowURL,"1", "width=750,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          	defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }                 
        
        function openFleetMaint2(windowURL) { 
         if (defsWin) {
         	windowURL = windowURL+"?FleetKey="+document.FleetMaint2.FleetMaintKey.value;
//          alert(windowURL);
      		defsWin = window.open(windowURL,"1", "width=750,height=650,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          	defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }                         
        
        function VisitorPopUp(windowURL) { 
			defsWinV = window.open(windowURL,"1", "width=250,height=200,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes");         
         defsWinV.location =  windowURL;
        }                 

        function NewPopUp(windowURL) { 
			defsWinV = window.open(windowURL,"1", "width=550,height=400,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes");         
         defsWinV.location =  windowURL;
        }                         
// -->
<!--
//        defsWin = true;
        function openWinMedium(windowURL) { 
         if (defsWin) {
      defsWin = window.open(windowURL,"2", "width=750,height=550,toolbar=no,status=0,location=no,directories=0,menubar=no,scrollbars=yes,resizable=yes"); 
         } else {
          defsWin.location =  windowURL;
         }
      // defsWin.focus();
        }         
        
function StatusBar_Update()
{
	if (this.loc < this.width)
	{
		window.status = this.spaces.substring(0,this.width-this.loc)+this.text.substring(0,this.loc);
	}
	else
	{
		var len = (this.loc-this.width > this.text.length) ? (this.loc-this.width - this.text.length) : this.width;
		window.status = this.text.substr(this.loc-this.width,len);
	}
	this.loc++;
	if (this.loc > this.text.length+this.width)
		this.loc = 0;
}
//  .... Ticker code
function StatusBar_Start()
{
	for (var i=0;i<this.width;i++)
		this.spaces +=" ";

	setInterval("gStatus.Update()",this.speed);
}

function StatusBar()
{
	this.width = 100;
	this.text = "";
	this.speed = 100;
	
	this.loc = 0;
	this.spaces = "";

	this.Update = StatusBar_Update;
	this.Start = StatusBar_Start;
}

var gStatus = new StatusBar();

// Customize the following settings as desired
gStatus.width = 100;
gStatus.text = "";
gStatus.speed = 100;    

// Start the ticker
gStatus.Start();   

// ..... end of ticker code     
        
// MENU MOUSE OVER 
function menuOver(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
}// MENU MOUSE OUT 
function menuOut(itemName) {
 if(document.layers) {
 	menuActive = 0 
 	timeOn = setTimeout("hideAllMenus()", 400)
  }
}
 // SET BACKGROUND COLOR 
function getImage(name) {
  if (document.layers) {
    return findImage(name, document);
  }
  return null;
}

function findImage(name, doc) {
  var i, img;
  for (i = 0; i < doc.images.length; i++)
    if (doc.images[i].name == name)
      return doc.images[i];
  for (i = 0; i < doc.layers.length; i++)
    if ((img = findImage(name, doc.layers[i].document)) != null) {
      img.container = doc.layers[i];
      return img;
    }
  return null;
}

function getImagePageLeft(img) {
  var x, obj;
  if (document.layers) {
    if (img.container != null)
      return img.container.pageX + img.x;
    else
      return img.x;
  }
  return -1;
}

function getImagePageTop(img) {
  var y, obj;
  if (document.layers) {
    if (img.container != null)
      return img.container.pageY + img.y;
    else
      return img.y;
  }
  return -1;
}


var timeOn = null
numMenus = 4;
document.onmouseover = hideAllMenus;
document.onclick = hideAllMenus;
window.onerror = null;

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	//we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility


function showMenu(menuNumber, eventObj, labelID) {
    hideAllMenus();
	if(document.layers) {
	img = getImage("img" + menuNumber);
 	x = getImagePageLeft(img);
 	y = getImagePageTop(img);
 	menuTop = y + 10; // LAYER TOP POSITION
	eval('document.layers["menu'+menuNumber+'"].top="'+menuTop+'"');
 	eval('document.layers["menu'+menuNumber+'"].left="'+x+'"');
	}
	eventObj.cancelBubble = true;
    var menuId = 'menu' + menuNumber;
    if(changeObjectVisibility(menuId, 'visible')) {
	return true;
    } else {
	return false;
    }
}

function hideAllMenus() {
    for(counter = 1; counter <= numMenus; counter++) {
	changeObjectVisibility('menu' + counter, 'hidden');
    }
}

function moveObject(objectId, newXCoordinate, newYCoordinate) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.left = newXCoordinate;
	styleObject.top = newYCoordinate;
	return true;
    } else {
	// we couldn't find the object, so we can't very well move it
	return false;
    }
} // moveObject



// ***********************
// hacks and workarounds *
// ***********************

// initialize hacks whenever the page loads
window.onload = initializeHacks;

// setup an event handler to hide popups for generic clicks on the document
function initializeHacks() {
    // this ugly little hack resizes a blank div to make sure you can click
    // anywhere in the window for Mac MSIE 5
    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 
	&& (navigator.platform.indexOf('Mac') != -1)
	&& getStyleObject('blankDiv')) {
	window.onresize = explorerMacResizeFix;
    }
    resizeBlankDiv();
    // this next function creates a placeholder object for older browsers
    createFakeEventObj();
}



function createFakeEventObj() {
    // create a fake event object for older browsers to avoid errors in function call
    // when we need to pass the event object to functions
    if (!window.event) {
	window.event = false;
    }
} // createFakeEventObj



function resizeBlankDiv() {
    // resize blank placeholder div so IE 5 on mac will get all clicks in window
    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 
	&& (navigator.platform.indexOf('Mac') != -1)
	&& getStyleObject('blankDiv')) {
	getStyleObject('blankDiv').width = document.body.clientWidth - 20;
	getStyleObject('blankDiv').height = document.body.clientHeight - 20;
    }
}

function explorerMacResizeFix () {
    location.reload(false);
}

function mClk(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

        
//-->

