var heading = null;
var which_idx = 0;
var is_big = 0;

function nextResult(milliseconds)
{
    window.setInterval("changeResult()", milliseconds)
}
	
function changeResult()
{
    var current = results_index;
    var next = results_index + 1;
    var current_id;
    var next_id;
    
    if  (next > results_found)
    {
        next = 1;
    }
    results_index = next;
    
    current_id = 'RESULTS_ID'+ current;
    next_id = 'RESULTS_ID'+ next;
    document.getElementById(current_id).className = 'results_hide';
    document.getElementById(next_id).className = 'results_show';
    return;   
}

function changePosition() {
 var x = Math.random()*500
 var y = Math.random()*550
 if (y < 150)
 y = 150;
 if (y > 550)
 y = 550;
 
 y = y - 200;
 
 if (x < 20)
 x = 20;
 if (x > 500)
 x = 500;
 
 x = x - 300;
 if(document.getElementById)
  heading = document.getElementById("moveme")
 else if(navigator.appName == "Microsoft Internet Explorer")
  heading = document.all.item("moveme")
 else if(document.layers)
  heading = document.layers["moveme"]
 if(heading != null) {
  if(heading.style == null) { // Navigator 4
   heading.left = x+'px';
   heading.top = y+'px';
  }else if(heading.style.left != null) { // DOM-capable
   heading.style.left = x+'px';
   heading.style.top = y+'px';
  }else{ // IE 4
   heading.style.posLeft = x+'px';
   heading.style.posTop = y+'px';
  }
 }
}

