$('.CheckBox').ready(function(){
    $('.CheckBox').hide();
});

$(document).ready(function() {
    $this = $('.CurrentUsageTextBox');
    if ($this != null) {
        try{
            $this.focus();
        }
        catch (e)
        {
        }
        CheckFlash();

        $this.blur(function() {
            var value = parseInt($(this).val(), 10);
            if (value >= 1900 && value < 100000) {
                $('.CheckBox').fadeIn();
            } else {
                $('.CheckBox').fadeOut();
            }
        });

        $(".StartButton").mouseover(function() { $(".StartButton").addClass("HoverStartButton"); });
        $(".StartButton").mouseout(function() { $(".StartButton").removeClass("HoverStartButton"); });
        $(".Wczytaj").mouseover(function() { $(".Wczytaj").addClass("HoverWczytaj"); });
        $(".Wczytaj").mouseout(function() { $(".Wczytaj").removeClass("HoverWczytaj"); });
        $(".UseScenarios li input").mouseover(function() { $(this).addClass("HoverScenario"); });
        $(".UseScenarios li input").mouseout(function() { $(this).removeClass("HoverScenario"); });
        $(".SkipLink").mouseover(function() { $(this).addClass("HoverSkipLink"); });
        $(".SkipLink").mouseout(function() { $(this).removeClass("HoverSkipLink"); });

        $(".StartPage .SkipLink").click(function() { $(".StartPage .SkipLink").addClass("SkipLinkHover"); });
    }
});

