/// <reference path="jquery-1.4.4-vsdoc.js" />
/*
Copyright in this document remains the property of Rapp Limited and this document may not be reproduced in whole or part without our prior written consent.  All information of whatever nature contained in this document is strictly confidential and may not be used, implemented, adapted or communicated to any third party without the consent of Rapp Limited.
*/

$(document).ready(function () {

    //incase javascript is turned off nivoslider is set to dispaly none on startup
    $('#slider.nivoSlider').css('display', 'block');

    //place the plus sign in the servicebox on mouseover
    $('.serviceBox').mouseover(function () {
        $(this).children('div').children('img').attr('src', 'images/bg-fade.gif');
    });
    $('.serviceBox').mouseout(function () {
        $(this).children('div').children('img').attr('src', 'images/spacer.gif');
    });

    //alerts for contact page, this code is actually not necessary
    fieldAlertUpdate({ additional: "This is an non existant alert"
    });

    $('div.expandable p').expander({
        slicePoint: 250,  // default is 100
        expandSpeed: 250,
        //expandText:         'read more', // default is 'read more...'
        //collapseTimer:    5000, // re-collapses after 5 seconds; default is 0, so no re-collapsing
        //userCollapseText: '[collapse]'  // default is '[collapse expanded text]'
    });

    //append these links to the main links user control
    $('#quickLinks ul').append("<li><a href='/privacy'>Privacy</a></li>");
    $('#quickLinks ul').append("<li><a href='/jobs'>Jobs</a></li>");

});
