// JavaScript Document
    function PopupPic(URL) { 
        window.open(URL,"","width=100,height=100,resizable,scrollbars=no,status=0");
    }                                            

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left = 340,top = 227');");
}

function popUpmap(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=690,height=770,left = 340,top = 227');");
}

function popUppianta(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=400,left = 340,top = 227');");
}

function popUppoll(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=400,left=450,top = 227');");
}

function popUpmsg(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=380,left = 390,top = 177');");
}

function popUpsendpage(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=350,left = 390,top = 177');");
}

function popUpphotogallery(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=680,height=440,left = 390,top = 177');");
}

function StartTest(page) {
day = new Date();
id = day.getTime();
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600')");
}

function nav() {
  var w = document.srcresto.cucina.selectedIndex;
   var url_add = document.srcresto.cucina.options[w].value;
   window.location.href = url_add;
   }

function navb() {
  var w = document.srcresto.area.selectedIndex;
   var url_add = document.srcresto.area.options[w].value;
   window.location.href = url_add;
   }

function snapIn(jumpSpaces,position) { 
var msg = "Firenze Ristoranti :: La Tua Guida alla Migliore Ristorazione Fiorentina!"; 
var out = ""; 
for (var i=0; i<position; i++) { 
out += msg.charAt(i) } 
for (i=1;i<jumpSpaces;i++) { 
out += " " } out += msg.charAt(position); 
window.status = out; 
if (jumpSpaces <= 1) {
	position++; 
	if (msg.charAt(position) == ' ') 
	{ position++ } jumpSpaces = 100-position } 
	else if (jumpSpaces >  3) { jumpSpaces *= .09 } 
	else { jumpSpaces-- } 
	if (position != msg.length) { 
	var cmd = "snapIn(" + jumpSpaces + "," + position + ")"; window.setTimeout(cmd,10); 
	} return true }
