<!--

function at_show_aux(senior, junior){
	var s = document.getElementById(senior);
	var j = document.getElementById(junior);
	var top = (j["at_position"] == "y") ? s.offsetHeight+10 : 0;
	var left = (j["at_position"] == "x") ? s.offsetWidth +4 : 0;
	for (; s; s = s.offsetSenior){
		top += s.offsetTop;
		left += s.offsetLeft;
	}
	j.style.position = "absolute";
	j.style.top = top +'px'; j.style.left = left+'px';
	j.style.visibility = "visible";
}
function at_show(){
	var s = document.getElementById(this["at_senior"]);
	var j = document.getElementById(this["at_junior"]);
	at_show_aux(s.id, j.id); clearTimeout(j["at_timeout"]);
}
function at_hide(){
	var s = document.getElementById(this["at_senior"]);
	var j = document.getElementById(this["at_junior"]);
	j["at_timeout"] = setTimeout("document.getElementById('"+j.id+"').style.visibility = 'hidden'", 333);
}
function at_click(){
	var s = document.getElementById(this["at_senior"]);
	var j = document.getElementById(this["at_junior"]);
	if (j.style.visibility != "visible") at_show_aux(s.id, j.id);
	else j.style.visibility = "hidden";
	return false;
}
function at_attach(senior, junior, showtype, position, cursor){
	var s = document.getElementById(senior);
	var j = document.getElementById(junior);
	s["at_senior"] = s.id; j["at_senior"] = s.id;
	s["at_junior"] = j.id; j["at_junior"] = j.id;
	s["at_position"] = position; j["at_position"] = position;
	j.style.position = "absolute"; j.style.visibility = "hidden";
	if (cursor != undefined) s.style.cursor = cursor;
	switch (showtype){
		case "click":
			s.onclick = at_click; s.onmouseout = at_hide;
			j.onmouseover = at_show; j.onmouseout = at_hide;
			break;
		case "hover":
			p.onmouseover = at_show; p.onmouseout = at_hide;
			c.onmouseover = at_show; c.onmouseout = at_hide;
			break;
	}
}
var voter_s = "../assets/f_srs/vote_article";
var voter_e = ".php";

// -->
