﻿function SetupSimpleSearch(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D) { $(document).ready(function () { function bg(a, b, c, d) { if (d == "true" && $("select." + a + ", select." + b).css("display") != "none") { $("select." + a + ", select." + b).hide(); var e = $("select." + a + " option:first").text(); var f = $("select." + a + " option:last").text(); $("span." + c).text(e + C + f); $("select." + a + ", select." + b).selectToUISlider({ labels: 0, tooltip: false, sliderOptions: { change: function (d, e) { var f = $("select." + a + " option").eq(e.values[0]).text(); var g = $("select." + b + " option").eq(e.values[1]).text(); $("span." + c).text(f + C + g) } }, cssClass: c }) } else { if (d == "true") { var e = $("select." + a + " option:first").text(); var f = $("select." + a + " option:last").text(); $("span." + c).text(e + C + f); $("div." + c).remove(); $("select." + a + ", select." + b).selectToUISlider({ labels: 0, tooltip: false, sliderOptions: { change: function (d, e) { var f = $("select." + a + " option").eq(e.values[0]).text(); var g = $("select." + b + " option").eq(e.values[1]).text(); $("span." + c).text(f + C + g) } }, cssClass: c }) } } } function bf(a) { var b = true; $(a).each(function () { if ($(this).val() <= 0 || $(this).val() == "null") { b = false } if (b == false) { return false } }); if (b == true) { return true } } function be(a) { $.getJSON(c + "/UpdateSearchStats.ashx" + a, null) } function bd(a, b, c) { var d = "&"; if (a == "") d = "?"; a = a + d + b + "=" + c; return a } function bc(a, b) { var c = a.split(","); var d = 0; for (d = 0; d < c.length; d++) { $("select#" + b + " option[value=" + c[d].toString() + "]").attr("selected", "selected") } } function bb(a, b) { var c = $.jqURL.get(a); if (c != "undefined" && c != null) { if (a == n || a == l) { $(b).val(c.toString()) } else { if ($(b).css("display") != "none") { bc(c, b) } } switch (a) { case n: W(); break; case o: X(c); break; case p: Y(); break } } } function ba() { var a = $(N + " option").index($(N + " option:last")); $(N + " option:eq(" + a + ")").attr("selected", "selected"); bg("minTypology", "maxTypology", "typologyRange", z) } function _(a) { $(O).html(""); $(O).attr("disabled", "disabled"); $(P).html(""); $(P).attr("disabled", "disabled"); var b = []; switch (parseInt(a)) { case 1516: case 241: b.push({ key: "0", value: 0 }); b.push({ key: "250", value: 250 }); b.push({ key: "350", value: 350 }); b.push({ key: "450", value: 450 }); b.push({ key: "500", value: 500 }); b.push({ key: "1.000", value: 1e3 }); b.push({ key: "1.500", value: 1500 }); b.push({ key: "2.000", value: 2e3 }); b.push({ key: "> 2.000", value: 0 }); break; case 0: default: b.push({ key: "0", value: 0 }); b.push({ key: "25.000", value: 25e3 }); b.push({ key: "50.000", value: 5e4 }); b.push({ key: "75.000", value: 75e3 }); b.push({ key: "100.000", value: 1e5 }); b.push({ key: "150.000", value: 15e4 }); b.push({ key: "200.000", value: 2e5 }); b.push({ key: "> 200.000", value: 0 }); break } $.each(b, function () { var a = $(this).attr("key"); var b = $(this).attr("value"); $(O).append($("<option></option>").attr("value", b).text(a)); $(P).append($("<option></option>").attr("value", b).text(a)) }); $(O).removeAttr("disabled"); $(P).removeAttr("disabled"); var c = $(P + " option").index($(P + " option:last")); $(P + " option:eq(" + c + ")").attr("selected", "selected"); bb(v, O); bb(w, P); bg("minPrice", "maxPrice", "priceRange", B) } function Z(a) { $(Q).html(""); $(Q).attr("disabled", "disabled"); $(R).html(""); $(R).attr("disabled", "disabled"); var b = []; switch (parseInt(a)) { case 0: case 222: case 223: b.push({ key: "0", value: 0 }); b.push({ key: "100", value: 100 }); b.push({ key: "150", value: 150 }); b.push({ key: "200", value: 200 }); b.push({ key: "250", value: 250 }); b.push({ key: "300", value: 300 }); b.push({ key: "350", value: 350 }); b.push({ key: "400", value: 400 }); b.push({ key: "450", value: 450 }); b.push({ key: "500", value: 500 }); b.push({ key: "550", value: 550 }); b.push({ key: "600", value: 600 }); b.push({ key: "650", value: 650 }); b.push({ key: "700", value: 700 }); b.push({ key: "750", value: 750 }); b.push({ key: "800", value: 800 }); b.push({ key: "850", value: 850 }); b.push({ key: "900", value: 900 }); b.push({ key: "950", value: 950 }); b.push({ key: "1.000", value: 1e3 }); b.push({ key: "> 1.000", value: 0 }); break; case 1532: case 224: b.push({ key: "0", value: 0 }); b.push({ key: "500", value: 500 }); b.push({ key: "1.000", value: 1e3 }); b.push({ key: "1.500", value: 1500 }); b.push({ key: "2.000", value: 2e3 }); b.push({ key: "2.500", value: 2500 }); b.push({ key: "5.000", value: 5e3 }); b.push({ key: "10.000", value: 1e4 }); b.push({ key: "15.000", value: 15e3 }); b.push({ key: "20.000", value: 2e4 }); b.push({ key: "25.000", value: 25e3 }); b.push({ key: "30.000", value: 3e4 }); b.push({ key: "35.000", value: 35e3 }); b.push({ key: "40.000", value: 4e4 }); b.push({ key: "45.000", value: 45e3 }); b.push({ key: "50.000", value: 5e4 }); b.push({ key: "> 50.000", value: 0 }); break; case 225: b.push({ key: "0", value: 0 }); b.push({ key: "100", value: 100 }); b.push({ key: "150", value: 150 }); b.push({ key: "200", value: 200 }); b.push({ key: "250", value: 250 }); b.push({ key: "300", value: 300 }); b.push({ key: "350", value: 350 }); b.push({ key: "400", value: 400 }); b.push({ key: "450", value: 450 }); b.push({ key: "500", value: 500 }); b.push({ key: "750", value: 750 }); b.push({ key: "1.000", value: 1e3 }); b.push({ key: "1.500", value: 1500 }); b.push({ key: "2.000", value: 2e3 }); b.push({ key: "2.500", value: 2500 }); b.push({ key: "5.000", value: 5e3 }); b.push({ key: "6.000", value: 6e3 }); b.push({ key: "7.000", value: 7e3 }); b.push({ key: "8.000", value: 8e3 }); b.push({ key: "9.000", value: 9e3 }); b.push({ key: "10.000", value: 1e4 }); b.push({ key: "> 10.000", value: 0 }); break } $.each(b, function () { var a = $(this).attr("key"); var b = $(this).attr("value"); $(Q).append($("<option></option>").attr("value", b).text(a)); $(R).append($("<option></option>").attr("value", b).text(a)) }); $(Q).removeAttr("disabled"); $(R).removeAttr("disabled"); var c = $(R + " option").index($(R + " option:last")); $(R + " option:eq(" + c + ")").attr("selected", "selected"); bb(x, Q); bb(y, R); bg("minArea", "maxArea", "areaRange", A) } function Y() { $(I).html(""); $(I).attr("disabled", "disabled"); var a = $(H).val(); if (a != 0) { $(I).append($("<option></option>").val(0).html(e)); $.getJSON(c + "/GetZones.ashx?cid=" + a + "&withprop=" + D.toString, function (a) { if (a != null && a != "-1") { $(I).html(""); var b = false; if (j != "") $(I).append($("<option></option>").val(0).html(j)); else $(I).append($("<option></option>").val(0).html("")); $.each(a, function () { $(I).append($("<option></option>").val(this["VALUE"]).html(this["TEXT"])); b = true }); if (b) { $(I).removeAttr("disabled") } bb(q, I) } else { $(I).html("") } }) } } function X(a) { $(H).html(""); $(H).attr("disabled", "disabled"); $(I).html(""); $(I).attr("disabled", "disabled"); if (a != 0 && a != "") { $(H).append($("<option></option>").val(0).html(e)); $.getJSON(c + "/GetParishes.ashx?cid=" + a + "&withprop=" + D.toString, function (a) { if (a != null && a != "-1") { $(H).html(""); var b = false; if (i != "") $(H).append($("<option></option>").val(0).html(i)); else $(H).append($("<option></option>").val(0).html("")); $.each(a, function () { $(H).append($("<option></option>").val(this["VALUE"]).html(this["TEXT"])); b = true }); if (b) { $(H).removeAttr("disabled") } bb(p, H) } else { $(H).html("") } }) } } function W() { $(G).html(""); $(G).attr("disabled", "disabled"); $(H).html(""); $(H).attr("disabled", "disabled"); $(I).html(""); $(I).attr("disabled", "disabled"); var a = $(F).val(); if (a != 0 || a == undefined) { $(G).append($("<option></option>").val(0).html(e)); $.getJSON(c + "/GetCounties.ashx?cid=" + a + "&withprop=" + D.toString, function (a) { if (a != null && a != "-1") { $(G).html(""); var b = false; if (h != "") $(G).append($("<option></option>").val(0).html(h)); else $(G).append($("<option></option>").val(0).html("")); $.each(a, function () { $(G).append($("<option></option>").val(this["VALUE"]).html(this["TEXT"])); b = true }); if (b) { $(G).removeAttr("disabled") } bb(o, G) } else { $(G).html("") } }) } } function V() { $(F).html(""); $(F).attr("disabled", "disabled"); $(G).html(""); $(G).attr("disabled", "disabled"); $(H).html(""); $(H).attr("disabled", "disabled"); $(I).html(""); $(I).attr("disabled", "disabled"); var a = $(E).val(); if (a != 0) { $(F).append($("<option></option>").val(0).html(e)); $.getJSON(c + "/GetDistricts.ashx?cid=" + a + "&withprop=" + D.toString, function (a) { if (a != null && a != "-1") { $(F).html(""); var b = false; if (g != "") $(F).append($("<option></option>").val(0).html(g)); else $(F).append($("<option></option>").val(0).html("")); $.each(a, function () { $(F).append($("<option></option>").val(this["VALUE"]).html(this["TEXT"])); b = true }); if (b) { $(F).removeAttr("disabled") } bb(n, F) } else { $(F).html("") } }) } } var E = "#" + d + "_ddlCountry"; var F = "#" + d + "_ddlDistrict"; var G = "#" + d + "_ddlCounty"; var H = "#" + d + "_ddlParish"; var I = "#" + d + "_ddlZone"; var J = "#" + d + "_ddlPurpose"; var K = "#" + d + "_ddlGroup"; var L = "#" + d + "_ddlCondition"; var M = "#" + d + "_ddlTypologyMin"; var N = "#" + d + "_ddlTypologyMax"; var O = "#" + d + "_ddlMinPrice"; var P = "#" + d + "_ddlMaxPrice"; var Q = "#" + d + "_ddlMinArea"; var R = "#" + d + "_ddlMaxArea"; var S = "#" + d + "_lnkAdvancedSearch"; var T = "#" + d + "_txtReference"; var U = "#" + d + "_btnSearch"; if ($(E).val() != undefined && $(E).val() > 0) { V() } if ($(F).val() != undefined && $(F).val() > 0) { W() } if ($(G).val() != undefined && $(G).val() > 0) { X($(G).val()) } $(E).change(function () { V() }); $(F).change(function () { W() }); $(G).change(function () { var a = $(this).val(); X(a) }); $(H).change(function () { Y() }); $(K).change(function () { Z($(this).val()) }); $(J).change(function () { _($(this).val()) }); Z($(K).val()); _($(J).val()); if (z == "true") { ba() } $(U).click(function () { var b = $(J).val(); var c = $(F).val(); var e = $(E).val(); var g = $(G).val(); var h = $(I).val(); var i = $(H).val(); var j = $(M).val(); var z = $(N).val(); var A = $(O).val(); var B = $(P).val(); var C = $(Q).val(); var D = $(R).val(); var S = $(L).val(); var U = $(K).val(); var V = $(T).val(); if (e != 1 && e != undefined) { $(F).removeClass(d + "_mandatory"); $(G).removeClass(d + "_mandatory"); $(H).removeClass(d + "_mandatory"); $(I).removeClass(d + "_mandatory") } var W = $("." + d + "_mandatory"); var X = ""; var Y = false; if (V != "") { Y = true } else { Y = bf(W) } if (Y == true) { if (V != "" && V != undefined) { X = bd(X, s, V) } else { if (b > 0) X = bd(X, k, b); if (U > 0) X = bd(X, l, U); if (S > 0) X = bd(X, r, S); if (c > 0) X = bd(X, n, c); if (e > 0) X = bd(X, m, e); if (g > 0) X = bd(X, o, g); if (i > 0) X = bd(X, p, i); if (h > 0) X = bd(X, q, h); if (j > 0) X = bd(X, t, j); if (z > 0) X = bd(X, u, z); if (B > 0) X = bd(X, w, B); if (A > 0) X = bd(X, v, A); if (C > 0) X = bd(X, x, C); if (D > 0) X = bd(X, y, D) } var Z = a + X; be(X); parent.location = Z } else { alert(f) } return false }); $(S).click(function () { var a = $(J).val(); var c = $(F).val(); var d = $(E).val(); var e = $(G).val(); var f = $(I).val(); var g = $(H).val(); var h = $(M).val(); var i = $(N).val(); var j = $(O).val(); var z = $(P).val(); var A = $(Q).val(); var B = $(R).val(); var C = $(L).val(); var D = $(K).val(); var S = $(T).val(); var U = ""; if (S != "") U = bd(U, s, S); if (a > 0) U = bd(U, k, a); if (D > 0) U = bd(U, l, D); if (C > 0) U = bd(U, r, C); if (c > 0) U = bd(U, n, c); if (d > 0) U = bd(U, m, d); if (e > 0) U = bd(U, o, e); if (g > 0) U = bd(U, p, g); if (f > 0) U = bd(U, q, f); if (h > 0) U = bd(U, t, h); if (i > 0) U = bd(U, u, i); if (z > 0) U = bd(U, w, z); if (j > 0) U = bd(U, v, j); if (A > 0) U = bd(U, x, A); if (B > 0) U = bd(U, y, B); var V = b + U; parent.location = V; return false }) }) } function SetupBrokers(a) { $(document).ready(function () { var b = "#" + a + "_txtBrokersSearch"; var c = "#" + a + "_btnSearch"; $(c).click(function () { if ($(b).val() == "" || $(b).val() == null) return false }) }) } function UpdateNumberOfClicks(a, b, c) { $.getJSON(c + "?cid=" + b + "&clicks=" + a) } function LoadBannerPreview(a, b, c, d, e, f, g, h, i, j) { $(window).load(function () { try { var k = 15; $("." + c).css("visibility", "hidden"); if (d == "1") { $("." + c).flash({ src: a, height: j, width: b, _class: "flash_" + c, _borderWidth: k }) } else { $("." + c).append("<img class='img_" + c + "' src='" + a + "' alt='banner'  />") } $("." + c).jScale({ w: b + "px" }); $("." + e).jScale({ w: b + "px" }); $("." + e).click(function () { if (f != "#") { g += 1; UpdateNumberOfClicks(g, h, i); window.open(f) } }); $(this).delay(3e3, function () { $("." + e).css("text-align", "center"); $("." + e).css("width", b); $("." + e).css("height", $("." + c).css("width")); $("." + c).css("z-index", "2"); $("." + e).css("z-index", "3"); if ($.browser.msie) { $("." + e).css("background-color", "white"); $("." + e).css("filter", "alpha(opacity=1)") } $("." + c).css("visibility", "visible") }); $(this).delay(2e3, function () { if ($(".img_" + c).width != "null") { if ($(".img_" + c).width() > b) { $(".img_" + c).jScale({ w: b - k + "px" }) } } }) } catch (l) { } }) } function LoadBanner(a, b, c, d, e, f, g, h) { $(document).ready(function () { var i = $("." + b).parent(); if (c != "#") { $("." + b).css("cursor", "pointer") } LoadBannerPreview(a, $(i).width(), b, g, h, c, d, e, f, $(i).height()); $("." + b).css("text-align", "center") }) } function BannerSlideshow() { var a = $("#dBanner img.active"); if (a.length == 0) a = $("#dBanner img:last"); var b = a.next().length ? a.next() : $("#dBanner img:first"); a.addClass("last-active"); b.css({ opacity: 0 }).addClass("active").animate({ opacity: 1 }, 1e3, function () { a.removeClass("active last-active") }) } function SetupAgencies(a) { $(document).ready(function () { var b = "#" + a + "_rbAgency"; var c = "#" + a + "_rbDistrict"; var d = "#" + a + "_ddlAgencies"; var e = "#" + a + "_ddlDistrict"; var f = "#" + a + "_btnSearch"; $(e).hide(); $(b).click(function () { $(e).hide(); $(d).show() }); $(c).click(function () { $(d).hide(); $(e).show() }); $(f).click(function () { if ($(b).is(":checked") == true && $(d).val() == 0) return false; if ($(c).is(":checked") == true && $(e).val() == 0) return false }) }) } function bindspc(a, b) { $(document).ready(function () { if (!isUndefined(b) && !isUndefined(a)) { a.find(".Injector").remove(); var c = { options: { playing: true, loaded: false, firstrun: true, direction: -1, cellwidth: 0, triggers: new Array }, properties: { base: undefined, pages: 0, current: 0, ppp: 0, count: 0, seen: 0, calculate: function () { var a = this.base; this.count = a.design.properties.length; this.ppp = a.parameters.Rows * a.parameters.Columns; this.pages = Math.ceil(this.count / this.ppp) } }, parameters: b.Parameters, statistic: b.Statistic, locate: b.Locate, design: { me: a, carousel: a.find(".spcarousel"), rows: a.find(".rows"), rowtemplate: a.find(".row.Template"), celltemplate: a.find(".cell.Template"), properties: a.find(".item") }, addrow: function () { var a = this.design.rowtemplate.clone(); this.design.rows.append(a) }, timer: function () { var a = this; if (a.options.triggers.length > 0) { var b = a.options.triggers; a.options.triggers = new Array; for (var c = 0; c < b.length; c++) { b[c]() } } setTimeout(function () { a.timer() }, a.parameters.EffectTickTime + 1e3) }, addtrigger: function () { var a = this; if (a.design.carousel.isSame($(".spcarousel:first"))) { a.options.triggers.push(function () { a.animation() }) } else { $(".spcarousel:first").trigger("addtrigger", function () { a.animation() }) } }, animation: function () { var a = this; var b = new Array; switch (a.parameters.Effect) { case 0: if (a.options.playing) { var c = a.design.rows.find(".row"); var d = 0; var e = 0; var f = a.design.rows.find(".current"); f.removeClass("current"); for (var g = 1; g <= a.parameters.Columns * a.parameters.Rows; g++) { a.properties.current = a.properties.current + 1; if (a.properties.current > a.properties.count) { a.properties.current = 1; a.options.firstrun = false } a.design.properties.eq(a.properties.current - 1).hide(); a.design.properties.eq(a.properties.current - 1).css("position", "relative"); a.design.properties.eq(a.properties.current - 1).addClass("current"); pos = g - a.properties.ppp * Math.floor((g - 1) / a.properties.ppp); d = Math.ceil(pos / a.parameters.Columns); e = pos - (d - 1) * a.parameters.Columns; c.eq(d - 1).find(".cells").find(".cell").eq(e - 1).append(a.design.properties.eq(a.properties.current - 1).clone()); if (a.options.firstrun) { b.push(a.design.properties.eq(a.properties.current - 1).find("cite:first").text()) } } if (a.options.firstrun) { a.updatestats(b) } f.css("position", "absolute"); a.design.rows.find(".current").fadeIn("slow"); f.fadeOut("slow", function () { $(this).remove() }) } if (a.properties.pages > 1) { setTimeout(function () { a.animation() }, a.parameters.EffectTickTime) } break; case 1: case 2: case 3: if (a.properties.pages > 1) { if (a.options.playing) { var h = Math.ceil(a.properties.count / a.parameters.Rows); var c = a.design.rows.find(".row"); var i; for (var g = 0; g < a.parameters.Rows; g++) { var j; if (a.options.direction == 1) { j = c.eq(g).find(".cell:last"); j.animate({ marginRight: a.options.cellwith * -1 + 1 }, a.parameters.EffectTickTime, function () { var b = $(this); var d = a.getrownumber(b); var e = c.eq(d - 1).find(".cells"); var f = e.find(".cell").length < a.parameters.Columns ? 0 : e.find(".cell").length - a.parameters.Columns; b.detach(); b.css("margin-right", ""); e.prepend(b); if (d == a.parameters.Rows) { if (a.properties.seen > a.parameters.Rows * (h - a.parameters.Columns)) { if (a.parameters.Effect == 1) { a.options.direction = -1; c.find(".cells").css("float", "") } a.options.firstrun = false; a.properties.seen = 0 } a.addtrigger() } if (a.options.firstrun) { i = e.find(".cell").eq(f).find("cite:first").text(); if (a.properties.seen.indexOf(i) == -1) { a.properties.seen.push(i); a.updatestats([i]) } if (a.properties.seen.length >= a.properties.count) { a.options.firstrun = false } } }) } else { j = c.eq(g).find(".cell:first"); j.animate({ marginLeft: a.options.cellwith * -1 + 1 }, a.parameters.EffectTickTime, function () { var b = $(this); var d = a.getrownumber(b); var e = c.eq(d - 1).find(".cells"); var f = e.find(".cell").length < a.parameters.Columns ? rowcellss.find(".cell").length - 1 : a.parameters.Columns - 1; b.detach(); b.css("margin-left", ""); e.append(b); if (d == a.parameters.Rows) { if (a.properties.seen > a.parameters.Rows * h) { if (a.parameters.Effect == 1) { a.options.direction = 1; c.find(".cells").css("float", "right") } } a.addtrigger() } if (a.options.firstrun) { i = e.find(".cell").eq(f).find("cite:first").text(); if (a.properties.seen.indexOf(i) == -1) { a.properties.seen.push(i); a.updatestats([i]) } if (a.properties.seen.length >= a.properties.count) { a.options.firstrun = false } } }) } } } else { a.addtrigger() } } break; case 4: if (a.options.playing) { var f = a.design.properties.filter(".current"); f.removeClass("current"); a.properties.current = a.properties.current + 1; if (a.properties.current > a.properties.pages) { a.properties.current = 1; a.options.firstrun = false } for (g = 1; g <= a.properties.count; g++) { if (Math.floor((g - 1) / a.properties.ppp) + 1 == a.properties.current) { a.design.properties.eq(g - 1).css("position", "relative"); a.design.properties.eq(g - 1).addClass("current"); if (a.options.firstrun) { b.push(a.design.properties.eq(g - 1).find("cite:first").text()) } } } if (a.options.firstrun) { a.updatestats(b) } f.css("position", "absolute"); a.design.properties.filter(".current").fadeIn(); f.fadeOut() } if (a.properties.pages > 1) { setTimeout(function () { a.animation() }, a.parameters.EffectTickTime) } break } }, getrownumber: function (a) { return parseInt(a.attr("row")) }, bindproperties: function (a) { var b = this; var c = new Array; var d = b.design.rows.find(".row"); var e = 0; var f = 0; var g; switch (b.parameters.Effect) { case 0: var h = 0; for (g = 1; g <= b.parameters.Rows; g++) { for (var i = 1; i <= b.parameters.Columns; i++) { d.eq(g - 1).find(".cells").append(b.design.celltemplate.clone()) } } b.design.properties.detach(); for (g = 1; g <= b.properties.count; g++) { if (g <= b.parameters.Columns * b.parameters.Rows) { h = g - b.properties.ppp * Math.floor((g - 1) / b.properties.ppp); e = Math.ceil(h / b.parameters.Columns); f = h - (e - 1) * b.parameters.Columns; b.design.properties.eq(g - 1).css("position", "relative"); b.design.properties.eq(g - 1).addClass("current"); d.eq(e - 1).find(".cells").find(".cell").eq(f - 1).append(b.design.properties.eq(g - 1).clone()); c.push(b.design.properties.eq(g - 1).find("cite:first").text()); b.properties.current = g } else { b.design.properties.eq(g - 1).hide() } } b.updatestats(c); if (b.properties.pages > 1) { setTimeout(function () { b.animation() }, b.parameters.EffectTickTime) } break; case 1: case 2: case 3: var j = Math.ceil(b.properties.count / b.parameters.Rows); b.properties.seen = new Array; for (g = 1; g <= b.properties.count; g++) { e = Math.ceil(g / j); f = g - (e - 1) * b.parameters.Columns; var k = b.design.celltemplate.clone(); d.eq(e - 1).find(".cells").append(k); k.append(b.design.properties.eq(g - 1)); if (f <= b.parameters.Columns) { b.properties.seen.push(b.design.properties.eq(g - 1).find("cite:first").text()) } k.attr("row", e) } b.options.cellwith = d.eq(0).find(".cell:first").width(); d.width(b.options.cellwith * b.parameters.Columns); var l = d.eq(b.parameters.Rows - 1).find(".cell").length < d.eq(0).find(".cell").length; if (l > 0) { for (g = 0; g < l; g++) { var m = d.eq(b.parameters.Rows - 1).find(".cells").eq(g).clone(); d.eq(b.parameters.Rows - 1).find(".cells").append(m) } } if (b.parameters.Effect == 3) { b.options.direction = 1; d.find(".cells").css("float", "right") } else { b.options.direction = -1 } b.updatestats(b.properties.seen); b.addtrigger(); if (b.design.carousel.isSame($(".spcarousel:first"))) { setTimeout(function () { b.timer() }, b.parameters.EffectTickTime) } break; case 4: var h = 0; for (g = 1; g <= b.parameters.Rows; g++) { for (var i = 1; i <= b.parameters.Columns; i++) { d.eq(g - 1).find(".cells").append(b.design.celltemplate.clone()) } } for (g = 1; g <= b.properties.count; g++) { h = g - b.properties.ppp * Math.floor((g - 1) / b.properties.ppp); e = Math.ceil(h / b.parameters.Columns); f = h - (e - 1) * b.parameters.Columns; d.eq(e - 1).find(".cells").find(".cell").eq(f - 1).append(b.design.properties.eq(g - 1)); b.design.properties.eq(g - 1).hide() } setTimeout(function () { b.animation() }, b.parameters.EffectTickTime); break } }, noproperties: function () { var a = this; a.design.me.removeClass("loading"); a.design.me.addClass("NoProperties") }, afterload: function () { var a = this; a.design.me.removeClass("loading"); a.design.carousel.css("visibility", ""); a.design.carousel.css("visibility", ""); a.options.loaded = true }, updatestats: function d(a) { var b = this; if (b.statistic.Update && a.length > 0 && b.statistic.Handler.path.length > 0) { var c = new Date + (new Date).getMilliseconds(); urlstring = b.statistic.Handler.path + "?" + b.statistic.Handler.plkey + "=" + (typeof a == "Array" ? a.join(",") : a) + "&" + b.statistic.Handler.stkey + "=" + b.statistic.Type + "&anticache=" + c; $.ajaxSetup({ scriptCharset: "utf-8", contentType: "application/json; charset=utf-8" }); return $.getJSON(urlstring) } }, init: function () { var a = this; a.design.me.find(".properties").css("visibility", "hidden"); a.design.me.find(".properties").show(); a.design.me.css("visibility", ""); a.properties.base = this; a.design.carousel.bind("addtrigger", function (b, c) { a.options.triggers.push(c) }); a.properties.calculate(); if (a.properties.count > 0) { a.design.celltemplate.detach(); a.design.celltemplate.removeClass("Template"); a.design.rowtemplate.detach(); a.design.rowtemplate.removeClass("Template"); a.design.properties.detach(); for (var b = 0; b < a.parameters.Rows; b++) { a.addrow() } a.bindproperties(); a.design.me.hover(function () { a.options.playing = false; a.design.carousel.addClass("stoped") }, function () { a.options.playing = true; a.design.carousel.removeClass("stoped") }); if (!a.options.loaded) { a.afterload() } } else { a.noproperties() } } }; c.init() } }) } function isUndefinedOrNull(a) { if (isUndefined(a)) return true; return a == null } function isNull(a) { return a == null } function isUndefined(a) { return typeof a == "undefined" } (function (a) { a.fn.toggleVal = function (b) { if (!b || typeof b == "object") { b = a.extend({ focusClass: "tv-focused", changedClass: "tv-changed", populateFrom: "default", text: null, removeLabels: false }, b) } else if (typeof b == "string" && b.toLowerCase() == "destroy") { var c = true } return this.each(function () { if (c) { a(this).unbind("focus.toggleval").unbind("blur.toggleval").removeData("defText"); return false } var d = ""; switch (b.populateFrom) { case "alt": d = a(this).attr("alt"); a(this).val(d); break; case "label": d = a("label[for='" + a(this).attr("id") + "']").text(); a(this).val(d); break; case "custom": d = b.text; a(this).val(d); break; default: d = a(this).val() } a(this).addClass("toggleval").data("defText", d); if (b.removeLabels == true) { a("label[for='" + a(this).attr("id") + "']").remove() } a(this).bind("focus.toggleval", function () { if (a(this).val() == a(this).data("defText")) { a(this).val("") } a(this).addClass(b.focusClass).removeClass(b.changedClass) }).bind("blur.toggleval", function () { if (a(this).val() == "") { a(this).val(a(this).data("defText")) } a(this).removeClass(b.focusClass); if (a(this).val() != a(this).data("defText")) { a(this).addClass(b.changedClass) } else { a(this).removeClass(b.changedClass) } }) }) } })(jQuery); jQuery.jqURL = { url: function (a) { a = jQuery.extend({ win: window }, a); return a.win.location.href }, loc: function (a, b) { b = jQuery.extend({ win: window, w: 500, h: 500, wintype: "_top" }, b); if (!b.t) { b.t = screen.height / 2 - b.h / 2 } if (!b.l) { b.l = screen.width / 2 - b.w / 2 } if (b["wintype"] == "_top") { b.win.location.href = a } else { open(a, b["wintype"], "width=" + b.w + ",height=" + b.h + ",top=" + b.t + ",left=" + b.l + ",scrollbars,resizable") } return }, qs: function (a) { a = jQuery.extend({ ret: "string", win: window }, a); if (a["ret"] == "string") { return jQuery.jqURL.url({ win: a.win }).split("?")[1] } else if (a["ret"] == "object") { var b = {}; var c = jQuery.jqURL.url({ win: a.win }).split("?")[1]; if (c) { var d = c.split("&"); for (i = 0; i < d.length; i++) { var e = d[i].split("="); b[e[0]] = e[1] } } return b } }, strip: function (a) { a = jQuery.extend({ keys: "", win: window }, a); if (jQuery.jqURL.url().indexOf("?") == -1) { return jQuery.jqURL.url({ win: a.win }) } else if (!a.keys) { return jQuery.jqURL.url({ win: a.win }).split("?")[0] } else { var b = jQuery.jqURL.qs({ ret: "object", win: a.win }); var c = 0; var d = jQuery.jqURL.url({ win: a.win }).split("?")[0] + "?"; var e = ""; for (var f in b) { if (a.keys.indexOf(f) == -1) { e = c ? "&" : ""; d = d + e + f + "=" + b[f]; c++ } } return d } }, get: function (a, b) { b = jQuery.extend({ win: window }, b); qsobj = jQuery.jqURL.qs({ ret: "object", win: b.win }); return qsobj[a] }, set: function (a, b) { b = jQuery.extend({ win: window }, b); var c = jQuery.jqURL.qs({ ret: "object", win: b.win }); for (var d in a) { c[d] = a[d] } var e = ""; var f = 0; var g = ""; for (var h in c) { g = f ? "&" : ""; e = e + g + h + "=" + c[h]; f++ } return jQuery.jqURL.strip({ win: b.win }) + "?" + e } }; (function (a) { function c(a) { return typeof a == "object" ? a : { top: a, left: a} } var b = a.scrollTo = function (b, c, e) { a(window).scrollTo(b, c, e) }; b.defaults = { axis: "xy", duration: parseFloat(a.fn.jquery) >= 1.3 ? 0 : 1 }; b.window = function (b) { return a(window)._scrollable() }; a.fn._scrollable = function () { return this.map(function () { var b = this, c = !b.nodeName || a.inArray(b.nodeName.toLowerCase(), ["iframe", "#document", "html", "body"]) != -1; if (!c) return b; var e = (b.contentWindow || b).document || b.ownerDocument || b; return a.browser.safari || e.compatMode == "BackCompat" ? e.body : e.documentElement }) }; a.fn.scrollTo = function (e, f, g) { if (typeof f == "object") { g = f; f = 0 } if (typeof g == "function") g = { onAfter: g }; if (e == "max") e = 9e9; g = a.extend({}, b.defaults, g); f = f || g.speed || g.duration; g.queue = g.queue && g.axis.length > 1; if (g.queue) f /= 2; g.offset = c(g.offset); g.over = c(g.over); return this._scrollable().each(function () { function r(a) { i.animate(o, f, g.easing, a && function () { a.call(this, e, g) }) } var h = this, i = a(h), l = e, m, o = {}, q = i.is("html,body"); switch (typeof l) { case "number": case "string": if (/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)) { l = c(l); break } l = a(l, this); case "object": if (l.is || l.style) m = (l = a(l)).offset() } a.each(g.axis.split(""), function (a, c) { var d = c == "x" ? "Left" : "Top", e = d.toLowerCase(), f = "scroll" + d, j = h[f], n = b.max(h, c); if (m) { o[f] = m[e] + (q ? 0 : j - i.offset()[e]); if (g.margin) { o[f] -= parseInt(l.css("margin" + d)) || 0; o[f] -= parseInt(l.css("border" + d + "Width")) || 0 } o[f] += g.offset[e] || 0; if (g.over[e]) o[f] += l[c == "x" ? "width" : "height"]() * g.over[e] } else { var p = l[e]; o[f] = p.slice && p.slice(-1) == "%" ? parseFloat(p) / 100 * n : p } if (/^\d+$/.test(o[f])) o[f] = o[f] <= 0 ? 0 : Math.min(o[f], n); if (!a && g.queue) { if (j != o[f]) r(g.onAfterFirst); delete o[f] } }); r(g.onAfter) }).end() }; b.max = function (b, c) { var e = c == "x" ? "Width" : "Height", f = "scroll" + e; if (!a(b).is("html,body")) return b[f] - a(b)[e.toLowerCase()](); var g = "client" + e, h = b.ownerDocument.documentElement, i = b.ownerDocument.body; return Math.max(h[f], i[f]) - Math.min(h[g], i[g]) } })(jQuery); jQuery.fn.selectToUISlider = function (a) { function m(a) { return (a / (e.length - 1) * 100).toFixed(2) + "%" } function h(a) { return c.tooltipSrc == "text" ? e[a].text : e[a].value } function g(a) { return a.constructor == Array } var b = jQuery(this); var c = jQuery.extend({ labels: 3, tooltip: true, tooltipSrc: "text", labelSrc: "value", sliderOptions: null, cssClass: "" }, a); var d = function () { var a = []; b.each(function () { a.push("handle_" + jQuery(this).attr("id")) }); return a } (); var e = function () { var a = []; b.eq(0).find("option").each(function () { a.push({ value: jQuery(this).attr("value"), text: jQuery(this).text() }) }); return a } (); var f = function () { if (b.eq(0).find("optgroup").size() > 0) { var a = []; b.eq(0).find("optgroup").each(function (b) { a[b] = {}; a[b].label = jQuery(this).attr("label"); a[b].options = []; jQuery(this).find("option").each(function () { a[b].options.push({ text: jQuery(this).text(), value: jQuery(this).attr("value") }) }) }); return a } else return null } (); var i = { step: 1, min: 0, orientation: "horizontal", max: e.length - 1, range: b.length > 1, slide: function (a, b) { var c = jQuery(b.handle); var d = h(b.value); c.attr("aria-valuetext", d).attr("aria-valuenow", b.value).find(".ui-slider-tooltip .ttContent").text(d); var e = jQuery("#" + c.attr("id").split("handle_")[1]); e.find("option").eq(b.value).attr("selected", "selected") }, change: null, values: function () { var a = []; b.each(function () { a.push(jQuery(this).get(0).selectedIndex) }); return a } () }; c.sliderOptions = a ? jQuery.extend(i, a.sliderOptions) : i; b.bind("change keyup click", function () { var a = jQuery(this).get(0).selectedIndex; var b = jQuery("#handle_" + jQuery(this).attr("id")); var c = b.data("handleNum"); b.parents(".ui-slider:eq(0)").slider("values", c, a) }); var j = jQuery('<div class="' + c.cssClass + '"></div>'); b.each(function (a) { var b = ""; var e = jQuery("label[for=" + jQuery(this).attr("id") + "]"); var f = e.size() > 0 ? "Slider control for " + e.text() + "" : ""; var g = e.attr("id") || e.attr("id", "label_" + d[a]).attr("id"); if (c.tooltip == false) { b = ' style="display: none;"' } jQuery("<a " + 'href="#" tabindex="0" ' + 'id="' + d[a] + '" ' + 'class="ui-slider-handle" ' + 'role="slider" ' + 'aria-labelledby="' + g + '" ' + 'aria-valuemin="' + c.sliderOptions.min + '" ' + 'aria-valuemax="' + c.sliderOptions.max + '" ' + 'aria-valuenow="' + c.sliderOptions.values[a] + '" ' + 'aria-valuetext="' + h(c.sliderOptions.values[a]) + '" ' + '><span class="screenReaderContext">' + f + "</span>" + '<span class="ui-slider-tooltip ui-widget-content ui-corner-all"' + b + '><span class="ttContent"></span>' + '<span class="ui-tooltip-pointer-down ui-widget-content"><span class="ui-tooltip-pointer-down-inner"></span></span>' + "</span></a>").data("handleNum", a).appendTo(j) }); if (f) { var k = 0; var l = j.append('<dl class="ui-slider-scale ui-helper-reset" role="presentation"></dl>').find(".ui-slider-scale:eq(0)"); jQuery(f).each(function (a) { l.append('<dt style="width: ' + (100 / f.length).toFixed(2) + "%" + "; left:" + (a / (f.length - 1) * 100).toFixed(2) + "%" + '"><span>' + this.label + "</span></dt>"); var b = this.options; jQuery(this.options).each(function (a) { var d = k == e.length - 1 || k == 0 ? 'style="display: none;"' : ""; var f = c.labelSrc == "text" ? b[a].text : b[a].value; l.append('<dd style="left:' + m(k) + '"><span class="ui-slider-label">' + f + '</span><span class="ui-slider-tic ui-widget-content"' + d + "></span></dd>"); k++ }) }) } else { var l = j.append('<ol class="ui-slider-scale ui-helper-reset" role="presentation"></ol>').find(".ui-slider-scale:eq(0)"); jQuery(e).each(function (a) { var b = a == e.length - 1 || a == 0 ? 'style="display: none;"' : ""; var d = c.labelSrc == "text" ? this.text : this.value; l.append('<li style="left:' + m(a) + '"><span class="ui-slider-label">' + d + '</span><span class="ui-slider-tic ui-widget-content"' + b + "></span></li>") }) } if (c.labels > 1) j.find(".ui-slider-scale li:last span.ui-slider-label, .ui-slider-scale dd:last span.ui-slider-label").addClass("ui-slider-label-show"); var n = Math.max(1, Math.round(e.length / c.labels)); for (var o = 0; o < e.length; o += n) { if (e.length - o > n) { j.find(".ui-slider-scale li:eq(" + o + ") span.ui-slider-label, .ui-slider-scale dd:eq(" + o + ") span.ui-slider-label").addClass("ui-slider-label-show") } } j.find(".ui-slider-scale dt").each(function (a) { jQuery(this).css({ left: (100 / f.length * a).toFixed(2) + "%" }) }); j.insertAfter(jQuery(this).eq(this.length - 1)).slider(c.sliderOptions).attr("role", "application").find(".ui-slider-label").each(function () { jQuery(this).css("marginLeft", -jQuery(this).width() / 2) }); j.find(".ui-tooltip-pointer-down-inner").each(function () { var a = jQuery(".ui-tooltip-pointer-down-inner").css("borderTopWidth"); var b = jQuery(this).parents(".ui-slider-tooltip").css("backgroundColor"); jQuery(this).css("border-top", a + " solid " + b) }); var p = j.slider("values"); if (g(p)) { jQuery(p).each(function (a) { j.find(".ui-slider-tooltip .ttContent").eq(a).text(h(this)) }) } else { j.find(".ui-slider-tooltip .ttContent").eq(0).text(h(p)) } return this }; jQuery.ui || function (a) { function i(b, c, d, e) { function f(d) { var e = a[b][c][d] || []; return typeof e == "string" ? e.split(/,?\s+/) : e } var g = f("getter"); if (e.length == 1 && typeof e[0] == "string") { g = g.concat(f("getterSetter")) } return a.inArray(d, g) != -1 } var b = a.fn.remove, c = a.browser.mozilla && parseFloat(a.browser.version) < 1.9; a.ui = { version: "1.7.1", plugin: { add: function (b, c, d) { var e = a.ui[b].prototype; for (var f in d) { e.plugins[f] = e.plugins[f] || []; e.plugins[f].push([c, d[f]]) } }, call: function (a, b, c) { var d = a.plugins[b]; if (!d || !a.element[0].parentNode) { return } for (var e = 0; e < d.length; e++) { if (a.options[d[e][0]]) { d[e][1].apply(a.element, c) } } } }, contains: function (a, b) { return document.compareDocumentPosition ? a.compareDocumentPosition(b) & 16 : a !== b && a.contains(b) }, hasScroll: function (b, c) { if (a(b).css("overflow") == "hidden") { return false } var d = c && c == "left" ? "scrollLeft" : "scrollTop", e = false; if (b[d] > 0) { return true } b[d] = 1; e = b[d] > 0; b[d] = 0; return e }, isOverAxis: function (a, b, c) { return a > b && a < b + c }, isOver: function (b, c, d, e, f, g) { return a.ui.isOverAxis(b, d, f) && a.ui.isOverAxis(c, e, g) }, keyCode: { BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38} }; if (c) { var d = a.attr, e = a.fn.removeAttr, f = "http://www.w3.org/2005/07/aaa", g = /^aria-/, h = /^wairole:/; a.attr = function (a, b, c) { var e = c !== undefined; return b == "role" ? e ? d.call(this, a, b, "wairole:" + c) : (d.apply(this, arguments) || "").replace(h, "") : g.test(b) ? e ? a.setAttributeNS(f, b.replace(g, "aaa:"), c) : d.call(this, a, b.replace(g, "aaa:")) : d.apply(this, arguments) }; a.fn.removeAttr = function (a) { return g.test(a) ? this.each(function () { this.removeAttributeNS(f, a.replace(g, "")) }) : e.call(this, a) } } a.fn.extend({ remove: function () { a("*", this).add(this).each(function () { a(this).triggerHandler("remove") }); return b.apply(this, arguments) }, enableSelection: function () { return this.attr("unselectable", "off").css("MozUserSelect", "").unbind("selectstart.ui") }, disableSelection: function () { return this.attr("unselectable", "on").css("MozUserSelect", "none").bind("selectstart.ui", function () { return false }) }, scrollParent: function () { var b; if (a.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position"))) { b = this.parents().filter(function () { return /(relative|absolute|fixed)/.test(a.curCSS(this, "position", 1)) && /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) }).eq(0) } else { b = this.parents().filter(function () { return /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) }).eq(0) } return /fixed/.test(this.css("position")) || !b.length ? a(document) : b } }); a.extend(a.expr[":"], { data: function (b, c, d) { return !!a.data(b, d[3]) }, focusable: function (b) { var c = b.nodeName.toLowerCase(), d = a.attr(b, "tabindex"); return (/input|select|textarea|button|object/.test(c) ? !b.disabled : "a" == c || "area" == c ? b.href || !isNaN(d) : !isNaN(d)) && !a(b)["area" == c ? "parents" : "closest"](":hidden").length }, tabbable: function (b) { var c = a.attr(b, "tabindex"); return (isNaN(c) || c >= 0) && a(b).is(":focusable") } }); a.widget = function (b, c) { var d = b.split(".")[0]; b = b.split(".")[1]; a.fn[b] = function (c) { var e = typeof c == "string", f = Array.prototype.slice.call(arguments, 1); if (e && c.substring(0, 1) == "_") { return this } if (e && i(d, b, c, f)) { var g = a.data(this[0], b); return g ? g[c].apply(g, f) : undefined } return this.each(function () { var g = a.data(this, b); !g && !e && a.data(this, b, new a[d][b](this, c))._init(); g && e && a.isFunction(g[c]) && g[c].apply(g, f) }) }; a[d] = a[d] || {}; a[d][b] = function (c, e) { var f = this; this.namespace = d; this.widgetName = b; this.widgetEventPrefix = a[d][b].eventPrefix || b; this.widgetBaseClass = d + "-" + b; this.options = a.extend({}, a.widget.defaults, a[d][b].defaults, a.metadata && a.metadata.get(c)[b], e); this.element = a(c).bind("setData." + b, function (a, b, d) { if (a.target == c) { return f._setData(b, d) } }).bind("getData." + b, function (a, b) { if (a.target == c) { return f._getData(b) } }).bind("remove", function () { return f.destroy() }) }; a[d][b].prototype = a.extend({}, a.widget.prototype, c); a[d][b].getterSetter = "option" }; a.widget.prototype = { _init: function () { }, destroy: function () { this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").removeAttr("aria-disabled") }, option: function (b, c) { var d = b, e = this; if (typeof b == "string") { if (c === undefined) { return this._getData(b) } d = {}; d[b] = c } a.each(d, function (a, b) { e._setData(a, b) }) }, _getData: function (a) { return this.options[a] }, _setData: function (a, b) { this.options[a] = b; if (a == "disabled") { this.element[b ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").attr("aria-disabled", b) } }, enable: function () { this._setData("disabled", false) }, disable: function () { this._setData("disabled", true) }, _trigger: function (b, c, d) { var e = this.options[b], f = b == this.widgetEventPrefix ? b : this.widgetEventPrefix + b; c = a.Event(c); c.type = f; if (c.originalEvent) { for (var g = a.event.props.length, h; g; ) { h = a.event.props[--g]; c[h] = c.originalEvent[h] } } this.element.trigger(c, d); return !(a.isFunction(e) && e.call(this.element[0], c, d) === false || c.isDefaultPrevented()) } }; a.widget.defaults = { disabled: false }; a.ui.mouse = { _mouseInit: function () { var b = this; this.element.bind("mousedown." + this.widgetName, function (a) { return b._mouseDown(a) }).bind("click." + this.widgetName, function (a) { if (b._preventClickEvent) { b._preventClickEvent = false; a.stopImmediatePropagation(); return false } }); if (a.browser.msie) { this._mouseUnselectable = this.element.attr("unselectable"); this.element.attr("unselectable", "on") } this.started = false }, _mouseDestroy: function () { this.element.unbind("." + this.widgetName); a.browser.msie && this.element.attr("unselectable", this._mouseUnselectable) }, _mouseDown: function (b) { b.originalEvent = b.originalEvent || {}; if (b.originalEvent.mouseHandled) { return } this._mouseStarted && this._mouseUp(b); this._mouseDownEvent = b; var c = this, d = b.which == 1, e = typeof this.options.cancel == "string" ? a(b.target).parents().add(b.target).filter(this.options.cancel).length : false; if (!d || e || !this._mouseCapture(b)) { return true } this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) { this._mouseDelayTimer = setTimeout(function () { c.mouseDelayMet = true }, this.options.delay) } if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) { this._mouseStarted = this._mouseStart(b) !== false; if (!this._mouseStarted) { b.preventDefault(); return true } } this._mouseMoveDelegate = function (a) { return c._mouseMove(a) }; this._mouseUpDelegate = function (a) { return c._mouseUp(a) }; a(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate); a.browser.safari || b.preventDefault(); b.originalEvent.mouseHandled = true; return true }, _mouseMove: function (b) { if (a.browser.msie && !b.button) { return this._mouseUp(b) } if (this._mouseStarted) { this._mouseDrag(b); return b.preventDefault() } if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) { this._mouseStarted = this._mouseStart(this._mouseDownEvent, b) !== false; this._mouseStarted ? this._mouseDrag(b) : this._mouseUp(b) } return !this._mouseStarted }, _mouseUp: function (b) { a(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = b.target == this._mouseDownEvent.target; this._mouseStop(b) } return false }, _mouseDistanceMet: function (a) { return Math.max(Math.abs(this._mouseDownEvent.pageX - a.pageX), Math.abs(this._mouseDownEvent.pageY - a.pageY)) >= this.options.distance }, _mouseDelayMet: function (a) { return this.mouseDelayMet }, _mouseStart: function (a) { }, _mouseDrag: function (a) { }, _mouseStop: function (a) { }, _mouseCapture: function (a) { return true } }; a.ui.mouse.defaults = { cancel: null, distance: 1, delay: 0} } (jQuery); (function (a) { a.widget("ui.slider", a.extend({}, a.ui.mouse, { _init: function () { var b = this, c = this.options; this._keySliding = false; this._handleIndex = null; this._detectOrientation(); this._mouseInit(); this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget ui-widget-content ui-corner-all"); this.range = a([]); if (c.range) { if (c.range === true) { this.range = a("<div></div>"); if (!c.values) { c.values = [this._valueMin(), this._valueMin()] } if (c.values.length && c.values.length != 2) { c.values = [c.values[0], c.values[0]] } } else { this.range = a("<div></div>") } this.range.appendTo(this.element).addClass("ui-slider-range"); if (c.range == "min" || c.range == "max") { this.range.addClass("ui-slider-range-" + c.range) } this.range.addClass("ui-widget-header") } if (a(".ui-slider-handle", this.element).length == 0) { a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle") } if (c.values && c.values.length) { while (a(".ui-slider-handle", this.element).length < c.values.length) { a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle") } } this.handles = a(".ui-slider-handle", this.element).addClass("ui-state-default ui-corner-all"); this.handle = this.handles.eq(0); this.handles.add(this.range).filter("a").click(function (a) { a.preventDefault() }).hover(function () { a(this).addClass("ui-state-hover") }, function () { a(this).removeClass("ui-state-hover") }).focus(function () { a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"); a(this).addClass("ui-state-focus") }).blur(function () { a(this).removeClass("ui-state-focus") }); this.handles.each(function (b) { a(this).data("index.ui-slider-handle", b) }); this.handles.keydown(function (c) { var d = true; var e = a(this).data("index.ui-slider-handle"); if (b.options.disabled) { return } switch (c.keyCode) { case a.ui.keyCode.HOME: case a.ui.keyCode.END: case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: d = false; if (!b._keySliding) { b._keySliding = true; a(this).addClass("ui-state-active"); b._start(c, e) } break } var f, g, h = b._step(); if (b.options.values && b.options.values.length) { f = g = b.values(e) } else { f = g = b.value() } switch (c.keyCode) { case a.ui.keyCode.HOME: g = b._valueMin(); break; case a.ui.keyCode.END: g = b._valueMax(); break; case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: if (f == b._valueMax()) { return } g = f + h; break; case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: if (f == b._valueMin()) { return } g = f - h; break } b._slide(c, e, g); return d }).keyup(function (c) { var d = a(this).data("index.ui-slider-handle"); if (b._keySliding) { b._stop(c, d); b._change(c, d); b._keySliding = false; a(this).removeClass("ui-state-active") } }); this._refreshValue() }, destroy: function () { this.handles.remove(); this.range.remove(); this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); this._mouseDestroy() }, _mouseCapture: function (b) { var c = this.options; if (c.disabled) { return false } this.elementSize = { width: this.element.outerWidth(), height: this.element.outerHeight() }; this.elementOffset = this.element.offset(); var d = { x: b.pageX, y: b.pageY }; var e = this._normValueFromMouse(d); var f = this._valueMax() - this._valueMin() + 1, g; var h = this, i; this.handles.each(function (b) { var c = Math.abs(e - h.values(b)); if (f > c) { f = c; g = a(this); i = b } }); if (c.range == true && this.values(1) == c.min) { g = a(this.handles[++i]) } this._start(b, i); h._handleIndex = i; g.addClass("ui-state-active").focus(); var j = g.offset(); var k = !a(b.target).parents().andSelf().is(".ui-slider-handle"); this._clickOffset = k ? { left: 0, top: 0} : { left: b.pageX - j.left - g.width() / 2, top: b.pageY - j.top - g.height() / 2 - (parseInt(g.css("borderTopWidth"), 10) || 0) - (parseInt(g.css("borderBottomWidth"), 10) || 0) + (parseInt(g.css("marginTop"), 10) || 0) }; e = this._normValueFromMouse(d); this._slide(b, i, e); return true }, _mouseStart: function (a) { return true }, _mouseDrag: function (a) { var b = { x: a.pageX, y: a.pageY }; var c = this._normValueFromMouse(b); this._slide(a, this._handleIndex, c); return false }, _mouseStop: function (a) { this.handles.removeClass("ui-state-active"); this._stop(a, this._handleIndex); this._change(a, this._handleIndex); this._handleIndex = null; this._clickOffset = null; return false }, _detectOrientation: function () { this.orientation = this.options.orientation == "vertical" ? "vertical" : "horizontal" }, _normValueFromMouse: function (a) { var b, c; if ("horizontal" == this.orientation) { b = this.elementSize.width; c = a.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0) } else { b = this.elementSize.height; c = a.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0) } var d = c / b; if (d > 1) { d = 1 } if (d < 0) { d = 0 } if ("vertical" == this.orientation) { d = 1 - d } var e = this._valueMax() - this._valueMin(), f = d * e, g = f % this.options.step, h = this._valueMin() + f - g; if (g > this.options.step / 2) { h += this.options.step } return parseFloat(h.toFixed(5)) }, _start: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; if (this.options.values && this.options.values.length) { c.value = this.values(b); c.values = this.values() } this._trigger("start", a, c) }, _slide: function (a, b, c) { var d = this.handles[b]; if (this.options.values && this.options.values.length) { var e = this.values(b ? 0 : 1); if (b == 0 && c >= e || b == 1 && c <= e) { c = e } if (c != this.values(b)) { var f = this.values(); f[b] = c; var g = this._trigger("slide", a, { handle: this.handles[b], value: c, values: f }); var e = this.values(b ? 0 : 1); if (g !== false) { this.values(b, c, a.type == "mousedown" && this.options.animate, true) } } } else { if (c != this.value()) { var g = this._trigger("slide", a, { handle: this.handles[b], value: c }); if (g !== false) { this._setData("value", c, a.type == "mousedown" && this.options.animate) } } } }, _stop: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; if (this.options.values && this.options.values.length) { c.value = this.values(b); c.values = this.values() } this._trigger("stop", a, c) }, _change: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; if (this.options.values && this.options.values.length) { c.value = this.values(b); c.values = this.values() } this._trigger("change", a, c) }, value: function (a) { if (arguments.length) { this._setData("value", a); this._change(null, 0) } return this._value() }, values: function (a, b, c, d) { if (arguments.length > 1) { this.options.values[a] = b; this._refreshValue(c); if (!d) { this._change(null, a) } } if (arguments.length) { if (this.options.values && this.options.values.length) { return this._values(a) } else { return this.value() } } else { return this._values() } }, _setData: function (b, c, d) { a.widget.prototype._setData.apply(this, arguments); switch (b) { case "orientation": this._detectOrientation(); this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" + this.orientation); this._refreshValue(d); break; case "value": this._refreshValue(d); break } }, _step: function () { var a = this.options.step; return a }, _value: function () { var a = this.options.value; if (a < this._valueMin()) { a = this._valueMin() } if (a > this._valueMax()) { a = this._valueMax() } return a }, _values: function (a) { if (arguments.length) { var b = this.options.values[a]; if (b < this._valueMin()) { b = this._valueMin() } if (b > this._valueMax()) { b = this._valueMax() } return b } else { return this.options.values } }, _valueMin: function () { var a = this.options.min; return a }, _valueMax: function () { var a = this.options.max; return a }, _refreshValue: function (b) { var c = this.options.range, d = this.options, e = this; if (this.options.values && this.options.values.length) { var f, g; this.handles.each(function (c, f) { var g = (e.values(c) - e._valueMin()) / (e._valueMax() - e._valueMin()) * 100; var h = {}; h[e.orientation == "horizontal" ? "left" : "bottom"] = g + "%"; a(this).stop(1, 1)[b ? "animate" : "css"](h, d.animate); if (e.options.range === true) { if (e.orientation == "horizontal") { c == 0 && e.range.stop(1, 1)[b ? "animate" : "css"]({ left: g + "%" }, d.animate); c == 1 && e.range[b ? "animate" : "css"]({ width: g - lastValPercent + "%" }, { queue: false, duration: d.animate }) } else { c == 0 && e.range.stop(1, 1)[b ? "animate" : "css"]({ bottom: g + "%" }, d.animate); c == 1 && e.range[b ? "animate" : "css"]({ height: g - lastValPercent + "%" }, { queue: false, duration: d.animate }) } } lastValPercent = g }) } else { var h = this.value(), i = this._valueMin(), j = this._valueMax(), k = j != i ? (h - i) / (j - i) * 100 : 0; var l = {}; l[e.orientation == "horizontal" ? "left" : "bottom"] = k + "%"; this.handle.stop(1, 1)[b ? "animate" : "css"](l, d.animate); c == "min" && this.orientation == "horizontal" && this.range.stop(1, 1)[b ? "animate" : "css"]({ width: k + "%" }, d.animate); c == "max" && this.orientation == "horizontal" && this.range[b ? "animate" : "css"]({ width: 100 - k + "%" }, { queue: false, duration: d.animate }); c == "min" && this.orientation == "vertical" && this.range.stop(1, 1)[b ? "animate" : "css"]({ height: k + "%" }, d.animate); c == "max" && this.orientation == "vertical" && this.range[b ? "animate" : "css"]({ height: 100 - k + "%" }, { queue: false, duration: d.animate }) } } })); a.extend(a.ui.slider, { getter: "value values", version: "1.7.1", eventPrefix: "slide", defaults: { animate: false, delay: 0, distance: 0, max: 100, min: 0, orientation: "horizontal", range: false, step: 1, value: 0, values: null} }) })(jQuery); var jaaulde = window.jaaulde || {}; jaaulde.utils = jaaulde.utils || {}; jaaulde.utils.cookies = function () { var a, b, c, d, e = { expiresAt: null, path: "/", domain: null, secure: false }; a = function (a) { var b, c; if (typeof a !== "object" || a === null) { b = e } else { b = { expiresAt: e.expiresAt, path: e.path, domain: e.domain, secure: e.secure }; if (typeof a.expiresAt === "object" && a.expiresAt instanceof Date) { b.expiresAt = a.expiresAt } else if (typeof a.hoursToLive === "number" && a.hoursToLive !== 0) { c = new Date; c.setTime(c.getTime() + a.hoursToLive * 60 * 60 * 1e3); b.expiresAt = c } if (typeof a.path === "string" && a.path !== "") { b.path = a.path } if (typeof a.domain === "string" && a.domain !== "") { b.domain = a.domain } if (a.secure === true) { b.secure = a.secure } } return b }; b = function (b) { b = a(b); return (typeof b.expiresAt === "object" && b.expiresAt instanceof Date ? "; expires=" + b.expiresAt.toGMTString() : "") + "; path=" + b.path + (typeof b.domain === "string" ? "; domain=" + b.domain : "") + (b.secure === true ? "; secure" : "") }; c = function () { var a = {}, b, c, d, e, f = document.cookie.split(";"), g; for (b = 0; b < f.length; b = b + 1) { c = f[b].split("="); d = c[0].replace(/^\s*/, "").replace(/\s*$/, ""); try { e = decodeURIComponent(c[1]) } catch (h) { e = c[1] } if (typeof JSON === "object" && JSON !== null && typeof JSON.parse === "function") { try { g = e; e = JSON.parse(e) } catch (i) { e = g } } a[d] = e } return a }; d = function () { }; d.prototype.get = function (a) { var b, d, e = c(); if (typeof a === "string") { b = typeof e[a] !== "undefined" ? e[a] : null } else if (typeof a === "object" && a !== null) { b = {}; for (d in a) { if (typeof e[a[d]] !== "undefined") { b[a[d]] = e[a[d]] } else { b[a[d]] = null } } } else { b = e } return b }; d.prototype.filter = function (a) { var b, d = {}, e = c(); if (typeof a === "string") { a = new RegExp(a) } for (b in e) { if (b.match(a)) { d[b] = e[b] } } return d }; d.prototype.set = function (a, c, d) { if (typeof d !== "object" || d === null) { d = {} } if (typeof c === "undefined" || c === null) { c = ""; d.hoursToLive = -8760 } else if (typeof c !== "string") { if (typeof JSON === "object" && JSON !== null && typeof JSON.stringify === "function") { c = JSON.stringify(c) } else { throw new Error("cookies.set() received non-string value and could not serialize.") } } var e = b(d); document.cookie = a + "=" + encodeURIComponent(c) + e }; d.prototype.del = function (a, b) { var c = {}, d; if (typeof b !== "object" || b === null) { b = {} } if (typeof a === "boolean" && a === true) { c = this.get() } else if (typeof a === "string") { c[a] = true } for (d in c) { if (typeof d === "string" && d !== "") { this.set(d, null, b) } } }; d.prototype.test = function () { var a = false, b = "cT", c = "data"; this.set(b, c); if (this.get(b) === c) { this.del(b); a = true } return a }; d.prototype.setOptions = function (b) { if (typeof b !== "object") { b = null } e = a(b) }; return new d } (); (function () { if (window.jQuery) { (function (a) { a.cookies = jaaulde.utils.cookies; var b = { cookify: function (b) { return this.each(function () { var c, d = ["name", "id"], e, f = a(this), g; for (c in d) { if (!isNaN(c)) { e = f.attr(d[c]); if (typeof e === "string" && e !== "") { if (f.is(":checkbox, :radio")) { if (f.attr("checked")) { g = f.val() } } else if (f.is(":input")) { g = f.val() } else { g = f.html() } if (typeof g !== "string" || g === "") { g = null } a.cookies.set(e, g, b); break } } } }) }, cookieFill: function () { return this.each(function () { var b, c, d = ["name", "id"], e, f = a(this), g; c = function () { b = d.pop(); return !!b }; while (c()) { e = f.attr(b); if (typeof e === "string" && e !== "") { g = a.cookies.get(e); if (g !== null) { if (f.is(":checkbox, :radio")) { if (f.val() === g) { f.attr("checked", "checked") } else { f.removeAttr("checked") } } else if (f.is(":input")) { f.val(g) } else { f.html(g) } } break } } }) }, cookieBind: function (b) { return this.each(function () { var c = a(this); c.cookieFill().change(function () { c.cookify(b) }) }) } }; a.each(b, function (b) { a.fn[b] = this }) })(window.jQuery) } })(); (function (a) { a.fn.cjObjectScaler = function (b) { function f() { var b = a(d.elem)[0]; if (c.destObj === null || typeof c.method !== "string" || typeof a(c.destObj)[0] !== "object") { return } else { if (a(c.destObj).css("position") === "static") { a(c.destObj).css({ position: "relative" }) } if (c.fade > 0) { a(b).hide() } if (a(b)[0].nodeName === "IMG") { if (a(b).attr("complete")) { e(a(b)[0]) } else { a(b).load(function () { e(a(b)[0]) }) } } else { e(a(b)[0]) } } } function e(b) { var d = c.destObj, e = a(d).width(), f = a(d).height(), g, h, i, j, k; g = e / a(b).width(); h = f / a(b).height(); if (!a(b).hasClass("cf_image_scaler_fill") && (a(b).hasClass("cf_image_scaler_fit") || c.method === "fit")) { i = g < h ? g : h } else if (!a(b).hasClass("cf_image_scaler_fit") && (a(b).hasClass("cf_image_scaler_fill") || c.method === "fill")) { i = g > h ? g : h } j = parseInt(a(b).width() * i, 10); k = parseInt(a(b).height() * i, 10); a(b).css({ width: j + "px", height: k + "px", position: "absolute", top: parseInt((f - k) / 2, 10) + "px", left: parseInt((e - j) / 2, 10) + "px" }).attr({ width: j, height: k }); if (c.fade > 0) { a(b).fadeIn(c.fade) } } var c = { destObj: null, method: "fill", fade: 0 }; var d = { version: "2.0.0", elem: null }; if (b) { a.extend(c, b) } return this.each(function () { d.elem = this; f() }) } })(jQuery); (function () { function c() { var a = ""; for (var b in this) if (typeof this[b] != "function") a += b + "=" + encodeURIComponent(this[b]) + "&"; return a.replace(/&$/, "") } function b() { var a = ""; for (var b in this) if (typeof this[b] != "function") a += b + '="' + this[b] + '" '; return a } var a; a = jQuery.fn.flash = function (b, c, d, e) { var f = d || a.replace; c = a.copy(a.pluginOptions, c); if (!a.hasFlash(c.version)) { if (c.expressInstall && a.hasFlash(6, 0, 65)) { var g = { flashvars: { MMredirectURL: location, MMplayerType: "PlugIn", MMdoctitle: jQuery("title").text()}} } else if (c.update) { f = e || a.update } else { return this } } b = a.copy(a.htmlOptions, g, b); return this.each(function () { f.call(this, a.copy(b)) }) }; a.copy = function () { var a = {}, b = {}; for (var c = 0; c < arguments.length; c++) { var d = arguments[c]; if (d == undefined) continue; jQuery.extend(a, d); if (d.flashvars == undefined) continue; jQuery.extend(b, d.flashvars) } a.flashvars = b; return a }; a.hasFlash = function () { if (/hasFlash\=true/.test(location)) return true; if (/hasFlash\=false/.test(location)) return false; var b = a.hasFlash.playerVersion().match(/\d+/g); var c = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String(a.pluginOptions.version).match(/\d+/g); for (var d = 0; d < 3; d++) { b[d] = parseInt(b[d] || 0); c[d] = parseInt(c[d] || 0); if (b[d] < c[d]) return false; if (b[d] > c[d]) return true } return true }; a.hasFlash.playerVersion = function () { try { try { var a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); try { a.AllowScriptAccess = "always" } catch (b) { return "6,0,0" } } catch (b) { } return (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").replace(/\D+/g, ",").match(/^,?(.+),?$/)[1] } catch (b) { try { if (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1] } } catch (b) { } } return "0,0,0" }; a.htmlOptions = { height: 240, flashvars: {}, pluginspage: "http://www.adobe.com/go/getflashplayer", src: "#", type: "application/x-shockwave-flash", width: 320, _class: "myFlash", _borderWidth: 15 }; a.pluginOptions = { expressInstall: false, update: true, version: "6.0.65" }; a.replace = function (b) { this.innerHTML = '<div class="alt">' + this.innerHTML + "</div>"; jQuery(this).addClass("flash-replaced").prepend(a.transform(b)) }; a.update = function (a) { var b = String(location).split("?"); b.splice(1, 0, "?hasFlash=true&"); b = b.join(""); var c = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="' + b + '">Click here.</a></p>'; this.innerHTML = '<span class="alt">' + this.innerHTML + "</span>"; jQuery(this).addClass("flash-update").prepend(c) }; a.transform = function (a) { a.toString = b; var d = a.width - a._borderWidth; if (a.flashvars) a.flashvars.toString = c; return '<embed onclick="" id="' + a._class + '" ' + String(a) + ' wmode="transparent" class="' + a._class + '" style="width:' + d + 'px;" />' }; if (window.attachEvent) { window.attachEvent("onbeforeunload", function () { __flash_unloadHandler = function () { }; __flash_savedUnloadHandler = function () { } }) } })(); jQuery.jScale = { getnewSize: function (a, b) { var c = a == "w" ? "h" : "w"; if (typeof b == "undefined" || b == null) var d = this.ndimensions[c] * this.odimensions[a] / this.odimensions[c]; else var d = /%/.test(b) ? parseInt(b) / 100 * this.odimensions[a] : parseInt(b); this.ndimensions[a] = Math.round(d) }, getnewDimensions: function (a, b, c, d) { var e = a('<img src="' + b.src + '" style="position:absolute; top:0; left:0; visibility:hidden" />').prependTo("body"); this.odimensions = { w: e.width(), h: e.height() }; var f = this.odimensions.w > this.odimensions.h ? ["w", "h"] : ["h", "w"]; this.ndimensions = {}; if (typeof c.ls != "undefined") { c[f[0]] = c.ls; c[f[1]] = null } var g = c.w ? ["w", "h"] : c.h ? ["h", "w"] : []; if (g.length > 0) { this.getnewSize(g[0], c[g[0]]); this.getnewSize(g[1], c[g[1]]); var h = d || function () { }; if (c.speed > 0) a(b).animate({ width: this.ndimensions.w + "px", height: this.ndimensions.h + "px" }, c.speed, h); else { a(b).css({ width: this.ndimensions.w + "px", height: this.ndimensions.h + "px" }); h.call(b) } } e.remove() } }; jQuery.fn.jScale = function (a, b) { return this.each(function () { var c = this; if (typeof a == "undefined" || c.tagName != "IMG") return true; if (c.complete) { jQuery.jScale.getnewDimensions(jQuery, c, a, b) } else { $(this).bind("load", function () { jQuery.jScale.getnewDimensions(jQuery, c, a, b) }) } }) }; $(document).ready(function () { $("#dHeader ul, #dFooter ul").RemoveLastBorder(); $(".iwkContactForm .btnSend").StyleButton({ cssClass: "styledButton" }); $(".iwkRecruitment a.btnSubmit").StyleButton({ cssClass: "styledButton" }); $(".iwkAdvancedSearch a.btnSearch").StyleButton({ cssClass: "styledButton" }); $(".iwkSimpleSearch a.btnSearch").StyleButton({ cssClass: "styledButton" }); $(".iwkPropertyDetail .requestSendAction a").StyleButton({ cssClass: "styledButton" }); $(".newsletter a").StyleButton({ cssClass: "styledButton" }); if ($(".iwkPropertyDetail").length > 0) { $("#ownerInfoContainer").append($("#tabOwner")); if ($("#tabVideos").length > 0) $("#videoContainer").append($("#tabVideos")); else $("#videoContainer").parent().hide() } setInterval("BannerSlideshow()", 5e3) }); jQuery.fn.delay = function (a, b) { this.each(function () { setTimeout(b, a) }); return this }; Array.prototype.indexOf = function (a) { for (var b = 0; b < this.length; b++) { if (this[b] == a) { return b } } return -1 }; jQuery.fn.isSame = function (a) { return this.get(0) === a.get(0) }; $.fn.RemoveLastBorder = function (a) { return this.each(function () { $(this).children("li").filter(":last").css("border", "none") }) }; $.fn.StyleButton = function (a) { var b = { cssClass: "" }; var a = $.extend(b, a); return this.each(function () { var b = $(this).text(); $(this).addClass(a.cssClass).html("<span>" + b + "</span>") }) }
