		// add mouse events to each menu item to change the color of the text of active item
//		$$('#menubar img').each( // for english pages 
//			function(s){
//				this.moimg = new Image(); this.moimg.src = 'uploads/images/b_' + this.name + '_mo.png';
//				s.onmouseover = function() {
//					this.src = 'uploads/images/b_' + this.name + '_mo.png';					
//				};
//				s.onmouseout = function() {
//					this.src = 'uploads/images/b_' + this.name + '.png';
//				}
//			}
//		)
//		$$('#menubar_heb img').each( // for hebrew pages 
//			function(s){
//				this.moimg = new Image(); this.moimg.src = 'uploads/images/b_' + this.name + '_heb_mo.png';
//				s.onmouseover = function() {
//					this.src = 'uploads/images/b_' + this.name + '_heb_mo.png';					
//				};
//				s.onmouseout = function() {
//					this.src = 'uploads/images/b_' + this.name + '_heb.png';
//				}
//			}
//		)
		// code to rotate the main header banner
		$('pic2').style.display = 'none';
		$('pic3').style.display = 'none';
		setTimeout(function(){
			$('pic1').fade({ duration: 2.0 });
			$('pic2').appear({ duration: 2.0 });
		}, 2000);
		setTimeout(function(){
			$('pic2').fade({ duration: 2.0 });
			$('pic3').appear({ duration: 2.0 });
		}, 6000);
		setTimeout(function(){
			$('pic3').fade({ duration: 2.0 });
			$('pic1').appear({ duration: 2.0 });
		}, 10000);
		setInterval(function(){
			setTimeout(function(){
				$('pic1').fade({ duration: 2.0 });
				$('pic2').appear({ duration: 2.0 });
			}, 2000);
			setTimeout(function(){
				$('pic2').fade({ duration: 2.0 });
				$('pic3').appear({ duration: 2.0 });
			}, 6000);
			setTimeout(function(){
				$('pic3').fade({ duration: 2.0 });
				$('pic1').appear({ duration: 2.0 });
			}, 10000);
		}, 12000);
		// code to hide the newsletter signup box and reshow on mouseover
        if ($('getnewsletter')) {
            n = $('getnewsletter');
        } else {
            n = $('getnewsletter_heb');
        }
		n.style.top = '205px';
		n.style.height = '70px';
		n.onmouseover = function() {
			//if (this.em != undefined) { this.em.cancel(); }
			//this.style.top = '205px';
			//this.em = new Effect.Move('getnewsletter', { x: 0, y: -35, mode: 'relative' });
			this.style.top = '170px';
			this.style.height = '99px';
		};
	 	n.onmouseout = function() {
			//if (this.em != undefined) { this.em.cancel(); }
			//this.style.top = '170px';
	 		//this.em = new Effect.Move('getnewsletter', { x: 0, y: 35, mode: 'relative' });
	 		this.style.top = '205px';
	 		this.style.height = '70px';
	 	};
		// code to remove and replace prompt text in email box
		e = $('emaile');
		e.onfocus = function() {
			if (this.value == 'Your email here') { 
				this.value = '';
				this.style.color = 'black'; 
			};
		};
		e.onblur = function() {
			if (this.value == '') {
				this.value = 'Your email here';
				this.style.color = 'gray';
			};
		};
		// code to add mouse click event to the signup button
//		$('nlsignup').onclick = function() {
//			new Ajax.Request('nlregister.php?email=' + $('nlemail').value, {
//				method: 'get',
//				onSuccess: function(transport) {
//					$('nlresponse').innerHTML = transport.responseText;
//				},
//				onFailure: function() {
//					$('nlresponse').innerHTML += 'Failed.';
//				}
//			});
//			return false;
//		};
//