function clear_status(){
	window.status = "";
}

function getSource(e){
	var ret;
	if(!e)
		var e = window.event;
	if(e.target)
		ret = e.target;
	else if(e.srcElement)
		ret = e.srcElement;
	if(ret.nodeType == 3)
		ret = ret.parentNode;
	return ret;
}

function mouseEnterImage(e){
	var img = getSource(e);
	var s = img.src.split('.');
	var ext = s.pop();
	img.src = s.join('.') + '_ovr.' + ext;
}

function mouseExitImage(e){
	var img = getSource(e);
	img.src = img.src.replace(/_ovr\./, '.');
}

function hasAncestorByID(o, id){
	var a = o;
	while(a){
		if(a.id == id)
			return 1;
		a = a.parentNode;
	}
	return 0;
}

function onLoad(){
	var as = document.getElementsByTagName("a");
for(var i = 0; i < as.length; ++i){
	var a = as[i];
	var li = a.parentNode;
	if(li.tagName.toLowerCase() == "li"){
		if(li.parentNode.className.search(/\bmenu\b/i) >= 0){
			li.onclick = new Function("window.location = '" + a.href + "'");
			li.onmouseover = new Function("window.status = '" + a.href + "'");
			li.onmouseout = clear_status;
		}
	}
}
as = document.getElementsByTagName("img");
for(var i = 0; i < as.length; ++i){
	var img = as[i];
	if((img.className.search(/\brollover\b/i) >= 0) || hasAncestorByID(img, 'adsright')){
		img.onmouseover = mouseEnterImage;
		img.onmouseout = mouseExitImage;
	}
}
}