function collega(nr){
	if (nr==1){
		parent.location.href="Parco.html"
	}
    if (nr==2){
		parent.location.href="Riserve.html"
	}
}


  function inviapagina() 
  { 
    mail_str = "mailto:?subject="+document.title; 
    mail_str += "&body=Ecco una pagina web interessante: " + document.title+ " - "; 
    mail_str += "Questo e' il link: "+location.href+"\n"; 
    location.href = mail_str; 
  }
  
  function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) /4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function show(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='visible';
         document.getElementById(object).style.display='block';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all) {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'visible';
    }
}

function hide(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='hidden';
         document.getElementById(object).style.display='none';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}
if (document.getElementById) { document.write('<style>.article {position:absolute;visibility:hidden;display:none}</style>'); }




//n6,ie = (document.getElementById) ? 1:0
//n4 = (document.layers) ? 1:0
//ie = (document.all) ? 1:0


function initialize() {
	block = document.getElementById("blockDiv").style
	block.xpos = parseInt(block.left)
}


function slide() {
	if (block.xpos < 0) {
		block.xpos += 1
		block.left = block.xpos
		setTimeout("slide()",30)
	}
	if (block.xpos == 0) {
		block.xpos = -800
		block.left = block.xpos
	}
}

function restart() {
	block.xpos = -800
	block.left = block.xpos
}

function muovi(obj,x,y) {
	obj.xpos = x
	obj.ypos = y
	obj.left = obj.xpos
	obj.top = obj.ypos
}

function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)
 {
   // www.timbooker.com
   // www.saltstonemedia.co.uk

	if (fullScreen)
	 {
		targetWidth = screen.availWidth;
		targetHeight = screen.availHeight;
	 }

	if (windowWidth < targetWidth) windowWidth += widthMod;
	if (windowHeight < targetHeight) windowHeight += heightMod;

	windowLeft = (screen.availWidth / 2) - (windowWidth / 2);
	windowTop = (screen.availHeight / 3) - (windowHeight / 3);

	top.window.resizeTo(windowWidth,windowHeight);
	top.window.moveTo(windowLeft,windowTop);

	if (windowWidth < targetWidth || windowHeight < targetHeight)
		setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',1);
 }