﻿$(function () {

    var $j = jQuery.noConflict();  

    // Navigation effects
    $j("nav[role=navigation] > ul").lavaLamp({ fx: "backout", speed: 700 });
    $j("nav[role=navigation] ul li:has(ul)").hoverIntent(function () {
        $j(this).children("ul").hide();
        $j(this).children("ul").slideDown();
    }, function () {
        $j(this).children("ul").hide();
    });

    if ($j.browser.msie && parseInt($j.browser.version, 10) == "7") {
        $j("#wrapper").prepend("<div id='wrapper-before'></div>");
        $j("#wrapper").append("<div id='wrapper-after'></div>");
    }
});
