﻿$(function () { if (GetPageID() === "5C55218E") { $("#best-value").addClass("hide"); $("#best-value-more-less").removeClass("hide"); $("#best-value-more-less").click(function () { $("#best-value").animate({ opacity: 1, height: "toggle" }, 500, function () { var d = $("#best-value-more-less").text(); if (d === "More...") { $("#best-value").removeClass("hide"); $("#best-value-more-less").text("...Less") } else { $("#best-value").addClass("hide"); $("#best-value-more-less").text("More...") } }) }); $("#support-by-telephone").addClass("hide"); $("#support-by-telephone-more-less").removeClass("hide"); $("#support-by-telephone-more-less").click(function () { $("#support-by-telephone").animate({ opacity: 1, height: "toggle" }, 500, function () { var d = $("#support-by-telephone-more-less").text(); if (d === "More...") { $("#support-by-telephone").removeClass("hide"); $("#support-by-telephone-more-less").text("...Less") } else { $("#support-by-telephone").addClass("hide"); $("#support-by-telephone-more-less").text("More...") } }) }); $("#btnBoxTrucks").click(function () { $("[id$='btnSearch']").click() }); $("#btnVansAndPickups").click(function () { $("[id$='btnSearch']").click() }); $("#btnCarTrailers").click(function () { $("[id$='btnSearch']").click() }); Shuffle.CreateImageArray(); Shuffle.CreateLinkArray(); Shuffle.Interval() } else { $("#btnBoxTrucks").hide(); $("#btnVansAndPickups").hide(); $("#btnCarTrailers").hide() } if (GetPageID() === "C2EC1919") { ToolTipBoxTruck.Show() } if (GetPageID() === "6D11650W") { var c = { allowScriptAccess: "always", allowfullscreen: "true" }; var b = { id: "myZukiPlayer" }; var a = { id: "myUvsOPlayer" }; swfobject.embedSWF("http://www.youtube.com/v/lSOuQXkrJvk?fs=1&amp;hl=en_US&enablejsapi=1&playerapiid=zuki", "divZuki", "480", "385", "8", null, null, c, b); swfobject.embedSWF("http://www.youtube.com/v/kcaT6u_j3Jc?fs=1&amp;hl=en_US&enablejsapi=1&playerapiid=UvsO", "divUvsO", "480", "385", "8", null, null, c, a) } if (GetPageID() === "C2EC1900") { $('[id$="ddlEquipment"] option').each(function (e) { if ($(this).text() == "---------------------Cab Chassis----------------------" || $(this).text() == "--------------------------Trucks-------------------------") { $(this).css("background-color", "#EEE9F0") } }) } if (GetPageID() === "5A488595" || GetPageID() === "C2EC1919") { ToolTipSaleFeatures.Show() } if (GetPageID() == "5C66218E" || GetPageID() == "5C88218E" || GetPageID() == "5E88438E") { $(".search_parts input").mousedown(function () { $(".search_parts input").bind("keypress", function (f) { var d = (f.keyCode ? f.keyCode : f.which); if (d == 13) { $('[id$="btnSearchParts"]').click(); return false } }) }) } if ($('[id$="hfIsUserLoggedIn"]').val() === "1") { $("#myFaves").css("visibility", "visible") } else { if ($('[id$="hfIsUserLoggedIn"]').val() === "0" && (GetPageID() == "C2EC1919" || GetPageID() == "5A488595")) { $("#myFaves").css("visibility", "visible") } } if ((GetPageID() == "5C55218E" || GetPageID() == "C2EC1900" || GetPageID() == "5C66218E") && window.location.href.indexOf("localhost") > 0) { SearchBox.AutoComplete() } }); function onYouTubePlayerReady(b) { if (b == "zuki") { var a = document.getElementById("myZukiPlayer"); a.addEventListener("onStateChange", "onZukiStateChange") } else { if (b == "UvsO") { var c = document.getElementById("myUvsOPlayer"); c.addEventListener("onStateChange", "onUvsOStateChange") } } } function onZukiStateChange(a) { if (a == 1) { dcsMultiTrack(WT.mc_id = "trucksales_video_zuki_play_clicked") } } function onUvsOStateChange(a) { if (a == 1) { dcsMultiTrack(WT.mc_id = "trucksales_video_uhaul_vs_the_other_guy_play_clicked") } } function Clear() { $("input:checked").each(function () { $(this).attr("checked", false) }); $(".equipment_number").val("") } function Val_Req_CustomerFeedbackBox(c, b, e) { var d = document.getElementById(c).value; var a = document.getElementById(b).value; if (trim(d) == "" && trim(a) == "") { alert(e); return false } else { return true } } function trim(b) { return b.replace(/^\s+|\s+$/g, "") } function ltrim(b) { return b.replace(/^\s+/, "") } function rtrim(b) { return b.replace(/\s+$/, "") } var Shuffle = { config: { count: 0, intervalID: null, imageList: new Array(4), linkList: new Array(4) }, CreateImageArray: function () { this.config.imageList[0] = "/TruckSales/Images/DCHeader.png"; this.config.imageList[1] = "/TruckSales/Images/ELHeader.png"; this.config.imageList[2] = "/TruckSales/Images/GHHeader.png"; this.config.imageList[3] = "/TruckSales/Images/TMGHeader.png" }, CreateLinkArray: function () { this.config.linkList[0] = "/TruckSales/used-box-truck-van-pickup-sales/DC/104"; this.config.linkList[1] = "/TruckSales/used-box-truck-van-pickup-sales/EL/202"; this.config.linkList[2] = "/TruckSales/used-box-truck-van-pickup-sales/GH/300"; this.config.linkList[3] = "/TruckSales/used-box-truck-van-pickup-sales/TMG/501" }, List: function () { try { var a = document.getElementById("imgHeader"); var c = document.getElementById("lnkHeader"); if (a != null) { if (this.config.count <= 3) { a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale"; a.src = this.config.imageList[this.config.count]; c.href = this.config.linkList[this.config.count]; this.config.count = this.config.count + 1 } else { this.config.count = 0; a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale"; c = this.config.linkList[this.config.count] } } } catch (b) { } }, Pause: function () { if (this.config.intervalID != null) { clearInterval(this.config.intervalID); this.config.intervalID = null } }, Next: function () { try { var a = document.getElementById("imgHeader"); clearInterval(this.config.intervalID); this.config.intervalID = null; if (a != null) { if (this.config.count <= 3) { a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale"; this.config.count = this.config.count + 1 } else { this.config.count = 0; a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale" } } } catch (b) { } }, Previous: function () { try { var a = document.getElementById("imgHeader"); clearInterval(this.config.intervalID); this.config.intervalID = null; if (a != null) { if (this.config.count >= 3) { this.config.count = this.config.count - 1; a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale" } else { if (this.config.count <= 0) { this.config.count = 2; a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale" } else { this.config.count = this.config.count - 1; if (this.config.count == 0) { this.config.count == 4 } a.src = this.config.imageList[this.config.count]; a.alt = "Used box trucks for sale"; a.title = "Used box trucks for sale" } } } } catch (b) { } }, Interval: function () { if (this.config.intervalID == null) { this.config.intervalID = setInterval("Shuffle.List()", 5000) } } }; var SearchBox = { init: function () { }, Log: function (a) { }, AutoComplete: function () { $('[id$="ucAddressSearch_txtAddress"]').autocomplete({ source: function (c, b) { var a = c.term; if (a != "") { $.ajax({ type: "POST", url: "/TruckSales/AjaxService.asmx/GeoCodedAddresses", dataType: "json", contentType: "application/json; charset=utf-8", data: "{'search':'" + a + "'}", success: function (d) { b($.map(d.d, function (e) { switch (e.GeoCodedAddressType) { case "zip": return { label: e.PostalCode, value: e.PostalCode }; break; case "city state": return { label: e.City + ", " + e.State, value: e.City + ", " + e.State }; break; case "full address": return { label: e.City + ", " + e.State, value: e.City + ", " + e.State }; break; case "city state zip": return { label: e.City + ", " + e.State + ", " + e.PostalCode, value: e.City + ", " + e.State + ", " + e.PostalCode }; break; default: break } })) }, error: function (d, f, e) { $('[id$="ucAddressSearch_txtAddress"]').removeClass("ui-autocomplete-loading"); $("ui-menu").attr("style", "z-index: 1; top: 0px; left: 0px; display: none;") } }) } else { $('[id$="ucAddressSearch_txtAddress"]').removeClass("ui-autocomplete-loading"); $("ui-menu").attr("style", "z-index: 1; top: 0px; left: 0px; display: none;") } }, minLength: 3, select: function (a, b) { }, open: function () { }, close: function () { } }) }, GeoCodeAddress: function (a) { var b = ""; $.ajax({ type: "POST", url: "/TruckSales/AjaxService.asmx/GeoCodeAddress", dataType: "json", contentType: "application/json; charset=utf-8", async: false, data: "{'address':'" + a + "', 'uhaulRules':'true'}", success: function (d) { var c = d.d; if (c.length > 0) { switch (c[0].GeoCodedAddressType) { case "zip": b = c[0].PostalCode; break; case "city state": b = c[0].City + ", " + c[0].State; break; case "full address": b = c[0].City + ", " + c[0].State; break; case "city state zip": b = c[0].City + ", " + c[0].State + ", " + c[0].PostalCode; break; case "longitude latitude": alert("test"); break } } }, error: function (c, e, d) { } }); return b }, ReverseGeoCodeAddress: function (a) { var b = ""; $.ajax({ type: "POST", url: "/TruckSales/AjaxService.asmx/GeoCodeAddress", dataType: "json", contentType: "application/json; charset=utf-8", async: false, data: "{'address':'" + a + "', 'uhaulRules':'true'}", success: function (d) { var c = d.d; if (c.length > 0) { switch (c[0].GeoCodedAddressType) { case "zip": b = c[0].PostalCode; break; case "city state": b = c[0].City + ", " + c[0].State; break; case "full address": b = c[0].City + ", " + c[0].State; break; case "city state zip": b = c[0].City + ", " + c[0].State + ", " + c[0].PostalCode; break; case "longitude latitude": break } } }, error: function (c, e, d) { } }); return b } }; function GetPageID() { var a = $("meta[name=PageID]").attr("content"); return a } var QToolTip = { Show: function () { var b = ["bottom center"]; var g = ["top center"]; var d = 0; var f = ""; var e = ""; f = GetQTipNextContent(); e = GetQTipPreviousContent(); var c = $(".next_tip"); var a = $(".previous_tip"); if (c[0] != null) { $("#next a[href]").qtip({ content: f, position: { my: b[d], at: g[d] }, style: { padding: 10, radius: 10, width: 200, tip: true, classes: "ui-tooltip-light ui-tooltip-shadow noprint"} }) } if (a[0] != null) { $("#back a[href]").qtip({ content: e, position: { my: b[d], at: g[d] }, style: { padding: 10, radius: 10, width: 200, tip: true, classes: "ui-tooltip-light ui-tooltip-shadow noprint"} }) } } }; var ToolTipSaleFeatures = { Show: function () { if ($(".qtip_last_in_stock") != undefined && $(".qtip_last_in_stock") != null) { $(".qtip_last_in_stock").qtip({ content: { text: "<div class='qtip_sale_features' style='height:50px;overflow:hidden;'> A Last-in-Stock vehicle represents the last few vehicles of a year model in our fleet. In some cases, the truck may be the very last one that is in the fleet.  Often times these trucks may require extra attention. Prices on these trucks have been drastically reduced. Once they are gone, they are GONE!</div> <a class='show hand' title='Show more/less'>More...</a>", title: { text: "Last-in-Stock", button: true} }, position: { my: "bottom center", at: "top center", adjust: { screen: true, resize: true} }, style: { width: 200, tip: true, radius: 10, classes: "ui-tooltip-light ui-tooltip-shadow noprint" }, events: { render: function (d, e) { e.elements.target.bind("click", e.show); var c = 50; var g = "#ui-tooltip-" + e.id; var f = "#ui-tooltip-" + e.id + "-content"; $("" + f + " .show").eq(0).toggle(function () { $("" + f + " .qtip_sale_features").css("height", "auto").css("overflow", "visible"); $(g).qtip("reposition"); $(this).text("...Less"); dcsMultiTrack(WT.mc_id = "trucksales_last_in_stock_more_clicked") }, function () { $("" + f + " .qtip_sale_features").css("height", c).css("overflow", "hidden"); $(g).qtip("reposition"); $(this).text("More..."); dcsMultiTrack(WT.mc_id = "trucksales_last_in_stock_less_clicked") }) }, show: function (c, d) { dcsMultiTrack(WT.ac = "last in stock") } }, hide: { event: "unfocus"} }) } if ($(".qtip_new_in_stock") != undefined && $(".qtip_new_addition") != null) { $(".qtip_new_in_stock").qtip({ content: { text: "<div class='qtip_sale_features' style='height:50px;overflow:hidden;'>New-in-Stock! Make sure that you are making note of our newest additions! With a fleet as large as ours, it is constantly being updated. These trucks are priced to sell! Any truck with this designation is <u><b>NEW</b></u> this month!</div> <a class='show hand' title='Show more/less'>More...</a>", title: { text: "New-in-Stock", button: true} }, position: { my: "bottom center", at: "top center", adjust: { screen: true, resize: true} }, style: { width: 200, tip: true, radius: 10, classes: "ui-tooltip-light ui-tooltip-shadow noprint" }, events: { render: function (d, e) { e.elements.target.bind("click", e.show); var c = 50; var g = "#ui-tooltip-" + e.id; var f = "#ui-tooltip-" + e.id + "-content"; $("" + f + " .show").eq(0).toggle(function () { $("" + f + " .qtip_sale_features").css("height", "auto").css("overflow", "visible"); $(this).text("...Less"); dcsMultiTrack(WT.mc_id = "trucksales_new_in_stock_more_clicked"); $(g).qtip("reposition") }, function () { $("" + f + " .qtip_sale_features").css("height", c).css("overflow", "hidden"); $(this).text("More..."); dcsMultiTrack(WT.mc_id = "trucksales_new_in_stock_less_clicked"); $(g).qtip("reposition") }) }, show: function (c, d) { dcsMultiTrack(WT.ac = "new in stock") } }, hide: { event: "unfocus"} }) } } }; var ToolTipBoxTruck = { Show: function () { if ($(".box_tips") != undefined && $(".box_tips") != null) { $(".info .box_tips").qtip({ content: { text: "<ul><li>~Call the sales location to schedule an appointment, having an agreed upon meeting time will ensure you that you will have more one-on-one time with the sales representative. </li><li>~Ask questions about the equipment that is of interest to you while on the phone with the sales location. </li><li>~Test Drive any truck or cargo van that you are interested in purchasing; we want to make sure our equipment is a good fit for you. </li><li>~Equipment you are interested in purchasing can be inspected by a mechanic, please feel free to have it inspected before you purchase.</li><li>~Ask the location about acceptable payment methods in advance of seeing the truck or cargo van, this way you have an appropriate payment method. </li></ul>", title: { text: "Purchasing tips", button: true} }, show: { event: "click" }, position: { my: "bottom left", at: "bottom right", adjust: { screen: true, resize: true} }, style: { tip: true, classes: "ui-tooltip-light ui-tooltip-shadow ui-tooltip-width_600 noprint" }, events: { render: function (c, d) { d.elements.target.bind("click", d.show) } }, hide: { event: "unfocus"} }) } } }; function CheckIfCabChassis(a) { if (a.value == "") { return false } else { createOverlay(); setTimeout("__doPostBack('ctl00$ContentPlaceHolder1$ddlEquipment','')", 0) } };
/*
* qTip2 - Pretty powerful tooltips
* http://craigsworks.com/projects/qtip2/
*
* Version: nightly
* Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com
*
* Dual licensed under MIT or GPLv2 licenses
*   http://en.wikipedia.org/wiki/MIT_License
*   http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Tue Sep  6 17:07:56.0000000000 2011
*/
/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false */

