$(document).ready(function() {

    $(".cut_ref.clicker").click(function() {
        $(".cut_ref.clicker").hide();
        $(".ful_ref").show();
    });
    $(".ful_ref").click(function() {
        $(".ful_ref").hide();
        $(".cut_ref.clicker").show();
    });


/*
    // tooltip
    if (document.getElementById("whats_the")) {
        $("#whats_the div.item a").cluetip({splitTitle: ' | ', positionBy: 'mouse'});
    }
*/
    $("#form-order-id input").focus(function () {
         $(this).css('border','1px solid #ff0000');
    });
    $("#form-order-id input").blur(function () {
         $(this).css('border','1px solid #cccccc');
    });
    $("#form-order-id select").focus(function () {
         $(this).css('border','1px solid #ff0000');
    });
    $("#form-order-id select").blur(function () {
         $(this).css('border','1px solid #cccccc');
    });
    $("#form-order-id textarea").focus(function () {
         $(this).css('border','1px solid #ff0000');
    });
    $("#form-order-id textarea").blur(function () {
         $(this).css('border','1px solid #cccccc');
    });

    var elem_class = window.location.hash.replace('#', '');
    if (elem_class) {
        // FAQ
        $("div." + elem_class).toggle();
        $("span." + elem_class).css('display', 'none');

        // Productpage
        switchEff(elem_class);
    }
});

function toggleElem(el) {
    $("#ful_"+el).toggle();
}

