﻿// JScript File

    // Zebra Stripe Tables

       $(document).ready(function(){
       $("table.JobPostings tr").mouseover(function(){
       $(this).addClass("hover");}).mouseout(function(){
       $(this).removeClass("hover");});
       $("table.JobPostings tr:even").addClass("even");
    });
    
       $(document).ready(function(){
       $("table.BrokerPage tr").mouseover(function(){
       $(this).addClass("hover");}).mouseout(function(){
       $(this).removeClass("hover");});
       $("table.BrokerPage tr:even").addClass("even");
    });


    // Show/Hide Toggle for FAQs
        $(document).ready(function(){  
        //hide the all of the element with class msg_body  
        $(".msg_body").hide();  
        //toggle the componenet with class msg_body  
        $(".msg_head").click(function()  {    
        $(this).next(".msg_body").slideToggle(300);  
        });
        $(".expand_all").click(function()  {
        $(".msg_body").show(300);
        });
        $(".collapse_all").click(function()  {
        $(".msg_body").hide(300);
        });
        });

    // Image Slideshow for Home Page
        $(document).ready(function(){
        $('.fadein img:gt(0)').hide();
        setInterval(function(){
        $('.fadein :first-child').fadeOut(1100)
        .next('img').fadeIn()
        .end().appendTo('.fadein');},1500);
        });
