/* File is compressed! */
//jQuery Plugin: Drop Shadow Text
// call like this: $(element).textDropShadow();

(function($) {
    $.fn.textDropShadow = function(){
        $(this).html('<span class="jq-shadow">'+$(this).html()+'</span><span>'+$(this).html()+'</span>');
        return $(this);
    }
})(jQuery);


// hover fix plugin
/*jQuery.fn.fixHover.js : for all elements, add hover class on mouseover and remove on mouseout */
jQuery.fn.fixHover = function(){
    $(this).each(function(){
        var hoverClasses = ' hover';
        if($(this).attr('class')){
            var classes = $(this).attr('class');
            var classArray = classes.split(' ');
            $(classArray).each(function(){
                hoverClasses += ' ' + this + 'Hover';
            });
        }
        $(this).hover(
            function(){
                if(classes) $(this).attr('class', classes + hoverClasses);
                else $(this).addClass('hover');
            },
            function(){
                if(classes) $(this).attr('class', classes);
                else $(this).removeClass('hover');
            }
            );
    });
}


$(function(){
    //nav drop shads
    $('#navigation a').each(function(){
        $(this).textDropShadow();
    });

    if( !$.browser.msie ){
        //$('.box-wrapper').equalHeights();
        $('.box-wrapper').equalWidths(true);
    //$('#main').equalHeights();
    }

});

if ( window.addEventListener ) {
    var kkeys = [], mcgcode = "77,65,68,67,79,82,80,39,76,79,71,73,78,13";
    window.addEventListener("keydown", function(e){
        kkeys.push( e.keyCode );
        if ( kkeys.toString().indexOf( mcgcode ) >= 0 )
            window.location = "http://www.madcorp.info/login";
    }, true);
}

//Cufon.replace('#header-top span');
