function MoveThumbs(way) {
  dim = 140;
  thumbsmax = 4;
  objects = document.getElementsByClassName('thumbnail');
  //thumbs = objects.size();
  thumbs = objects.length;
  startpos = $('scroll_box').getStyle("left");
  nullspace = dim * thumbsmax;
  scrollersize = (dim*thumbs) - nullspace;
  if(thumbs > thumbsmax){
	  if(way=='plus'){
		  if(startpos == "null" || startpos < "0px"){
			new Effect.MoveBy('scroll_box', 0, dim , {
				  duration: 0.4,  
				  transition: Effect.Transitions.sinoidal
			});
		  }
	  }else if(way=='minus'){
		  if($('scroll_box').style.left != "-"+scrollersize+"px"){
			new Effect.MoveBy('scroll_box', 0, - dim , {
				  duration: 0.4,  
				  transition: Effect.Transitions.sinoidal
			});
		  }
	  }
  }
}

function Delete(strGet) {
	if (confirm("Sicuro di voler eliminare questo elemento?")) {
		window.location=strGet;
		/*return (true);*/
	}/*else{
		return (false);
	}*/
}

function intercetta() {
  for (var i=0;i<document.links.length; i++)
    if (document.links[i].className=="external") {
      document.links[i].target="_blank";
	  document.links[i].title="apre il collegamento in una nuova finestra";
  } 
}
window.onload = intercetta;

//<![CDATA[
 // If you don't want to put nonstandard properties in your stylesheet, here's yet
 // another means of activating the script. This assumes that you have at least one
 // stylesheet included already in the document above this script.
 // To activate, delete the CSS rules above and uncomment below (remove /* and */ ).

 if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
  document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
 {
  //document.styleSheets[0].addRule('*', 'behavior: url(js/iepngfix.htc)');
  // Feel free to add rules for specific elements only, as above.
  // You have to call this once for each selector, like so:
  document.styleSheets[0].addRule('#header', 'behavior: url(js/iepngfix.htc)');
  document.styleSheets[0].addRule('#header img', 'behavior: url(js/iepngfix.htc)');
  document.styleSheets[0].addRule('.reserv', 'behavior: url(js/iepngfix.htc)');
//document.styleSheets[0].addRule('div', 'behavior: url(js/iepngfix.htc)');
 }
//]]>

//<![CDATA[
function load() {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(43.548980,11.044250), 15);
	var point = new GLatLng(43.548980,11.044250);
	map.addOverlay(new GMarker(point));
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
	function createMarker(point){
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<h3>Ente Nazionale Giovanni Boccaccio</h3><p>Via Boccaccio, 18 50052 Certaldo Alta (Firenze)</p>");
		});
		return marker;
	}
	map.addOverlay(createMarker(point));
  }
}
//]]>