function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

MM_preloadImages('/images/topnav.Company_on.97x21.gif','/images/topnav.Contact_on.96x21.gif','/images/topnav.News_on.146x21.gif','/images/topnav.Partners_on.102x21.gif','/images/topnav.Products_on.106x21.gif','/images/topnav.Solutions_on.110x21.gif','/images/topnav.Support_on.94x21.gif','/images/topnav.Global.gif','/images/topnav.Global_on.gif');
MM_preloadImages('/images/home/asset-management-tab.gif', '/images/home/perishable-produce-tab.gif', '/images/home/pharmaceuticals-tab.gif', '/images/home/asset-management-tab-over.gif', '/images/home/perishable-produce-tab-over.gif', '/images/home/pharmaceuticals-tab-over.gif', '/images/solutions/personnel-tab.gif', '/images/solutions/personnel-tab-over.gif', '/images/solutions/rti-tab.gif', '/images/solutions/rti-tab-over.gif', '/images/solutions/security-defense-tab.gif', '/images/solutions/security-defense-tab-over.gif', '/images/solutions/yard-worksite-tab.gif', '/images/solutions/yard-worksite-tab-over.gif', '/images/solutions/perishable-produce-tab.gif', '/images/solutions/perishable-produce-tab-over.gif', '/images/solutions/pharmaceuticals-tab.gif', '/images/solutions/pharmaceuticals-tab-over.gif');

/* begin - Highlight Home Tabs */
var HighlightHomeTabs = {
  init: function() {
	$('td.homePageColumn a.solutionThumbLink').hover(this.mouseenter, this.mouseleave);
  },
	mouseenter: function() { id = $(this).siblings('a.homeTab').attr('id'); $(this).siblings('a.homeTab').addClass(id + 'Active'); },
	mouseleave: function() { id = $(this).siblings('a.homeTab').attr('id'); $(this).siblings('a.homeTab').removeClass(id + 'Active'); }
};
/* end - Highlight Home Tabs */

/* begin - Highlight Asset Tabs */
var HighlightAssetTabs = {
  init: function() {
	  $('a.solutionThumbLink').hover(this.mouseenter, this.mouseleave);
  },
	mouseenter: function() { id = $(this).siblings('a.assetTab').attr('id'); $(this).siblings('a.assetTab').addClass(id + 'Active'); },
	mouseleave: function() { id = $(this).siblings('a.assetTab').attr('id'); $(this).siblings('a.assetTab').removeClass(id + 'Active'); }
};
/* end - Highlight Asset Tabs */


/* begin - Video modal windows */
var VideoModals = {
  init: function() {
	$("a.modal").click(function(e) {
		e.preventDefault();
		$.fancybox({
			'titleShow'     : false,
			'transitionIn'  : 'elastic',
			'transitionOut' : 'elastic',
			'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'      : 'swf',
			'swf'       : {'wmode':'transparent','allowfullscreen':'true'}
		});
	});
  }
};
/* end - Video modal windows  */

// If jQuery is loaded on the page, then initialize 
// the following functions
if (typeof jQuery != 'undefined') {  
	$(function() { HighlightHomeTabs.init(); });
	$(function() { HighlightAssetTabs.init(); });
	if ($.fancybox) {  
		$(function() { VideoModals.init(); });
	}
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function verifyForm() {
	if ((document.contactform.first_name.value == '') || (document.contactform.last_name.value == '')) {
		alert("Please enter your first and last name.");
		if (document.contactform.last_name.value == '') { document.contactform.last_name.focus(); }
		if (document.contactform.first_name.value == '') { document.contactform.first_name.focus(); }
		return false;
	} else if (document.contactform.email.value.length < 6) {
		alert("Please enter your email address.");
		document.contactform.email.focus();
		return false;
	} else if (document.contactform.phone.value.length < 9) {
		alert("Please enter your phone number.");
		document.contactform.phone.focus();
		return false;
	} else if (document.contactform.company.value.length < 2) {
		alert("Please enter your company name.");
		document.contactform.company.focus();
		return false;
	} else {
		document.contactform.submit();
	}
}	

// Copyright 2006-2007 javascript-array.com

var TimeOut         = 300;
var currentLayer    = null;
var currentitem     = null;
var currentLayerNum = 0;
var noClose         = 0;
var closeTimer      = null;

// Open Hidden Layer
function mopen(n)
{
    var l  = document.getElementById("menu"+n);
    var mm = document.getElementById("mmenu"+n);
	
    if(l)
    {
        mcancelclosetime();
        l.style.visibility='visible';

        if(currentLayer && (currentLayerNum != n))
            currentLayer.style.visibility='hidden';

        currentLayer = l;
        currentitem = mm;
        currentLayerNum = n;			
    }
    else if(currentLayer)
    {
        currentLayer.style.visibility='hidden';
        currentLayerNum = 0;
        currentitem = null;
        currentLayer = null;
	}
}

// Turn On Close Timer
function mclosetime()
{
    closeTimer = window.setTimeout(mclose, TimeOut);
}

// Cancel Close Timer
function mcancelclosetime()
{
    if(closeTimer)
    {
        window.clearTimeout(closeTimer);
        closeTimer = null;
    }
}

// Close Showed Layer
function mclose()
{
    if(currentLayer && noClose!=1)
    {
        currentLayer.style.visibility='hidden';
        currentLayerNum = 0;
        currentLayer = null;
        currentitem = null;
    }
    else
    {
        noClose = 0;
    }

    currentLayer = null;
    currentitem = null;
}

// Close Layer Then Click-out
document.onclick = mclose; 
