var goodbrowser = 0;
var button_down = "";
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if ((browserName == "Netscape" && browserVer >= 3)||
(browserName == "Microsof" && browserVer >= 3.01)||
(browserName == "Microsof" && parseInt(navigator.appVersion) >= 4)){
        goodbrowser = 1;
        }
        
if (goodbrowser) {
    roly = new MakeArray(10);
    roly[1].src = "images/navAccommodationsOn.gif";
    roly[2].src = "images/navActivitiesOn.gif";
    roly[3].src = "images/navContactOn.gif";
    roly[4].src = "images/navDiningOn.gif";
    roly[5].src = "images/navHomeOn.gif";
    roly[6].src = "images/navMeetingsOn.gif";
    roly[7].src = "images/navPackagesOn.gif";
    roly[8].src = "images/navHomeLocTDSOn.gif";
    roly[9].src = "images/navHomeMapOn.gif";
	roly[10].src = "images/navHomeNYEventsOn.gif";
    }
function MakeArray(n){
        if (goodbrowser) {
                this.length = n;
                for (var i = 1; i<=n; i++) {
                        this[i] = new Image();
                        }
                return this
                }
        }       
        
function rollover(GifFunct,GifName) {
        if (goodbrowser) {
                Dim= new Image();            
                Dim.src ="images/nav"+GifName+"Off.gif";          
                Lit= new Image();
                Lit.src = "images/nav"+GifName+"On.gif";
                document.images[GifName].src = eval(GifFunct + ".src");
                }
        }
function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

