jQuery(document).ready(function (a) { a("#navigation .corporate-advocacy").hoverIntent({ over: function () { a(this).find(".dropdown").show() }, timeout: 500, out: function () { a(this).find(".dropdown").hide() } }); a("#slider").nivoSlider({ effect: "fade", slices: 1, animSpeed: 500, pauseTime: 10000 }); a(".carousel").jcarousel({ animation: 3000, auto: 0.001, easing: "linear", scroll: 1, wrap: "circular", initCallback: function (c, d) { if (d == "init") { c.startAutoOrig = c.startAuto; c.startAuto = function () { if (!c.paused) { c.startAutoOrig() } }; c.pause = function () { c.paused = true; c.stopAuto() }; c.play = function () { c.paused = false; c.startAuto() }; a("li.jcarousel-item").mouseover(function () { c.pause() }); a("li.jcarousel-item").mouseout(function () { c.play() }) } c.play() } }); a(".tool_tip").each(function () { a(this).qtip({ content: { title: a(this).attr("title"), text: a(this).next(".tipcontent") }, style: { width: 400, padding: 10, background: "#EEE", color: "black", border: { width: 1, color: "#999" }, title: { background: "#000", color: "white" }, name: "dark"} }) }) }); doSearch = function (b) { if (b.replace(/^\s+|\s+$/g, "") == "") { alert("Please provide a search term") } else { var c = window.location; var a = c.protocol + "//" + c.host + "/Search/" + b.replace(/\"/g, "").replace(/[\s]/g, "-").replace(/[\.\'\&]+/, "_").replace(/[^\w\d\-]/g, "-") + ".aspx"; window.location = a } }; fileRebuttal = function (c) { var b = window.location; var a = b.protocol + "//" + b.host + c; window.location = a }; function mailToFriend(b, a) { mail_str = "mailto:?subject=Ripoff Report " + b + ": " + a; mail_str += "&body=You have been sent a link to view a Ripoff Report posted on " + a; mail_str += ". You can view it at " + document.location; location.href = mail_str } function GoBack() { history.go(-1); return false } function Cancel_ReturnKey() { if (window.event.keyCode == 13) { window.event.keyCode = 9 } } function ToggleVisibility(a) { var b = $(a); ToggleControlVisibility(b) } function ToggleControlVisibility(a) { if (a != null && typeof (a) == "object") { if (a.style.display != "inline") { ShowControl(a) } else { HideControl(a) } } } function ShowControl(a) { a.style.display = "inline"; a.style.visibility = "visible" } function HideControl(a) { a.style.display = "none"; a.style.visibility = "hidden" } function ExchangeViews(b, a) { HideControl(b); ShowControl(a) } function encodeHtml(a) { encodedHtml = encodeURI(a); encodedHtml = encodedHtml.replace(",", "%2C"); return encodedHtml } function decodeHtml(a) { return unescape(a) } function addEvent(d, c, a) { if (d.addEventListener) { d.addEventListener(c, a, true); return true } else { if (d.attachEvent) { var b = d.attachEvent("on" + c, a); return b } else { return false } } } function removeEvent(e, d, b, a) { if (e.removeEventListener) { e.removeEventListener(d, b, a); return true } else { if (e.detachEvent) { var c = e.detachEvent("on" + d, b); return c } else { alert("Handler could not be removed") } } } function trace(a) { if (typeof (jsTrace) != "undefined") { jsTrace.send(a) } } function traceDelimiter() { if (typeof (jsTrace) != "undefined") { jsTrace.sendDelimeter() } } function traceClear() { if (typeof (jsTrace) != "undefined") { jsTrace.clearWindow() } } function getViewportHeight() { if (window.innerHeight != window.undefined) { return window.innerHeight } if (document.compatMode == "CSS1Compat") { return document.documentElement.clientHeight } if (document.body) { return document.body.clientHeight } return window.undefined } function getViewportWidth() { if (window.innerWidth != window.undefined) { return window.innerWidth } if (document.compatMode == "CSS1Compat") { return document.documentElement.clientWidth } if (document.body) { return document.body.clientWidth } return window.undefined } function InsertCustomDataField(a, d, c, b) { a.focus(); sel = a.document.selection.createRange(); sel.pasteHTML(b) } function RefreshPage() { window.location.reload(true) };