// creare un js a parte per l'array delle pagine
// seguendo la forma qui sotto
// -------------------------------
// var link_array = new Array();
// link_array[1] = 'a_01.html';
// link_array[2] = 'a_02.html';
// link_array[3] = 'a_03.html';
// -------------------------------
//
//
// IDs of next previous links
the_next_link = 'next_link';
the_previous_link = 'previous_link';
the_link_divider = 'next_previous_divider';
//
//
// skip fwd
function next() {
	set_position()
	count = count + 1;
	document.location.href = link_array[count];
}
// skip back
function previous() {
	set_position()
	count = count - 1;
	document.location.href = link_array[count];
}
window.onload = function() {
	if ((count + 1) >= link_array.length) {
		hide_item(the_next_link)
		hide_item(the_link_divider)
	}
	if ((count - 1) <= 0) {
		hide_item(the_previous_link)
		hide_item(the_link_divider)
	}
}
function hide_item(the_item)
{
  var elem, vis;
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(the_item);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[the_item];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[the_item];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}