$(document).ready(function () {
    $('html').addClass('j');
    //$(".tabContent .t01").tabs();
    
    $("#hide").click(function (event) {
        event.preventDefault();
        $(".patch_insertion").slideToggle(1500);
        if ($(this).hasClass('hidden')) {
            $(this).removeClass('hidden');
            $(this).addClass('shown');
            $(this).text('Hide patch');
        } else {
            $(this).removeClass('shown');
            $(this).addClass('hidden');
            $(this).text('Show patch');
        }
    });
    
    $("#qmwats-9_3_patch a").click(function (event) {
        event.preventDefault();
        $(".patch_insertion").slideUp();
    });
    
    $("#content .patch").draggable({
        handle: 'div'
    });
});

function changePage(hl, pos) {
    if (hl) {
        location.href = $('#selPage_' + pos + ' option:selected').val() + '.html?hl=' + hl;
    } else {
        location.href = $('#selPage_' + pos + ' option:selected').val() + '.html';
    }
}

function show(a) {
    if (a.childNodes[0].style.display == "inline") {
        a.childNodes[0].style.display = "none"
    } else {
        a.childNodes[0].style.display = "inline"
    }
}
