<!--
		var GAMING_LEISURE_INDUSTRY = "Gaming & Leisure";
        var RESTAURANT_RETAIL_INDUSTRY = "Restaurant & Retail";
        
        var tagLinePosition = 1;
        var tagLineIntervalId;
        var numberOfTagLines = 7;
        var gamingFileNames;
        var retaurant_retailFileNames;
        
        var gamingCurrentIndex = 0;
        var restaurant_retailCurrentIndex = 0;
       
        var tombstoneIntervalId;
        var selectedTombstoneIndustry;

        function showTagLine(position) {
            $("#TagLine" + (position == 1 ? numberOfTagLines : (position - 1))).animate({
                top: "500"
            }, 1000);
            $("#TagLine" + position).animate({
                top: "205"
            }, 1000);
        }

        function beginTagLineRotation() {
            tagLineIntervalId = setInterval(function () {
                if (tagLinePosition > numberOfTagLines) {
                    tagLinePosition = 1;                    
                }
                showTagLine(tagLinePosition++);
            }, 8000);
        }

        function pauseTagLineRotation() {
            clearInterval(tagLineIntervalId);
        }

        function beginTombstoneRotation()
        {
            tombstoneIntervalId = setInterval(function() {
                if (gamingCurrentIndex >= gamingFileNames.length)
                {
                    gamingCurrentIndex = 0;
                }
                if (restaurant_retailCurrentIndex >= retaurant_retailFileNames.length)
                {
                    restaurant_retailCurrentIndex = 0;
                }
               
                
                showNextTombstoneInRotation();                
            }, 4000);
        }

        function pauseTombstoneRotation()
        {
            clearInterval(tombstoneIntervalId);
        }

        function showNextTombstoneInRotation()
        {
            switch (selectedTombstoneIndustry)
            {
                case GAMING_LEISURE_INDUSTRY:
                    $("#TombstoneImage").attr("src", gamingFileNames[gamingCurrentIndex++]);
                    break;
                case RESTAURANT_RETAIL_INDUSTRY:
                    $("#TombstoneImage").attr("src", retaurant_retailFileNames[restaurant_retailCurrentIndex++]);
                    break;
               
            }
        }

        function cycleIndustryLeft()
        {
            pauseTombstoneRotation();
            switch (selectedTombstoneIndustry)
            {
                case GAMING_LEISURE_INDUSTRY:
                    selectIndustry(RESTAURANT_RETAIL_INDUSTRY);
                    break;
                case RESTAURANT_RETAIL_INDUSTRY:
                    selectIndustry(GAMING_LEISURE_INDUSTRY);
                    break;
                
            }

            showNextTombstoneInRotation();
            beginTombstoneRotation();
        }

        function cycleIndustryRight()
        {
            pauseTombstoneRotation();
            switch (selectedTombstoneIndustry)
            {
                case GAMING_LEISURE_INDUSTRY:
                    selectIndustry(RESTAURANT_RETAIL_INDUSTRY);
                    break;
                case RESTAURANT_RETAIL_INDUSTRY:
                    selectIndustry(GAMING_LEISURE_INDUSTRY);
                    break;
               
            }

            showNextTombstoneInRotation();
            beginTombstoneRotation();
        }

        function selectIndustry(industry)
        {
            selectedTombstoneIndustry = industry;
            $("#SelectedIndustryText").text(industry);
        }

        $(document).ready(function () {
            showTagLine(tagLinePosition++);
            beginTagLineRotation();

            $(".TagLineLink").hover(function () {
                pauseTagLineRotation();
            }, function () {
                beginTagLineRotation();
            });

            gamingFileNames = [
						 "images/tombstones/pearl_river2_cs.gif","images/tombstones/centaur_cs.gif","images/tombstones/jumers2_cs.gif","images/tombstones/florida_gaming_cs.gif","images/tombstones/florida_gaming2_cs.gif","images/tombstones/fortune_valley_cs.gif","images/tombstones/siena_cs.gif","images/tombstones/snoqualmie6_cs.gif","images/tombstones/otb_cs.gif","images/tombstones/grand_river_cs.gif","images/tombstones/snoqualmie5_cs.gif","images/tombstones/lake_torches_cs.gif","images/tombstones/central_palace_cs.gif","images/tombstones/snoqualmie4_cs.gif","images/tombstones/greektown_cs.gif","images/tombstones/mashpee_cs.gif","images/tombstones/harlows_cs.gif","images/tombstones/pearl_river_cs.gif","images/tombstones/resorts_cs.gif"
            ];

            retaurant_retailFileNames = [
                "images/tombstones/rr/applebees_cs.gif","images/tombstones/rr/hardees_cs.gif","images/tombstones/rr/furrs_cs.gif","images/tombstones/rr/saltgrass_cs.gif"
            ];

            
            
            selectIndustry(GAMING_LEISURE_INDUSTRY);
            $("#TombstoneImage").attr("src", gamingFileNames[gamingCurrentIndex++]);
            beginTombstoneRotation();

            $("#TombstoneImage").hover(function () {
                //pauseTombstoneRotation();
            }, function() {
                //beginTombstoneRotation();
            });

            $("#arrow_left").hover(function () {
                $(this).attr("src", "images/arrow_lefthover.gif");
            }, function() {
                $(this).attr("src", "images/arrow_left.gif");
            });
            $("#arrow_left").click(function () {
                cycleIndustryLeft();
            });

            $("#arrow_right").hover(function () {
                $(this).attr("src", "images/arrow_righthover.gif");
            }, function() {
                $(this).attr("src", "images/arrow_right.gif");
            });
            $("#arrow_right").click(function () {
                cycleIndustryRight();
            });
        });
// End of script -->
