// JavaScript Document

	var innName = new Array();
	var innDescription = new Array();
	var innURL = new Array();
	var innPic = new Array();
	
	////////////////////////////////////////
	// THERE MUST BE AN INN AT POSITION 0 //
	
	innName[0] = "Allenspark Lodge";
	innDescription[0] = "Remember the &quot;good ole days&quot;? Want to try stepping back into the past? This early 30's lodge, situated just south of Estes Park, has been described as &quot;polished rustic&quot;, having the best of both worlds: easy access but no TV or cell phones. An ideal place to get away! Located in the village of Allenspark, within walking distance of RMNP, Roosevelt National Forest, Indian Peaks Wilderness...	  and a five star restaurant... there is something for everyone.";
	innURL[0] = "allensparklodge.com";
	innPic[0] = "pic-allenspark-lodge_frame.jpg";
	
	innName[1] = "A Mountain Valley Home";
	innDescription[1] = "Mountain Valley Home adds Romance, Elegance and Charm to your special getaway. Enjoy the sounds of the waterfall flowing into our stocked koi pond. Settle into your Romantic King suite and delight in its many amenities. Relax and reconnect in your private Jacuzzi. Indulge in the pleasures of gourmet breakfast, fine wine, and the peacefulness of the moment. Centrally located near golf, fishing, hiking, shops & restaurants, RMNP is only 3 miles from your doorstep. However, the best wildlife watching is from the Cozy Covered Veranda. Newly constructed in 2003, nearly 6000 ft. of luxury and elegance await you!";
	innURL[1] = "www.amountainvalleyhome.com";
	innPic[1] = "pic-mountain-valley-home_frame.jpg";
	
	innName[2] = "Anniversary Inn Bed & Breakfast";
	innDescription[2] = "Enjoy the beauty of Estes Park in our 100 year-old inn. Nestled on two acres, among towering spruce and pine trees, the inn provides a comfortable atmosphere for adults seeking a quite getaway. The great room features a moss-rock fireplace. Antiques, a touch of the southwest, and warm country charm add to the romance of the inn which includes three guest rooms, each with a queen bed, private bath and two with jetted tubs for two. Our Sweetheart's Cottage, a favorite with honeymoon and anniversary couples, boasts a fireplace and jetted tub for two.";
	innURL[2] = "www.estesinn.com";
	innPic[2] = "pic-anniversary_frame.jpg";
	
	innName[3] = "Baldpate Inn";
	innDescription[3] = "The Baldpate Inn is the key to enjoying the beauty of Estes Park. Nestled in an aspen grove on 12 acres of private forest next to Rocky Mountain National Park, our Lodge provides a spectacular view of the Estes Valley. The log and lace feel of our 1917 National Register Inn encourages you to be pampered in our main lodge guest rooms or one of our four cozy cabins. Spend time relaxing in our library, our intriguing museum with its world famous Key Collection or our award winning specialty restaurant with its black and white Photograph Collection.";
	innURL[3] = "www.baldpateinn.com";
	innPic[3] = "pic-baldpate_frame.jpg";
	
	innName[4] = "Barbara's Bed & Breakfast";
	innDescription[4] = "Barbara's Bed & Breakfast is located in a 50 year old mountain cabin. Our home is decorated with family antiques, heirlooms, and offers warmth and hospitality. Relax in the peace and quiet of the beautiful Rocky Mountains and perhaps catch a glimpse of the local wildlife. Come prepared to be pampered and spoiled while you create a new memory to take home with you.";
	innURL[4] = "www.barbarasbnb.com";
	innPic[4] = "pic-barbara_frame.jpg";
	
	innName[5] = "Black Dog Inn";
	innDescription[5] = "Built in 1910, the Black Dog Inn offers a breathtaking view of the Mummy Mountain range, Mount Olympus, and the Estes Valley. Only a five minute drive to Rocky Mountain National Park and less than a mile to downtown Estes Park. The Inn features four quiet guest rooms tastefully decorated with family heirlooms, art, and feather down comforters. Three units have fireplaces, and two units have large Jacuzzi tubs. All guests are treated to a home cooked country breakfast in our large dining room. A large cozy living room contains overstuffed chairs and sofa plus a wood burning fireplace, piano, and TV/VCR.";
	innURL[5] = "blackdoginn.com";
	innPic[5] = "pic-blackdog_frame.jpg";

	innName[6] = "Bristlecone Inn";
	innDescription[6] = "Estes Park's newest historic treasure - the Bristlecone Inn offers a true Rocky Mountain get-away!  Just steps from downtown Estes Park, the B&B is conveniently located for shopping, dining and easy access to Rocky Mountain National Park.  The inn features 2 guest rooms, a two bedroom suite and a one bedroom log cabin - all with private baths.  Newly renovated and beautifully landscaped - perfect for families or romantic get-aways.";
	innURL[6] = "www.bristleconeinn.com";
	innPic[6] = "pic-bristlecone2_frame.jpg";

