settings

blindtest
$("#btn-blind").click(function() {
    if (flag['blind'] = !flag['blind']) {
        $("#test-blind").hide("blind", { direction: "vertical" }, 1000);
    }
    else {
        $("#test-blind").show("blind", { direction: "horizontal" }, 500);
    }
});
cliptest
$("#btn-clip").click(function() {
    if (flag['clip'] = !flag['clip']) {
        $("#test-clip").hide("clip", { direction: "vertical" }, 1000);
    }
    else {
        $("#test-clip").show("clip", { direction: "horizontal" }, 500);
    }
});
droptest
$("#btn-drop").click(function() {
    if (flag['drop'] = !flag['drop']) {
        $("#test-drop").hide("drop", { direction: "right" }, 1000);
    }
    else {
        $("#test-drop").show("drop", { direction: "down" }, 500);
    }
});
explodetest
$("#btn-explode").click(function() {
    if (flag['explode'] = !flag['explode']) {
        $("#test-explode").hide("explode", {}, 1000);
    }
    else {
        $("#test-explode").show("explode", { pieces: 30 }, 500);
    }
});
foldtest
$("#btn-fold").click(function() {
    if (flag['fold'] = !flag['fold']) {
        $("#test-fold").hide("fold", {}, 1000);
    }
    else {
        $("#test-fold").show("fold", {}, 500);
    }
});
pufftest
$("#btn-puff").click(function() {
    if (flag['puff'] = !flag['puff']) {
        $("#test-puff").hide("puff", {}, 1000);
    }
    else {
        $("#test-puff").show("puff", {}, 500);
    }
});
slidetest
$("#btn-slide").click(function() {
    if (flag['slide'] = !flag['slide']) {
        $("#test-slide").hide("slide", { direction: "right" }, 1000);
    }
    else {
        $("#test-slide").show("slide", { direction: "down" }, 500);
    }
});
scale1test
$("#btn-scale1").click(function() {
    if (flag['scale1'] = !flag['scale1']) {
        $("#test-scale1").effect("scale", { percent: 50 }, 1000);
    }
    else {
        $("#test-scale1").effect("scale", { percent: 200 }, 500);
    }
});
scale2test
$("#btn-scale2").click(function() {
    if (flag['scale2'] = !flag['scale2']) {
        $("#test-scale2").hide("scale", {}, 1000);
    }
    else {
        $("#test-scale2").show("scale", { percent: 100 }, 500);
    }
});
scale3test
$("#btn-scale3").click(function() {
    if (flag['scale3'] = !flag['scale3']) {
        $("#test-scale3").effect("scale", { percent: 200, direction: "horizontal" }, 1000);
    }
    else {
        $("#test-scale3").effect("scale", { percent: 50, direction: "horizontal"  }, 500);
    }
});
sizetest
$("#btn-size").click(function() {
    if (flag['size'] = !flag['size']) {
        $("#test-size").effect("size", { to: { width: 100, height: 50 } }, 1000);
    }
    else {
        $("#test-size").effect("size", { to: { width: 500, height: 100 } }, 500);
    }
});
pulsatetest
$("#btn-pulsate").click(function() {
    if (flag['pulsate'] = !flag['pulsate']) {
        $("#test-pulsate").effect("pulsate", { times: 1 }, 1000);
    }
    else {
        $("#test-pulsate").effect("pulsate", { times: 4 }, 500);
    }
});
bouncetest
$("#btn-bounce").click(function() {
    if (flag['bounce'] = !flag['bounce']) {
        $("#test-bounce").effect("bounce", { times: 2 }, 1000);
    }
    else {
        $("#test-bounce").effect("bounce", { times: 4 }, 500);
    }
});
highlighttest
$("#btn-highlight").click(function() {
    if (flag['highligt'] = !flag['highligt']) {
        $("#test-highlight").effect("highlight", {}, 1000);
    }
    else {
        $("#test-highlight").effect("highlight", {}, 500);
    }
});
shaketest
$("#btn-shake").click(function() {
    if (flag['shake'] = !flag['shake']) {
        $("#test-shake").effect("shake", { times: 2 }, 1000);
    }
    else {
        $("#test-shake").effect("shake", { times: 4 }, 500);
    }
});
transfertest
$("#btn-transfer").click(function() {
    if (flag['transfer'] = !flag['transfer']) {
        $("#test-transfer").effect("transfer", { to: "#test-transfer-to" }, 1000);
    }
    else {
        $("#test-transfer-to").effect("transfer", { to: "#test-transfer" }, 500);
    }
});