if (document.images) {            // Active Images
	img1on = new Image();      
    img1on.src = "/_mit/res/north-america/english/nav_ready_on2.gif"; 
	img2on = new Image();      
    img2on.src = "/_mit/res/north-america/english/nav_reliable_on2.gif"; 
	img3on = new Image();      
    img3on.src = "/_mit/res/north-america/english/nav_onthemoney_on2.gif"; 
	
	img4on = new Image();      
    img4on.src = "/_mit/res/north-america/english/subnav_red_products_on.gif"; 
	img5on = new Image();      
    img5on.src = "/_mit/res/north-america/english/subnav_red_info_on.gif";
	
	img6on = new Image();      
    img6on.src = "/_mit/res/north-america/english/subnav_rel_testimonials_on.gif"; 
	img7on = new Image();      
    img7on.src = "/_mit/res/north-america/english/subnav_rel_environmental_on.gif";
	img8on = new Image();      
    img8on.src = "/_mit/res/north-america/english/subnav_rel_nationalacco_on.gif";
	img9on = new Image();      
    img9on.src = "/_mit/res/north-america/english/subnav_rel_dealerservice_on.gif";
	
	
	img10on = new Image();      
    img10on.src = "/_mit/res/north-america/english/subnav_onmon_specialo_on.gif";
	img11on = new Image();      
    img11on.src = "/_mit/res/north-america/english/subnav_onmon_finan_on.gif";
	img12on = new Image();      
    img12on.src = "/_mit/res/north-america/english/subnav_onmon_cost_on.gif";
	
	img13on = new Image();      
    img13on.src = "/_mit/res/north-america/english/sidnav_tool_on.gif";
	img14on = new Image();      
    img14on.src = "/_mit/res/north-america/english/sidnav_dealer_on.gif";
	img15on = new Image();      
    img15on.src = "/_mit/res/north-america/english/sidnav_about_on.gif";
	
	
	
	img16on = new Image();      
    img16on.src = "/_mit/res/north-america/english/sidnav_con_on.gif";
	img17on = new Image();      
    img17on.src = "/_mit/res/north-america/english/sidnav_news_on.gif";
	img18on = new Image();      
    img18on.src = "/_mit/res/north-america/english/sidnav_mhi_on.gif";
	
	img19on = new Image();      
    img19on.src = "/_mit/res/north-america/english/sidnav_howtowin_on.gif";
	
	
	
    img1off = new Image();      
    img1off.src = "/_mit/res/north-america/english/nav_ready.gif"; 
	img2off = new Image();     
    img2off.src = "/_mit/res/north-america/english/nav_reliable.gif"; 
	img3off = new Image();      
    img3off.src = "/_mit/res/north-america/english/nav_onthemoney.gif";
	
	img4off = new Image();      
    img4off.src = "/_mit/res/north-america/english/subnav_red_products.gif"; 
	img5off = new Image();      
    img5off.src = "/_mit/res/north-america/english/subnav_red_info.gif";
	
	img6off = new Image();      
    img6off.src = "/_mit/res/north-america/english/subnav_rel_testimonials.gif"; 
	img7off = new Image();      
    img7off.src = "/_mit/res/north-america/english/subnav_rel_environmental.gif";
	img8off = new Image();      
    img8off.src = "/_mit/res/north-america/english/subnav_rel_nationalaccounts.gif";
	img9off = new Image();      
    img9off.src = "/_mit/res/north-america/english/subnav_rel_dealerservice.gif";
	
	
	img10off = new Image();      
    img10off.src = "/_mit/res/north-america/english/subnav_onmon_specialo.gif";
	img11off = new Image();      
    img11off.src = "/_mit/res/north-america/english/subnav_onmon_financial.gif";
	img12off = new Image();      
    img12off.src = "/_mit/res/north-america/english/subnav_onmon_cost.gif";
	
	img13off = new Image();      
    img13off.src = "/_mit/res/north-america/english/sidnav_tool.gif";
	img14off = new Image();      
    img14off.src = "/_mit/res/north-america/english/sidnav_dealer.gif";
	img15off = new Image();      
    img15off.src = "/_mit/res/north-america/english/sidnav_about.gif";
	
	img16off = new Image();      
    img16off.src = "/_mit/res/north-america/english/sidnav_con.gif";
	img17off = new Image();      
    img17off.src = "/_mit/res/north-america/english/sidnav_news.gif";
	img18off = new Image();      
    img18off.src = "/_mit/res/north-america/english/sidnav_mhi.gif";
	
	img19off = new Image();      
    img19off.src = "/_mit/res/north-america/english/sidnav_howtowin.gif";
	
		
		
	img100off = new Image();      
    img100off.src = "/_mit/res/north-america/english/cleardot.gif";	
	
	
	
	
	
	
	img101on = new Image();      
    img101on.src = "/_mit/res/north-america/english/pronav_prodcat1_on.gif";
	img102on = new Image();      
    img102on.src = "/_mit/res/north-america/english/pronav_prodcat2_on.gif";
	img103on = new Image();      
    img103on.src = "/_mit/res/north-america/english/pronav_prodcat3_on.gif";
	img104on = new Image();      
    img104on.src = "/_mit/res/north-america/english/pronav_prodcat4_on.gif";
	img105on = new Image();      
    img105on.src = "/_mit/res/north-america/english/pronav_prodcat5_on.gif";
	
	img101off = new Image();      
    img101off.src = "/_mit/res/north-america/english/pronav_prodcat1.gif";
	img102off = new Image();      
    img102off.src = "/_mit/res/north-america/english/pronav_prodcat2.gif";
	img103off = new Image();      
    img103off.src = "/_mit/res/north-america/english/pronav_prodcat3.gif";
	img104off = new Image();      
    img104off.src = "/_mit/res/north-america/english/pronav_prodcat4.gif";
	img105off = new Image();      
    img105off.src = "/_mit/res/north-america/english/pronav_prodcat5.gif";
	
	
	img200on = new Image();      
    img200on.src = "/_mit/res/north-america/english/sidenav_prodfinder_on.gif";
	img200off = new Image();      
    img200off.src = "/_mit/res/north-america/english/sidenav_prodfinder.gif";
	
	
}



// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}

// Function to open new window
function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		nav_logo = newImage("/_mit/res/north-america/english/nav_logo.jpg");
		
		preloadFlag = true;
	}
}


// TRACKING CODE
// var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
// document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

// var pageTracker = _gat._getTracker("UA-3335523-1");
// pageTracker._trackPageview();


// -->


/* *********************************************
FORM VALIDATION ::: CONTACT US 
********************************************* */
function formValidatorFrmContact(){
	// Make quick references to our fields
	var FirstName = document.getElementById('FirstName');
	var LastName = document.getElementById('LastName');
		var CompanyName = document.getElementById('CompanyName');
	var Email = document.getElementById('Email');
	var PostCode = document.getElementById('PostCode');
	var Phone = document.getElementById('Phone');
		var Comments = document.getElementById('Comments');

	var Address = document.getElementById('Address');
	var City = document.getElementById('City');
	var State = document.getElementById('State');
	var Country = document.getElementById('Country');
		
		
	// Check each input in the order that it appears in the form!
	if(notEmpty(FirstName, "Please enter a valid First Name.")){
		if(notEmpty(LastName, "Please enter a valid Last Name.")){


if(notEmpty(Address, "Please enter a valid Address.")){
if(notEmpty(City, "Please enter a valid City.")){
if(notEmpty(State, "Please enter a valid State.")){
if(notEmpty(Country, "Please enter a valid Country.")){

			if(notEmpty(Phone, "Please enter a valid Phone.")){
				if(emailValidator(Email, "Please enter a valid E-mail Address.")){
					if(notEmpty(PostCode, "Please enter a valid Zip Code.")){
						return true;
					}
				}
			}

}
}
}
}
			

		}
	}
	return false;
}


/* *********************************************
FORM VALIDATION ::: REQUEST BROCHURE
********************************************* */
function formValidatorFrmRequestBrochure(){
	// Make quick references to our fields
	var FirstName = document.getElementById('FirstName');
	var LastName = document.getElementById('LastName');
	var JobTitle = document.getElementById('JobTitle');
	var CompanyName = document.getElementById('CompanyName');
	var Email = document.getElementById('Email');
	var Address = document.getElementById('AddressLine1');
	var City = document.getElementById('City');
	var State = document.getElementById('State');
	var PostCode = document.getElementById('PostCode');
	var Country = document.getElementById('Country');
	var Phone = document.getElementById('Phone');
	var HowDidYouHear = document.getElementById('HowDidYouHear');
	var Comments = document.getElementById('Comments');

	// Check each input in the order that it appears in the form!
	if(notEmpty(FirstName, "Please enter a valid First Name.")){
		if(notEmpty(LastName, "Please enter a valid Last Name.")){
			if(notEmpty(JobTitle, "Please enter a valid Job Title.")){
				if(notEmpty(CompanyName, "Please enter a valid Company Name.")){
					if(emailValidator(Email, "Please enter a valid Email Address.")){
						if(notEmpty(Address, "Please enter a valid Address.")){
							if(notEmpty(City, "Please enter a valid City.")){
								if(notEmpty(State, "Please enter a valid State or Province.")){
									if(notEmpty(PostCode, "Please enter a valid Postal Code.")){
										if(notEmpty(Country, "Please enter a valid Country.")){
											if(notEmpty(Phone, "Please enter a valid Phone Number.")){
												if(notEmpty(HowDidYouHear, "Please enter a reply for How Did You Hear About Us.")){
													if(notEmpty(Comments, "Please enter a reply for General Information or Specific Requests.")){
														return true;
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	return false;
}


/* *********************************************
CORE VALIDATION FUNCTIONS ::: DO NOT EDIT ::: BEGIN
********************************************* */
function notEmpty(elem, helperMsg){
	if(elem.value.length == 0){
		alert(helperMsg);
		elem.focus(); // set the focus to this input
		return false;
	}
	return true;
}

function isNumeric(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function isAlphabet(elem, helperMsg){
	var alphaExp = /^[a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function lengthRestriction(elem, min, max){
	var uInput = elem.value;
	if(uInput.length >= min && uInput.length <= max){
		return true;
	}else{
		alert("Please enter between " +min+ " and " +max+ " characters");
		elem.focus();
		return false;
	}
}

function madeSelection(elem, helperMsg){
	if(elem.value == "Please Choose"){
		alert(helperMsg);
		elem.focus();
		return false;
	}else{
		return true;
	}
}

function emailValidator(elem, helperMsg){
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	if(elem.value.match(emailExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

/* *********************************************
CORE VALIDATION FUNCTIONS ::: DO NOT EDIT ::: END
********************************************* */
