﻿//Author: Darren Northcott
$(function() {

    // $('html').prepend('<script type="text/javascript" src="http://dev.jquery.com/export/5949/trunk/plugins/color/jquery.color.js"><script>');
    $('body').find('a').css({ outline: 'none' });

    $.fn.bgHighlight = function(colorS) {
        $(this).stop();
        if (colorS == '' || colorS == null) { colorS = '#a6dd71'; }
        $(this).css({ background: '' + colorS });
        $(this).animate({ backgroundColor: 'transparent' }, 1000);
    }

    $.fn.expand = function(target) {
        var container = $(this).parent().find('div.showHide');
        container.css({ display: 'none' });

        $(this).click(function() {
            container = $(this).parent().find('div.showHide');

            $('.testimonialLink').css({ background: 'url("../images/arrowDown.gif") no-repeat right center' });
            $('.showHide').slideUp("fast");

            if (container.css('display') == 'none') {
                $(this).css({ background: 'url("../images/arrowUp.gif") no-repeat right center' });
                container.slideDown();
            } else {
                $(this).css({ background: 'url("../images/arrowDown.gif") no-repeat right center' });
                container.slideUp();
            }
        });
    }


});



