function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01

if (parseInt(imageHeight) > screen.height)
{
	var windowWidth = parseInt(imageWidth)+17;
	newWindow = window.open("","","width="+windowWidth+",height="+imageHeight+",scrollbars=yes,left="+posLeft+",top=0");
}

else {
	newWindow = window.open("","","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
}

newWindow.document.open();
	newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>'+alt+'</title></head><body style="background: #fff; margin: 0; padding: 0;">'); 

	newWindow.document.write('<img src=\"'+imageName+'\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\" alt=\"'+alt+'\" />');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}



function showImageHome() {

var theImages = new Array()

theImages[0] = '<a href="/images/home/toasting_at_the_wellesley_hotel.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/home/toasting_at_the_wellesley_hotel.jpg\',\'698\',\'432\',\'Toasting at the Wellesley Hotel\',\'50\',\'\'); return false"><img src="/images/home/toasting_at_the_wellesley_hotel-sm.jpg" alt="Toasting at the Wellesley Hotel" width="300" height="186" class="imageborder" /></a>'

theImages[1] = '<a href="/images/home/table_with_a_view.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/home/table_with_a_view.jpg\',\'750\',\'563\',\'Table with a View\',\'50\',\'\'); return false"><img src="/images/home/table_with_a_view-sm.jpg" alt="Table with a View" width="300" height="225" class="imageborder" /></a>'

var j = 0
var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));
	
document.write(theImages[whichImage]);
}

function showImageRestaurant() {

var theImages = new Array()

theImages[0] = '<a href="/images/restaurant/rotating/dining.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/restaurant/rotating/dining.jpg\',\'750\',\'563\',\'Dining in the Dining Room at the Wellesley Hotel 1\',\'50\',\'\'); return false"><img src="/images/restaurant/rotating/dining-sm.jpg" alt="Dining in the Dining Room at the Wellesley Hotel 1" width="300" height="225" class="imageborder" /></a>'

theImages[1] = '<a href="/images/restaurant/rotating/dining-2.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/restaurant/rotating/dining-2.jpg\',\'750\',\'499\',\'Dining in the Dining Room at the Wellesley Hotel 2\',\'50\',\'\'); return false"><img src="/images/restaurant/rotating/dining-2-sm.jpg" alt="Dining in the Dining Room at the Wellesley Hotel 2" width="300" height="225" class="imageborder" /></a>'

theImages[2] = '<a href="/images/restaurant/rotating/dining-3.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/restaurant/rotating/dining-3.jpg\',\'750\',\'499\',\'Dining in the Dining Room at the Wellesley Hotel 3\',\'50\',\'\'); return false"><img src="/images/restaurant/rotating/dining-3-sm.jpg" alt="Dining in the Dining Room at the Wellesley Hotel 3" width="300" height="225" class="imageborder" /></a>'

theImages[3] = '<a href="/images/restaurant/rotating/dining-4.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/restaurant/rotating/dining-4.jpg\',\'750\',\'563\',\'Dining in the Dining Room at the Wellesley Hotel 4\',\'50\',\'\'); return false"><img src="/images/restaurant/rotating/dining-4-sm.jpg" alt="Dining in the Dining Room at the Wellesley Hotel 4" width="300" height="225" class="imageborder" /></a>'

var j = 0
var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));
	
document.write(theImages[whichImage]);
}



function showImageBakeshop() {

var theImages = new Array()

theImages[0] = '<a href="/images/bakeshop/cookie_closeup-sm.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/bakeshop/cookie_closeup.jpg\',\'846\',\'800\',\'An assortment of baked goods\',\'50\',\'\'); return false"><img src="/images/bakeshop/cookie_closeup-sm.jpg" alt="An assortment of baked goods" width="300" height="284" class="imageborder" /></a>'

theImages[1] = '<a href="/images/bakeshop/bakery_array.jpg" title="Enlarge image." target="_blank" onclick="openPictureWindow_Fever(\'jpg\',\'/images/bakeshop/bakery_array.jpg\',\'600\',\'800\',\'An array of delicious baked goods\',\'50\',\'\'); return false"><img src="/images/bakeshop/bakery_array-sm.jpg" alt="An array of delicious baked goods" width="300" height="400" class="imageborder" /></a>'

var j = 0
var p = theImages.length;
var whichImage = Math.round(Math.random()*(p-1));
	
document.write(theImages[whichImage]);
}
