﻿// JavaScript Effects File
(function ($) {
    // Within this block, $ is a reference to jQuery
    // Neat, huh?
    // Add a "target" of blank to all external links (ones that start with http://)
    $('a[href^="http://"]').addClass('externalLink').attr('target', '_blank');
})(jQuery);

$(document).ready(function(){
    $(".bigAd ul").innerfade ({ timeout: 4000, speed: 'slow' });
});
      
//rotate through the ul's in .quoteFacts
$(document).ready(function(){
    $('.quoteList li').innerfade({ timeout: 4000, speed: 'slow' });
});
$(document).ready(function(){
     
    //applies the jsHoverOn to any element with the .hoverOn class
    $('.hoverOn').hover(function() { 
        $(this).addClass('jsHoverOn'); 
    }, function() { $(this).removeClass('jsHoverOn');
    });

    /*
    $('.faqLink').click(function(){
        $('#divAnswerBody').hide().fadeIn('slow');
        $('.faqLink').removeClass('jsHighlight');
        $(this).addClass("jsHighlight");
        return false;
    });
    
    $('.faqLink').hover(
        function(){$(this).addClass("jsHover");}
        ,function(){ $(this).removeClass("jsHover"); 
    }); */

      /*$('.closeButton').click(function() {
         $('.confirm').fadeOut('slow');
            return false;
         });*/
    
      
});
      
