﻿/// <reference path="jquery-1.5-min.js" />
/// <reference path="slider.js" />
/// <reference path="jquery.preloadify.min.js" />

$(document).ready(function () {

    $('.box-hover').hover(function () {
        $('.fade-target img').stop().animate({ 'opacity': '0' }, 'slow');
        $('img.lex-boxes-' + $(this).attr("rel") + '-back').stop().animate({ 'opacity': '1' }, 'slow');
    });

    $('#lex-news-tabs').tabs();

    $('#spotlight-slider').slider();

    $('.box-hover').click(function () {
        window.location = $(this).attr('rel') + '/home.aspx';
    });

    $('#spotlight-slider').preloadify({ imagedelay: 250 });

    $('.tab-link').hover(function () {
        $(this).css('background', '#dddddf');
    }, function () {
        $(this).css('background', 'none');
    });

    $('.tab-link').click(function (e) {
        window.location = $(this).attr('rel');
    });
});
