var highlight_color = '#950006';
var curvyCornersVerbose = false;

$(document).ready(function() {
    var onclick_redirect = function (event) {
            var url = event.currentTarget.getAttribute('redirecturl')
      window.location = url;
    }

    var cursor2pointer = function (event) {
        document.body.style.cursor = 'pointer';
    }

    var cursor2default = function (event) {
        document.body.style.cursor = 'default';
    }

    $('.mainarticle').bind('click', onclick_redirect)
    $('.mainarticle').bind('mouseover', cursor2pointer)
    $('.mainarticle').bind('mouseout', cursor2default)
});


$().ready(function(){
    $("#search_form").submit(function(){
        if ($("#search_text").val() == '') {
            $("#search_error").removeClass('hidden');
            return false;
        }
    });
    $("#search_button").click(function(){
        $("#search_form").submit();
        return false;
    });
    $("#edition_button").click(function(){
        $("#edition_form").submit();
        return false;
    });
});

$().ready(function() {
    $('#thema .gimmick-opener').bind('mouseover', function() {
        $('#thema').addClass('gimmick-open')
    });
    $('#thema .gimmick-contents').bind('mouseleave', function() {
        $('#thema').removeClass('gimmick-open')
    });
});
