﻿$.fn.timeout = function (t, f) { this.each(function () { setTimeout(f, t); }); return this; };
function unBindFormRequest() {
    var spUnBind = $("#spUnBindFormRequest");
    if (spUnBind[0]) {
        $("#spUnBindFormRequest").text("1");
    }
}
$(function () {
    var btnFreeAdv = $(".goColorBox");
    if (btnFreeAdv[0]) {
        $(".goColorBox").colorbox();
    }
    $(".ikaz_tasiyici .close").click(function () {
        var warning = $(".ikaz_tasiyici");
        $(warning).fadeOut(function () {
            $(warning).remove();
        });
        $(".warningspace").fadeOut(function () {
            $(".warningspace").remove();
        });
    });
    $(".tool-tip").tipTip();
});
String.prototype.beginsWith = function (t, i) {
    if (i == false) {
        return
        (t == this.substring(0, t.length));
    } else {
        return (t.toLowerCase()
== this.substring(0, t.length).toLowerCase());
    }
}
String.prototype.endsWith = function (t, i) {
    if (i == false) {
        return (t
== this.substring(this.length - t.length));
    } else {
        return
        (t.toLowerCase() == this.substring(this.length -
t.length).toLowerCase());
    }
} 


