﻿$.include(['../javascript/jquery.easing.js', '../javascript/jquery.lavalamp.js']);
$(function() {
    $("#columnbar img").css("opacity", 0.3).hover(
        function() { $(this).stop().animate({ 'opacity': 1 }, 600) },
        function() { $(this).stop().animate({ 'opacity': 0.3 }, 600) }
    ).click(function() {
        $("#main").slideDown('slow');
        var $lm = $("#lm" + $(this).attr("lm"));
        $lm.parent().mouseover().click();
        window.ifrMain.document.location.href = $lm.attr("href");
    });
    $('#menu').lavaLamp({ fx: 'swing', speed: 333 }).find("a").focus(function() { $(this).blur() });

    $("#btnClose").click(function() {
        $(this).parent().slideUp('slow')
    }).hover(function() { $(this).addClass("over") }, function() { $(this).removeClass("over"); });

    $(window).resize(function() {
        $("#main").css({ left: ($(document).width() - 880) / 2 });
    }).resize();
});

