var SPANtag = null;
var Atag = null;
function changeLink(tag) {
	mouseout(tag);
	if(SPANtag != null) // Replace SPAN with original A
		SPANtag.parentNode.replaceChild(Atag, SPANtag);
	else {
		SPANtag = document.createElement("SPAN");
		SPANtag.style.color = "wheat";
		SPANtag.style.font = ".8em sans-serif";
		SPANtag.style.cursor = "pointer";
	}
	Atag = tag; // Save Atag for later replacement
	SPANtag.innerHTML = "["+tag.innerHTML+"]"; // Give the SPAN tag a text
	tag.parentNode.replaceChild(SPANtag, Atag); // Replace original A with SPAN
}
function changeSrc(dv, src) {
	document.getElementsByName("RSSIFRAME")[0].src = src;
	dv.mouseoutcolor = "#CCC";
}
function mouseover(e) {
	e.style.color = "#9C6";
}
function mouseout(e) {
	if(e.mouseoutcolor)
		e.style.color = e.mouseoutcolor;
	else
		e.style.color = "#CCC";
}
function initlinks() {
	home = document.getElementById("HOMELINK"); // Get first link
	// Simulate a click on the first link
	if(IE)
		home.click();
	else {
		var evt = document.createEvent("MouseEvents");
		evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
		home.dispatchEvent(evt);
	}
}
