if (document.images) {

	img1on = new Image();
// active Images
	img1on.src = "images/buttons/home_on.gif";
	img12on = new Image();
	img12on.src = "images/buttons/about_on.gif";
	img3on = new Image();
	img3on.src = "images/buttons/mywork_on.gif";
	img4on = new Image();
	img4on.src = "images/buttons/courses_on.gif";
	img5on = new Image();
	img5on.src = "images/buttons/contact_on.gif";
	img6on = new Image();
	img6on.src = "images/buttons/whatis_on.gif";
	img7on = new Image();
	img7on.src = "images/buttons/stages_on.gif";
	img8on = new Image();
	img8on.src = "images/buttons/gallery_on.gif";
	img9on = new Image();
	img9on.src = "images/buttons/statement_on.gif";
	img10on = new Image();
	img10on.src = "images/buttons/history_on.gif";
	img11on = new Image();
	img11on.src = "images/buttons/top_on.gif";
	img13on = new Image();
	img13on.src = "images/buttons/batik_on.gif";
	img14on = new Image();
	img14on.src = "images/buttons/pandd_on.gif";

	img1off = new Image();
// inactive Images
	img1off.src = "images/buttons/home_off.gif";
	img12off = new Image();
	img12off.src = "images/buttons/about_off.gif";
	img3off = new Image();
	img3off.src = "images/buttons/mywork_off.gif";
	img4off = new Image();
	img4off.src = "images/buttons/courses_off.gif";
	img5off = new Image();
	img5off.src = "images/buttons/contact_off.gif";
	img6off = new Image();
	img6off.src = "images/buttons/whatis_off.gif";
	img7off = new Image();
	img7off.src = "images/buttons/stages_off.gif";
	img8off = new Image();
	img8off.src = "images/buttons/gallery_off.gif";
	img9off = new Image();
	img9off.src = "images/buttons/statement_off.gif";
	img10off = new Image();
	img10off.src = "images/buttons/history_off.gif";
	img11off = new Image();
	img11off.src = "images/buttons/top_off.gif";
	img13off = new Image();
	img13off.src = "images/buttons/batik_off.gif";
	img14off = new Image();
	img14off.src = "images/buttons/pandd_off.gif";
}

// Function to 'activate' images.

function imgOn(imgId) {
	if (document.images) {
		document[imgId].src = eval(imgId + "on.src");
	}
}

// Function to 'deactivate' images.

function imgOff(imgId) {
	if (document.images) {
		document[imgId].src = eval(imgId + "off.src");
	}
}