function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<array.length; i+=2) {
			document[array[i]].src = array[i+1];
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])      changeImagesArray(toggleImages.arguments[i+1]);
	}
}

var selected = '';
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		bnr08_08_o = newImage(basePath + "bnr08-08_o.gif");
		bnr08_08_o011 = newImage(basePath + "bnr08-08_o-11.gif");
		bnr08_08_s = newImage(basePath + "bnr08-08_s.gif");
		bnr08_09_s = newImage(basePath + "bnr08-09_s.gif");
		bnr09_09_o = newImage(basePath + "bnr09-09_o.gif");
		bnr09_09_o016 = newImage(basePath + "bnr09-09_o-16.gif");
		bnr09_09_s = newImage(basePath + "bnr09-09_s.gif");
		bnr09_10_s = newImage(basePath + "bnr09-10_s.gif");
		bnr10_10_o = newImage(basePath + "bnr10-10_o.gif");
		bnr10_10_o021 = newImage(basePath + "bnr10-10_o-21.gif");
		bnr10_10_s = newImage(basePath + "bnr10-10_s.gif");
		bnr10_11_s = newImage(basePath + "bnr10-11_s.gif");
		bnr11_11_o = newImage(basePath + "bnr11-11_o.gif");
		bnr11_11_o026 = newImage(basePath + "bnr11-11_o-26.gif");
		bnr11_11_s = newImage(basePath + "bnr11-11_s.gif");
		bnr11_12_s = newImage(basePath + "bnr11-12_s.gif");
		bnr12_12_o = newImage(basePath + "bnr12-12_o.gif");
		bnr12_12_s = newImage(basePath + "bnr12-12_s.gif");
		preloadFlag = true;
	}
	
	selectActiveButton();
	
}

function homeOnMouseOver() {
	toggleImages('bnr09', new Array('bnr08', basePath + 'bnr08-08_o.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08-08_o-11.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08-08_o-11.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08-08_o-11.gif'), '', new Array('bnr08', basePath + 'bnr08-08_o-11.gif'));
	return true;
}

function homeOnMouseOut() {
	toggleImages('bnr08', new Array('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr09', new Array('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif',
	'bnr12', basePath + 'bnr12.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif',
	'bnr12', basePath + 'bnr12.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif'), '', new Array('bnr08', basePath + 'bnr08.gif'));
	return true;
}

function homeOnMouseUp() {
	selected='bnr08';
	changeImages('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif');
	return true;
}

function profilOnMouseOver() {
	toggleImages('bnr08', new Array('bnr09', basePath + 'bnr09-09_o.gif'), 'bnr10', new Array('bnr09', basePath + 'bnr09-09_o-16.gif'), 'bnr11', new Array('bnr09', basePath + 'bnr09-09_o.gif'), 'bnr12', new Array('bnr09', basePath + 'bnr09-09_o.gif'), '', new Array('bnr09', basePath + 'bnr09-09_o.gif'));
	return true;
}

function profilOnMouseOut() {
	toggleImages('bnr08', new Array('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr09', new Array('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif'), '', new Array('bnr09', basePath + 'bnr09.gif'));
	  return true;
}

function profilOnMouseUp() {
	selected='bnr09';
	changeImages('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif');
	return true;
}

function projectsOnMouseOver() {
	toggleImages('bnr08', new Array('bnr10', basePath + 'bnr10-10_o.gif'), 'bnr09', new Array('bnr10', basePath + 'bnr10-10_o.gif'), 'bnr11', new Array('bnr10', basePath + 'bnr10-10_o-21.gif'), 'bnr12', new Array('bnr10', basePath + 'bnr10-10_o.gif'), '', new Array('bnr10', basePath + 'bnr10-10_o.gif'));
	return true;
}

function projectsOnMouseOut() {
	toggleImages('bnr08', new Array('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr09', new Array('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif'), '', new Array('bnr10', basePath + 'bnr10.gif'));
	return true;
}

function projectsOnMouseUp() {
	selected='bnr10';
	changeImages('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif');
	return true;
}		

function contactOnMouseOver() {
	toggleImages('bnr08', new Array('bnr11', basePath + 'bnr11-11_o.gif'), 'bnr09', new Array('bnr11', basePath + 'bnr11-11_o.gif'), 'bnr10', new Array('bnr11', basePath + 'bnr11-11_o.gif'), 'bnr12', new Array('bnr11', basePath + 'bnr11-11_o-26.gif'), '', new Array('bnr11', basePath + 'bnr11-11_o.gif'));
	return true;
}

function contactOnMouseOut() {
	toggleImages('bnr08', new Array('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr09', new Array('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif',
	'bnr12', basePath + 'bnr12.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif'), '', new Array('bnr11', basePath + 'bnr11.gif'));
	return true;
}

function contactOnMouseUp() {
	selected='bnr11';
	changeImages('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif', 'bnr12', basePath + 'bnr12.gif');
	return true;
}

function customersOnMouseOver() {				
	toggleImages('bnr08', new Array('bnr12', basePath + 'bnr12-12_o.gif'), 'bnr09', new Array('bnr12', basePath + 'bnr12-12_o.gif'), 'bnr10', new Array('bnr12', basePath + 'bnr12-12_o.gif'), 'bnr11', new Array('bnr12', basePath + 'bnr12-12_o.gif'), '', new Array('bnr12', basePath + 'bnr12-12_o.gif'));
	return true;
}

function customersOnMouseOut() {				
	toggleImages('bnr08', new Array('bnr08', basePath + 'bnr08-08_s.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr09', new Array('bnr08', basePath + 'bnr08-09_s.gif', 'bnr09', basePath + 'bnr09-09_s.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr10', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09-10_s.gif', 'bnr10', basePath + 'bnr10-10_s.gif', 'bnr11', basePath + 'bnr11.gif', 'bnr12', basePath + 'bnr12.gif'), 'bnr11', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10-11_s.gif', 'bnr11', basePath + 'bnr11-11_s.gif',
		'bnr12', basePath + 'bnr12.gif'), 'bnr12', new Array('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif'), '', new Array('bnr12', basePath + 'bnr12.gif'));
	return true;
}

function customersOnMouseUp() {				
	selected='bnr12';
	changeImages('bnr08', basePath + 'bnr08.gif', 'bnr09', basePath + 'bnr09.gif', 'bnr10', basePath + 'bnr10.gif', 'bnr11', basePath + 'bnr11-12_s.gif', 'bnr12', basePath + 'bnr12-12_s.gif');
	return true;
}		
