// JavaScript Document
<!--

/***********************************************
* Guest Comments from the Pier Hotel
***********************************************/

var arComments=new Array()
var arGuests=new Array()

arComments[0]=["&quot;Thank you so much!&nbsp; My favorite hotel I've stayed in yet!&nbsp; The hospitality was superb!&nbsp; We'll see you again!&quot;"]
arGuests[0]=[""]
arComments[1]=["&quot;Thank you so much!&nbsp; My favorite hotel I've stayed in yet!&nbsp; The hospitality was superb!&nbsp; We'll see you again!&quot;"]
arGuests[1]=[""]
arComments[2]=["&quot;Beautiful hotel -- wonderful atmosphere.&nbsp; Excellent breakfast.&nbsp; Courteous staff.&nbsp; I had a wonderful stay.&quot;"]
arGuests[2]=["Kristy Plourde"]
arComments[3]=["&quot;Thank you for making our stay a pleasurable and memorable experience.&nbsp; We now have a great place to stay when we visit St. Pete.&nbsp; Thank you.&quot;"]
arGuests[3]=["Roger Sturcke"]
arComments[4]=["&quot;Everything was fantastic!&nbsp; For being away from my home and coming here, you've definitely made me feel at home!! Thank you!!<&quot;"]
arGuests[4]=["Mary Lynn Rusinko"]
arComments[5]=["&quot;All the staff was fantastic.&nbsp; Everyone was very friendly and helpful.&nbsp; WONDERFUL!&quot;"]
arGuests[5]=["Krista Grabowski"]
arComments[6]=["&quot;I have never encountered a hotel employee as service oriented as your front desk manager.&quot;"]
arGuests[6]=["Carla Kachmar"]
arComments[7]=["&quot;Thank you very much for the wonderful stay and outstanding service.&nbsp; You're the best!!&quot;"]
arGuests[7]=["Mike &amp; Kelly Lewis and Alice Ferguson"]
arComments[8]=["&quot;Your entire staff was wonderful, friendly and totally helpful.&nbsp; We love your place and had a great experience.&nbsp; Thanks.&quot;"]
arGuests[8]=["Dr. Jack and Mary Rotondi"]
arComments[9]=["&quot;The front desk staff were fantastic!&nbsp; The Happy Hour was wonderful -- we felt like we were hanging out at home.&quot;"]
arGuests[9]=["Anthony Rosetti"]
arComments[10]=["&quot;To all the staff, you guys are great!!&nbsp; **Yes -- we will return -- as soon as possible!!&quot;"]
arGuests[10]=["Marianne Pluchino"]
arComments[11]=["&quot;The manager was outstanding and a gracious host.!&nbsp; Being in Sales myself, I would put him at the top of my list!!&quot;"]
arGuests[11]=["Sara and Warren Kluwiter"]
arComments[12]=["&quot;Rick and the front desk staff very friendly, personable, accommodating, funny.&nbsp; Saturday woman <u>very</u> nice and efficient.&quot;"]
arGuests[12]=["Tom Albert and Kevin &amp; Jane Gleason"]
arComments[13]=["&quot;The Staff was so special!&nbsp; I will recommend this place to all my friends.&nbsp; Thank you all!&quot;"]
arGuests[13]=[""]
arComments[14]=["&quot;Awesome job at making us feel welcome and at home.&nbsp; Everything was perfect.&nbsp; Looking forward to our next stay!&nbsp; Thank you.&quot;"]
arGuests[14]=["Carrie Clark"]
arComments[15]=["&quot;Breakfast and cocktail hour excellent.&quot;"]
arGuests[15]=["- Mr. Doubles"]
arComments[16]=["&quot;The check-in person was most pleasant and accommodating!&nbsp; Housekeeper was wonderful &amp; went all out as well.&quot;"]
arGuests[16]=["R. Fetzko"]
arComments[17]=["&quot;What a wonderful place and experience!&nbsp; Thank you!"]
arGuests[17]=["Daniel F. Cody"]
arComments[18]=["&quot;Though we stayed only one night, we enjoyed it tremendously.&nbsp; The decor and old style of this hotel made for a very nice stay. Thank you.&quot;"]
arGuests[18]=["Ani Cabezon"]
arComments[19]=["&quot;The front desk manager was excellent.&nbsp; He made our stay a Great experience and we would come back to stay here again.&quot;"]
arGuests[19]=["Debbie and Bobby Whitworth"]
arComments[20]=["&quot;Especially your manager - Perfect Host - But everyone plays a valuable part in making your stay enjoyable&quot;"]
arGuests[20]=["Pete Siniaina"]
arComments[21]=["&quot;Your staff made us feel at home - very accommodating and the service was excellent.&nbsp; We will be back again next year because of your employees.&quot;"]
arGuests[21]=["William Venegas"]
arComments[22]=["&quot;Everyone we met was extremely helpful &amp; thoughtful.&nbsp; We hope to return.&nbsp; Especially enjoyed Happy Hour!&nbsp; &amp; the nibbles!&quot;"]
arGuests[22]=["Mike Claxton"]
arComments[23]=["&quot;I will recommend to friends &amp; family &amp; business associates this hotel so they may also experience the service plus [your manager] provides.&quot;"]
arGuests[23]=["Carla Kachmar"]
arComments[24]=["&quot;5 Stars to your staff!&quot;"]
arGuests[24]=["Carla Kachmar"]
arComments[25]=["&quot;This hotel provided <u>all</u> the imaginable extras -- breakfast - happy hour - getting us a cab - Thanks.&nbsp; Great room!&quot;"]
arGuests[25]=["Marianne Pluchino"]
arComments[26]=["&quot;Nice cocktail hour with snacks, good morning coffee.&nbsp; Keep up the good work &amp; your business will prosper.&quot;"]
arGuests[26]=["Tom Albert and Kevin &amp; Jane Gleason"]
arComments[27]=["&quot;Thank you Pat and the very nice front desk attendant who took care of us.&nbsp; We don't remember her name.&nbsp; Blessings!&quot;"]
arGuests[27]=["Ani Cabezon"]
arComments[28]=["&quot;The hotel is a beautiful building, like going back in time.&nbsp; Very friendly.&quot;"]
arGuests[28]=["Pete Siniaina"]
arComments[29]=["&quot;The hotel is a beautiful building, like going back in time.&nbsp; Very friendly.&quot;"]
arGuests[29]=["Pete Siniaina"]
arComments[30]=["&quot;Beautiful hotel -- wonderful atmosphere.&nbsp; Excellent breakfast.&nbsp; Courteous staff.&nbsp; I had a wonderful stay.&quot;"]
arGuests[30]=["Kristy Plourde"]


