function protect(e) {
alert("Sorry, image is not available.\rAttenzione, l'immagine non puo' essere scaricata.");
return false;
}

function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = protect;
}


function duet(nr){
	if (nr==1){
		parent.menu.location.href="MenuAzienda.html"
		parent.pagine.location.href="Azienda.html"
	}
     if (nr==2){
		parent.menu.location.href="MenuProdotti.html"
		parent.pagine.location.href="prodotti/Prodotti.html"
	}
     if (nr==3){
		parent.menu.location.href="MenuProdotti.html"
		parent.pagine.location.href="prodotti/Gamma_Panelvit.html"
	}
}


function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}



//n6,ie = (document.getElementById) ? 1:0
//n4 = (document.layers) ? 1:0
//ie = (document.all) ? 1:0


function initialize() {
	block = document.getElementById("blockDiv").style
	block.ypos = parseInt(block.top)
}


function slide() {
	if (block.ypos > -655) {
		block.ypos -= 1
		block.top = block.ypos
		settaggio = setTimeout("slide()",30)
	}
	if (block.ypos == -655) {
		block.ypos = -655
		block.top = block.ypos
	}
}

function restart() {
	block.ypos = -1000
	block.top = block.ypos
	}

function noScroll(){
      clearTimeout(settaggio)
      }

function scendi(){
	if (block.ypos < 0) {
      		block.ypos += 10
		block.top = block.ypos
		scendere = setTimeout("scendi()",30)
	}
	if (block.ypos == 0) {
		clearTimeout(scendi)
	}
		}

function noscendi(){
      clearTimeout(scendere)
      }

function sali(){
	if (block.ypos > -655) {
      		block.ypos -= 10
		block.top = block.ypos
		salire = setTimeout("sali()",30)
		}
}


function nosali(){
      clearTimeout(salire)
      }
		
function moveTo(obj,x,y) {
	obj.xpos = x
	obj.ypos = y
	obj.left = obj.xpos
	obj.top = obj.ypos
	}


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>'); }




function ScroWindow(mypage, myname, w, h, scroll) {
var winl = 0;
var wint = (screen.height - h) / 6;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
var winl2 = winl+((screen.width - w) / 1.1);
var sposta;
for(sposta=1;sposta<winl2;sposta=sposta+5)
win.window.moveTo(sposta,wint)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) /6;
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(); }
}