// script per menu -->
function conferma() {


if (!document.form1.nome.value) {
	alert("Inserisci il tuo nome");
	document.form1.nome.focus();
	return;
	}
if (!document.form1.cognome.value) {
	alert("Inserisci il tuo cognome");
	document.form1.cognome.focus();
	return;
	}
if (!document.form1.indirizzo.value) {
	alert("Inserisci il tuo indirizzo");
	document.form1.cognome.focus();
	return;
	}
if (!document.form1.email.value || document.form1.email.value.indexOf ('@') == -1 || document.form1.email.value.indexOf ('.') == -1) {
	alert("Oops, l'email non è corretta");
	document.form1.email.focus();
	return;
	}
if (!document.form1.email2.value || document.form1.email2.value!=document.form1.email.value || document.form1.email2.value.indexOf ('@') == -1 || document.form1.email2.value.indexOf ('.') == -1) {
	alert("Oops, uno dei due indirizzi email è sbagliato");
	document.form1.email2.focus();
	return;
	}

document.form1.action="mailact.asp";
document.form1.submit();
	
	
}

// funzione add bookmark

var bookmarkurl="http://www.bambinikattivi.it/"
var bookmarktitle="BambiniKattivi - Official Site"
function addbookmark(){if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)}


// menu mobile sinistro


function setVariables() {
if (navigator.appName == "Netscape") {
v = ".top=";
h = ".left=";
dS = "document.";
sD = "";
y = "window.pageYOffset";
x = "window.pageXOffset";
iW = "window.innerWidth";
iH = "window.innerHeight";
}

else {
h = ".pixelLeft=";
v = ".pixelTop=";
dS = "";
sD = ".style";
y = "document.body.scrollTop";
x = "document.body.scrollLeft";

}
xyz = 500;
object = "logo";
checkLocationA();
}
movex = 0;
movey = 0;
xdiff = 0;
ydiff = 0;
ystart = 0;
xstart = 0;

function checkLocation() {
yy = eval(y);
xx = eval(x);
ydiff = ystart - yy;
xdiff = xstart - xx;
if ((ydiff < (-1)) || (ydiff > (1))) movey = Math.round(ydiff / 25), ystart -= movey;
if ((xdiff < (-1)) || (xdiff > (1))) movex = Math.round(xdiff / 25), xstart -= movex;
eval(dS + object + sD + v + (ystart+255));
eval(dS + object + sD + h + (xstart+10));
setTimeout("checkLocation()", 25);
}

function checkLocationA() {
ystart = eval(y);
xstart=eval(x);
}

//  End -->



// secondo script -->

function setVariables2() {
if (navigator.appName == "Netscape") {
v2 = ".top=";
h2 = ".left=";
dS2 = "document.";
sD2 = "";
y2 = "window.pageYOffset";
x2 = "window.pageXOffset";
iW2 = "window.innerWidth";
iH2 = "window.innerHeight";
}

else {
h2 = ".pixelLeft=";
v2 = ".pixelTop=";
dS2 = "";
sD2 = ".style";
y2 = "document.body.scrollTop";
x2 = "document.body.scrollLeft";

}
xyz2 = 500;
object2 = "logo2";
checkLocationA2();
}
movex2 = 0;
movey2 = 0;
xdiff2 = 0;
ydiff2 = 0;
ystart2 = 0;
xstart2 = 0;

function checkLocation2() {
yy2 = eval(y2);
xx2 = eval(x2);
ydiff2 = ystart - yy2;
xdiff2 = xstart - xx2;
if ((ydiff2 < (-1)) || (ydiff2 > (1))) movey = Math.round(ydiff / 25), ystart -= movey;
if ((xdiff2 < (-1)) || (xdiff2 > (1))) movex = Math.round(xdiff / 25), xstart -= movex;
eval(dS2 + object2 + sD2 + v2 + (ystart+100));
eval(dS2+ object2 + sD2 + h2 + (xstart+656));
setTimeout("checkLocation2()", 25);
}

function checkLocationA2() {
ystart = eval(y2);
xstart=eval(x2);
}

window.status='...::: www.bambinikattivi.it :::...';