current = 1;
largeNumber = 1;
text = "";
thumbCount = "23";
virtualTour = ""
videoTour = ""
propID=""
imagesLoaded = false
largeImageArray = new Array();
	largeImageArray[1] = "images/gallery1-lg.jpg"
	slideURL1 = largeImageArray[1]
	largeImageArray[2] = "images/gallery2-lg.jpg"
	slideURL2 = largeImageArray[2]
	largeImageArray[3] = "images/gallery3-lg.jpg"
	slideURL3 = largeImageArray[3]
	largeImageArray[4] = "images/gallery4-lg.jpg"
	slideURL4 = largeImageArray[4]
	largeImageArray[5] = "images/gallery5-lg.jpg"
	slideURL5 = largeImageArray[5]
	largeImageArray[6] = "images/gallery6-lg.jpg"
	slideURL6 = largeImageArray[6]
	largeImageArray[7] = "images/gallery7-lg.jpg"
	slideURL7 = largeImageArray[7]
	largeImageArray[8] = "images/gallery8-lg.jpg"
	slideURL8 = largeImageArray[8]
	largeImageArray[9] = "images/gallery9-lg.jpg"
	slideURL9 = largeImageArray[9]
	largeImageArray[10] = "images/gallery10-lg.jpg"
	slideURL10 = largeImageArray[10]
	largeImageArray[11] = "images/gallery11-lg.jpg"
	slideURL11 = largeImageArray[11]
	largeImageArray[12] = "images/gallery12-lg.jpg"
	slideURL12 = largeImageArray[12]
	largeImageArray[13] = "images/gallery13-lg.jpg"
	slideURL13 = largeImageArray[13]
	largeImageArray[14] = "images/gallery14-lg.jpg"
	slideURL14 = largeImageArray[14]
	largeImageArray[15] = "images/gallery15-lg.jpg"
	slideURL15 = largeImageArray[15]
	largeImageArray[16] = "images/gallery16-lg.jpg"
	slideURL16 = largeImageArray[16]
	largeImageArray[17] = "images/gallery17-lg.jpg"
	slideURL17 = largeImageArray[17]
	largeImageArray[18] = "images/gallery18-lg.jpg"
	slideURL18 = largeImageArray[18]
	largeImageArray[19] = "images/gallery19-lg.jpg"
	slideURL19 = largeImageArray[19]
	largeImageArray[20] = "images/gallery20-lg.jpg"
	slideURL20 = largeImageArray[20]
	largeImageArray[21] = "images/gallery21-lg.jpg"
	slideURL21 = largeImageArray[21]
	largeImageArray[22] = "images/gallery22-lg.jpg"
	slideURL22 = largeImageArray[22]
	largeImageArray[23] = "images/gallery23-lg.jpg"
	slideURL23 = largeImageArray[23]
	var capArray = new Array();
	capArray[1] = "In the heart of the Walt Disney World® Resort, the award-winning Walt Disney World Swan and Dolphin is your gateway to Central Florida's greatest theme parks and attractions."
	capArray[2] = "The resort is located in between Epcot® and Disney-MGM Studios and close to  Disney's Animal Kingdom® Theme Park and Magic Kingdom® Park."
	capArray[3] = "Come discover our magical surroundings, superior service, luxurious facilities and redesigned guest rooms featuring the Heavenly Bed®."
	capArray[4] = "Our stylishly redesigned lobbies provide guests with a warm and inviting welcome and a distinct sense of arrival."
	capArray[5] = "Both resort lobbies boast over 1,000 new custom lighting fixtures, including dramatic chandeliers artistically crafted in Europe and the Eastern Mediterranean. "
	capArray[6] = "The Mandara Spa at the Walt Disney World Swan and Dolphin blends the lovely resort architecture with its signature Balinese style to provide a fresh and original setting where guests may indulge in world class pampering and beauty services."
	capArray[7] = "Inspired and designed by the award-winning architect, Michael Graves, our 2,265 sophisticated rooms and suites welcome the weary guest home with cutting-edge style and gracious luxury."
	capArray[8] = "A wonderful combination of luxury and comfort surround you within our 184 spacious suites."
	capArray[9] = "Todd English's bluezoo: Enjoy coastal cuisine from celebrity Chef Todd English, incorporating an innovative selection of fresh seafood in an energetic and vibrant atmosphere."
	capArray[10] = "Shula's Steak House: Critic’s choice for Orlando’s Best High-End Steak House, critic’s choice for best chain and seven-time recipient of Wine Spectator’s Award of Excellence."
	capArray[11] = "Il Mulino New York Trattoria: Traditional Italian cuisine from the Abruzzi region of Italy, served in a dynamic rustic trattoria.  The Il Mulino menu features a diverse offering of exciting and traditionally presented dishes, prepared from original Italian recipes."
	capArray[12] = "Kimonos: Experience the fine art of sushi preparation in an intimate atmosphere at Kimonos, our authentic Japanese restaurant."
	capArray[13] = "Enjoy buffets for breakfast and dinner or casual a la carte favorites for lunch in Garden Grove, recently redesigned with a Central Park theme.  Create memories that last a lifetime when you dine with the lovable Disney Characters, appearing nightly for dinner and for breakfast on the weekends."
	capArray[14] = "Picabu: A curious gallery of evocative art and America’s favorite foods. Picabu offers convenient self-service dining, as well as a variety of snacks and sundries. Open 24 hours a day."
	capArray[15] = "With five heated pools, not to mention whirlpools, fountains and waterfalls, all nestled in an exotic tropical environment, you'll find the perfect spot to relax in the shade or tan in the sun."
	capArray[16] = "Our expansive pool area provides the best of both worlds:  quiet alcoves for those who prefer a private place to unwind and more lively areas with entertainment for those who prefer a little more excitement."
	capArray[17] = "Our white sand beach provides hours of fun for everyone!"
	capArray[18] = "Enjoy an invigorating game of volleyball with your friends, family, and other hotel guests – either on the sand or in the water."
	capArray[19] = "For those who want to stay fit on the road, the Walt Disney World Swan and Dolphin offers two state-of-the art health clubs equipped to satisfy even the most demanding fitness enthusiast."
	capArray[20] = "At the Walt Disney World Dolphin, kids can enjoy some of their favorite games in our game room.  From the latest video hits to good old-fashioned air hockey, we have something for everyone."
	capArray[21] = "Camp Dolphin provides hours of non-stop fun and excitement for children ages 4 through 12. Age-appropriate, supervised activities will delight your kids while you enjoy a quiet dinner in one of our restaurants or a night out on the town."
	capArray[22] = "Take a leisurely cruise on Disney’s Friendship Launch to Epcot® and Disney-MGM Studios or take a Disney shuttle bus to all other areas within Walt Disney World® Resort."
	capArray[23] = "Cabana Bar and Beach Club: Sleek and contemporary with a hint of South Beach chic, Cabana Bar and Beach Club serves up a sophisticated variety of appetizers, salads, gourmet flat breads and other entrees in a relaxing poolside location."
