
var ns4=document.layers?1:0
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all?1:0

function highlogo(){
theobject=document.images.logo
highlighting=setInterval("highlightit(theobject)",50)
}

function highlang(){
theobject1=document.images.ita
theobject2=document.images.eng

highl1=setInterval("highlightit(theobject1)",50)
highl2=setInterval("highlightit(theobject2)",50)


}

function highlightit(cur2){
if (cur2.style.opacity<1)
cur2.style.opacity=parseFloat(cur2.style.opacity)+0.05
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}





///////////////////////////////////////////////////////// 
if (ie4||ns6){

///////////////////////////// logo staff
passo = 10
if (ie4){
w = ((document.body.clientWidth - 200) / 2)
h = ((document.body.clientHeight - 64) / 2)
leftskip = (((document.body.clientWidth / 2) + 300) / passo)
}
if (ns6){
w = ((window.outerWidth - 200) / 2)
h = ((window.innerHeight - 64) / 2)
leftskip = (((window.outerWidth / 2) + 300)  / passo)


}


//          lucia sarto
document.write('<div id="well" align="center" style="position:absolute; left:'+ (w -100) +'px; top:'+ h +'px; z-index:25; width:400px; height:64px" >')
document.write('<img name="logo"  src="logo1.jpg" border="0"  style="filter:alpha(opacity=0); opacity:0.0" ></div>')

//bandiere

document.write('<div id="lang" align="right" style="position:absolute; left:'+ w +'px; top:'+ (h +133) +'px; z-index:20; width:380px; height:10px" >')
document.write('<a href="ita/bio.php"><img name="ita" style="filter:alpha(opacity=0); opacity:0.0"  src="ita.jpg" border="0"></a>&nbsp;&nbsp;&nbsp;<a href="eng/bio.php"><img name="eng" style="filter:alpha(opacity=0); opacity:0.0"  src="eng.jpg" border="0" ></a></div>')

document.write('<div id="lang" align="center" style="color: #CCC7BB; font-family : Verdana, Arial, Helvetica,sans-serif; font-size : 9px; font-weight : 500; text-decoration : none; position:absolute; left:'+ (w -200) +'px; top:'+ (h +115) +'px; z-index:30; width:600px; height:10px" >')
document.write('Lucia Sarto - Lignano Sabbiadoro - UD - Italy</div>')


//banda scura
document.write('<div>')
document.write('<img style="    border-bottom-color : #ffffff;    border-bottom-style : solid;    border-bottom-width : 1px;    border-left-color : #ffffff;    border-left-style :solid;    border-left-width : 1px;    border-right-color : #ffffff;    border-right-style : solid;    border-right-width : 1px;    border-top-color : #ffffff;    border-top-style :solid;    border-top-width : 1px; position:absolute; z-index:23; left:'+ (w-200) +'px; top:'+ (h+32) +'px; width:600px; height:0px"  id="banner" src="wel-bg.jpg">')


function regenerate(){
window.location.reload()
}
document.write('</div>')
man=(ns6)? document.getElementById("banner").style : document.all.banner.style

}


//////////////////////////////////////////////////////////////////////////////////



function sleep(ms)
	{
		var dt = new Date();
		dt.setTime(dt.getTime() + ms);
		while (new Date().getTime() < dt.getTime());
	}





function draw(y){
drawit=setInterval("drawengine(y++)",20)
}



function drawengine(y){
if (y<=140){
if (y>=40){
man.height=parseInt(man.height) + 2
man.top=parseInt(man.top) - 1
}


}
else if (window.drawit){
clearInterval(drawit)
sleep(500)
highlogo()
highlang()
}
}

