// JavaScript Document
function winOpen (myPage, winWidth, winHeight) {
	screenWidth = window.screen.availWidth;
	screenHeight = window.screen.availHeight;
	
	windowLeft = ( screenWidth - winWidth ) / 2;
	windowTop = ( screenHeight - winHeight ) / 2;
	p=window.open( myPage, myPage.substr(0,3), "left=" + windowLeft + ",top=" + windowTop + ",height=" + winHeight + ",width=" + winWidth + ",scrollbars=no");
	p.focus();
}

function winPopup (titolo, messaggio) {
    doc = "popup.php?titolo=" + titolo + "&messaggio=" + messaggio;
	larghezza = 460;
	altezza = doc.length / 7 * 2 + 85;
	winOpen (doc,larghezza,altezza);
}

// funzioni relative allo scrolling 

function start(){
if (document.all) iemarquee(slider);
else if (document.getElementById)
ns6marquee(document.getElementById('slider'));
else if(document.layers)
ns4marquee(document.slider1.document.slider2);
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
iediv.innerHTML=wholemessage 
iediv.style.pixelTop=sheight
sizeup=iediv.offsetHeight
ieslide()
}
function ieslide(){
if (iediv.style.pixelTop>=sizeup*(-1)){
iediv.style.pixelTop-=sspeed
setTimeout("ieslide()",100)
}
else{
iediv.style.pixelTop=sheight
ieslide()
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=ns6div.offsetHeight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}
//-- end Algorithm -->

//-- fine codice di scrolling -->
