var spostamento=470
var alzo=48

//Controlla Browser
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;

function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
   	this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')							
	this.moveIt=b_moveIt;
}
function b_moveIt(x,y){
	this.x=x; this.y=y
   	this.css.left=this.x
	this.css.top=this.y
}

var pageWidth,pageHeight
function geoInit(){
	oTest=new makeObj('divBottom')
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	checkIt()
	//sets the resize handler.
	onresize=resized
	if(ie) window.onscroll=checkIt;
}

function checkIt(){
	if(ie) oTest.moveIt(document.body.scrollLeft + pageWidth-spostamento,document.body.scrollTop+pageHeight-alzo)
	else if(n){
		oTest.moveIt(window.pageXOffset + pageWidth-spostamento, window.pageYOffset+pageHeight-alzo)
		setTimeout('checkIt()',20)
	}
}

function resized(){
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	if(ie) checkIt()
}

onload=geoInit;

if(n || ie) document.write('<div id="divBottom"><A HREF="start.htm"><IMG SRC="../images/home.jpg" border=0 width=78 height=24 vspace=4 hspace=15></A><A HREF="azienda.htm"><IMG SRC="../images/azienda.jpg" border=0 width=78 vspace=4 height=24 hspace=15></A><A HREF="attiv.htm"><IMG SRC="../images/attiv.jpg" border=0 width=78 height=24 vspace=4 hspace=15></A><A HREF="mail.html"><IMG SRC="../images/mail.jpg" border=0 width=78 height=24 vspace=4 hspace=15></A> </div>')

