if (jQuery.browser.msie && navigator.userAgent.toLowerCase().indexOf('msie 6') > -1){
    jQuery(document).ready(function() {
        jQuery('.menu li').hover(
            function() {
                jQuery(this).addClass('sfhover');
            },
           
            function() {
                jQuery(this).removeClass('sfhover');    
            }
        );
    });
}

jQuery(document).keypress(function(e) {
    
    if ((e.ctrlKey == true) && (e.keyCode == 13)) {        
        var atext = encodeURI(window.getSelection());
        
        jQuery.get("/public/mistype", {data:[atext], url:[window.location.href]}, function(msg) { alert(msg); });
    }
});

function effect_toggle(id){
    var effect = $("#"+id)[0];
    if (effect.style.display == "none"){
        effect.style.display = "";
    } else
    {
        effect.style.display = "none";
    }
}

resize = function(){     
    var h = jQuery(window).height() - 235;
    
    if (h > 0){
        if (jQuery('.content').attr('offsetHeight') < h){
            jQuery('.content').css('paddingBottom', (h - jQuery('.content').attr('offsetHeight')) + 'px');
        }
    }    
}

jQuery(window).ready(resize);
