// JavaScript Document

<!--
// Block Errors
function blockError(){return true;}
window.onerror = blockError;

// Set the message for the alert box
am = "Thank you for visiting JJT % Associates";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

function showDateTime() {
   window.setTimeout( "showDateTime()", 100 );
   dt = new Date();
   self.status = dt.toString();
}

showDateTime()

function openChromelessWindow(openUrl, winName, wWidth, wHeight){
  var posx = -1;
  var posy = -1;

  posx = Math.ceil( (window.screen.width  - wWidth) / 2 );
  posy = Math.ceil( (window.screen.height - wHeight) / 2 );

  var sFeatures = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=" + wWidth + ",height=" + wHeight + ",top=" + posy + ",left=" + posx;

  var splashWin = window.open(openUrl, winName, sFeatures, true);

  splashWin.focus();

}


// Mouseover functions
if (document.images) {

//  Logo Button
logoon = new Image(750, 100);
logoon.src = "images/logo_h.gif"

logooff = new Image(750, 100);
logooff.src = "images/logo_n.gif"

//  Contact Button
contacton = new Image(750, 100);
contacton.src = "images/contact-on.gif"

contactoff = new Image(750, 100);
contactoff.src = "images/contact-off.gif"

//  Next Button
nexton = new Image(120, 55);
nexton.src = "images/nexton.gif"

nextoff = new Image(120, 55);
nextoff.src = "images/nextoff.gif"


}

function img_act(imgName) {
if (document.images) {
imgOn = eval(imgName + "on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName) {
if (document.images) {
imgOff = eval(imgName + "off.src");
document [imgName].src = imgOff;
}
}