(function(a, b, c) { function E(b) { var c = this, d = b.elements, e = d.tooltip, f = ".bgiframe-" + b.id; a.extend(c, { init: function() { d.bgiframe = a('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>'), d.bgiframe.appendTo(e), e.bind("tooltipmove" + f, c.adjust) }, adjust: function() { var a = b.get("dimensions"), c = b.plugins.tip, f = d.tip, g, h; h = parseInt(e.css("border-left-width"), 10) || 0, h = { left: -h, top: -h }, c && f && (g = c.corner.precedance === "x" ? ["width", "left"] : ["height", "top"], h[g[1]] -= f[g[0]]()), d.bgiframe.css(h).css(a) }, destroy: function() { d.bgiframe.remove(), e.unbind(f) } }), c.init() } function D(c) { var f = this, g = c.options.show.modal, i = c.elements, j = i.tooltip, k = "#qtip-overlay", l = ".qtipmodal", m = l + c.id, o = "is-modal-qtip", q = a(document.body), r; c.checks.modal = { "^show.modal.(on|blur)$": function() { f.init(), i.overlay.toggle(j.is(":visible")) } }, a.extend(f, { init: function() { if (!g.on) return f; r = f.create(), j.attr(o, d).css("z-index", h.modal.zindex + a(n + "[" + o + "]").length).unbind(l).unbind(m).bind("tooltipshow" + l + " tooltiphide" + l, function(b, c, d) { var e = b.originalEvent; if (e && b.type === "tooltiphide" && /mouse(leave|enter)/.test(e.type) && a(e.relatedTarget).closest(r[0]).length) try { b.preventDefault() } catch (g) { } else f[b.type.replace("tooltip", "")](b, d) }).bind("tooltipfocus" + l, function(b) { if (!b.isDefaultPrevented()) { var c = a(n).filter("[" + o + "]"), d = h.modal.zindex + c.length, e = parseInt(j[0].style.zIndex, 10); r[0].style.zIndex = d - 1, c.each(function() { this.style.zIndex > e && (this.style.zIndex -= 1) }), c.end().filter("." + p).qtip("blur", b.originalEvent), j.addClass(p)[0].style.zIndex = d; try { b.preventDefault() } catch (f) { } } }).bind("tooltiphide" + l, function(b) { a("[" + o + "]").filter(":visible").not(j).last().qtip("focus", b) }), g.escape && a(b).unbind(m).bind("keydown" + m, function(a) { a.keyCode === 27 && j.hasClass(p) && c.hide(a) }), g.blur && i.overlay.unbind(m).bind("click" + m, function(a) { j.hasClass(p) && c.hide(a) }); return f }, create: function() { var c = a(k); if (c.length) return i.overlay = c.insertAfter(a(n).last()); r = i.overlay = a("<div />", { id: k.substr(1), html: "<div></div>", mousedown: function() { return e } }).insertAfter(a(n).last()), a(b).unbind(l).bind("resize" + l, function() { r.css({ height: a(b).height(), width: a(b).width() }) }).triggerHandler("resize"); return r }, toggle: function(b, c, h) { if (b && b.isDefaultPrevented()) return f; var i = g.effect, k = c ? "show" : "hide", l = r.is(":visible"), p = a("[" + o + "]").filter(":visible").not(j), s; r || (r = f.create()); if (r.is(":animated") && l === c || !c && p.length) return f; c ? (r.css({ left: 0, top: 0 }), r.toggleClass("blurs", g.blur), q.bind("focusin" + m, function(b) { var c = a(b.target), d = c.closest(".qtip"), f = d.length < 1 ? e : parseInt(d[0].style.zIndex, 10) > parseInt(j[0].style.zIndex, 10); !f && a(b.target).closest(n)[0] !== j[0] && j.find("input:visible").filter(":first").focus() })) : q.undelegate("*", "focusin" + m), r.stop(d, e), a.isFunction(i) ? i.call(r, c) : i === e ? r[k]() : r.fadeTo(parseInt(h, 10) || 90, c ? 1 : 0, function() { c || a(this).hide() }), c || r.queue(function(a) { r.css({ left: "", top: "" }), a() }); return f }, show: function(a, b) { return f.toggle(a, d, b) }, hide: function(a, b) { return f.toggle(a, e, b) }, destroy: function() { var d = r; d && (d = a("[" + o + "]").not(j).length < 1, d ? (i.overlay.remove(), a(b).unbind(l)) : i.overlay.unbind(l + c.id), q.undelegate("*", "focusin" + m)); return j.removeAttr(o).unbind(l) } }), f.init() } function C(b, g) { function w(a) { var b = a.precedance === "y", c = n[b ? "width" : "height"], d = n[b ? "height" : "width"], e = a.string().indexOf("center") > -1, f = c * (e ? .5 : 1), g = Math.pow, h = Math.round, i, j, k, l = Math.sqrt(g(f, 2) + g(d, 2)), m = [p / f * l, p / d * l]; m[2] = Math.sqrt(g(m[0], 2) - g(p, 2)), m[3] = Math.sqrt(g(m[1], 2) - g(p, 2)), i = l + m[2] + m[3] + (e ? 0 : m[0]), j = i / l, k = [h(j * d), h(j * c)]; return { height: k[b ? 0 : 1], width: k[b ? 1 : 0]} } function v(b) { var c = k.titlebar && b.y === "top", d = c ? k.titlebar : k.content, e = a.browser.mozilla, f = e ? "-moz-" : a.browser.webkit ? "-webkit-" : "", g = b.y + (e ? "" : "-") + b.x, h = f + (e ? "border-radius-" + g : "border-" + g + "-radius"); return parseInt(d.css(h), 10) || parseInt(l.css(h), 10) || 0 } function u(a, b, c) { b = b ? b : a[a.precedance]; var d = l.hasClass(r), e = k.titlebar && a.y === "top", f = e ? k.titlebar : k.content, g = "border-" + b + "-width", h; l.addClass(r), h = parseInt(f.css(g), 10), h = (c ? h || parseInt(l.css(g), 10) : h) || 0, l.toggleClass(r, d); return h } function t(f, g, h, l) { if (k.tip) { var n = a.extend({}, i.corner), o = h.adjusted, p = b.options.position.adjust.method.split(" "), q = p[0], r = p[1] || p[0], s = { left: e, top: e, x: 0, y: 0 }, t, u = {}, v; i.corner.fixed !== d && (q === "shift" && n.precedance === "x" && o.left && n.y !== "center" ? n.precedance = n.precedance === "x" ? "y" : "x" : q === "flip" && o.left && (n.x = n.x === "center" ? o.left > 0 ? "left" : "right" : n.x === "left" ? "right" : "left"), r === "shift" && n.precedance === "y" && o.top && n.x !== "center" ? n.precedance = n.precedance === "y" ? "x" : "y" : r === "flip" && o.top && (n.y = n.y === "center" ? o.top > 0 ? "top" : "bottom" : n.y === "top" ? "bottom" : "top"), n.string() !== m.corner && (m.top !== o.top || m.left !== o.left) && i.update(n, e)), t = i.position(n, o), t.right !== c && (t.left = -t.right), t.bottom !== c && (t.top = -t.bottom), t.user = Math.max(0, j.offset); if (s.left = q === "shift" && !!o.left) n.x === "center" ? u["margin-left"] = s.x = t["margin-left"] - o.left : (v = t.right !== c ? [o.left, -t.left] : [-o.left, t.left], (s.x = Math.max(v[0], v[1])) > v[0] && (h.left -= o.left, s.left = e), u[t.right !== c ? "right" : "left"] = s.x); if (s.top = r === "shift" && !!o.top) n.y === "center" ? u["margin-top"] = s.y = t["margin-top"] - o.top : (v = t.bottom !== c ? [o.top, -t.top] : [-o.top, t.top], (s.y = Math.max(v[0], v[1])) > v[0] && (h.top -= o.top, s.top = e), u[t.bottom !== c ? "bottom" : "top"] = s.y); k.tip.css(u).toggle(!(s.x && s.y || n.x === "center" && s.y || n.y === "center" && s.x)), h.left -= t.left.charAt ? t.user : q !== "shift" || s.top || !s.left && !s.top ? t.left : 0, h.top -= t.top.charAt ? t.user : r !== "shift" || s.left || !s.left && !s.top ? t.top : 0, m.left = o.left, m.top = o.top, m.corner = n.string() } } var i = this, j = b.options.style.tip, k = b.elements, l = k.tooltip, m = { top: 0, left: 0, corner: "" }, n = { width: j.width, height: j.height }, o = {}, p = j.border || 0, q = ".qtip-tip", s = !!(a("<canvas />")[0] || {}).getContext; i.mimic = i.corner = f, i.border = p, i.offset = j.offset, i.size = n, b.checks.tip = { "^position.my|style.tip.(corner|mimic|border)$": function() { i.init() || i.destroy(), b.reposition() }, "^style.tip.(height|width)$": function() { n = { width: j.width, height: j.height }, i.create(), i.update(), b.reposition() }, "^content.title.text|style.(classes|widget)$": function() { k.tip && i.update() } }, a.extend(i, { init: function() { var b = i.detectCorner() && (s || a.browser.msie); b && (i.create(), i.update(), l.unbind(q).bind("tooltipmove" + q, t)); return b }, detectCorner: function() { var a = j.corner, c = b.options.position, f = c.at, g = c.my.string ? c.my.string() : c.my; if (a === e || g === e && f === e) return e; a === d ? i.corner = new h.Corner(g) : a.string || (i.corner = new h.Corner(a), i.corner.fixed = d); return i.corner.string() !== "centercenter" }, detectColours: function() { var c, d, e, f = k.tip.css({ backgroundColor: "", border: "" }), g = i.corner, h = g[g.precedance], m = "border-" + h + "-color", p = "border" + h.charAt(0) + h.substr(1) + "Color", q = /rgba?\(0, 0, 0(, 0)?\)|transparent/i, s = "background-color", t = "transparent", u = a(document.body).css("color"), v = b.elements.content.css("color"), w = k.titlebar && (g.y === "top" || g.y === "center" && f.position().top + n.height / 2 + j.offset < k.titlebar.outerHeight(1)), x = w ? k.titlebar : k.content; l.addClass(r), o.fill = d = f.css(s), o.border = e = f[0].style[p] || f.css(m) || l.css(m); if (!d || q.test(d)) o.fill = x.css(s) || t, q.test(o.fill) && (o.fill = l.css(s) || d); if (!e || q.test(e) || e === u) { o.border = x.css(m) || t; if (q.test(o.border) || o.border === v) o.border = e } a("*", f).add(f).css(s, t).css("border", ""), l.removeClass(r) }, create: function() { var b = n.width, c = n.height, d; k.tip && k.tip.remove(), k.tip = a("<div />", { "class": "ui-tooltip-tip" }).css({ width: b, height: c }).prependTo(l), s ? a("<canvas />").appendTo(k.tip)[0].getContext("2d").save() : (d = '<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>', k.tip.html(d + d)) }, update: function(b, c) { var g = k.tip, l = g.children(), m = n.width, q = n.height, r = "px solid ", t = "px dashed transparent", v = j.mimic, x = Math.round, y, z, A, C, D; b || (b = i.corner), v === e ? v = b : (v = new h.Corner(v), v.precedance = b.precedance, v.x === "inherit" ? v.x = b.x : v.y === "inherit" ? v.y = b.y : v.x === v.y && (v[b.precedance] = b[b.precedance])), y = v.precedance, i.detectColours(), o.border !== "transparent" && o.border !== "#123456" ? (p = u(b, f, d), j.border === 0 && p > 0 && (o.fill = o.border), i.border = p = j.border !== d ? j.border : p) : i.border = p = 0, A = B(v, m, q), i.size = D = w(b), g.css(D), b.precedance === "y" ? C = [x(v.x === "left" ? p : v.x === "right" ? D.width - m - p : (D.width - m) / 2), x(v.y === "top" ? D.height - q : 0)] : C = [x(v.x === "left" ? D.width - m : 0), x(v.y === "top" ? p : v.y === "bottom" ? D.height - q - p : (D.height - q) / 2)], s ? (l.attr(D), z = l[0].getContext("2d"), z.restore(), z.save(), z.clearRect(0, 0, 3e3, 3e3), z.translate(C[0], C[1]), z.beginPath(), z.moveTo(A[0][0], A[0][1]), z.lineTo(A[1][0], A[1][1]), z.lineTo(A[2][0], A[2][1]), z.closePath(), z.fillStyle = o.fill, z.strokeStyle = o.border, z.lineWidth = p * 2, z.lineJoin = "miter", z.miterLimit = 100, p && z.stroke(), z.fill()) : (A = "m" + A[0][0] + "," + A[0][1] + " l" + A[1][0] + "," + A[1][1] + " " + A[2][0] + "," + A[2][1] + " xe", C[2] = p && /^(r|b)/i.test(b.string()) ? parseFloat(a.browser.version, 10) === 8 ? 2 : 1 : 0, l.css({ antialias: "" + (v.string().indexOf("center") > -1), left: C[0] - C[2] * Number(y === "x"), top: C[1] - C[2] * Number(y === "y"), width: m + p, height: q + p }).each(function(b) { var c = a(this); c[c.prop ? "prop" : "attr"]({ coordsize: m + p + " " + (q + p), path: A, fillcolor: o.fill, filled: !!b, stroked: !b }).css({ display: p || b ? "block" : "none" }), !b && c.html() === "" && c.html('<vml:stroke weight="' + p * 2 + 'px" color="' + o.border + '" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />') })), c !== e && i.position(b) }, position: function(b) { var c = k.tip, f = {}, g = Math.max(0, j.offset), h, l, m; if (j.corner === e || !c) return e; b = b || i.corner, h = b.precedance, l = w(b), m = [b.x, b.y], h === "x" && m.reverse(), a.each(m, function(a, c) { var e, i; c === "center" ? (e = h === "y" ? "left" : "top", f[e] = "50%", f["margin-" + e] = -Math.round(l[h === "y" ? "width" : "height"] / 2) + g) : (e = u(b, c, d), i = v(b), f[c] = a ? p ? u(b, c) : 0 : g + (i > e ? i : 0)) }), f[b[h]] -= l[h === "x" ? "width" : "height"], c.css({ top: "", bottom: "", left: "", right: "", margin: "" }).css(f); return f }, destroy: function() { k.tip && k.tip.remove(), l.unbind(q) } }), i.init() } function B(a, b, c) { var d = Math.ceil(b / 2), e = Math.ceil(c / 2), f = { bottomright: [[0, 0], [b, c], [b, 0]], bottomleft: [[0, 0], [b, 0], [0, c]], topright: [[0, c], [b, 0], [b, c]], topleft: [[0, 0], [0, c], [b, c]], topcenter: [[0, c], [d, 0], [b, c]], bottomcenter: [[0, 0], [b, 0], [d, c]], rightcenter: [[0, 0], [b, e], [0, c]], leftcenter: [[b, 0], [b, c], [0, e]] }; f.lefttop = f.bottomright, f.righttop = f.bottomleft, f.leftbottom = f.topright, f.rightbottom = f.topleft; return f[a.string()] } function A(b) { var c = this, f = b.elements.tooltip, g = b.options.content.ajax, h = ".qtip-ajax", i = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, j = d; b.checks.ajax = { "^content.ajax": function(a, b, d) { b === "ajax" && (g = d), b === "once" ? c.init() : g && g.url ? c.load() : f.unbind(h) } }, a.extend(c, { init: function() { g && g.url && f.unbind(h)[g.once ? "one" : "bind"]("tooltipshow" + h, c.load); return c }, load: function(d, h) { function p(a, c, d) { b.set("content.text", c + ": " + d) } function o(c) { l && (c = a("<div/>").append(c.replace(i, "")).find(l)), b.set("content.text", c) } function n() { m && (f.css("visibility", ""), h = e), a.isFunction(g.complete) && g.complete.apply(this, arguments) } if (d && d.isDefaultPrevented()) return c; var j = g.url.indexOf(" "), k = g.url, l, m = g.once && !g.loading && h; m && f.css("visibility", "hidden"), j > -1 && (l = k.substr(j), k = k.substr(0, j)), a.ajax(a.extend({ success: o, error: p, context: b }, g, { url: k, complete: n })); return c } }), c.init() } function z(b, c) { var i, j, k, l, m, n = a(this), o = a(document.body), p = this === document ? o : n, q = n.metadata ? n.metadata(c.metadata) : f, r = c.metadata.type === "html5" && q ? q[c.metadata.name] : f, s = n.data(c.metadata.name || "qtipopts"); try { s = typeof s === "string" ? (new Function("return " + s))() : s } catch (t) { w("Unable to parse HTML5 attribute data: " + s) } l = a.extend(d, {}, g.defaults, c, typeof s === "object" ? x(s) : f, x(r || q)), j = l.position, l.id = b; if ("boolean" === typeof l.content.text) { k = n.attr(l.content.attr); if (l.content.attr !== e && k) l.content.text = k; else { w("Unable to locate content for tooltip! Aborting render of tooltip on element: ", n); return e } } j.container === e && (j.container = o), j.target === e && (j.target = p), l.show.target === e && (l.show.target = p), l.show.solo === d && (l.show.solo = o), l.hide.target === e && (l.hide.target = p), l.position.viewport === d && (l.position.viewport = j.container), j.at = new h.Corner(j.at), j.my = new h.Corner(j.my); if (a.data(this, "qtip")) if (l.overwrite) n.qtip("destroy"); else if (l.overwrite === e) return e; l.suppress && (m = a.attr(this, "title")) && a(this).removeAttr("title").attr(u, m), i = new y(n, l, b, !!k), a.data(this, "qtip", i), n.bind("remove.qtip", function() { i.destroy() }); return i } function y(s, t, w, y) { function R() { var c = [t.show.target[0], t.hide.target[0], z.rendered && G.tooltip[0], t.position.container[0], t.position.viewport[0], b, document]; z.rendered ? a([]).pushStack(a.grep(c, function(a) { return typeof a === "object" })).unbind(F) : t.show.target.unbind(F + "-create") } function Q() { function p(a) { E.is(":visible") && z.reposition(a) } function o(a) { if (E.hasClass(m)) return e; clearTimeout(z.timers.inactive), z.timers.inactive = setTimeout(function() { z.hide(a) }, t.hide.inactive) } function l(b) { if (E.hasClass(m) || C || D) return e; var d = a(b.relatedTarget || b.target), g = d.closest(n)[0] === E[0], h = d[0] === f.show[0]; clearTimeout(z.timers.show), clearTimeout(z.timers.hide); if (c.target === "mouse" && g || t.hide.fixed && (/mouse(out|leave|move)/.test(b.type) && (g || h))) try { b.preventDefault(), b.stopImmediatePropagation() } catch (i) { } else t.hide.delay > 0 ? z.timers.hide = setTimeout(function() { z.hide(b) }, t.hide.delay) : z.hide(b) } function k(a) { if (E.hasClass(m)) return e; f.show.trigger("qtip-" + w + "-inactive"), clearTimeout(z.timers.show), clearTimeout(z.timers.hide); var b = function() { z.toggle(d, a) }; t.show.delay > 0 ? z.timers.show = setTimeout(b, t.show.delay) : b() } var c = t.position, f = { show: t.show.target, hide: t.hide.target, viewport: a(c.viewport), document: a(document), window: a(b) }, h = { show: a.trim("" + t.show.event).split(" "), hide: a.trim("" + t.hide.event).split(" ") }, j = a.browser.msie && parseInt(a.browser.version, 10) === 6; E.bind("mouseenter" + F + " mouseleave" + F, function(a) { var b = a.type === "mouseenter"; b && z.focus(a), E.toggleClass(q, b) }), t.hide.fixed && (f.hide = f.hide.add(E), E.bind("mouseover" + F, function() { E.hasClass(m) || clearTimeout(z.timers.hide) })), /mouse(out|leave)/i.test(t.hide.event) ? t.hide.leave === "window" && f.window.bind("mouseout" + F, function(a) { /select|option/.test(a.target) && !a.relatedTarget && z.hide(a) }) : /mouse(over|enter)/i.test(t.show.event) && f.hide.bind("mouseleave" + F, function(a) { clearTimeout(z.timers.show) }), ("" + t.hide.event).indexOf("unfocus") > -1 && f.document.bind("mousedown" + F, function(b) { var c = a(b.target), d = !E.hasClass(m) && E.is(":visible"); c[0] !== E[0] && c.parents(n).length === 0 && c.add(s).length > 1 && z.hide(b) }), "number" === typeof t.hide.inactive && (f.show.bind("qtip-" + w + "-inactive", o), a.each(g.inactiveEvents, function(a, b) { f.hide.add(G.tooltip).bind(b + F + "-inactive", o) })), a.each(h.hide, function(b, c) { var d = a.inArray(c, h.show), e = a(f.hide); d > -1 && e.add(f.show).length === e.length || c === "unfocus" ? (f.show.bind(c + F, function(a) { E.is(":visible") ? l(a) : k(a) }), delete h.show[d]) : f.hide.bind(c + F, l) }), a.each(h.show, function(a, b) { f.show.bind(b + F, k) }), "number" === typeof t.hide.distance && f.show.add(E).bind("mousemove" + F, function(a) { var b = H.origin || {}, c = t.hide.distance, d = Math.abs; (d(a.pageX - b.pageX) >= c || d(a.pageY - b.pageY) >= c) && z.hide(a) }), c.target === "mouse" && (f.show.bind("mousemove" + F, function(a) { i = { pageX: a.pageX, pageY: a.pageY, type: "mousemove"} }), c.adjust.mouse && (t.hide.event && E.bind("mouseleave" + F, function(a) { (a.relatedTarget || a.target) !== f.show[0] && z.hide(a) }), f.document.bind("mousemove" + F, function(a) { !E.hasClass(m) && E.is(":visible") && z.reposition(a || i) }))), (c.adjust.resize || f.viewport.length) && (a.event.special.resize ? f.viewport : f.window).bind("resize" + F, p), (f.viewport.length || j && E.css("position") === "fixed") && f.viewport.bind("scroll" + F, p) } function P(b, d) { function g(b) { function i(c) { c && (delete h[c.src], clearTimeout(z.timers.img[c.src]), a(c).unbind(F)), a.isEmptyObject(h) && (z.redraw(), d !== e && z.reposition(H.event), b()) } var g, h = {}; if ((g = f.find("img:not([height]):not([width])")).length === 0) return i(); g.each(function(b, d) { if (h[d.src] === c) { var e = 0, f = 3; (function g() { if (d.height || d.width || e > f) return i(d); e += 1, z.timers.img[d.src] = setTimeout(g, 700) })(), a(d).bind("error" + F + " load" + F, function() { i(this) }), h[d.src] = d } }) } var f = G.content; if (!z.rendered || !b) return e; a.isFunction(b) && (b = b.call(s, H.event, z) || ""), b.jquery && b.length > 0 ? f.empty().append(b.css({ display: "block" })) : f.html(b), z.rendered < 0 ? E.queue("fx", g) : (D = 0, g(a.noop)); return z } function O(b, c) { var d = G.title; if (!z.rendered || !b) return e; a.isFunction(b) && (b = b.call(s, H.event, z)); if (b === e) return K(e); b.jquery && b.length > 0 ? d.empty().append(b.css({ display: "block" })) : d.html(b), z.redraw(), c !== e && z.rendered && E.is(":visible") && z.reposition(H.event) } function N(a) { var b = G.button, c = G.title; if (!z.rendered) return e; a ? (c || M(), L()) : b.remove() } function M() { var b = B + "-title"; G.titlebar && K(), G.titlebar = a("<div />", { "class": k + "-titlebar " + (t.style.widget ? "ui-widget-header" : "") }).append(G.title = a("<div />", { id: b, "class": k + "-title", "aria-atomic": d })).insertBefore(G.content), t.content.title.button ? L() : z.rendered && z.redraw() } function L() { var b = t.content.title.button, c = typeof b === "string", d = c ? b : "Close tooltip"; G.button && G.button.remove(), b.jquery ? G.button = b : G.button = a("<a />", { "class": "ui-state-default " + (t.style.widget ? "" : k + "-icon"), title: d, "aria-label": d }).prepend(a("<span />", { "class": "ui-icon ui-icon-close", html: "&times;" })), G.button.appendTo(G.titlebar).attr("role", "button").hover(function(b) { a(this).toggleClass("ui-state-hover", b.type === "mouseenter") }).click(function(a) { E.hasClass(m) || z.hide(a); return e }).bind("mousedown keydown mouseup keyup mouseout", function(b) { a(this).toggleClass("ui-state-active ui-state-focus", b.type.substr(-4) === "down") }), z.redraw() } function K(a) { G.title && (G.titlebar.remove(), G.titlebar = G.title = G.button = f, a !== e && z.reposition()) } function J() { var a = t.style.widget; E.toggleClass(l, a).toggleClass(o, !a), G.content.toggleClass(l + "-content", a), G.titlebar && G.titlebar.toggleClass(l + "-header", a), G.button && G.button.toggleClass(k + "-icon", !a) } function I(a) { var b = 0, c, d = t, e = a.split("."); while (d = d[e[b++]]) b < e.length && (c = d); return [c || t, e.pop()] } var z = this, A = document.body, B = k + "-" + w, C = 0, D = 0, E = a(), F = ".qtip-" + w, G, H; z.id = w, z.rendered = e, z.elements = G = { target: s }, z.timers = { img: {} }, z.options = t, z.checks = {}, z.plugins = {}, z.cache = H = { event: {}, target: a(), disabled: e, attr: y }, z.checks.builtin = { "^id$": function(b, c, f) { var h = f === d ? g.nextid : f, i = k + "-" + h; h !== e && h.length > 0 && !a("#" + i).length && (E[0].id = i, G.content[0].id = i + "-content", G.title[0].id = i + "-title") }, "^content.text$": function(a, b, c) { P(c) }, "^content.title.text$": function(a, b, c) { if (!c) return K(); !G.title && c && M(), O(c) }, "^content.title.button$": function(a, b, c) { N(c) }, "^position.(my|at)$": function(a, b, c) { "string" === typeof c && (a[b] = new h.Corner(c)) }, "^position.container$": function(a, b, c) { z.rendered && E.appendTo(c) }, "^show.ready$": function() { z.rendered ? z.toggle(d) : z.render(1) }, "^style.classes$": function(a, b, c) { E.attr("class", k + " qtip ui-helper-reset " + c) }, "^style.widget|content.title": J, "^events.(render|show|move|hide|focus|blur)$": function(b, c, d) { E[(a.isFunction(d) ? "" : "un") + "bind"]("tooltip" + c, d) }, "^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)": function() { var a = t.position; E.attr("tracking", a.target === "mouse" && a.adjust.mouse), R(), Q() } }, a.extend(z, { render: function(b) { if (z.rendered) return z; var c = t.content.title.text, f = t.position, g = a.Event("tooltiprender"); a.attr(s[0], "aria-describedby", B), E = G.tooltip = a("<div/>", { id: B, "class": k + " qtip ui-helper-reset " + o + " " + t.style.classes + " " + k + "-pos-" + t.position.my.abbreviation(), width: t.style.width || "", height: t.style.height || "", tracking: f.target === "mouse" && f.adjust.mouse, role: "alert", "aria-live": "polite", "aria-atomic": e, "aria-describedby": B + "-content", "aria-hidden": d }).toggleClass(m, H.disabled).data("qtip", z).appendTo(t.position.container).append(G.content = a("<div />", { "class": k + "-content", id: B + "-content", "aria-atomic": d })), z.rendered = -1, C = D = 1, c && (M(), O(c, e)), P(t.content.text, e), z.rendered = d, J(), a.each(t.events, function(b, c) { a.isFunction(c) && E.bind(b === "toggle" ? "tooltipshow tooltiphide" : "tooltip" + b, c) }), a.each(h, function() { this.initialize === "render" && this(z) }), Q(), E.queue("fx", function(a) { g.originalEvent = H.event, E.trigger(g, [z]), C = D = 0, z.redraw(), (t.show.ready || b) && z.toggle(d, H.event), a() }); return z }, get: function(a) { var b, c; switch (a.toLowerCase()) { case "dimensions": b = { height: E.outerHeight(), width: E.outerWidth() }; break; case "offset": b = h.offset(E, t.position.container); break; default: c = I(a.toLowerCase()), b = c[0][c[1]], b = b.precedance ? b.string() : b } return b }, set: function(b, c) { function m(a, b) { var c, d, e; for (c in k) for (d in k[c]) if (e = (new RegExp(d, "i")).exec(a)) b.push(e), k[c][d].apply(z, b) } var g = /^position\.(my|at|adjust|target|container)|style|content|show\.ready/i, h = /^content\.(title|attr)|style/i, i = e, j = e, k = z.checks, l; "string" === typeof b ? (l = b, b = {}, b[l] = c) : b = a.extend(d, {}, b), a.each(b, function(c, d) { var e = I(c.toLowerCase()), f; f = e[0][e[1]], e[0][e[1]] = "object" === typeof d && d.nodeType ? a(d) : d, b[c] = [e[0], e[1], d, f], i = g.test(c) || i, j = h.test(c) || j }), x(t), C = D = 1, a.each(b, m), C = D = 0, E.is(":visible") && z.rendered && (i && z.reposition(t.position.target === "mouse" ? f : H.event), j && z.redraw()); return z }, toggle: function(b, c) { function q() { b ? (a.browser.msie && E[0].style.removeAttribute("filter"), E.css("overflow", ""), "string" === typeof h.autofocus && a(h.autofocus, E).focus(), p = a.Event("tooltipvisible"), p.originalEvent = c ? H.event : f, E.trigger(p, [z])) : E.css({ display: "", visibility: "", opacity: "", left: "", top: "" }) } if (!z.rendered) if (b) z.render(1); else return z; var g = b ? "show" : "hide", h = t[g], j = E.is(":visible"), k = !c || t[g].target.length < 2 || H.target[0] === c.target, l = t.position, m = t.content, o, p; (typeof b).search("boolean|number") && (b = !j); if (!E.is(":animated") && j === b && k) return z; if (c) { if (/over|enter/.test(c.type) && /out|leave/.test(H.event.type) && c.target === t.show.target[0] && E.has(c.relatedTarget).length) return z; H.event = a.extend({}, c) } p = a.Event("tooltip" + g), p.originalEvent = c ? H.event : f, E.trigger(p, [z, 90]); if (p.isDefaultPrevented()) return z; a.attr(E[0], "aria-hidden", !b), b ? (H.origin = a.extend({}, i), z.focus(c), a.isFunction(m.text) && P(m.text, e), a.isFunction(m.title.text) && O(m.title.text, e), !v && l.target === "mouse" && l.adjust.mouse && (a(document).bind("mousemove.qtip", function(a) { i = { pageX: a.pageX, pageY: a.pageY, type: "mousemove"} }), v = d), z.reposition(c), h.solo && a(n, h.solo).not(E).qtip("hide", p)) : (clearTimeout(z.timers.show), delete H.origin, v && !a(n + '[tracking="true"]:visible', h.solo).not(E).length && (a(document).unbind("mousemove.qtip"), v = e), z.blur(c)), k && E.stop(0, 1), h.effect === e ? (E[g](), q.call(E)) : a.isFunction(h.effect) ? (h.effect.call(E, z), E.queue("fx", function(a) { q(), a() })) : E.fadeTo(90, b ? 1 : 0, q), b && h.target.trigger("qtip-" + w + "-inactive"); return z }, show: function(a) { return z.toggle(d, a) }, hide: function(a) { return z.toggle(e, a) }, focus: function(b) { if (!z.rendered) return z; var c = a(n), d = parseInt(E[0].style.zIndex, 10), e = g.zindex + c.length, f = a.extend({}, b), h, i; E.hasClass(p) || (i = a.Event("tooltipfocus"), i.originalEvent = f, E.trigger(i, [z, e]), i.isDefaultPrevented() || (d !== e && (c.each(function() { this.style.zIndex > d && (this.style.zIndex = this.style.zIndex - 1) }), c.filter("." + p).qtip("blur", f)), E.addClass(p)[0].style.zIndex = e)); return z }, blur: function(b) { var c = a.extend({}, b), d; E.removeClass(p), d = a.Event("tooltipblur"), d.originalEvent = c, E.trigger(d, [z]); return z }, reposition: function(c, d) { if (!z.rendered || C) return z; C = 1; var f = t.position.target, g = t.position, j = g.my, l = g.at, m = g.adjust, n = m.method.split(" "), o = E.outerWidth(), p = E.outerHeight(), q = 0, r = 0, s = a.Event("tooltipmove"), u = E.css("position") === "fixed", v = g.viewport, w = { left: 0, top: 0 }, x = e, y = z.plugins.tip, B = { horizontal: n[0], vertical: n[1] = n[1] || n[0], enabled: v.jquery && f[0] !== b && f[0] !== A && m.method !== "none", left: function(a) { var b = B.horizontal === "shift", c = v.offset.left + v.scrollLeft, d = j.x === "left" ? o : j.x === "right" ? -o : -o / 2, e = l.x === "left" ? q : l.x === "right" ? -q : -q / 2, f = y && y.size ? y.size.width || 0 : 0, g = y && y.corner && y.corner.precedance === "x" && !b ? f : 0, h = c - a + g, i = a + o - v.width - c + g, k = d - (j.precedance === "x" || j.x === j.y ? e : 0), n = j.x === "center"; b ? (g = y && y.corner && y.corner.precedance === "y" ? f : 0, k = (j.x === "left" ? 1 : -1) * d - g, w.left += h > 0 ? h : i > 0 ? -i : 0, w.left = Math.max(v.offset.left + (g && y.corner.x === "center" ? y.offset : 0), a - k, Math.min(Math.max(v.offset.left + v.width, a + k), w.left))) : (h > 0 && (j.x !== "left" || i > 0) ? w.left -= k : i > 0 && (j.x !== "right" || h > 0) && (w.left -= n ? -k : k), w.left !== a && n && (w.left -= m.x), w.left < c && -w.left > i && (w.left = a)); return w.left - a }, top: function(a) { var b = B.vertical === "shift", c = v.offset.top + v.scrollTop, d = j.y === "top" ? p : j.y === "bottom" ? -p : -p / 2, e = l.y === "top" ? r : l.y === "bottom" ? -r : -r / 2, f = y && y.size ? y.size.height || 0 : 0, g = y && y.corner && y.corner.precedance === "y" && !b ? f : 0, h = c - a + g, i = a + p - v.height - c + g, k = d - (j.precedance === "y" || j.x === j.y ? e : 0), n = j.y === "center"; b ? (g = y && y.corner && y.corner.precedance === "x" ? f : 0, k = (j.y === "top" ? 1 : -1) * d - g, w.top += h > 0 ? h : i > 0 ? -i : 0, w.top = Math.max(v.offset.top + (g && y.corner.x === "center" ? y.offset : 0), a - k, Math.min(Math.max(v.offset.top + v.height, a + k), w.top))) : (h > 0 && (j.y !== "top" || i > 0) ? w.top -= k : i > 0 && (j.y !== "bottom" || h > 0) && (w.top -= n ? -k : k), w.top !== a && n && (w.top -= m.y), w.top < 0 && -w.top > i && (w.top = a)); return w.top - a } }, D; if (a.isArray(f) && f.length === 2) l = { x: "left", y: "top" }, w = { left: f[0], top: f[1] }; else if (f === "mouse" && (c && c.pageX || H.event.pageX)) l = { x: "left", y: "top" }, c = (c && (c.type === "resize" || c.type === "scroll") ? H.event : c && c.pageX && c.type === "mousemove" ? c : i && i.pageX && (m.mouse || !c || !c.pageX) ? { pageX: i.pageX, pageY: i.pageY} : !m.mouse && H.origin && H.origin.pageX ? H.origin : c) || c || H.event || i || {}, w = { top: c.pageY, left: c.pageX }; else { f === "event" ? c && c.target && c.type !== "scroll" && c.type !== "resize" ? f = H.target = a(c.target) : f = H.target : H.target = a(f), f = a(f).eq(0); if (f.length === 0) return z; f[0] === document || f[0] === b ? (q = h.iOS ? b.innerWidth : f.width(), r = h.iOS ? b.innerHeight : f.height(), f[0] === b && (w = { top: !u || h.iOS ? (v || f).scrollTop() : 0, left: !u || h.iOS ? (v || f).scrollLeft() : 0 })) : f.is("area") && h.imagemap ? w = h.imagemap(f, l, B.enabled ? n : e) : f[0].namespaceURI === "http://www.w3.org/2000/svg" && h.svg ? w = h.svg(f, l) : (q = f.outerWidth(), r = f.outerHeight(), w = h.offset(f, g.container)), w.offset && (q = w.width, r = w.height, x = w.flipoffset, w = w.offset); if (h.iOS < 4.1 && h.iOS > 3.1 || h.iOS == 4.3 || !h.iOS && u) D = a(b), w.left -= D.scrollLeft(), w.top -= D.scrollTop(); w.left += l.x === "right" ? q : l.x === "center" ? q / 2 : 0, w.top += l.y === "bottom" ? r : l.y === "center" ? r / 2 : 0 } w.left += m.x + (j.x === "right" ? -o : j.x === "center" ? -o / 2 : 0), w.top += m.y + (j.y === "bottom" ? -p : j.y === "center" ? -p / 2 : 0), B.enabled ? (v = { elem: v, height: v[(v[0] === b ? "h" : "outerH") + "eight"](), width: v[(v[0] === b ? "w" : "outerW") + "idth"](), scrollLeft: u ? 0 : v.scrollLeft(), scrollTop: u ? 0 : v.scrollTop(), offset: v.offset() || { left: 0, top: 0} }, w.adjusted = { left: B.horizontal !== "none" ? B.left(w.left) : 0, top: B.vertical !== "none" ? B.top(w.top) : 0 }, w.adjusted.left + w.adjusted.top && E.attr("class", function(a, b) { return b.replace(/ui-tooltip-pos-\w+/i, k + "-pos-" + j.abbreviation()) }), x && w.adjusted.left && (w.left += x.left), x && w.adjusted.top && (w.top += x.top)) : w.adjusted = { left: 0, top: 0 }, s.originalEvent = a.extend({}, c), E.trigger(s, [z, w, v.elem || v]); if (s.isDefaultPrevented()) return z; delete w.adjusted, d === e || isNaN(w.left) || isNaN(w.top) || f === "mouse" || !a.isFunction(g.effect) ? E.css(w) : a.isFunction(g.effect) && (g.effect.call(E, z, a.extend({}, w)), E.queue(function(b) { a(this).css({ opacity: "", height: "" }), a.browser.msie && this.style.removeAttribute("filter"), b() })), C = 0; return z }, redraw: function() { if (z.rendered < 1 || D) return z; var a = t.position.container, b, c, d, e; D = 1, t.style.height && E.css("height", t.style.height), t.style.width ? E.css("width", t.style.width) : (E.css("width", "").addClass(r), c = E.width() + 1, d = E.css("max-width") || "", e = E.css("min-width") || "", b = (d + e).indexOf("%") > -1 ? a.width() / 100 : 0, d = (d.indexOf("%") > -1 ? b : 1) * parseInt(d, 10) || c, e = (e.indexOf("%") > -1 ? b : 1) * parseInt(e, 10) || 0, c = d + e ? Math.min(Math.max(c, e), d) : c, E.css("width", Math.round(c)).removeClass(r)), D = 0; return z }, disable: function(b) { "boolean" !== typeof b && (b = !E.hasClass(m) && !H.disabled), z.rendered ? (E.toggleClass(m, b), a.attr(E[0], "aria-disabled", b)) : H.disabled = !!b; return z }, enable: function() { return z.disable(e) }, destroy: function() { var b = s[0], c = a.attr(b, u); z.rendered && (E.remove(), a.each(z.plugins, function() { this.destroy && this.destroy() })), clearTimeout(z.timers.show), clearTimeout(z.timers.hide), R(), a.removeData(b, "qtip"), t.suppress && c && (a.attr(b, "title", c), s.removeAttr(u)), s.removeAttr("aria-describedby").unbind(".qtip"), delete j[z.id]; return s } }) } function x(b) { var c; if (!b || "object" !== typeof b) return e; "object" !== typeof b.metadata && (b.metadata = { type: b.metadata }); if ("content" in b) { if ("object" !== typeof b.content || b.content.jquery) b.content = { text: b.content }; c = b.content.text || e, !a.isFunction(c) && (!c && !c.attr || c.length < 1 || "object" === typeof c && !c.jquery) && (b.content.text = e), "title" in b.content && ("object" !== typeof b.content.title && (b.content.title = { text: b.content.title }), c = b.content.title.text || e, !a.isFunction(c) && (!c && !c.attr || c.length < 1 || "object" === typeof c && !c.jquery) && (b.content.title.text = e)) } "position" in b && ("object" !== typeof b.position && (b.position = { my: b.position, at: b.position })), "show" in b && ("object" !== typeof b.show && (b.show.jquery ? b.show = { target: b.show} : b.show = { event: b.show })), "hide" in b && ("object" !== typeof b.hide && (b.hide.jquery ? b.hide = { target: b.hide} : b.hide = { event: b.hide })), "style" in b && ("object" !== typeof b.style && (b.style = { classes: b.style })), a.each(h, function() { this.sanitize && this.sanitize(b) }); return b } function w() { w.history = w.history || [], w.history.push(arguments); if ("object" === typeof console) { var a = console[console.warn ? "warn" : "log"], b = Array.prototype.slice.call(arguments), c; typeof arguments[0] === "string" && (b[0] = "qTip2: " + b[0]), c = a.apply ? a.apply(console, b) : a(b) } } "use strict"; var d = !0, e = !1, f = null, g, h, i, j = {}, k = "ui-tooltip", l = "ui-widget", m = "ui-state-disabled", n = "div.qtip." + k, o = k + "-default", p = k + "-focus", q = k + "-hover", r = k + "-fluid", s = "-31000px", t = "_replacedByqTip", u = "oldtitle", v; g = a.fn.qtip = function(b, h, i) { var j = ("" + b).toLowerCase(), k = f, l = j === "disable" ? [d] : a.makeArray(arguments).slice(1), m = l[l.length - 1], n = this[0] ? a.data(this[0], "qtip") : f; if (!arguments.length && n || j === "api") return n; if ("string" === typeof b) { this.each(function() { var b = a.data(this, "qtip"); if (!b) return d; m && m.timeStamp && (b.cache.event = m); if (j !== "option" && j !== "options" || !h) b[j] && b[j].apply(b[j], l); else if (a.isPlainObject(h) || i !== c) b.set(h, i); else { k = b.get(h); return e } }); return k !== f ? k : this } if ("object" === typeof b || !arguments.length) { n = x(a.extend(d, {}, b)); return g.bind.call(this, n, m) } }, g.bind = function(b, f) { return this.each(function(k) { function r(b) { function d() { p.render(typeof b === "object" || l.show.ready), m.show.add(m.hide).unbind(o) } if (p.cache.disabled) return e; p.cache.event = a.extend({}, b), p.cache.target = b ? a(b.target) : [c], l.show.delay > 0 ? (clearTimeout(p.timers.show), p.timers.show = setTimeout(d, l.show.delay), n.show !== n.hide && m.hide.bind(n.hide, function() { clearTimeout(p.timers.show) })) : d() } var l, m, n, o, p, q; q = a.isArray(b.id) ? b.id[k] : b.id, q = !q || q === e || q.length < 1 || j[q] ? g.nextid++ : j[q] = q, o = ".qtip-" + q + "-create", p = z.call(this, q, b); if (p === e) return d; l = p.options, a.each(h, function() { this.initialize === "initialize" && this(p) }), m = { show: l.show.target, hide: l.hide.target }, n = { show: a.trim("" + l.show.event).replace(/ /g, o + " ") + o, hide: a.trim("" + l.hide.event).replace(/ /g, o + " ") + o }, /mouse(over|enter)/i.test(n.show) && !/mouse(out|leave)/i.test(n.hide) && (n.hide += " mouseleave" + o), m.show.bind("mousemove" + o, function(a) { i = { pageX: a.pageX, pageY: a.pageY, type: "mousemove"} }), m.show.bind(n.show, r), (l.show.ready || l.prerender) && r(f) }) }, h = g.plugins = { Corner: function(a) { a = ("" + a).replace(/([A-Z])/, " $1").replace(/middle/gi, "center").toLowerCase(), this.x = (a.match(/left|right/i) || a.match(/center/) || ["inherit"])[0].toLowerCase(), this.y = (a.match(/top|bottom|center/i) || ["inherit"])[0].toLowerCase(), this.precedance = a.charAt(0).search(/^(t|b)/) > -1 ? "y" : "x", this.string = function() { return this.precedance === "y" ? this.y + this.x : this.x + this.y }, this.abbreviation = function() { var a = this.x.substr(0, 1), b = this.y.substr(0, 1); return a === b ? a : a === "c" || a !== "c" && b !== "c" ? b + a : a + b } }, offset: function(a, b) { function h(a, b) { c.left += b * a.scrollLeft(), c.top += b * a.scrollTop() } var c = a.offset(), d = b, e = 0, f = document.body, g; if (d) { do { d.css("position") !== "static" && (g = d[0] === f ? { left: parseInt(d.css("left"), 10) || 0, top: parseInt(d.css("top"), 10) || 0} : d.position(), c.left -= g.left + (parseInt(d.css("borderLeftWidth"), 10) || 0) + (parseInt(d.css("marginLeft"), 10) || 0), c.top -= g.top + (parseInt(d.css("borderTopWidth"), 10) || 0), ++e); if (d[0] === f) break } while (d = d.offsetParent()); b[0] !== f && e > 1 && h(b, 1) } return c }, iOS: parseFloat(("" + (/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0, ""])[1]).replace("undefined", "3_2").replace("_", ".")) || e, fn: { attr: function(b, c) { if (this.length) { var d = this[0], e = "title", f = a.data(d, "qtip"); if (b === e && f && "object" === typeof f && f.options.suppress) { if (arguments.length < 2) return a.attr(d, u); f && f.options.content.attr === e && f.cache.attr && f.set("content.text", c); return this.attr(u, c) } } return a.fn["attr" + t].apply(this, arguments) }, clone: function(b) { var c = a([]), d = "title", e = a.fn["clone" + t].apply(this, arguments); b || e.filter("[" + u + "]").attr("title", function() { return a.attr(this, u) }).removeAttr(u); return e }, remove: a.ui ? f : function(b, c) { a(this).each(function() { c || (!b || a.filter(b, [this]).length) && a("*", this).add(this).each(function() { a(this).triggerHandler("remove") }) }) } } }, a.each(h.fn, function(b, c) { if (!c || a.fn[b + t]) return d; var e = a.fn[b + t] = a.fn[b]; a.fn[b] = function() { return c.apply(this, arguments) || e.apply(this, arguments) } }), g.version = "nightly", g.nextid = 0, g.inactiveEvents = "click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "), g.zindex = 15e3, g.defaults = { prerender: e, id: e, overwrite: d, suppress: d, content: { text: d, attr: "title", title: { text: e, button: e} }, position: { my: "top left", at: "bottom right", target: e, container: e, viewport: e, adjust: { x: 0, y: 0, mouse: d, resize: d, method: "flip flip" }, effect: function(b, c, d) { a(this).animate(c, { duration: 200, queue: e }) } }, show: { target: e, event: "mouseenter", effect: d, delay: 90, solo: e, ready: e, autofocus: e }, hide: { target: e, event: "mouseleave", effect: d, delay: 0, fixed: e, inactive: e, leave: "window", distance: e }, style: { classes: "", widget: e, width: e, height: e }, events: { render: f, move: f, show: f, hide: f, toggle: f, visible: f, focus: f, blur: f} }, h.ajax = function(a) { var b = a.plugins.ajax; return "object" === typeof b ? b : a.plugins.ajax = new A(a) }, h.ajax.initialize = "render", h.ajax.sanitize = function(a) { var b = a.content, c; b && "ajax" in b && (c = b.ajax, typeof c !== "object" && (c = a.content.ajax = { url: c }), "boolean" !== typeof c.once && c.once && (c.once = !!c.once)) }, a.extend(d, g.defaults, { content: { ajax: { loading: d, once: d}} }), h.imagemap = function(b, c, d) { function n(a, b, c) { var d = 0, e = 1, f = 1, g = 0, h = 0, i = a.width, j = a.height; while (i > 0 && j > 0 && e > 0 && f > 0) { i = Math.floor(i / 2), j = Math.floor(j / 2), c.x === "left" ? e = i : c.x === "right" ? e = a.width - i : e += Math.floor(i / 2), c.y === "top" ? f = j : c.y === "bottom" ? f = a.height - j : f += Math.floor(j / 2), d = b.length; while (d--) { if (b.length < 2) break; g = b[d][0] - a.offset.left, h = b[d][1] - a.offset.top, (c.x === "left" && g >= e || c.x === "right" && g <= e || c.x === "center" && (g < e || g > a.width - e) || c.y === "top" && h >= f || c.y === "bottom" && h <= f || c.y === "center" && (h < f || h > a.height - f)) && b.splice(d, 1) } } return { left: b[0][0], top: b[0][1]} } b.jquery || (b = a(b)); var e = b.attr("shape").toLowerCase(), f = b.attr("coords").split(","), g = [], h = a('img[usemap="#' + b.parent("map").attr("name") + '"]'), i = h.offset(), j = { width: 0, height: 0, offset: { top: 1e10, right: 0, bottom: 0, left: 1e10} }, k = 0, l = 0, m; i.left += Math.ceil((h.outerWidth() - h.width()) / 2), i.top += Math.ceil((h.outerHeight() - h.height()) / 2); if (e === "poly") { k = f.length; while (k--) l = [parseInt(f[--k], 10), parseInt(f[k + 1], 10)], l[0] > j.offset.right && (j.offset.right = l[0]), l[0] < j.offset.left && (j.offset.left = l[0]), l[1] > j.offset.bottom && (j.offset.bottom = l[1]), l[1] < j.offset.top && (j.offset.top = l[1]), g.push(l) } else g = a.map(f, function(a) { return parseInt(a, 10) }); switch (e) { case "rect": j = { width: Math.abs(g[2] - g[0]), height: Math.abs(g[3] - g[1]), offset: { left: g[0], top: g[1]} }; break; case "circle": j = { width: g[2] + 2, height: g[2] + 2, offset: { left: g[0], top: g[1]} }; break; case "poly": a.extend(j, { width: Math.abs(j.offset.right - j.offset.left), height: Math.abs(j.offset.bottom - j.offset.top) }), c.string() === "centercenter" ? j.offset = { left: j.offset.left + j.width / 2, top: j.offset.top + j.height / 2} : (j.offset = n(j, g.slice(), c), d && (d[0] === "flip" || d[1] === "flip") && (j.flipoffset = n(j, g.slice(), { x: c.x === "left" ? "right" : c.x === "right" ? "left" : "center", y: c.y === "top" ? "bottom" : c.y === "bottom" ? "top" : "center" }), j.flipoffset.left -= j.offset.left, j.flipoffset.top -= j.offset.top)), j.width = j.height = 0 } j.offset.left += i.left, j.offset.top += i.top; return j }, h.tip = function(a) { var b = a.plugins.tip; return "object" === typeof b ? b : a.plugins.tip = new C(a) }, h.tip.initialize = "render", h.tip.sanitize = function(a) { var b = a.style, c; b && "tip" in b && (c = a.style.tip, typeof c !== "object" && (a.style.tip = { corner: c }), /string|boolean/i.test(typeof c.corner) || (c.corner = d), typeof c.width !== "number" && delete c.width, typeof c.height !== "number" && delete c.height, typeof c.border !== "number" && c.border !== d && delete c.border, typeof c.offset !== "number" && delete c.offset) }, a.extend(d, g.defaults, { style: { tip: { corner: d, mimic: e, width: 6, height: 6, border: d, offset: 0}} }), h.svg = function(b, c) { var d = a(document), e = b[0], f = { width: 0, height: 0, offset: { top: 1e10, left: 1e10} }, g, h, i, j, k; if (e.getBBox && e.parentNode) { g = e.getBBox(), h = e.getScreenCTM(), i = e.farthestViewportElement || e; if (!i.createSVGPoint) return f; j = i.createSVGPoint(), j.x = g.x, j.y = g.y, k = j.matrixTransform(h), f.offset.left = k.x, f.offset.top = k.y, j.x += g.width, j.y += g.height, k = j.matrixTransform(h), f.width = k.x - f.offset.left, f.height = k.y - f.offset.top, f.offset.left += d.scrollLeft(), f.offset.top += d.scrollTop() } return f }, h.modal = function(a) { var b = a.plugins.modal; return "object" === typeof b ? b : a.plugins.modal = new D(a) }, h.modal.initialize = "render", h.modal.sanitize = function(a) { a.show && (typeof a.show.modal !== "object" ? a.show.modal = { on: !!a.show.modal} : typeof a.show.modal.on === "undefined" && (a.show.modal.on = d)) }, h.modal.zindex = g.zindex -= 200, a.extend(d, g.defaults, { show: { modal: { on: e, effect: d, blur: d, escape: d}} }), h.bgiframe = function(b) { var c = a.browser, d = b.plugins.bgiframe; if (a("select, object").length < 1 || (!c.msie || c.version.charAt(0) !== "6")) return e; return "object" === typeof d ? d : b.plugins.bgiframe = new E(b) }, h.bgiframe.initialize = "render" })(jQuery, window)

