


var pic_width=400;
var pic_height=300;

/* define image urls */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="http://www.nccoastvacationrentals.com/bbfront.jpg";  
     pic2= new Image(pic_width,pic_height); 
     pic2.src="http://www.nccoastvacationrentals.com/bbLR2.jpg"; 
     pic3= new Image(pic_width,pic_height);
     pic3.src="http://www.nccoastvacationrentals.com/bbLR3.jpg";  
     pic4= new Image(pic_width,pic_height);
     pic4.src="http://www.nccoastvacationrentals.com/bbSR2.jpg";  
     pic5= new Image(pic_width,pic_height);
     pic5.src="http://www.nccoastvacationrentals.com/bbSR3.jpg";
     pic6= new Image(pic_width,pic_height);
     pic6.src="http://www.nccoastvacationrentals.com/bbBR2.jpg";  
     pic7= new Image(pic_width,pic_height); 
     pic7.src="http://www.nccoastvacationrentals.com/bbBRback1.jpg";
     pic8= new Image(pic_width,pic_height); 
     pic8.src="http://www.nccoastvacationrentals.com/bbgrounds1.jpg"; 
     pic9= new Image(pic_width,pic_height);
     pic9.src="http://www.nccoastvacationrentals.com/taylorscrkboats1.jpg";  
     pic10= new Image(pic_width,pic_height);
     pic10.src="http://www.nccoastvacationrentals.com/sailboats1.jpg";  
     pic11= new Image(pic_width,pic_height);
     pic11.src="http://www.nccoastvacationrentals.com/marina1.jpg";
     pic12= new Image(pic_width,pic_height);
     pic12.src="http://www.nccoastvacationrentals.com/boardwalk1.jpg";
     pic13= new Image(pic_width,pic_height);
     pic13.src="http://www.nccoastvacationrentals.com/upwaterway1.jpg";
     pic14= new Image(pic_width,pic_height);
   pic14.src="http://www.nccoastvacationrentals.com/turnerstreet1.jpg";
     pic15= new Image(pic_width,pic_height);
     pic15.src="http://www.nccoastvacationrentals.com/downtown1.jpg";
     
     
      
 }    

var destext= new Array(15)
    destext[0]="Beaufort Bungalow offers the best accomodations for business conferences, local festivals and romantic last minute getaways and honeymoons!";
    destext[1]="The Spacious and Comfortable Living Room mkes a great place for afternoon guest gatherings.";
    destext[2]="Beautifully decorated with antique reproductions and plush oriental style rugs.";
    destext[3]="The cozy Sitting Room invites conversation.";
    destext[4]="A great place to relax and share the day's adventures!";
    destext[5]="Each bedroom offers a queen size bed and private bath.";
    destext[6]="The bedrooms are cozy and comfortable.";
    destext[7]="The grounds are beautifully landscaped.";
    destext[8]="A stroll along Taylor's Creek Waterway offers picturesque views.";
    destext[9]="Sailboats anchored in Taylor's Creek are always a lovely sight.";
    destext[10]="The picturesque downtown Marina offers a number of watersports, tours and cruises.";
    destext[11]="Strolling the Boardwalk offers interesting sights of yachts, sailboats and pleasure boats.";
    destext[12]="Looking up Taylor's Creek shows that this waterway in no creek!";
    destext[13]="Turner Street in the Historic District features the famous Net House Restuarant and local favorites Matthew's Coffee Shop and The King James Cafe.";
    destext[14]="Downtown Front Street has many unique shops and great restuarants (many on the waterfront).";
    
 
var pics= new Array(15) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;
   pics[8]=pic9.src;
   pics[9]=pic10.src;
   pics[10]=pic11.src;
   pics[11]=pic12.src;
   pics[12]=pic13.src;
   pics[13]=pic14.src;
   pics[14]=pic15.src; 
  
  
  
var numpics=15;
var thenum=0;
imgName="img1";

function change_it()
 {
   if (document.images)
    {
      document.write("<IMG SRC='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'>\n");
      document.write("<P><FORM name='form1'><TEXTAREA name='text1' wrap='virtual' rows='4' cols='45'>"+destext[thenum]+"</TEXTAREA></FORM>");
      setTimeout('change_it2()',6000);  
   }
}

function change_it2()
 {
         var x=0;
         thenum+=1;

         if (thenum>numpics-1)
         { 
           document[imgName].src=pics[0];
           document.form1.text1.value="Click Refresh or Reload to play again.";
           }
         else
         {
           document[imgName].src=pics[thenum];
           document.form1.text1.value=destext[thenum];
           x+=1;
           setTimeout('change_it2()',6000);
          }
 }



