if (document.images) {            // Active Images
	img1on = new Image();      
    img1on.src = "res/about_us_on.jpg"; 
	img2on = new Image();      
    img2on.src = "res/industrial_products_on.jpg"; 
	img3on = new Image();      
    img3on.src = "res/consumer_products_on.jpg"; 
	img4on = new Image();      
    img4on.src = "res/green_fuel_on.jpg"; 
	img5on = new Image();      
    img5on.src = "res/contact_us_on.jpg"; 
	
	
  
    img1off = new Image();      
    img1off.src = "res/about_us.jpg";  
	img2off = new Image();      
    img2off.src = "res/industrial_products.jpg"; 
	img3off = new Image();      
    img3off.src = "res/consumer_products.jpg"; 
	img4off = new Image();      
    img4off.src = "res/green_fuel.jpg"; 
	img5off = new Image();      
    img5off.src = "res/contact_us.jpg";
	
	

	
}



// 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 for image swap.
function imgSwapX(strTarget, imgName) {
	document[strTarget].src = imgName;
}


// PREVENT RIGHT CLICK
function fncULz() {
	// alert('This functionality has been disabled.');
	return false;
}



// Function for text expand/collapse (questionnaire)
function showHideTable(theTable,theImg)
{
if (document.getElementById(theTable).style.display == 'none')
  {
  document.getElementById(theTable).style.display = 'block';
  document.getElementById(theImg).src='res/minus.gif';
  }
  else
  {
  document.getElementById(theTable).style.display = 'none';
     document.getElementById(theImg).src='res/plus.gif';

  }
}

// -->


/* *********************************************** 
OPEN UP CENTERED POPUP WINDOW
*********************************************** */
function OpenPopUpWindow(strURL,strTitle)
{
	var text;
	var str;
	var intWidth = 350;
	var intHeight = 450;
	
	str = "";

	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - intWidth) / 2;
		var yc = (ah - intHeight) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}

	var objWindow = window.open(strURL, strTitle, "width=" + intWidth + ",height=" + intHeight + ",center,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0" + str);
}