document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick; 
if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 
function norightclick(e) 
{ if (window.Event) 
  { if (e.which == 2 || e.which == 3) 
    { return false; } 
  } 
  else 
  { if (event.button == 2 || event.button == 3) 
    { event.cancelBubble = true 
      event.returnValue = false; 
      return false; 
    } 
  } 
} 
function nocontextmenu()
{ event.cancelBubble = true
  event.returnValue = false;
  return false;
}


function year() {
document.write('2010');
}


function view(par_zoom,par_zoom_dim) {
if(par_zoom_dim=='vert')
window.open('http://www.viaggiandoeuropa.com/foto.php?foto='+par_zoom,'ZOOM','toolbar=0,location=0,status=0,menubar=0,'+'scrollbars=0,resizable=0,width=300,height=400');
else
window.open('http://www.viaggiandoeuropa.com/foto.php?foto='+par_zoom,'ZOOM','toolbar=0,location=0,status=0,menubar=0,'+'scrollbars=0,resizable=0,width=600,height=400');
}


function contatti() {
window.open('emailform.html','contatti','toolbar=0,location=0,status=0,menubar=0,'+'scrollbars=0,resizable=0,width=600,height=480')
}


// preferiti
function lib_bwcheck(){ //quale browser
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.bw=(this.ie6 || this.ie5 || this.ie4)
	return this
}
var bw=new lib_bwcheck()
var bookmarkurl="http://www.viaggiandoeuropa.com/"
function preferiti(langue){
if (langue=='en')
var bookmarktitle="ViaggiandoEuropa.com; Your travel in Europe"
else
var bookmarktitle="ViaggiandoEuropa.com; Il tuo viaggio in Europa"
if (bw.ie)
{
	if (document.all)
	{
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
	}
}
else
{
if (langue=='en')
	alert("Please, Press Ctrl+D to add your bookmarks")
else
alert("Premi Ctrl+D per aggiungerci ai tuoi preferiti, grazie.")
}
}
