﻿var slideShowSpeed = 5; // Specify the number of delays in seconds
var captionID = "slideText"; // Specify the element id of the slideText container, ( div/span/p etc. ).
var crossFadeDuration = 3; // Specify the Cross Fade Duration in ( seconds ).
// Specify the filename's of the images that will be loaded in the slideShow rotation. Must be delimited by a ( space or comma ).
var $Path = "/images/HomeScroll/home-reel01.jpg, /images/HomeScroll/home-bait01.jpg, /images/HomeScroll/home-fish01.jpg,/images/HomeScroll/home-boat01.jpg, /images/HomeScroll/home-fish02.jpg, /images/HomeScroll/home-fish03.jpg, /images/HomeScroll/home-fish04.jpg, /images/HomeScroll/home-kids01.jpg"; 
var $text = [
// Specify your Slide message's here, must be double quoted ( "" ) and delimited by a ( , ).
/* 1 */
"<span class='goldScrollText'>NO EXPERIENCE NECESSARY!</span><br /><br />Depending on the conditions and client requests the captain will determine the strategy for your charter.  Our goal is to make your fishing trip the most enjoyable for you, your friends and your family. The captain and crew are eager to share stories, experiences and fun with all ages and levels.",
/* 2 */
"<span class='goldScrollText'>Welcome to Outer Limit Fort Lauderdale Sportfishing</span><br /><br />We know you have several choices for your charter… selecting the finest vessel and the most experienced crews in South Florida will ensure you of excellent customer service and a rewarding fishing trip.<br /><br /><a href='/Vessels.aspx' class='redLink'>Read more >></a>",
/* 3 */
"<span class='goldScrollText'>Outer Limit</span><br />is a one of a kind 57’ custom Spencer yacht.  She will provide one of your best charter trips ever!  She will accommodate up to 6 guests for full day and multiple day trips – including tournaments and extended offshore trips to the Keys and the Bahamas.<br /><br /><a href='http://www.flickr.com/photos/48919259@N06/sets/72157623775047176/show/?no_back=1' target='_blank' class='redLink'>View slideshow >></a>",
/* 4 */
"<span class='goldScrollText'>Captain Johan</span><br />(formerly from Big Game) has many years of fishing experience in SE Florida, the Bahamas, Costa Rica, India, the Mediteranean and several other remote and exotic locations.<br /><br /><a href='/CaptainandCrew.aspx' class='redLink'>Read more >></a>",
/* 5 */
"<span class='goldScrollText'>Billistic</span><br />is a beautiful 50’ custom built Bertram; fully equipped to provide an excellent charter experience. She will accommodate up to 6 guests for half day and full day trips.  Whether you are hoping to catch a succulent Mahi for dinner, or fight a trophy sailfish; Billistic is ready for an exciting fishing adventure.<br /><br /><a href='http://www.flickr.com/photos/48919259@N06/sets/72157623650877095/show/?no_back=1' target='_blank' class='redLink'>View slideshow >></a>",
/* 6 */
"<span class='goldScrollText'>Stimulus</span><br />is a fast and very comfortable center console boat.  She will accommodate up to 6 guests for full and half day trips.  Her speed ensures that you will be on the fish fast with more time to keep the rods in the water.  She is an awesome fishing machine and equipped with everything our larger boats have to ensure a great fishing experience.<br /><br /><a href='http://www.flickr.com/photos/48919259@N06/sets/72157623775056112/show/?no_back=1' target='_blank' class='redLink'>View slideshow >></a>",
/* 7 */
"Docked at Bahia Mar Resort and Marina in Fort Lauderdale, we are very convient to most major hotels, cruise lines, and just minutes from Ft. Lauderdale Int'l Airport.",
/* 8 */
"Guests who choose to just come along for the ride can enjoy the superior interior amenities which guarantees comfort unlike any other local charter.  You may also travel up on the bridge, where you can enjoy the views and captain’s commentary during your trip."];
/* W-A-R-N-I-N-G!
- Do not attempt to alter any lines below -- unless you know what you are exactly doing! 
This notice must remain intact for use.
- DANIuser : essential ~
- Profile : http://www.daniweb.com/forums/member383844.html
- Get More IT Solutions at: http://www.daniweb.com/ 
*/
var count = 0;
var textCount = 0;
var $images, $img;
var runSlideShow;
$images = [];
$Path = (($Path.split) ? $Path.split(/[\,\s]+/) : $Path.match(/[\w\d]+(?:\.\w+)/g));
runSlideShow = function() {
    ((count === $Path.length) ? count = 0 : count);
    ((textCount === $text.length) ? textCount = 0 : textCount);
    $div = ((document.all) ? document.all[captionID] : ((document.getElementById) ? document.getElementById(captionID) : document.layers[captionID]));
    $img = ((document.images) ? document.images.slideShow : ((document.getElementById) ? document.getElementById("slideShow") : ((document.layers) ? document.layers.slideShow : document.all.slideShow)));
    if (document.images) {
        if ($img.style.filter) { // Exception for some browser's that do not understand image filtration. Just making sure that whole thing will still, work with or without images filtration support.
            $img.style.filter = " blendTrans( duration=2 )";
            $img.style.filter = "blendTrans( duration = crossFadeDuration )";
            (($img.filters) ? $img.filters.blendTrans.Apply() : $img);
        } for (var x = 0; x < $Path.length; x++) {
            $images[x] = new Image();
            $images[x].src = $Path[x];
        }
        $img.src = $Path[count];
        //$div.innerHTML = $text[textCount++];
        //$img.alt = $img.src;
        //(($img.filters) ? $img.filters.blendTrans.Play() : $img);
        setTimeout("runSlideShow()", (slideShowSpeed * 1000))
    }
    count++;
};

