// JavaScript Document

///////////// Hover /////////////
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
function pngfade(imgName)  {
        if (document.images) {
                document[imgName].src = "images/nav/" + imgName + "_hov.png"
        }
}
function pngdie(imgName) {
        if (document.images)  {
                document[imgName].src = "images/nav/" + imgName + ".png"
        }
}
function jpgfade(imgName)  {
        if (document.images) {
                document[imgName].src = "images/nav/" + imgName + "_hov.jpg"
        }
}
function jpgdie(imgName) {
        if (document.images)  {
                document[imgName].src = "images/nav/" + imgName + ".jpg"
        }
}

//preloadimages("nav/home_hov.png","nav/accomodations_hov.png","nav/reservations_hov.png","nav/photographs_hov.png","nav/promotions_hov.png","nav/pets_hov.png","nav/contact_hov.png","images/subnav/booker_hov.png")

///////////// MooSlider /////////////
window.addEvent('domready',function(){
		//SAMPLE 8
		var handles8_more = $$('#handles8_more span');
		var nS8 = new noobSlide({
			box: $('box8'),
			items: $$('#box8 h3'),
			size: 896,
			//handles: $$('#handles8 span'), 
			// TR: prev & next by handles. play, stop, pause...
			//addButtons: {previous: $('prev8'), play: $('play8'), stop: $('stop8'), playback: $('playback8'), next: $('next8') },
			onWalk: function(currentItem,currentHandle){
				//style for handles
				$$(this.handles,handles8_more).removeClass('active');
				$$(currentHandle,handles8_more[this.currentIndex]).addClass('active');
				//text for "previous" and "next" default buttons
				// TR: Reads name in the H3 to change to.  also, handles8 above. 
				//$('prev8').set('html','&lt;&lt; '+this.items[this.previousIndex].innerHTML);
				//$('next8').set('html',this.items[this.nextIndex].innerHTML+' &gt;&gt;');
			}
		});
		//more "previous" and "next" buttons
		nS8.addActionButtons('previous',$$('.prev'));
		nS8.addActionButtons('next',$$('.next'));
		// TR: these for inside the box
		/*nS8.addActionButtons('previous',$$('#box8 .prev'));
		nS8.addActionButtons('next',$$('#box8 .next'));*/ 
		//more handle buttons
		//nS8.addHandleButtons(handles8_more);
		//walk to item 3 witouth fx
		//TR: .walk( # = 1 before start, 
		nS8.walk(0,false,true);

		//SAMPLE 7
		var handles7_more = $$('#handles7_more span');
		var nS7 = new noobSlide({
			box: $('box7'),
			items: $$('#box7 h3'),
			size: 295,
			//handles: $$('#handles7 span'), 
			// TR: prev & next by handles. play, stop, pause...
			//addButtons: {previous: $('prev7'), play: $('play7'), stop: $('stop7'), playback: $('playback7'), next: $('next7') },
			onWalk: function(currentItem,currentHandle){
				//style for handles
				$$(this.handles,handles7_more).removeClass('active');
				$$(currentHandle,handles7_more[this.currentIndex]).addClass('active');
				//text for "previous" and "next" default buttons
				// TR: Reads name in the H3 to change to.  also, handles7 above. 
				//$('prev7').set('html','&lt;&lt; '+this.items[this.previousIndex].innerHTML);
				//$('next7').set('html',this.items[this.nextIndex].innerHTML+' &gt;&gt;');
			}
		});
		//more "previous" and "next" buttons
		nS7.addActionButtons('previous',$$('.prev7'));
		nS7.addActionButtons('next',$$('.next7'));
		// TR: these for inside the box
		/*nS7.addActionButtons('previous',$$('#box7 .prev7'));
		nS7.addActionButtons('next',$$('#box7 .next7'));*/ 
		//more handle buttons
		//nS7.addHandleButtons(handles7_more);
		//walk to item 3 witouth fx
		//TR: .walk( # = 1 before start, 
		nS7.walk(0,false,true);
		
	});
		