/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject = function() { var D = "undefined", r = "object", S = "Shockwave Flash", W = "ShockwaveFlash.ShockwaveFlash", q = "application/x-shockwave-flash", R = "SWFObjectExprInst", x = "onreadystatechange", O = window, j = document, t = navigator, T = false, U = [h], o = [], N = [], I = [], l, Q, E, B, J = false, a = false, n, G, m = true, M = function() { var aa = typeof j.getElementById != D && typeof j.getElementsByTagName != D && typeof j.createElement != D, ah = t.userAgent.toLowerCase(), Y = t.platform.toLowerCase(), ae = Y ? /win/.test(Y) : /win/.test(ah), ac = Y ? /mac/.test(Y) : /mac/.test(ah), af = /webkit/.test(ah) ? parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, X = ! +"\v1", ag = [0, 0, 0], ab = null; if (typeof t.plugins != D && typeof t.plugins[S] == r) { ab = t.plugins[S].description; if (ab && !(typeof t.mimeTypes != D && t.mimeTypes[q] && !t.mimeTypes[q].enabledPlugin)) { T = true; X = false; ab = ab.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); ag[0] = parseInt(ab.replace(/^(.*)\..*$/, "$1"), 10); ag[1] = parseInt(ab.replace(/^.*\.(.*)\s.*$/, "$1"), 10); ag[2] = /[a-zA-Z]/.test(ab) ? parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else { if (typeof O.ActiveXObject != D) { try { var ad = new ActiveXObject(W); if (ad) { ab = ad.GetVariable("$version"); if (ab) { X = true; ab = ab.split(" ")[1].split(","); ag = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } } catch (Z) { } } } return { w3: aa, pv: ag, wk: af, ie: X, win: ae, mac: ac} } (), k = function() { if (!M.w3) { return } if ((typeof j.readyState != D && j.readyState == "complete") || (typeof j.readyState == D && (j.getElementsByTagName("body")[0] || j.body))) { f() } if (!J) { if (typeof j.addEventListener != D) { j.addEventListener("DOMContentLoaded", f, false) } if (M.ie && M.win) { j.attachEvent(x, function() { if (j.readyState == "complete") { j.detachEvent(x, arguments.callee); f() } }); if (O == top) { (function() { if (J) { return } try { j.documentElement.doScroll("left") } catch (X) { setTimeout(arguments.callee, 0); return } f() })() } } if (M.wk) { (function() { if (J) { return } if (!/loaded|complete/.test(j.readyState)) { setTimeout(arguments.callee, 0); return } f() })() } s(f) } } (); function f() { if (J) { return } try { var Z = j.getElementsByTagName("body")[0].appendChild(C("span")); Z.parentNode.removeChild(Z) } catch (aa) { return } J = true; var X = U.length; for (var Y = 0; Y < X; Y++) { U[Y]() } } function K(X) { if (J) { X() } else { U[U.length] = X } } function s(Y) { if (typeof O.addEventListener != D) { O.addEventListener("load", Y, false) } else { if (typeof j.addEventListener != D) { j.addEventListener("load", Y, false) } else { if (typeof O.attachEvent != D) { i(O, "onload", Y) } else { if (typeof O.onload == "function") { var X = O.onload; O.onload = function() { X(); Y() } } else { O.onload = Y } } } } } function h() { if (T) { V() } else { H() } } function V() { var X = j.getElementsByTagName("body")[0]; var aa = C(r); aa.setAttribute("type", q); var Z = X.appendChild(aa); if (Z) { var Y = 0; (function() { if (typeof Z.GetVariable != D) { var ab = Z.GetVariable("$version"); if (ab) { ab = ab.split(" ")[1].split(","); M.pv = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } else { if (Y < 10) { Y++; setTimeout(arguments.callee, 10); return } } X.removeChild(aa); Z = null; H() })() } else { H() } } function H() { var ag = o.length; if (ag > 0) { for (var af = 0; af < ag; af++) { var Y = o[af].id; var ab = o[af].callbackFn; var aa = { success: false, id: Y }; if (M.pv[0] > 0) { var ae = c(Y); if (ae) { if (F(o[af].swfVersion) && !(M.wk && M.wk < 312)) { w(Y, true); if (ab) { aa.success = true; aa.ref = z(Y); ab(aa) } } else { if (o[af].expressInstall && A()) { var ai = {}; ai.data = o[af].expressInstall; ai.width = ae.getAttribute("width") || "0"; ai.height = ae.getAttribute("height") || "0"; if (ae.getAttribute("class")) { ai.styleclass = ae.getAttribute("class") } if (ae.getAttribute("align")) { ai.align = ae.getAttribute("align") } var ah = {}; var X = ae.getElementsByTagName("param"); var ac = X.length; for (var ad = 0; ad < ac; ad++) { if (X[ad].getAttribute("name").toLowerCase() != "movie") { ah[X[ad].getAttribute("name")] = X[ad].getAttribute("value") } } P(ai, ah, Y, ab) } else { p(ae); if (ab) { ab(aa) } } } } } else { w(Y, true); if (ab) { var Z = z(Y); if (Z && typeof Z.SetVariable != D) { aa.success = true; aa.ref = Z } ab(aa) } } } } } function z(aa) { var X = null; var Y = c(aa); if (Y && Y.nodeName == "OBJECT") { if (typeof Y.SetVariable != D) { X = Y } else { var Z = Y.getElementsByTagName(r)[0]; if (Z) { X = Z } } } return X } function A() { return !a && F("6.0.65") && (M.win || M.mac) && !(M.wk && M.wk < 312) } function P(aa, ab, X, Z) { a = true; E = Z || null; B = { success: false, id: X }; var ae = c(X); if (ae) { if (ae.nodeName == "OBJECT") { l = g(ae); Q = null } else { l = ae; Q = X } aa.id = R; if (typeof aa.width == D || (!/%$/.test(aa.width) && parseInt(aa.width, 10) < 310)) { aa.width = "310" } if (typeof aa.height == D || (!/%$/.test(aa.height) && parseInt(aa.height, 10) < 137)) { aa.height = "137" } j.title = j.title.slice(0, 47) + " - Flash Player Installation"; var ad = M.ie && M.win ? "ActiveX" : "PlugIn", ac = "MMredirectURL=" + O.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + ad + "&MMdoctitle=" + j.title; if (typeof ab.flashvars != D) { ab.flashvars += "&" + ac } else { ab.flashvars = ac } if (M.ie && M.win && ae.readyState != 4) { var Y = C("div"); X += "SWFObjectNew"; Y.setAttribute("id", X); ae.parentNode.insertBefore(Y, ae); ae.style.display = "none"; (function() { if (ae.readyState == 4) { ae.parentNode.removeChild(ae) } else { setTimeout(arguments.callee, 10) } })() } u(aa, ab, X) } } function p(Y) { if (M.ie && M.win && Y.readyState != 4) { var X = C("div"); Y.parentNode.insertBefore(X, Y); X.parentNode.replaceChild(g(Y), X); Y.style.display = "none"; (function() { if (Y.readyState == 4) { Y.parentNode.removeChild(Y) } else { setTimeout(arguments.callee, 10) } })() } else { Y.parentNode.replaceChild(g(Y), Y) } } function g(ab) { var aa = C("div"); if (M.win && M.ie) { aa.innerHTML = ab.innerHTML } else { var Y = ab.getElementsByTagName(r)[0]; if (Y) { var ad = Y.childNodes; if (ad) { var X = ad.length; for (var Z = 0; Z < X; Z++) { if (!(ad[Z].nodeType == 1 && ad[Z].nodeName == "PARAM") && !(ad[Z].nodeType == 8)) { aa.appendChild(ad[Z].cloneNode(true)) } } } } } return aa } function u(ai, ag, Y) { var X, aa = c(Y); if (M.wk && M.wk < 312) { return X } if (aa) { if (typeof ai.id == D) { ai.id = Y } if (M.ie && M.win) { var ah = ""; for (var ae in ai) { if (ai[ae] != Object.prototype[ae]) { if (ae.toLowerCase() == "data") { ag.movie = ai[ae] } else { if (ae.toLowerCase() == "styleclass") { ah += ' class="' + ai[ae] + '"' } else { if (ae.toLowerCase() != "classid") { ah += " " + ae + '="' + ai[ae] + '"' } } } } } var af = ""; for (var ad in ag) { if (ag[ad] != Object.prototype[ad]) { af += '<param name="' + ad + '" value="' + ag[ad] + '" />' } } aa.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + ah + ">" + af + "</object>"; N[N.length] = ai.id; X = c(ai.id) } else { var Z = C(r); Z.setAttribute("type", q); for (var ac in ai) { if (ai[ac] != Object.prototype[ac]) { if (ac.toLowerCase() == "styleclass") { Z.setAttribute("class", ai[ac]) } else { if (ac.toLowerCase() != "classid") { Z.setAttribute(ac, ai[ac]) } } } } for (var ab in ag) { if (ag[ab] != Object.prototype[ab] && ab.toLowerCase() != "movie") { e(Z, ab, ag[ab]) } } aa.parentNode.replaceChild(Z, aa); X = Z } } return X } function e(Z, X, Y) { var aa = C("param"); aa.setAttribute("name", X); aa.setAttribute("value", Y); Z.appendChild(aa) } function y(Y) { var X = c(Y); if (X && X.nodeName == "OBJECT") { if (M.ie && M.win) { X.style.display = "none"; (function() { if (X.readyState == 4) { b(Y) } else { setTimeout(arguments.callee, 10) } })() } else { X.parentNode.removeChild(X) } } } function b(Z) { var Y = c(Z); if (Y) { for (var X in Y) { if (typeof Y[X] == "function") { Y[X] = null } } Y.parentNode.removeChild(Y) } } function c(Z) { var X = null; try { X = j.getElementById(Z) } catch (Y) { } return X } function C(X) { return j.createElement(X) } function i(Z, X, Y) { Z.attachEvent(X, Y); I[I.length] = [Z, X, Y] } function F(Z) { var Y = M.pv, X = Z.split("."); X[0] = parseInt(X[0], 10); X[1] = parseInt(X[1], 10) || 0; X[2] = parseInt(X[2], 10) || 0; return (Y[0] > X[0] || (Y[0] == X[0] && Y[1] > X[1]) || (Y[0] == X[0] && Y[1] == X[1] && Y[2] >= X[2])) ? true : false } function v(ac, Y, ad, ab) { if (M.ie && M.mac) { return } var aa = j.getElementsByTagName("head")[0]; if (!aa) { return } var X = (ad && typeof ad == "string") ? ad : "screen"; if (ab) { n = null; G = null } if (!n || G != X) { var Z = C("style"); Z.setAttribute("type", "text/css"); Z.setAttribute("media", X); n = aa.appendChild(Z); if (M.ie && M.win && typeof j.styleSheets != D && j.styleSheets.length > 0) { n = j.styleSheets[j.styleSheets.length - 1] } G = X } if (M.ie && M.win) { if (n && typeof n.addRule == r) { n.addRule(ac, Y) } } else { if (n && typeof j.createTextNode != D) { n.appendChild(j.createTextNode(ac + " {" + Y + "}")) } } } function w(Z, X) { if (!m) { return } var Y = X ? "visible" : "hidden"; if (J && c(Z)) { c(Z).style.visibility = Y } else { v("#" + Z, "visibility:" + Y) } } function L(Y) { var Z = /[\\\"<>\.;]/; var X = Z.exec(Y) != null; return X && typeof encodeURIComponent != D ? encodeURIComponent(Y) : Y } var d = function() { if (M.ie && M.win) { window.attachEvent("onunload", function() { var ac = I.length; for (var ab = 0; ab < ac; ab++) { I[ab][0].detachEvent(I[ab][1], I[ab][2]) } var Z = N.length; for (var aa = 0; aa < Z; aa++) { y(N[aa]) } for (var Y in M) { M[Y] = null } M = null; for (var X in swfobject) { swfobject[X] = null } swfobject = null }) } } (); return { registerObject: function(ab, X, aa, Z) { if (M.w3 && ab && X) { var Y = {}; Y.id = ab; Y.swfVersion = X; Y.expressInstall = aa; Y.callbackFn = Z; o[o.length] = Y; w(ab, false) } else { if (Z) { Z({ success: false, id: ab }) } } }, getObjectById: function(X) { if (M.w3) { return z(X) } }, embedSWF: function(ab, ah, ae, ag, Y, aa, Z, ad, af, ac) { var X = { success: false, id: ah }; if (M.w3 && !(M.wk && M.wk < 312) && ab && ah && ae && ag && Y) { w(ah, false); K(function() { ae += ""; ag += ""; var aj = {}; if (af && typeof af === r) { for (var al in af) { aj[al] = af[al] } } aj.data = ab; aj.width = ae; aj.height = ag; var am = {}; if (ad && typeof ad === r) { for (var ak in ad) { am[ak] = ad[ak] } } if (Z && typeof Z === r) { for (var ai in Z) { if (typeof am.flashvars != D) { am.flashvars += "&" + ai + "=" + Z[ai] } else { am.flashvars = ai + "=" + Z[ai] } } } if (F(Y)) { var an = u(aj, am, ah); if (aj.id == ah) { w(ah, true) } X.success = true; X.ref = an } else { if (aa && A()) { aj.data = aa; P(aj, am, ah, ac); return } else { w(ah, true) } } if (ac) { ac(X) } }) } else { if (ac) { ac(X) } } }, switchOffAutoHideShow: function() { m = false }, ua: M, getFlashPlayerVersion: function() { return { major: M.pv[0], minor: M.pv[1], release: M.pv[2]} }, hasFlashPlayerVersion: F, createSWF: function(Z, Y, X) { if (M.w3) { return u(Z, Y, X) } else { return undefined } }, showExpressInstall: function(Z, aa, X, Y) { if (M.w3 && A()) { P(Z, aa, X, Y) } }, removeSWF: function(X) { if (M.w3) { y(X) } }, createCSS: function(aa, Z, Y, X) { if (M.w3) { v(aa, Z, Y, X) } }, addDomLoadEvent: K, addLoadEvent: s, getQueryParamValue: function(aa) { var Z = j.location.search || j.location.hash; if (Z) { if (/\?/.test(Z)) { Z = Z.split("?")[1] } if (aa == null) { return L(Z) } var Y = Z.split("&"); for (var X = 0; X < Y.length; X++) { if (Y[X].substring(0, Y[X].indexOf("=")) == aa) { return L(Y[X].substring((Y[X].indexOf("=") + 1))) } } } return "" }, expressInstallCallback: function() { if (a) { var X = c(R); if (X && l) { X.parentNode.replaceChild(l, X); if (Q) { w(Q, true); if (M.ie && M.win) { l.style.display = "block" } } if (E) { E(B) } } a = false } } } } ();