if (document.images) {
  var thumbImg1 = new Image();
  var thumbImg2 = new Image();
  var thumbImg3 = new Image();
  var thumbImg4 = new Image();
  var thumbImg5 = new Image();
  var thumbImg6 = new Image();
  var thumbImg7 = new Image();
  var thumbImg8 = new Image();
  var thumbImg9 = new Image();
  var thumbImg10 = new Image();
  var thumbImg11 = new Image();
  var thumbImg12 = new Image();
  var thumbImg13 = new Image();
  var thumbImg14 = new Image();
  var thumbImg15 = new Image();
  var thumbImg16 = new Image();
  var thumbImg17 = new Image();
  var thumbImg18 = new Image();
  var thumbImg19 = new Image();
  var thumbImg20 = new Image();
  var thumbImg21 = new Image();
  var thumbImg22 = new Image();
  var thumbImg23 = new Image();
 
  var imagecaption1 = "The Sheraton Chicago Hotel & Towers is Chicago's premier downtown riverfront hotel. The design was created to take advantage of the city’s most breathtaking views."
  var imagecaption2 = "Beautifully appointed guest rooms feature Sheraton’s Sweet Sleeper beds and spectacular views of Lake Michigan, Chicago River or the city skyline."
  var imagecaption3 = "The exquisite Southwestern (shown here), Oriental and Contemporary Presidential Suites feature themed décor and magnificent views."
  var imagecaption4 = "The hotel’s elegant lobby is accented with imported marble and rich inlaid woods."
  var imagecaption5 = "Overlooking the Chicago River, the Ballroom Promenade is a perfect complement to the Grand Ballroom for receptions."
  var imagecaption6 = "Chi Bar boasts innovative cocktails, the finest tapas, sleek ambiance, sweeping views and a state-of-the art sound and lighting system."
  var imagecaption7 = "Our Lincoln Boardroom (shown here) and Illinois Boardroom provide the perfect setting for business meetings on a more intimate scale."
  var imagecaption8 = "Beautifully appointed guest rooms feature Sheraton’s Sweet Sleeper beds with a plush pillow-top mattress, ultra-soft blanket and duvet, plus down and hypoallergenic pillows."
  var imagecaption9 = "Located in the heart of downtown, the Sheraton Chicago Hotel & Towers is ideally situated within one block of shopping on Michigan Avenue, and a short walk from Navy Pier, Art Institute, the Loop business district, fine dining and much more."
  var imagecaption10 = "Shula's Steak House: Critic’s choice for Orlando’s Best High-End Steak House, critic’s choice for best chain and seven-time recipient of Wine Spectator’s Award of Excellence." 

		var rgt_on = new Image();
		var rgt_off = new Image();
		var lft_on = new Image();
		var lft_off = new Image();
}
function preloadImages() {
	if (document.images) {
 	thumbImg1.src = "images/gallery1-sm.jpg"
 	thumbImg2.src = "images/gallery2-sm.jpg"
 	thumbImg3.src = "images/gallery3-sm.jpg"
 	thumbImg4.src = "images/gallery4-sm.jpg"
 	thumbImg5.src = "images/gallery5-sm.jpg"
 	thumbImg6.src = "images/gallery6-sm.jpg"
 	thumbImg7.src = "images/gallery7-sm.jpg"
 	thumbImg8.src = "images/gallery8-sm.jpg"
 	thumbImg9.src = "images/gallery9-sm.jpg"
 	thumbImg10.src = "images/gallery10-sm.jpg"
 	thumbImg11.src = "images/gallery11-sm.jpg"
 	thumbImg12.src = "images/gallery12-sm.jpg"
    thumbImg13.src = "images/gallery13-sm.jpg"
 	thumbImg14.src = "images/gallery14-sm.jpg"
 	thumbImg15.src = "images/gallery15-sm.jpg"
 	thumbImg16.src = "images/gallery16-sm.jpg"
 	thumbImg17.src = "images/gallery17-sm.jpg"
 	thumbImg18.src = "images/gallery18-sm.jpg"
 	thumbImg19.src = "images/gallery19-sm.jpg"
 	thumbImg20.src = "images/gallery20-sm.jpg"
 	thumbImg21.src = "images/gallery21-sm.jpg"
 	thumbImg22.src = "images/gallery22-sm.jpg"
	thumbImg23.src = "images/gallery23-sm.jpg"
	//arrow buttons
		rgt_on.src  ="images/arrow_up_on.gif"
		rgt_off.src ="images/arrow_up_off.gif"
		lft_on.src  ="images/arrow_dn_on.gif"
		lft_off.src ="images/arrow_dn_off.gif"
		imagesLoaded = true;
	}
}
<!-- imgFunctions.js -->
	
	function setThumbnail(thumbLocation, thumbImage) {
	if (imagesLoaded==true) {
		imgName = ("thumb" + thumbLocation)
		if (document.images) {
			document[imgName].src = eval("thumbImg" + thumbImage + ".src");
		}
	}
}
function setCaption(number) {
   	  text = capArray[number];
   	  layerWrite('caption',text);
}
function layerWrite(id, text)
{
	if (is_nav4)
		rewriteLayer (id, text); // hack
	else if (is_ie)
	   document.all[id].innerHTML = text;
    else if (is_nav6)
       document.getElementById(id).innerHTML = text;
}
function rewriteLayer (idOrPath, html)
{
  	if (is_nav4)
  	{
    		var l = idOrPath.indexOf('.') != -1 ? eval(idOrPath)
             				: document[idOrPath];
			//width:400; height:100; clip:rect(0,400,100,0)
			/*l.width = 400; l.height = 100;
			debug('l.height =' + l.height );
			l.clip.top = 0;
			l.clip.right = 400;
			l.clip.bottom = 100;
			l.clip.left = 0; */
      	    if (!l.ol)
			{
      			var ol = l.ol = new Layer (l.clip.width, l);
      			ol.clip.width = l.clip.width;
      			ol.clip.height = l.clip.height;
				// debug('ol.clip.width=' + ol.clip.width + ' ol.clip.height=' + ol.clip.height); //
      			ol.bgColor = l.bgColor;
      			l.visibility = 'hide';
      			ol.visibility = 'show';
   			}
   			var ol = l.ol;
    	    ol.document.open();
    		ol.document.write(html);
    		ol.document.close();
  	}
}
<!-- setting large image -->
function setLargeImage() {
  largeImageWindow = window.open(largeImageArray[largeNumber],'largeImage','width=343,height=230,left=600,top=100,screenX=600,screenY=100');
	//alert(largeNumber);
}
function setVirtualTour() {
  largeImageWindow = window.open(virtualTour,'virtualTour','scrollbars=yes,resizable=no,width=526,height=610');
	//alert(largeNumber);
}
function setVideoTour() {
  largeImageWindow = window.open(videoTour,'videoTour','resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=685,height=364,top=5,left=5');
	//alert(largeNumber);
}
function clickright() {
	if (current + 3 < thumbCount) {
		current = current + 1;
		setAllThumbs(current)
	}
	setArrows();
}
function clickleft() {
	if (current > 1) {
		current = current - 1;
		setAllThumbs(current)
	}
	setArrows();
}
function setAllThumbs(current) {
	setThumbnail(1,current+0)
	setThumbnail(2,current+1)
	setThumbnail(3,current+2)
	setThumbnail(4,current+3)
}
function setSlide(thumbLocation) {
	slideNumber = current + thumbLocation - 1
	if (document.images) {
			document["slide"].src = eval("slideURL" + slideNumber);
			largeNumber = slideNumber;
			setCaption(slideNumber);
	}
}
function setArrows() {
	if (document.images) {
		if (current == 1) {
			document["lft"].src = rgt_off.src
		} else {
			document["lft"].src = rgt_on.src
		}
		if (current + 3 >= thumbCount) {
			document["rgt"].src = lft_off.src
		} else {
			document["rgt"].src = lft_on.src
		}
	}
}
var styles ="";
	if ((is_nav4 == true) && (is_win == true)){
	styles = '<link rel="stylesheet" type="text/css" href="../css/sheraton_new.css">';
	}else if ((is_nav4 == true) && (is_mac == true)){
	styles = '<link rel="stylesheet" href="sheraton_new.css"><script src="setStyle.js"></script>';
	}else{
	styles = '<link rel="stylesheet" href="sheraton_new.css"><script src="setStyle.js"></script>';
	}
function printContent() { if (window.print) { setTimeout('newWindow.print();',200); }
else { alert("Press 'Apple+p' or 'Cmd+p' on your keyboard to print calendars on Mac"); } }
