var status = 0;
var status2;
var xpos;
var ypos;
var rad_val;
document.onmousemove = getMouseXY;
function show_div(id)
{
	//alert(id);
	if (( id != 'my_vote') && ( id != '0'))
	{
		status2 = id;
	}
	status = id;
	if (( id == '0'))
	{
		
		 window.setTimeout("hide_div('" + id + "')", 1000);
	}
	else
	{
		if( id != 'my_vote')
		{
			//document.getElementById("my_vote_rated").innerHTML = "";
			d = document.getElementById("vot_tag");
			yypos = ypos + 2;
			xxpos = xpos - 75;
			d.style.left = xxpos + 'px';
			d.style.top = yypos + 'px';
			d.style.display = "block";
		}

	}
}
function hide_div(id)
{
	if (( id == '0') && ( status == '0'))
	{
		d = document.getElementById("vot_tag");
		d.style.display = "none";
	}
	else
	{
		show_div("my_vote");
	}
}

var tempX = 0
var tempY = 0

var IE = document.all?true:false

if (!IE) document.captureEvents(Event.MOUSEMOVE)

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  xpos = tempX
  ypos = tempY
  //alert(tempX);
}

function add_rating(note)
{
	//alert(note);
	//alert(status2)
	ajax_loadContent('my_vote_rated','/libs/php/voteaza_tagu.php?id=' + status2 + '&nota=' + note);
}
function sterge_tagul(idss)
{
	//alert(note);
	//alert(status2)
	ajax_loadContent('my_vote_rated','/libs/php/sterge_tagu.php?id=' + status2 + '&fel='+idss);
}