<!--
function changeimage(percorso,targetimg) {
	if (document.images){
		document.images[targetimg].src=percorso
	}
}

function TargetBlank() {
  var i = 0;
  var collegamenti = document.links;
  var tot_links = collegamenti.length;
  for (i=0; i<tot_links; i++)
  {
    if (collegamenti[i].className=="blank_banner_box")
    {
	  collegamenti[i].target = "_blank";
	}
  }
}

//////////////////////////// disable right click //////////////////////////////
function clickIE4() {
	if(event.button==2)
		return false;
}

function clickNS4(e){
	if(document.layers||document.getElementById&&!document.all) {
		if(e.which==2||e.which==3)
			return false;
	}
}

function disableRightClick() {
	if(document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById) {
		document.onmousedown=clickIE4;
	}
	document.oncontextmenu=function() {
		return false;
	}
}
///////////////////////////////////////////////////////////////////////////////

function initMenu() {
	$$("#menu_v a").each(function(anItem) {
		anItem.observe('mouseover',moveForwardMenuItems);
	})
	$$("#menu_v a").each(function(anItem) {
		anItem.observe('mouseout',moveBackMenuItems);
	})
}

function adjustItemClasses() {
	$$("#menu_v a.active").each(function(anItem) {
		anItem.removeClassName('active');
	});
	$(current).addClassName('active');
	$(current).setStyle({width: '200px'});
}

function adjustBackItemClasses() {
	$$("#menu_v a.active").each(function(anItem) {
		anItem.removeClassName('active');
	});
	if($('active_item')) {
		$('active_item').addClassName('active');
	}
}

function moveForwardMenuItems() {	
	current=this.identify();
	if($('active_item')) {
		if(this!=$('active_item')) {							
			new Effect.Parallel([
				new Effect.Morph($(current),{style: "width: 270px; background-color: #E8BB33; color: #000000;",queue: 'end'}),
				new Effect.Morph($('active_item'),{style: "width: 200px; background-color: #E8CB3A; color: #666666;",queue: 'end'})
			],{duration: 0.3,beforeStart: adjustItemClasses});
		}
	}
	else {
		if($$("#menu_v a.active").length>0) {
			var theOther=$$("#menu_v a.active")[0];
			new Effect.Parallel([
				new Effect.Morph($(current),{style: "width: 270px; background-color: #E8BB33; color: #000000;",queue: 'end'}),
				new Effect.Morph($(theOther),{style: "width: 200px; background-color: #E8CB3A; color: #666666;",queue: 'end'})
			],{duration: 0.3,beforeStart: adjustItemClasses});
		}
		else {
			new Effect.Morph($(current),{style: "width: 270px; background-color: #E8BB33; color: #000000;",duration: 0.3,beforeStart: adjustItemClasses});
		}
	}		
}

function moveBackMenuItems() {
	current=this.identify();
	if($('active_item')) {
		if(this!=$('active_item')) {
			new Effect.Parallel([
				new Effect.Morph($('active_item'),{style: "width: 270px; background-color: #E8BB33; color: #000000;",queue: 'end'}),
				new Effect.Morph($(current),{style: "width: 200px; background-color: #E8CB3A; color: #666666;",queue: 'end'})
			],{duration: 0.3,beforeStart: adjustBackItemClasses});
		}		
	}
	else {		
		new Effect.Morph($(current),{style: "width: 200px; background-color: #E8CB3A; color: #666666;",duration: 0.3,beforeStart: adjustBackItemClasses});
	}
}

///////////////////////////////////////////////////////////////////////////////
Event.observe(window,'load',function() {
	disableRightClick();
	TargetBlank();
	initMenu();
});

//-->
