//*******************************
// site by Margherita spa
// code by chocLABS inc
//*******************************

// global variables
var myDoc=document

// purpose: To navigate to the URL contained in the value of the option
// usage: doesUrl(this) 
function doesUrl(obj) {
		if (obj.selectedIndex != 0) 
		location.href=obj.options[obj.selectedIndex].value;
}


// write the date in Italian
function doesDate() {
	var now = new Date();
	var year= now.getYear();if (year < 1000) year += 1900;
	nameDay = new Array('zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag');
	nameMth = new Array('gennaio','febbraio','marzo','aprile','maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre','dicembre');
	myDoc.write('<span class="text">'+ now.getDate() + " " + nameMth[now.getMonth()] + " " + year+'</span>');
}
	
var message="Le immagini e i testi di Adversus sono protetti da Copyright. Non è consentito ripubblicarli su altri siti, giornali, magazines senza esplicito consenso scritto. Non fate i furbi perchè il diritto d'autore è tutelato anche su Internet. Se volete scriverci andate alla pagina contatti dove troverete le informazioni che vi servono per scriverci."; 

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) { 
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}