innName[7] = "Della Terra Mountain Chateau";
	innDescription[7] = "Della Terra Mountain Chateau includes fourteen luxury suites featuring sitting nooks, see-thru fireplaces, soaking tubs before romantic water features, walk-thru jetted showers and private balconies with hot tubs. Della Terra expressed through the Italian language translates to “of the earth”. Each luxury suite is designed to celebrate and embrace the seasons, skies or the elements.  To enhance your stay in one of our luxury suites, a complimentary hot breakfast will be prepared for you daily.";
	innURL[7] = "www.dellaterramountainchateau.com";
	innPic[7] = "pic-dellaterramountainchateau2_frame.jpg";
	
	innName[8] = "Dripping Springs Inn and Cottages";
	innDescription[8] = "Imagine awaking to the sound of the river and the aroma of fresh-baked breads, taking time to enjoy the mountain views and forest tranquility. Dine outside on a deck overlooking the river as the hummingbirds feed on the flowers by your head. You feel at peace with the world and ready to take on an adventure. Your romantic night was perfect, the hot tub and steam sauna did the trick and you slept. You are not dreaming, you are at Dripping Springs Inn. Six well appointed yet rustic and romantic rooms, most with private outdoor hot tubs. Seven cabins with private hot tubs for families. Now OPEN YEAR AROUND.";
	innURL[8] = "www.drippingsprings.com";
	innPic[8] = "pic-dripping-springs_frame2.jpg";
	
	innName[9] = "Estes Park Bed and Breakfast";
	innDescription[9] = "Our home is just a few feet from downtown, so just leave your car while you walk to all of our fun shops and delicious restaurants in Downtown Estes Park.  The guest floor houses three bedrooms, a huge living dining area, and the kitchen. The beautiful backyard has a large private hot tub, picnic area with charcoal grills, a gazebo, and a covered patio.  Enjoy a game of horseshoes, watching the elks and deer walk by, or gaze at the huge sky full of shinning stars!  If you just can’t get away from work, our house has wireless internet, and a walk-up computer, you can use to access your e-mail.";
	innURL[9] = "www.estesparkbedandbreakfast.com";
	innPic[9] = "pic-epbandb_frame.jpg";
	
	//innName[7] = "Eagle Cliff House";
	//innDescription[7] = "Eagle Cliff House is a warm and friendly Bed and Breakfast nestled in ponderosa pines at the base of Eagle Cliff Mountain. Whether you are relaxing in our outdoor hottub or watching the snow fall from the picuresque common area, I invite you to join me for a mountain get-away. For the active, hiking is my specialty. Rocky Mountain National Park is within walking distance. Don't forget THE NEVER EMPTY COOKIE JAR!";
	//innURL[7] = "www.eaglecliffhouse.com";
	//innPic[7] = "pic-eagle-cliff-house_frame.jpg";
	
	innName[10] = "Gilded Pine Meadows";
	innDescription[10] = "Victorian charm and rustic tranquility best describes Gilded Pine Meadows Bed and Breakfast. Our cozy guesthouse sits snugly nestled amidst five acres of ancient pine trees in the magnificent Rocky Mountains. Located within the quaintly historic town of Estes Park, adjacent to Rocky Mountain National Park, the Inn was built in 1907 on Elk Horn Drive and, then moved to it's current location of 861 Big Horn Drive in 1927.";
	innURL[10] = "www.gildedpinemeadows.com";
	innPic[10] = "pic-gilded-pine_frame.jpg";
	
	//innName[10] = "Inn of Glen Haven";
	//innDescription[10] = "The friendly Inn of Glen Haven is a romantic B&B in a victorian decor, Fine gourmet dining is available to complete your stay.";
	//innURL[10] = "www.innofglenhaven.com";
	//innPic[10] = "pic-glen-haven_frame.jpg";	
	
	//innName[10] = "Mountain Vista Acre";
	//innDescription[10] = "Let Mountain Vista Acre Bed and Breakfast be your home away from home. Away from the hustle and bustle, yet only a mile from downtown, you will enjoy spectacular views of the Lumpy Ridge area of Rocky Mountain National Park. Enjoy a relaxing mountain atmosphere, delicious breakfast, wildlife, and assistance with your hiking and entertainment plans.";
	//innURL[10] = "www.mountainvistaacre.com";
	//innPic[10] = "pic-mountain-vista_frame.jpg";
	
	//innName[11] = "The Quilt House B&amp;B";
	//innDescription[11] = "The Quilt House B&B has three upstairs rooms, two with queen beds and one with two twin beds, plus a guest lounge with books, games, and a snack area.  Each room has beautiful views, homemade quilts, and a private bath.  Rates are $60 double or $40 single (plus tax) including full breakfast.  We also have a guest cabin with kitchenette for $70 per couple, including breakfast.  No smoking, no pets.  Children under age 10 in guest house only. Mailing address:  PO Box 339,  310 Riverside Drive,  Estes Park, CO  80517.  Our thirteenth year of operation.  <b>Phone:</b> 970-586-0427;  <b>Email:</b> <a href='mailto:Hgraetzer@aol.com'>Hgraetzer@aol.com</a>.";
	//innURL[11] = "No web site";
	//innPic[11] = "pic-quilt_frame.jpg";
	
	innName[11] = "Kokopelli Inn";
	innDescription[11] = "An adult, romantic Santa Fe style getaway on 15 acres, surrounded by National Forest.  3 beautiful rooms, tastefully decorated in Southwestern and Native American motif.  A gourmet breakfast is served each morning in our dining room or in the privacy of your room or private deck.  Star gaze while soaking in the outdoor hot tub and have s'mores by the fire in the evening."; 
	innURL[11] = "www.kokopelliinn.net";
	innPic[11] = "pic-kokopelli_frame.jpg";
	
		innName[12] = "Mountain Shadows B&B";
	innDescription[12] = "<b>A Romantic Escape with Everlasting Memories.</b> Pamper yourself in our luxury private cabins each with it's own hot tub, fireplace, king bed, double shower, kitchenette and private deck. To enhance your romance and privacy while a guest at Mountain Shadows; our staff will supply your cabin's refrigerator with a complimentary breakfast package for you to nibble on at your leisure. ";
	innURL[12] = "www.mountainshadowsbb.com";
	innPic[12] = "pic-mountain-shadows_frame.jpg";
	
	innName[13] = "Romantic RiverSong Bed and Breakfast";
	innDescription[13] = "Romantic RiverSong, nestled on a 27-acre wildlife habitat is secluded at the end of a country road. Guests are greeted by magnificent snow-capped peaks, a rushing mountain stream, ponds, hiking trails, and tree swings - a very special couples retreat. The inn for 18 years has been noted for it's grand hospitality, wonderfully creative breakfasts and candlelight dinners and immaculate guest rooms designed with flair and imagination. Romance flourishes in this thin mountain air. Romance and Elopement packages.";
	innURL[13] = "www.romanticriversong.com";
	innPic[13] = "pic-riversong_frame.jpg";
	
	innName[14] = "Sonnenhof Bed and Breakfast";
	innDescription[14] = "Enjoy a pleasurable European Bed and Breakfast in Estes Park, Colorado. Stay with your hosts, Hilde and Rudy. A fantastic panoramic view of the mountain ranges and Mary's Lake awaits you. Awaken to the glistening sunshine in a quiet and secluded forest of Ponderosa pines. Sonnenhof Bed and Breakfast is a perfect getaway from your busy schedule, located just 7 minutes from Estes Park and 10 minutes from the Rocky Mountain National Park.";
	innURL[14] = "www.sonnenhofestespark.com";
	innPic[14] = "pic-sonnenhof.jpg";
	
	innName[15] = "Taharaa Mountain Lodge";
	innDescription[15] = "Taharaa Mountain Lodge is a Luxury Bed & Breakfast offering unique accommodations to visitors of Estes Park and Rocky Mountain National Park. The log and stone, board-and-batten Lodge was custom built in 1997 atop a beautiful plateau offering spectacular views of the Mummy Range mountains and territorial landscape. Designed with the total comfort of its guests in mind, Taharaa offers nine suites and nine lodge rooms, each with its own stunning panoramic vistas.";
	innURL[15] = "www.taharaa.com";
	innPic[15] = "pic-taharaa_frame.jpg";


		
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	
	var thisID = vars[0] * 1;
	
	var prevID;
	var nextID;
	
	if(thisID == 0) {
		prevID = innName.length - 1;
	} else {
		prevID = thisID - 1;
		// Skips undefined inns
		while(innName[prevID] === undefined) {
			prevID--;
		}
	}
	
	if(thisID == innName.length - 1) {
		nextID = 0;
	} else {
		nextID = thisID + 1;
		while(innName[nextID] === undefined) {
			nextID++;
		}
	}
	

