function body_load(){
if(navigator.appName != "Microsoft Internet Explorer")
	{
	var fade_in = {type: 'opacity', from:0, to:100, step: 2, delay:5}
	$fx('#content').fxAdd(fade_in).fxRun(null, 1);

	var a = document.getElementsByTagName('a');
	  for(i=0; i<a.length; i++) {
		if(a[i].href.search(/.jpg/) == -1 && a[i].href.search(/#/) == -1 && a[i].href.search(/javascript/) == -1 && a[i].href.search(/.php/) == -1)
			a[i].setAttribute('onclick', 'body_unload(this.href);return false;');
	  }
	}
}

function body_unload(link){
var fade_out = {type: 'opacity', from:100, to:0, step: -2, delay:5}
var onfinish = function(){window.location.href = link;}
$fx('#content').fxAdd(fade_out).fxRun(null,1,onfinish);
}
