﻿/*!
* jQuery Tools v1.2.5 - The missing UI library for the Web
* 
* overlay/overlay.js
* overlay/overlay.apple.js
* toolbox/toolbox.flashembed.js
* 
* NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
* 
* http://flowplayer.org/tools/
* jquery.tools.min.js file
*/
(function (a) { a.tools = a.tools || { version: "v1.2.5" }, a.tools.overlay = { addEffect: function (a, b, d) { c[a] = [b, d] }, conf: { close: null, closeOnClick: !0, closeOnEsc: !0, closeSpeed: "fast", effect: "default", fixed: !a.browser.msie || a.browser.version > 6, left: "center", load: !1, mask: null, oneInstance: !0, speed: "normal", target: null, top: "10%"} }; var b = [], c = {}; a.tools.overlay.addEffect("default", function (b, c) { var d = this.getConf(), e = a(window); d.fixed || (b.top += e.scrollTop(), b.left += e.scrollLeft()), b.position = d.fixed ? "fixed" : "absolute", this.getOverlay().css(b).fadeIn(d.speed, c) }, function (a) { this.getOverlay().fadeOut(this.getConf().closeSpeed, a) }); function d(d, e) { var f = this, g = d.add(f), h = a(window), i, j, k, l = a.tools.expose && (e.mask || e.expose), m = Math.random().toString().slice(10); l && (typeof l == "string" && (l = { color: l }), l.closeOnClick = l.closeOnEsc = !1); var n = e.target || d.attr("rel"); j = n ? a(n) : null || d; if (!j.length) throw "Could not find Overlay: " + n; d && d.index(j) == -1 && d.click(function (a) { f.load(a); return a.preventDefault() }), a.extend(f, { load: function (d) { if (f.isOpened()) return f; var i = c[e.effect]; if (!i) throw "Overlay: cannot find effect : \"" + e.effect + "\""; e.oneInstance && a.each(b, function () { this.close(d) }), d = d || a.Event(), d.type = "onBeforeLoad", g.trigger(d); if (d.isDefaultPrevented()) return f; k = !0, l && a(j).expose(l); var n = e.top, o = e.left, p = j.outerWidth({ margin: !0 }), q = j.outerHeight({ margin: !0 }); typeof n == "string" && (n = n == "center" ? Math.max((h.height() - q) / 2, 0) : parseInt(n, 10) / 100 * h.height()), o == "center" && (o = Math.max((h.width() - p) / 2, 0)), i[0].call(f, { top: n, left: o }, function () { k && (d.type = "onLoad", g.trigger(d)) }), l && e.closeOnClick && a.mask.getMask().one("click", f.close), e.closeOnClick && a(document).bind("click." + m, function (b) { a(b.target).parents(j).length || f.close(b) }), e.closeOnEsc && a(document).bind("keydown." + m, function (a) { a.keyCode == 27 && f.close(a) }); return f }, close: function (b) { if (!f.isOpened()) return f; b = b || a.Event(), b.type = "onBeforeClose", g.trigger(b); if (!b.isDefaultPrevented()) { k = !1, c[e.effect][1].call(f, function () { b.type = "onClose", g.trigger(b) }), a(document).unbind("click." + m).unbind("keydown." + m), l && a.mask.close(); return f } }, getOverlay: function () { return j }, getTrigger: function () { return d }, getClosers: function () { return i }, isOpened: function () { return k }, getConf: function () { return e } }), a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","), function (b, c) { a.isFunction(e[c]) && a(f).bind(c, e[c]), f[c] = function (b) { b && a(f).bind(c, b); return f } }), i = j.find(e.close || ".close"), !i.length && !e.close && (i = a("<a class=\"close\"></a>"), j.prepend(i)), i.click(function (a) { f.close(a) }), e.load && f.load() } a.fn.overlay = function (c) { var e = this.data("overlay"); if (e) return e; a.isFunction(c) && (c = { onBeforeLoad: c }), c = a.extend(!0, {}, a.tools.overlay.conf, c), this.each(function () { e = new d(a(this), c), b.push(e), a(this).data("overlay", e) }); return c.api ? e : this } })(jQuery);
(function (a) { var b = a.tools.overlay, c = a(window); a.extend(b.conf, { start: { top: null, left: null }, fadeInSpeed: "fast", zIndex: 9999 }); function d(a) { var b = a.offset(); return { top: b.top + a.height() / 2, left: b.left + a.width() / 2} } var e = function (b, e) { var f = this.getOverlay(), g = this.getConf(), h = this.getTrigger(), i = this, j = f.outerWidth({ margin: !0 }), k = f.data("img"), l = g.fixed ? "fixed" : "absolute"; if (!k) { var m = f.css("backgroundImage"); if (!m) throw "background-image CSS property not set for overlay"; m = m.slice(m.indexOf("(") + 1, m.indexOf(")")).replace(/\"/g, ""), f.css("backgroundImage", "none"), k = a("<img src=\"" + m + "\"/>"), k.css({ border: 0, display: "none" }).width(j), a("body").append(k), f.data("img", k) } var n = g.start.top || Math.round(c.height() / 2), o = g.start.left || Math.round(c.width() / 2); if (h) { var p = d(h); n = p.top, o = p.left } g.fixed ? (n -= c.scrollTop(), o -= c.scrollLeft()) : (b.top += c.scrollTop(), b.left += c.scrollLeft()), k.css({ position: "absolute", top: n, left: o, width: 0, zIndex: g.zIndex }).show(), b.position = l, f.css(b), k.animate({ top: f.css("top"), left: f.css("left"), width: j }, g.speed, function () { f.css("zIndex", g.zIndex + 1).fadeIn(g.fadeInSpeed, function () { i.isOpened() && !a(this).index(f) ? e.call() : f.hide() }) }).css("position", l) }, f = function (b) { var e = this.getOverlay().hide(), f = this.getConf(), g = this.getTrigger(), h = e.data("img"), i = { top: f.start.top, left: f.start.left, width: 0 }; g && a.extend(i, d(g)), f.fixed && h.css({ position: "absolute" }).animate({ top: "+=" + c.scrollTop(), left: "+=" + c.scrollLeft() }, 0), h.animate(i, f.closeSpeed, b) }; b.addEffect("apple", e, f) })(jQuery);
(function () { var a = document.all, b = "http://www.adobe.com/go/getflashplayer", c = typeof jQuery == "function", d = /(\d+)[^\d]+(\d+)[^\d]*(\d*)/, e = { width: "100%", height: "100%", id: "_" + ("" + Math.random()).slice(9), allowfullscreen: !0, allowscriptaccess: "always", quality: "high", version: [3, 0], onFail: null, expressInstall: null, w3c: !1, cachebusting: !1 }; window.attachEvent && window.attachEvent("onbeforeunload", function () { __flash_unloadHandler = function () { }, __flash_savedUnloadHandler = function () { } }); function f(a, b) { if (b) for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); return a } function g(a, b) { var c = []; for (var d in a) a.hasOwnProperty(d) && (c[d] = b(a[d])); return c } window.flashembed = function (a, b, c) { typeof a == "string" && (a = document.getElementById(a.replace("#", ""))); if (a) { typeof b == "string" && (b = { src: b }); return new j(a, f(f({}, e), b), c) } }; var h = f(window.flashembed, { conf: e, getVersion: function () { var a, b; try { b = navigator.plugins["Shockwave Flash"].description.slice(16) } catch (c) { try { a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"), b = a && a.GetVariable("$version") } catch (e) { try { a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"), b = a && a.GetVariable("$version") } catch (f) { } } } b = d.exec(b); return b ? [b[1], b[3]] : [0, 0] }, asString: function (a) { if (a === null || a === undefined) return null; var b = typeof a; b == "object" && a.push && (b = "array"); switch (b) { case "string": a = a.replace(new RegExp("([\"\\\\])", "g"), "\\$1"), a = a.replace(/^\s?(\d+\.?\d+)%/, "$1pct"); return "\"" + a + "\""; case "array": return "[" + g(a, function (a) { return h.asString(a) }).join(",") + "]"; case "function": return "\"function()\""; case "object": var c = []; for (var d in a) a.hasOwnProperty(d) && c.push("\"" + d + "\":" + h.asString(a[d])); return "{" + c.join(",") + "}" } return String(a).replace(/\s/g, " ").replace(/\'/g, "\"") }, getHTML: function (b, c) { b = f({}, b); var d = "<object width=\"" + b.width + "\" height=\"" + b.height + "\" id=\"" + b.id + "\" name=\"" + b.id + "\""; b.cachebusting && (b.src += (b.src.indexOf("?") != -1 ? "&" : "?") + Math.random()), b.w3c || !a ? d += " data=\"" + b.src + "\" type=\"application/x-shockwave-flash\"" : d += " classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"", d += ">"; if (b.w3c || a) d += "<param name=\"movie\" value=\"" + b.src + "\" />"; b.width = b.height = b.id = b.w3c = b.src = null, b.onFail = b.version = b.expressInstall = null; for (var e in b) b[e] && (d += "<param name=\"" + e + "\" value=\"" + b[e] + "\" />"); var g = ""; if (c) { for (var i in c) if (c[i]) { var j = c[i]; g += i + "=" + (/function|object/.test(typeof j) ? h.asString(j) : j) + "&" } g = g.slice(0, -1), d += "<param name=\"flashvars\" value='" + g + "' />" } d += "</object>"; return d }, isSupported: function (a) { return i[0] > a[0] || i[0] == a[0] && i[1] >= a[1] } }), i = h.getVersion(); function j(c, d, e) { if (h.isSupported(d.version)) c.innerHTML = h.getHTML(d, e); else if (d.expressInstall && h.isSupported([6, 65])) c.innerHTML = h.getHTML(f(d, { src: d.expressInstall }), { MMredirectURL: location.href, MMplayerType: "PlugIn", MMdoctitle: document.title }); else { c.innerHTML.replace(/\s/g, "") || (c.innerHTML = "<h2>Flash version " + d.version + " or greater is required</h2><h3>" + (i[0] > 0 ? "Your version is " + i : "You have no flash plugin installed") + "</h3>" + (c.tagName == "A" ? "<p>Click here to download latest version</p>" : "<p>Download latest version from <a href='" + b + "'>here</a></p>"), c.tagName == "A" && (c.onclick = function () { location.href = b })); if (d.onFail) { var g = d.onFail.call(this); typeof g == "string" && (c.innerHTML = g) } } a && (window[d.id] = document.getElementById(d.id)), f(this, { getRoot: function () { return c }, getOptions: function () { return d }, getConf: function () { return e }, getApi: function () { return c.firstChild } }) } c && (jQuery.tools = jQuery.tools || { version: "v1.2.5" }, jQuery.tools.flashembed = { conf: e }, jQuery.fn.flashembed = function (a, b) { return this.each(function () { $(this).data("flashembed", flashembed(this, a, b)) }) }) })();

/*! crmnext-min.js file */
function init_menu() { function b() { $(this).removeClass("hovering") } function a() { $(this).addClass("hovering"); $(this).children(".eraser").each(function (a, b) { $(this).width($(this).parent().outerWidth() - 2) }) } $("li.mega").hover(a, b); $("a[rel]").overlay({ mask: "#999", effect: "apple", top: 10, fixed: false, onBeforeLoad: function () { var a = this.getOverlay().find(".contentWrap"); a.load(this.getTrigger().attr("href")) } }) } function init_chat() { var a = "1060497", b = "", c = "en", d = "0"; __lc_load = function (e) { if (typeof __lc_loaded != "function") if (e) { var f = document, g = f.createElement("script"), h = f.getElementsByTagName("script")[0], i = unescape("%26"), j = "https:" == f.location.protocol ? "https://" : "http://"; g.type = "text/javascript"; g.async = true; g.src = j + "gis" + e + ".livechatinc.com/gis.cgi?serverType=control" + i + "licenseID=" + a + i + "jsonp=__lc_load"; if (!(typeof e["server"] !== "string" || typeof __lc_serv === "string")) { g.src = j + (__lc_serv = e["server"]) + "/licence/" + a + "/script.cgi?lang=" + c + i + "groups=" + d; g.src += b == "" ? "" : i + "params=" + encodeURIComponent(encodeURIComponent(b)); h.parentNode.insertBefore(g, h) } else setTimeout(__lc_load, 1e3); if (typeof __lc_serv != "string") { h.parentNode.insertBefore(g, h) } } else __lc_load(Math.ceil(Math.random() * 5)) }; __lc_load() } function ViewMap() { popwin("../events/routemap.htm", "ViewMap", "no", "no", "no", "no", "no", 650, 550, true) } function ViewFlash(a) { popwin("../company/showenlarged.aspx?ch=" + a, "ViewFlashMovie", "yes", "no", "no", "no", "no", 800, 415, true) } function popwin(a, b, c, d, e, f, g, h, i, j) { var k = gGetPopupParamString(c, d, e, f, g, h, i); var l = window.open(a, b, k); if (l && j) { l.focus() } return l } function gGetPopupParamString(a, b, c, d, e, f, g) { var h = (screen.width - f) / 2; var i = (screen.height - g) / 2; return "resizable=" + a + ",scrollbars=" + b + ",status=" + c + ",toolbar=" + d + ",menubar=" + e + ",width=" + f + ",height=" + g + ",left=" + h + ",top=" + i } function largeview(a, b, c) { window.open(c, "largeview", "resizable=yes,width=" + a.toString() + ",height=" + b.toString() + ",statusbar=no,scrollbar=no,left=" + (screen.width - a) / 2 + "," + "top=" + (screen.height - b) / 2) } function VideoFlash() { var a = window.open("", "FlashProductDemo", "resizable=yes,width=1003,height=710,statusbar=no,scrollbar=no,top=(screen.width-1000.width)/2,left=(screen.height-670.height)/2"); if (a) { a.focus(); a.location.href = "/us/Flash/Video/videoflash.html"; a = null } } function showFlash(a, b, c, d) { $("#" + a).flashembed({ src: b, scale: "exactfit", width: c.toString(), height: d.toString(), wmode: "transparent" }) } function nav(a) { window.location.href = a } function bookmark(a, b) { if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) { window.external.AddFavorite(a, b) } else if (navigator.appName == "Netscape") { window.sidebar.addPanel(b, a, "") } else if (navigator.appName == "Opera") { alert("Press CTRL-D (Opera,Safari) to bookmark") } else { alert("Sorry! Your browser doesn't appear to support this function.") } }

/*! track-min.js file */
function dcsTag() { var a = "http" + (window.location.protocol.indexOf("https:") == 0 ? "s" : "") + "://" + gDomain + (gDcsId == "" ? "" : "/" + gDcsId) + "/dcs.gif?"; for (N in DCS) { if (DCS[N]) { a += A(N, DCS[N]) } } for (N in WT) { if (WT[N]) { a += A("WT." + N, WT[N]) } } for (N in DCSext) { if (DCSext[N]) { a += A(N, DCSext[N]) } } if (a.length > 2048 && navigator.userAgent.indexOf("MSIE") >= 0) { a = a.substring(0, 2040) + "&WT.tu=1" } dcsCreateImage(a) } function dcsMeta() { var a; if (document.all) { a = document.all.tags("meta") } else if (document.documentElement) { a = document.getElementsByTagName("meta") } if (typeof a != "undefined") { for (var b = 1; b <= a.length; b++) { myMeta = a.item(b - 1); if (myMeta.name) { if (myMeta.name.indexOf("WT.") == 0) { WT[myMeta.name.substring(3)] = myMeta.content } else if (myMeta.name.indexOf("DCSext.") == 0) { DCSext[myMeta.name.substring(7)] = myMeta.content } else if (myMeta.name.indexOf("DCS.") == 0) { DCS[myMeta.name.substring(4)] = myMeta.content } } } } } function dcsCreateImage(a) { if (document.images) { gImages[gIndex] = new Image; gImages[gIndex].src = a; gIndex++ } else { document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="' + a + '">') } } function dcsEscape(a) { if (typeof RE != "undefined") { var b = new String(a); for (R in RE) { b = b.replace(RE[R], R) } return b } else { return escape(a) } } function A(a, b) { return "&" + a + "=" + dcsEscape(b) } function dcsVar() { var a = new Date; WT.tz = a.getTimezoneOffset() / 60 * -1; if (WT.tz == 0) { WT.tz = "0" } WT.bh = a.getHours(); WT.ul = navigator.appName == "Netscape" ? navigator.language : navigator.userLanguage; if (typeof screen == "object") { WT.cd = navigator.appName == "Netscape" ? screen.pixelDepth : screen.colorDepth; WT.sr = screen.width + "x" + screen.height } if (typeof navigator.javaEnabled() == "boolean") { WT.jo = navigator.javaEnabled() ? "Yes" : "No" } if (document.title) { WT.ti = document.title } WT.js = "Yes"; if (typeof gVersion != "undefined") { WT.jv = gVersion } WT.sp = "47039"; DCS.dcsdat = a.getTime(); DCS.dcssip = window.location.hostname; DCS.dcsuri = window.location.pathname; if (window.location.search) { DCS.dcsqry = window.location.search } if (window.document.referrer != "" && window.document.referrer != "-") { if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4)) { DCS.dcsref = window.document.referrer } } } gVersion = "1.2"; var RE = { "%09": /\t/g, "%20": / /g, "%23": /\#/g, "%26": /\&/g, "%2B": /\+/g, "%3F": /\?/g, "%5C": /\\/g }; var gImages = new Array; var gIndex = 0; var DCS = new Object; var WT = new Object; var DCSext = new Object; var gDomain = "statse.webtrendslive.com"; var gDcsId = "dcsgp388311e5hizgz93i8gw4_2b3g"; dcsVar(); dcsMeta(); dcsTag()


/*! script for live Chat */
$(document).ready(function () { init_menu(); }); init_chat();

var __lc_buttons = __lc_buttons || []; __lc_buttons.push({ elementId: 'LiveChat_1310622485', language: 'en', skill: '0' });

/*! script for plus one button */
(function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();                    
