//*******************************
// 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('sunday','monday','tuesday','wednesday','thursday','friday','saturday');
	nameMth = new Array('january','february','march','april','may', 'june', 'july', 'august', 'september', 'october', 'november','december');
	myDoc.write('<span class="txtmd">'+ now.getDate() + " " + nameMth[now.getMonth()] + " " + year+'</span>');
}
	
var message="Text and images copyrighted. No use permitted"; 

// 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);
}
  function unFrame() {
    if (self != top)
      top.location.href = self.location.href;
}
  function unFrame() {
    if (self != top)
      top.location.href = self.location.href;
}