		var arrN = new Array();
		var arrO = new Array();
		var arrImgList = new Array('home','about_us','album','culture','whats_news','KYA','recipes','events','vani','soiriki','contact','related');
		var baseLocation = '/images/menu/';
		var imgExtension = '.gif';

		if(document.images) {
			for(i=0; i<arrImgList.length;i++) {
				arrN[i]		= new Image;
				arrN[i].src = baseLocation + arrImgList[i] + '_n' + imgExtension;
				arrO[i]		= new Image;
				arrO[i].src = baseLocation + arrImgList[i] + '_o' + imgExtension;
			}
		}
		function move_over(img_id) {
			if(document.images) {
				document.images[arrImgList[img_id]].src = arrO[img_id].src;
			}
		}
		function move_out (img_id) {
			window.status = '';
			if(document.images) {
				document.images[arrImgList[img_id]].src = arrN[img_id].src;
			}
		}

		function newPhotoWin(winHeight,winWidth,imgLocation) {
			photoWin = window.open(imgLocation, "photoWin", 'toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=no,' + 'width=' + winWidth + ',height=' + winHeight);
		}

		function addRole(from,to) {
			for (var i=0; i<from.options.length; i++) {
				var o = from.options[i];
				if (o.selected) {
					if (! existRole(to,o.value) ) {
						to.options[to.options.length] = new Option( o.text, o.value, false, false);
					}
				}
			}
			selectAllRoles(to);
		}

		function existRole (obj, role) {
			for (var i=0; i<obj.options.length; i++) {
				if (obj.options[i].value  == role) {
					return true;	
				}
			}
			return false;
		}

		function delRole(from) {
			for (var i=(from.options.length-1); i>=0; i--) {
				var o = from.options[i];
				if (o.selected) {
					from.options[i] = null;
				}
			}
			selectAllRoles(from);
		}

		function selectAllRoles(obj) {
			for (var i=0; i<obj.options.length; i++) {
				obj.options[i].selected = true;
			}			
		}