///////////// Toggle Sliders /////////////			
function toggleBlock(id, linkid) {
if (document.getElementById(id).style.display == 'none') {
document.getElementById(id).style.display = 'block';
document.getElementById(linkid).innerHTML = 'Show less.'
} else {
document.getElementById(id).style.display = 'none';
document.getElementById(linkid).innerHTML = 'Read more.'
}
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == 'none') 
{ document.getElementById(d).style.display = 'block';
}
else { document.getElementById(d).style.display = 'none'; }
}

<!-- Begin
var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();
msg[1] = "The international telephone dialing code for Antarctica is 672.";
msg[2] = "The world's first one gigabyte disk drive was announced in 1980. It weighed 550 pounds and had a price tag of $40,000. ";
msg[3] = "The United States has never lost a war in which mules were used. ";
msg[4] = "The highest point in Pennsylvania is lower than the lowest point in Colorado. ";
msg[5] = "Flying from London to New York by Concord, due to the time zones crossed, you can arrive 2 hours before you leave. ";
msg[6] = "The average person makes about 1,140 telephone calls each year. ";
msg[7] = "American car horns beep in the tone of F. ";
msg[8] = "Minus 40 degrees Celsius is exactly the same as minus 40 degrees Fahrenheit. ";
msg[9] = "The plastic things on the end of shoelaces are called aglets. ";
msg[10] = "Every year about 98% of the atoms in your body are replaced. ";
msg[11] = "Elephants are the only mammals that can't jump. ";
msg[12] = "The word 'lethologica' describes the state of not being able to remember the word you want. ";
msg[13] = "The Neanderthal's brain was bigger than yours is. ";
msg[14] = "The most money ever paid for a cow in an auction was $1.3 million. ";
msg[15] = "Back in the mid to late 80's, an IBM compatible computer wasn't considered a hundred percent compatible unless it could run Microsoft's Flight Simulator game. ";
msg[16] = "The Eisenhower interstate system requires that one mile in every five must be straight. These straight sections are usable as airstrips in times of war or other emergencies. ";
msg[17] = "Karoke means 'empty orchestra' in Japanese. ";
msg[18] = "Money isn't made out of paper; it's made out of cotton. ";
msg[19] = "The 57 on Heinz ketchup bottle represents the varieties of pickle the company once had. ";
msg[20] = "A duck's quack doesn't echo ... no one knows why.";
msg[21] = "Every person has a unique tongue print. ";
msg[22] = "Ketchup was sold in the 1830s as medicine. ";
msg[23] = "Upper and lower case letters are named 'upper' and 'lower' because in the time when all original print had to be set in individual letters, the 'upper case' letters were stored in the case on top of the case that stored the smaller, 'lower case' letters.";
msg[24] = "Leonardo Da Vinci could write with one hand and draw with the other at the same time. ";
msg[25] = "There are no clocks in Las Vegas gambling casinos. ";
msg[26] = "The name Wendy was made up for the book Peter Pan, there was never a recorded Wendy before! ";
msg[27] = "There are no words in the dictionary that rhyme with: orange, purple, and silver! ";
msg[28] = "If you have three quarters, four dimes, and four pennies, you have $1.19. You also have the largest amount of money in coins without being able to make change for a dollar. ";
msg[29] = "Celery has negative calories! It takes more calories to eat a piece of celery than the celery has in it to begin with. It's the same with apples! ";
msg[30] = "Guinness Book of Records holds the record for being the book most often stolen from Public Libraries.";
msg[31] = "Tip 31";

function writeTip() { 
document.write(msg[today]);
}
//  End -->


<!-- Begin
function moveWindowLeft() {
window.moveBy(-15, 0);
window.moveBy(0, 0);
}
function moveWindowRight() {
window.moveBy(15, 0);
window.moveBy(0, 0);
}
function moveWindowUp() {
window.moveBy(0, 0);
window.moveBy(0, -15);
}
function moveWindowDown() {
window.moveBy(0, 0);
window.moveBy(0, 15);
}
//  End -->

		
///////////// The Claw!!!! /////////////		
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2760728-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

