function get_browser() { var N = navigator.appName, ua = navigator.userAgent, tem; var M = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); if (M && (tem = ua.match(/version\/([\.\d]+)/i)) != null) M[2] = tem[1]; M = M ? [M[1], M[2]] : [N, navigator.appVersion, "-?"]; return M[0] } function get_browser_version() { var N = navigator.appName, ua = navigator.userAgent, tem; var M = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); if (M && (tem = ua.match(/version\/([\.\d]+)/i)) != null) M[2] = tem[1]; M = M ? [M[1], M[2]] : [N, navigator.appVersion, "-?"]; return M[1] } function CheckBrowserCompatible(browser, browser_version) { switch (browser) { case "Chrome": if (browser_version > 27) return true; break; case "Firefox": if (browser_version > 24) return true; break; case "MSIE": if (browser_version > 7) return true; break; case "Safari": if (browser_version > 5) return true; break; default: return true } } function checkIfDialogExists() { if (jq("#dialog").parents(".das-ui-dialog:visible").length) return true; else return false } function loadScripSync(callback) { var s = document.createElement("script"); s.src = "http://toolbar.digitalairstrike.com:80/Scripts/dasJquery.js"; s.type = "text/javascript"; s.async = false; document.getElementsByTagName("head")[0].appendChild(s); if (s.readyState) s.onreadystatechange = function () { if (s.readyState == "loaded" || s.readyState == "complete") { s.onreadystatechange = null; callback() } }; else s.onload = function () { callback() } } var browser = get_browser(); var browser_version = parseFloat(get_browser_version()); var is_compatible_browser = CheckBrowserCompatible(browser, browser_version); if (is_compatible_browser) loadScripSync(load); function load() { jq = $jq; initToolbar() } function initToolbar() { function ResetDialog() { jq(".quickmenu").fadeOut("fast"); jq(".quickmenu").css({ "visibility": "hidden" }); jq("#dialog").empty(); jq("#dialog").dialog("destroy"); jq(".linkClass").hide() } jq(function () { var url = "http://toolbar.digitalairstrike.com:80/Scripts/das-jquery-ui.js"; jq.getScript(url, function () { loadjscssfile("http://toolbar.digitalairstrike.com:80/Content/dasToolbar.css", "css") }) }); jq(function () { var facebookAppId, twitterAppId, googleAppId, yahooAppId, yelpAppId; var cssMarkup = createToolbarStyle(); if (jq("#css-dastoolbar").length <= 0) jq(cssMarkup).appendTo("head"); var toolbarMarkup = createToolbarMarkup(); if (jq("#markup-dastoolbar").length <= 0) { jq(toolbarMarkup).appendTo("body"); jq("#dialog").hide() } setTimeout(function () { jq("#toolbar").slideToggle("slow") }, 2E3); jq(function () { var transButtonExists = false; var transElem = document.getElementById("google_translate_element"); if (transElem != null) transButtonExists = true; if (!transButtonExists) jq("head").append('