var sComment="";

function getComment() {
	var now=new Date();
	var sec=now.getSeconds();
	if (sec>"30")  {
		sec=sec-30
	}
	sComment=arComments[sec]+"<i>&nbsp;&nbsp; - "+arGuests[sec]
//	document.getElementById('guestcomment').innerHTML=sComment

}



/**********************************************************************
                   SCROLLING TEXT (WEB TICKER)
***********************************************************************/

// WebTicker by Mioplanet
// www.mioplanet.com

TICKER_CONTENT = document.getElementById("COMMENTS").innerHTML;
 
TICKER_RIGHTTOLEFT = false;
TICKER_SPEED = 2;
TICKER_STYLE = "font-family:Arial; font-size:12px; color:#444444";
TICKER_PAUSED = false;

ticker_start();

function ticker_start() {
	getComment();

	var tickerSupported = false;
	TICKER_WIDTH = document.getElementById("COMMENTS").style.width;
	var img = "<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";

	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		document.getElementById("COMMENTS").innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";
		tickerSupported = true;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		document.getElementById("COMMENTS").innerHTML = "<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";
		tickerSupported = true;
	}
	if(!tickerSupported) {
		document.getElementById("COMMENTS").outerHTML = "";
	} 
	else {
		document.getElementById("COMMENTS").scrollLeft = TICKER_RIGHTTOLEFT ? 
		document.getElementById("COMMENTS").scrollWidth - document.getElementById("COMMENTS").offsetWidth : 0;
		document.getElementById("TICKER_BODY").innerHTML = sComment+"&nbsp;&nbsp;&nbsp;&nbsp; <a href='comments.html'>More Comments & TripAdvisor Reviews...</a>"; //TICKER_CONTENT;
		document.getElementById("COMMENTS").style.display="block";
		TICKER_tick();
	}
}

function TICKER_tick() {
	if(!TICKER_PAUSED) {
		document.getElementById("COMMENTS").scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	}
	if(TICKER_RIGHTTOLEFT && document.getElementById("COMMENTS").scrollLeft <= 0) {
		document.getElementById("COMMENTS").scrollLeft = document.getElementById("COMMENTS").scrollWidth - document.getElementById("COMMENTS").offsetWidth;
	}
	if(!TICKER_RIGHTTOLEFT && document.getElementById("COMMENTS").scrollLeft >= document.getElementById("COMMENTS").scrollWidth - document.getElementById("COMMENTS").offsetWidth) {
		document.getElementById("COMMENTS").scrollLeft = 0;
	}
	window.setTimeout("TICKER_tick()", 30);
}




/**********************************************************************
                   SCROLLING TEXT IN A BOX
***********************************************************************

   Feel free to use this script in your own page, making changes were
   necessary, but do leave the following line in the code.  Thanks

   Copyright 1996, E.T. Smith Associates Brogue, Pennsylvania, USA 

   Special thanks to Andy Augustine for helping me rewrite the 
   script to be more readable and object oriented. Check out
   http://www.freqgrafx.com/411/ for javascript info and codes.
*/ 

