scala=1

function dimastro(scala) {
scala=Math.pow(scala,1/4)
sod=30*scala
lud=8*scala
med=10*scala
ved=14*scala
ted=16*scala
mad=12*scala
gid=30*scala
sad=36*scala
urd=18*scala
ned=urd
pld=8
}

//TASTI

var r0 = new Image(50,50) ;
r0.src = "img/bot_r0.gif" ;
var r1 = new Image(50,50) ;
r1.src = "img/bot_r1.gif";
var r2 = new Image(50,50) ;
r2.src = "img/bot_r2.gif" ;
var r3 = new Image(50,50) ;
r3.src = "img/bot_r3.gif" ;

var rs0 = new Image(50,50) ;
rs0.src = "img/bot_rstop0.gif" ;
var rs1 = new Image(50,50) ;
rs1.src = "img/bot_rstop1.gif";
var rs2 = new Image(50,50) ;
rs2.src = "img/bot_rstop2.gif" ;

var fs0 = new Image(50,50) ;
fs0.src = "img/bot_fstop0.gif" ;
var fs1 = new Image(50,50) ;
fs1.src = "img/bot_fstop1.gif";
var fs2 = new Image(50,50) ;
fs2.src = "img/bot_fstop2.gif";

var f0 = new Image(50,50) ;
f0.src = "img/bot_f0.gif" ;
var f1 = new Image(50,50) ;
f1.src = "img/bot_f1.gif";
var f2 = new Image(50,50) ;
f2.src = "img/bot_f2.gif";

var st0 = new Image(50,50) ;
st0.src = "img/bot_stop0.gif" ;
var st1 = new Image(50,50) ;
st1.src = "img/bot_stop1.gif";
var st2 = new Image(50,50) ;
st2.src = "img/bot_stop2.gif";

var me0 = new Image(50,50) ;
me0.src = "img/zoomm1.gif" ;
var me1 = new Image(50,50) ;
me1.src = "img/zoomm2.gif";
var me2 = new Image(50,50) ;
me2.src = "img/zoomm.gif";

var pi0 = new Image(50,50) ;
pi0.src = "img/zoomp1.gif" ;
var pi1 = new Image(50,50) ;
pi1.src = "img/zoomp2.gif";
var pi2 = new Image(50,50) ;
pi2.src = "img/zoomp.gif";

var in0 = new Image(50,50) ;
in0.src = "img/info.gif" ;
var in1 = new Image(50,50) ;
in1.src = "img/infoo.gif";
var in2 = new Image(50,50) ;
in2.src = "img/infop.gif";

function centro() {
NV=navigator.appVersion.substring(0,3)

//alert(NV)

if (IE4) {
	H=window.document.body.offsetHeight;
	W=window.document.body.offsetWidth;
  }

 if (NS4 || NV=="5.0") {
	H=window.innerHeight;
	W=window.innerWidth;
  }
	cx=W/2
	cy=H/2
}

function sca(ftt) {
ftt=ftt*1
if((scala<.07 && ftt<1) || (scala>2 && ftt>1)) return
scala=scala*ftt
dimastro(scala)
plagif()
sun('sole','sungif')
rsz=1
stepk('0')
}

function sun(obj,im) {
if (NS4) {
eval("document."+obj+".document."+obj+".document.write("+im+")")
eval("document."+obj+".document."+obj+".document.close()")
eval("document."+obj+".left=cx-sod/2")
eval("document."+obj+".top=cy-sod/2")
eval("document."+obj+".visibility='show'")
oggetto=eval("document."+obj)
}
if (IE4) {
eval(obj+".innerHTML="+im)
oggetto=eval(obj + ".style")
}
if (isNN) {
oggetto=document.getElementById(obj)
eval("oggetto.innerHTML="+im)
oggetto.style.left=cx-sod/2
oggetto.style.top=cy-sod/2
}

oggetto.display='block'
oggetto.left=cx-sod/2
oggetto.top=cy-sod/2
}



function plagif() {
moongif="<img title=moon src='pianeti\/moon.gif' width="+lud+" height="+lud+" alt=moon>"
sungif="<img title=sun src=pianeti\/sun.gif width="+sod+" height="+sod+" alt=sun>"
mergif="<img title=mercury src=pianeti\/mercurio.gif width="+med+" height="+med+" alt=mercury>"
venusgif="<img title=venus src=pianeti\/venus.gif width="+ved+" height="+ved+" alt=venus>"
earthgif="<img title=earth src=pianeti\/earth.gif width="+ted+" height="+ted+" alt=earth>"
marsgif="<img title=mars src=pianeti\/marte.gif width="+mad+" height="+mad+" alt=mars>"
giogif="<img title=jupiter src=pianeti\/jupiter.gif width="+gid+" height="+gid+" alt=jupiter>"
satugif="<img title=saturn src=pianeti\/saturno.gif width="+sad+" height="+sad+" alt=saturn>"
uragif="<img title=uranus src=pianeti\/uranus.gif width="+urd+" height="+urd+" alt=uranus>"
netgif="<img title=neptune src=pianeti\/nettu1.gif width="+ned+" height="+ned+" alt=neptune>"
plugif="<img title=pluto src=pianeti\/plutoxs.gif width="+pld+" height="+pld+" alt=pluto>"
}
