// JavaScript Document




// rollover script


window.addEvent('domready', function(){
	$$('#nav li a img').each(function(img){
		var src = img.src;
		var newSrc = src.replace('.gif', '_on.gif');
		var i = new Image();
		i.src = newSrc;
		img.addEvent('mouseover', function(){
			this.src = this.src.replace('.gif', '_on.gif');
		});
		img.addEvent('mouseout', function(){
			this.src = this.src.replace('_on', '');
		});
	});




// make all external links open in new window

	var currentUrl = this.location.hostname;
	$$('a').each(function(l){
		if( l.hostname != currentUrl ){
			l.addEvent('click', function(e){
				new Event(e).stop();
				window.open(this.href);
			});
		}
	});


});