/* The following set of parameters control the scrolling text and the
   box that contains it.

   bgn_ln   is the line which you want to appear in the box when the
            page loads, is only shown once. Leave blank if there is 
            to be no beginning line (though do leave the quotes).

   txt_ln   is the scrolling text. There is no real need to concatenate
            the line. Though for a long string of several messages it
            easier to edit the text using concatenation as shown.

   end_ln   is the text you want to appear the box when the scrolling 
            is over. Leave blank if there is to be no end message.

   speed    is the number of milliseconds for the line to move one 
            character.  A lower number will cause a higher speed. 
            Note: Higher speeds are limited by the speed of the user's
            cpu and other loads on it.

   box_lg   is the length of the text box (form input element) in
            which the scrolling text appears

   max      is the maximum number of scroll iterations to be done. To
            have a continuous scroll, just use rather large number(1000).
            I doubt everyone will be looking at it take long.

   the other variables: count; pos; stop; box_ln; msg_ln are used by the 
   script and should be left at their currently set initation values.

   The names of the form and box used for scrolling are scrlform and
   scrlbox.  I won't expect you to need different names, but if you do,
   make sure to change all occurances of these names in the following
   script and the script in the bottom half of the page.

   Also if the scrolling text is to be located such that it might not
   be seen when the page loads, please read the comments in the
   function scrlbox about preventing inadvertant stops by the user.

*/   
 
 function scrl_param(){
   this.bgn_ln = "About to start to scroll";
   this.txt_ln = "Scrolling Text Box...  "
              + "A number of features...  "
              + "make this way of showing scrolling text...  "
              + "much better than others... "
              + "especially the ability to stop it scrolling! "
                 ; 
   this.end_ln = "All Done Scrolling";

   this.speed = 200; 
   this.box_lg = 70;
   this.max = 10;
   this.count = 0;
   this.pos = 0;  
   this.stop = 0;
   this.box_ln = " ";
   if( this.txt_ln.length < this.box_lg ){  
      this.msg_ln = this.txt_ln; 
      for( var i = 0 ; i < (this.box_lg - this.txt_ln.length) ; i++ ) 
         this.msg_ln += " "; 
    }   
   else{ 
     this.msg_ln = this.txt_ln; 
     this.msg_ln += "          ";
   }  

  }

 var scrl = new scrl_param();
     
 function scrlbox() 
   { 
    /* if whole has been scrolled, reset to beginning of line */
    if( scrl.pos > scrl.msg_ln.length ){
      scrl.pos = 1;  
      scrl.count++; 
     } 
    
   /* construct display line using the line position property */
   scrl.box_ln = " "; 
   scrl.box_ln += scrl.msg_ln.substring(scrl.pos,scrl.msg_ln.length);  
   scrl.box_ln += scrl.msg_ln.substring(0,scrl.pos);  
 
   /* continue, if user hasn't unfocused the box */
   if( scrl.stop == 0 ) 
     {   
      /* The following sets focus on the scroll box, allowing the user to
         easy stop the text by clicking out of the box.  If scroll is to
         be located such that when the page is loaded the box may not be
         seen, the user may inadvertantly stop the text by clicking on
         the page before seeing the box. For this case you may wish to
         comment out the following line. The user will then have to click
         in the box and then out of the box to stop the text.
       */  
//      document.scrlform.scrlbox.focus(); 

      /* continue if the maximum iterations have not been done */ 
      if( scrl.count < scrl.max ) 
        { 
         scrl.pos++; /* advance line postion for next iteration */
         document.scrlform.scrlbox.value = scrl.box_ln; /* display new line */
         time3 = window.setTimeout('scrlbox()',scrl.speed); /* restart function */
        } 
      else /* maximum iteration been done */ 
        { 
         if ( scrl.end_ln.length > 2 ){ /* display end message if any */
            time2 = window.setTimeout("document.scrlform.scrlbox.value ="+ 'scrl.end_ln',scrl.speed); 
           } 
         document.scrlform.scrlbox.blur(); /* remove focus, so user */
        }                                  /* can easily restart */ 
     } 
 
 
  } 
 /* restart function */
 function startscrl() 
  { 
   scrl.stop = 0; 
   scrl.pos = 0; 
   scrlbox(); 
  } 
 
/* stop function */ 
function stopscrl() 
 { 
  scrl.stop = 1; 
 } 
 

function initComment() {
	document.getElementByID('scrollComment').innerHTML=startscrl()

	// document.write("<DIV align='center'><FORM NAME='scrlform'>"); 
	// document.write("<INPUT NAME='scrlbox' SIZE=" + scrl.box_lg + " onFocus='startscrl();' onBlur='stopscrl();' VALUE='" + scrl.bgn_ln + "'><BR>"); 
 
	time1 = window.setTimeout('scrollComment()',500); 
}

//-->