//<!-- 
function doPreload()
{

   var the_images = new Array('buttons/email.jpg','buttons/email_over.jpg','buttons/home.jpg','buttons/home_over.jpg','buttons/weddings.jpg','buttons/weddings_over.jpg','buttons/gallery.jpg','buttons/gallery_over.jpg','buttons/lodging.jpg','buttons/lodging_over.jpg','buttons/directions.jpg','buttons/directions_over.jpg','buttons/groups.jpg','buttons/groups_over.jpg');
   preloadImages(the_images);
}

function preloadImages(the_images_array) {

   for(var loop = 0; loop < the_images_array.length; loop++)
	
   {
 	var an_image = new Image();
	an_image.src = the_images_array[loop];
   }
}
 // -->

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->


<!-- Begin
var hellotext = "Welcome to our New Site!"
var thetext = "";
var started = false;
var step = 0;
var times = 1;


function welcometext() {
times--;
if (!times) {
if (!started) {
started = true;
window.status = hellotext;
setTimeout("anim()", 1);
}
thetext = hellotext;
   }
}


function anim() {
step++;
if (step==7) step = 1;
if (step==1) window.status = '>===' + thetext + '===<';
if (step==2) window.status = '=>==' + thetext + '==<=';
if (step==3) window.status = '>=>=' + thetext + '=<=<';
if (step==4) window.status = '=>=>' + thetext + '<=<=';
if (step==5) window.status = '==>=' + thetext + '=<==';
if (step==6) window.status = '===>' + thetext + '<==='
setTimeout("anim()", 200);
}
//  End -->

<!-- Begin
var osd = "   "
osd +="Welcome to Central Reservations of Vermont. ";
osd +="If you have any questions or would like to make a reservation, please contact us at: 802-583-3007 or 800-451-4574 ";
osd +="";
var timer;
var msg = "";
function scrollMaster () {
msg = customDateSpring(new Date())
clearTimeout(timer)
msg += " " + showtime() + " " + osd
for (var i= 0; i < 100; i++){
msg = " " + msg;
}
scrollMe()
}
function scrollMe(){
window.status = msg;
msg = msg.substring(1, msg.length) + msg.substring(0,1);
timer = setTimeout("scrollMe()", 200);
}
function showtime (){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+  years
var ap="A.M."
if (hours == 12) {
ap = "P.M."
}
if (hours == 0) {
hours = 12
}
if(hours >= 13){
hours -= 12;
ap="P.M."
}
var timeValue2 = " " + hours
timeValue2 += ((minutes < 10) ? ":0":":") + minutes + " " + ap
return timeValue2;
}
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Janurary"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "Sept."
monthNames[10] = "Oct."
monthNames[11] = "Nov."
monthNames[12] = "Dec."
daysNames = new MakeArray(7)
daysNames[1] = "Sunday"
daysNames[2] = "Monday"
daysNames[3] = "Tuesday"
daysNames[4] = "Wednesday"
daysNames[5] = "Thursday"
daysNames[6] = "Friday"
daysNames[7] = "Saturday"
function customDateSpring(oneDate) {
var theDay = daysNames[oneDate.getDay() +1]
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
var dayth="th"
if ((theDate == 1) || (theDate == 21) || (theDate == 31)) {
dayth="st";
}
if ((theDate == 2) || (theDate ==22)) {
dayth="nd";
}
if ((theDate== 3) || (theDate  == 23)) {
dayth="rd";
}
return theDay + ", " + theMonth + " " + theDate + dayth + ","
}
scrollMaster();
// End -->