function popup(url, width, height, scrollable)
{ if(scrollable){scbars = 1;} else{scbars = 0;}
if(url == "srlogo"){ width = 445; height = 455; url="http://www.hotelwebsitedesign.com/secureres/srpopup/"}
if(url == "stf"){ if(height==1){height=80;} if(!height){height=0;} url="http://www.secure-res.com/emgr/stf/sendpage.asp?pg="+location.href+"&id="+width; width = 560; height += 490; }
newwin=window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+ scbars +",resizable=0,width="+width+",height="+height); }

function Vpopup(url) {
emailWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=445,height=455');
self.name = "mainWin"; }

var urlAddress = "http://www.myvillatoscana.com";
var pageName = "Villa Toscana Bed and Breakfast";

function addToFavorites()
{
	if (window.external)
	{
		 window.external.AddFavorite(urlAddress,pageName);
	}
	else
	{ 
		 alert("Sorry! Your browser doesn't support this function.");
	}
}
// image changer
  <!--
	var imgArray = new Array(4);
	imgArray[0] = new Image;
	imgArray[0].src = "flip10.jpg";
	imgArray[1] = new Image;
	imgArray[1].src = "flip4.jpg";
	imgArray[2] = new Image;
	imgArray[2].src = "flip3.jpg";
	imgArray[3] = new Image;
	imgArray[3].src = "flip7.jpg";
	imgArray[4] = new Image;
	imgArray[4].src = "flip9.jpg";
	imgArray[5] = new Image;
	imgArray[5].src = "flip11.jpg";
	imgArray[6] = new Image;
	imgArray[6].src = "flip8.jpg";
	imgArray[7] = new Image;
	imgArray[7].src = "flip12.jpg";
	imgArray[8] = new Image;
	imgArray[8].src = "flip5.jpg";



	var imgitem = 0;

	function rotateImage()
	{
		document.vt.src = imgArray[imgitem].src;
		imgitem++;
	
		if (imgitem == 9)
		{
			imgitem = 0;
		}

		setTimeout("rotateImage()", 2000);
		return;
	}
 //-->
 
// Hidden E-mail Script
function generate_address( un, hn, sty, lnk ) {
        var atsign = "&#64;";
        var addr = un + atsign + hn;
        if(!lnk)
                        { document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          addr + "</a>");      }
                        else {
                        document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          lnk + "</a>");  }
}