﻿$(document).ready(function () {

    $(".middle li").each(function () {
        if (location.href.indexOf($(this).find("> a").attr("href")) > -1) {
            $(this).addClass("active");
        }
    });
    $(".middle li a").hover(
        function () {
            $(this).parent().addClass("hover");
        },
        function () {
            $(this).parent().removeClass("hover");
        }
    );

    $(".portlet").each(function () {
        $(this).click(
            function () {
                var url = $(this).find("a.more").attr("href");
                if (url != '' && url != 'undefined' && url != undefined) {
                    location.href = url;
                }
            }
        );
    });
    if ($.browser.msie && $.browser.version <= 6.9) {
        $("img[align]").each(function () {
            $(this).css("float", $(this).attr("align")).removeAttr("align");
        });
    }
});
