<!--


function popFlange(img) 
{ 
	var w = 210;
	var h = 580;
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>Trafficguard</TITLE><BODY bgcolor="#ffffff" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">'); 
	newWindow.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">');
	newWindow.document.write('<tr><td><a href="javascript:close()">');
	newWindow.document.write('<img src="../img/removable/' + img + '.gif" border="0">');
	newWindow.document.write('</a></td></tr></table>');		
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 
function popHdhb(img) 
{ 
	var w = 800;
	var h = 580;
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>Trafficguard</TITLE><BODY bgcolor="#ffffff" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">'); 
	newWindow.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">');
	newWindow.document.write('<tr><td><a href="javascript:close()">');
	newWindow.document.write('<img src="../img/single/' + img + '.jpg" border="0">');
	newWindow.document.write('</a></td></tr></table>');		
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

function popImg(img,wd,ht) 
{ 
	var w = wd;
	var h = ht;
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>Trafficguard</TITLE><BODY bgcolor="#ffffff" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">'); 
	newWindow.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">');
	newWindow.document.write('<tr><td align="center"><a href="javascript:close()">');
	newWindow.document.write('<img src="../img/' + img + '" border="0">');
	newWindow.document.write('</a></td></tr></table>');		
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function popUp(url, w, h){
	var wHalf = w/2;
	var hHalf = h/2;
	var popWidth = (window.screen.width/2) - (wHalf + 10);
	var popHeight = (window.screen.height/2) - (hHalf + 50); 
	
	//alert ( "w = " + popWidth + " and h = " + popHeight )
	
	var popFlash=window.open (url,"TrafficGuard", "toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=auto");
	
	//popFlash.focus();
	
}

// Rollover  v2.0.1
// documentation: http://www.dithered.com/javascript/rollover/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)


function isDefined(property) {
  return (typeof property != 'undefined');
}

var rolloverInitialized = false;
function rolloverInit() {
   if (!rolloverInitialized && isDefined(document.images)) {
      
      // get all images (including all <input type="image">s)
      // use getElementsByTagName() if supported
      var images = new Array();
      if (isDefined(document.getElementsByTagName)) {
         images = document.getElementsByTagName('img');
         var inputs = document.getElementsByTagName('input');
         for (var i = 0; i < inputs.length; i++) {
            if (inputs[i].type == 'image') {
               images[images.length] = inputs[i];
            }
         }
      }
      
      // otherwise, use document.images and document.forms collections
      // remove if not supporting IE4, Opera 4-5
      else {
         images = document.images;
         inputs = new Array();
         for (var formIndex = 0; formIndex < document.forms.length; formIndex++) {
            for (var elementIndex = 0; elementIndex < document.forms.elements.length; elementIndex++) {
               if (isDefined(document.forms.elements[i].src)) {
                  inputs[inputs.length] = document.forms.elements[i];
               }
            }
         }
      }
      
      // get all images with '_off.' in src value
      for (var i = 0; i < images.length; i++) {
         if (images[i].src.indexOf('_off.') != -1) {
            var image = images[i];
            
            // store the off state filename in a property of the image object
            image.offImage = new Image();
            image.offImage.src = image.src;
            
            // store the on state filename in a property of the image object
            // (also preloads the on state image)
            image.onImage = new Image();
            image.onImage.imageElement = image;
            
            // add onmouseover and onmouseout event handlers once the on state image has loaded
            // Safari's onload is screwed up for off-screen images; temporary fix
            if (navigator.userAgent.toLowerCase().indexOf('safari') != - 1) {
               image.onmouseover = function() {
                  this.src = this.onImage.src;
               };
               image.onmouseout = function() {
                  this.src = this.offImage.src;
               };
            }
            else {
               image.onImage.onload = function() {
                  this.imageElement.onmouseover = function() {
                     this.src = this.onImage.src;
                  };
                  this.imageElement.onmouseout = function() {
                     this.src = this.offImage.src;
                  };
               };
            }
            
            // set src of on state image after defining onload event handler
            // so cached images (that load instantly in IE) will trigger onload
            image.onImage.src = image.src.replace(/_off\./, '_on.');
         }
      }
   }
   rolloverInitialized = true;
}

// call rolloverInit when document finishes loading
if (isDefined(window.addEventListener)) {
   window.addEventListener('load', rolloverInit, false);
}
else if (isDefined(window.attachEvent)) {
   window.attachEvent('onload', rolloverInit);
}
//-->