(function(f) { f.cluetip = { version: "1.0.4" }; var j, i, h, e, g, b, k, d; f.fn.cluetip = function(m, l) { if (typeof m == "object") { l = m; m = null } if (m == "destroy") { return this.unbind(".cluetip") } return this.each(function(K) { var t = this, w = f(this); var H = f.extend(true, {}, f.fn.cluetip.defaults, l || {}, f.metadata ? w.metadata() : f.meta ? w.data() : {}); var p = false; var A = +H.cluezIndex; w.data("thisInfo", { title: t.title, zIndex: A }); var S = false, R = 0; if (!f("#cluetip").length) { f(['<div id="cluetip">', '<div id="cluetip-outer">', '<h3 id="cluetip-title"></h3>', '<div id="cluetip-inner"></div>', "</div>", '<div id="cluetip-extra"></div>', '<div id="cluetip-arrows" class="cluetip-arrows"></div>', "</div>"].join(""))[c](a).hide(); j = f("#cluetip").css({ position: "absolute" }); h = f("#cluetip-outer").css({ position: "relative", zIndex: A }); i = f("#cluetip-inner"); e = f("#cluetip-title"); g = f("#cluetip-arrows"); b = f('<div id="cluetip-waitimage"></div>').css({ position: "absolute" }).insertBefore(j).hide() } var J = (H.dropShadow) ? +H.dropShadowSteps : 0; if (!k) { k = f([]); for (var V = 0; V < J; V++) { k = k.add(f("<div></div>").css({ zIndex: A - 1, opacity: 0.1, top: 1 + V, left: 1 + V })) } k.css({ position: "absolute", backgroundColor: "#000" }).prependTo(j) } var F = w.attr(H.attribute), s = H.cluetipClass; if (!F && !H.splitTitle && !m) { return true } if (H.local && H.localPrefix) { F = H.localPrefix + F } if (H.local && H.hideLocal) { f(F + ":first").hide() } var G = parseInt(H.topOffset, 10), C = parseInt(H.leftOffset, 10); var B, T, y = isNaN(parseInt(H.height, 10)) ? "auto" : (/\D/g).test(H.height) ? H.height : H.height + "px"; var n, u, L, Z, N, U; var z = parseInt(H.width, 10) || 275, W = z + (parseInt(j.css("paddingLeft"), 10) || 0) + (parseInt(j.css("paddingRight"), 10) || 0) + J, D = this.offsetWidth, v, M, aa, O, o; var Q; var I = (H.attribute != "title") ? w.attr(H.titleAttribute) : ""; if (H.splitTitle) { if (I == undefined) { I = "" } Q = I.split(H.splitTitle); I = Q.shift() } if (H.escapeTitle) { I = I.replace(/&/g, "&amp;").replace(/>/g, "&gt;").replace(/</g, "&lt;") } var r; function Y() { return false } var x = function(ab) { if (!H.onActivate(w)) { return false } S = true; j.removeClass().css({ width: z }); if (F == w.attr("href")) { w.css("cursor", H.cursor) } if (H.hoverClass) { w.addClass(H.hoverClass) } u = L = w.offset().top; v = w.offset().left; O = ab.pageX; N = ab.pageY; if (t.tagName.toLowerCase() != "area") { n = f(document).scrollTop(); o = f(window).width() } if (H.positionBy == "fixed") { M = D + v + C; j.css({ left: M }) } else { M = (D > v && v > W) || v + D + W + C > o ? v - W - C : D + v + C; if (t.tagName.toLowerCase() == "area" || H.positionBy == "mouse" || D + W > o) { if (O + 20 + W > o) { j.addClass(" cluetip-" + s); M = (O - W - C) >= 0 ? O - W - C - parseInt(j.css("marginLeft"), 10) + parseInt(i.css("marginRight"), 10) : O - (W / 2) } else { M = O + C } } var ac = M < 0 ? ab.pageY + G : ab.pageY; j.css({ left: (M > 0 && H.positionBy != "bottomTop") ? M : (O + (W / 2) > o) ? o / 2 - W / 2 : Math.max(O - (W / 2), 0), zIndex: w.data("thisInfo").zIndex }); g.css({ zIndex: w.data("thisInfo").zIndex + 1 }) } T = f(window).height(); if (m) { if (typeof m == "function") { m = m(t) } i.html(m); P(ac) } else { if (Q) { var ae = Q.length; i.html(Q[0]); if (ae > 1) { for (var ad = 1; ad < ae; ad++) { i.append('<div class="split-body">' + Q[ad] + "</div>") } } P(ac) } else { if (!H.local && F.indexOf("#") != 0) { if (/\.(jpe?g|tiff?|gif|png)$/i.test(F)) { i.html('<img src="' + F + '" alt="' + I + '" />'); P(ac) } else { if (p && H.ajaxCache) { i.html(p); P(ac) } else { var ai = H.ajaxSettings.beforeSend, af = H.ajaxSettings.error, ag = H.ajaxSettings.success, al = H.ajaxSettings.complete; var ak = { cache: false, url: F, beforeSend: function(am) { if (ai) { ai.call(t, am, j, i) } h.children().empty(); if (H.waitImage) { b.css({ top: N + 20, left: O + 20, zIndex: w.data("thisInfo").zIndex - 1 }).show() } }, error: function(am, an) { if (S) { if (af) { af.call(t, am, an, j, i) } else { i.html("<i>sorry, the contents could not be loaded</i>") } } }, success: function(am, an) { p = H.ajaxProcess.call(t, am); if (S) { if (ag) { ag.call(t, am, an, j, i) } i.html(p) } }, complete: function(am, an) { if (al) { al.call(t, am, an, j, i) } d = f("#cluetip-inner img").length; if (d && !f.browser.opera) { f("#cluetip-inner img").bind("load error", function() { d--; if (d < 1) { b.hide(); if (S) { P(ac) } } }) } else { b.hide(); if (S) { P(ac) } } } }; var ah = f.extend(true, {}, H.ajaxSettings, ak); f.ajax(ah) } } } else { if (H.local) { var aj = f(F + (/#\S+$/.test(F) ? "" : ":eq(" + K + ")")).clone(true).show(); i.html(aj); P(ac) } } } } }; var P = function(ad) { j.addClass("cluetip-" + s); if (H.truncate) { var ae = i.text().slice(0, H.truncate) + "..."; i.html(ae) } function ab() { } I ? e.show().html(I) : (H.showTitle) ? e.show().html("&nbsp;") : e.hide(); if (H.sticky) { var ac = f('<div id="cluetip-close"><a href="#">' + H.closeText + "</a></div>"); (H.closePosition == "bottom") ? ac.appendTo(i) : (H.closePosition == "title") ? ac.prependTo(e) : ac.prependTo(i); ac.bind("click.cluetip", function() { E(); return false }); if (H.mouseOutClose) { j.bind("mouseleave.cluetip", function() { E() }) } else { j.unbind("mouseleave.cluetip") } } var af = ""; h.css({ zIndex: w.data("thisInfo").zIndex, overflow: y == "auto" ? "visible" : "auto", height: y }); B = y == "auto" ? Math.max(j.outerHeight(), j.height()) : parseInt(y, 10); Z = L; U = n + T; if (H.positionBy == "fixed") { Z = L - H.dropShadowSteps + G } else { if ((M < O && Math.max(M, 0) + W > O) || H.positionBy == "bottomTop") { if (L + B + G > U && N - n > B + G) { Z = N - B - G; af = "top" } else { Z = N + G; af = "bottom" } } else { if (L + B + G > U) { Z = (B >= T) ? n : U - B - G } else { if (w.css("display") == "block" || t.tagName.toLowerCase() == "area" || H.positionBy == "mouse") { Z = ad - G } else { Z = L - H.dropShadowSteps } } } } if (af == "") { M < v ? af = "left" : af = "right" } j.css({ top: Z + "px" }).removeClass().addClass("clue-" + af + "-" + s).addClass(" cluetip-" + s); if (H.arrows) { var ag = (L - Z - H.dropShadowSteps); g.css({ top: (/(left|right)/.test(af) && M >= 0 && ag > 0) ? ag + "px" : /(left|right)/.test(af) ? 0 : "" }).show() } else { g.hide() } k.hide(); j.hide()[H.fx.open](H.fx.open != "show" && H.fx.openSpeed); if (H.dropShadow) { k.css({ height: B, width: z, zIndex: w.data("thisInfo").zIndex - 1 }).show() } if (f.fn.bgiframe) { j.bgiframe() } if (H.delayedClose > 0) { R = setTimeout(E, H.delayedClose) } H.onShow.call(t, j, i) }; var X = function(ab) { S = false; b.hide(); if (!H.sticky || (/click|toggle/).test(H.activation)) { E(); clearTimeout(R) } if (H.hoverClass) { w.removeClass(H.hoverClass) } }; var E = function() { h.parent().hide().removeClass(); H.onHide.call(t, j, i); w.removeClass("cluetip-clicked"); if (I) { w.attr(H.titleAttribute, I) } w.css("cursor", ""); if (H.arrows) { g.css({ top: "" }) } }; f(document).bind("hideCluetip", function(ab) { E() }); if ((/click|toggle/).test(H.activation)) { w.bind("click.cluetip", function(ab) { if (j.is(":hidden") || !w.is(".cluetip-clicked")) { x(ab); f(".cluetip-clicked").removeClass("cluetip-clicked"); w.addClass("cluetip-clicked") } else { X(ab) } this.blur(); return false }) } else { if (H.activation == "focus") { w.bind("focus.cluetip", function(ab) { x(ab) }); w.bind("blur.cluetip", function(ab) { X(ab) }) } else { w[H.clickThrough ? "unbind" : "bind"]("click", Y); var q = function(ab) { if (H.tracking == true) { var ad = M - ab.pageX; var ac = Z ? Z - ab.pageY : L - ab.pageY; w.bind("mousemove.cluetip", function(ae) { j.css({ left: ae.pageX + ad, top: ae.pageY + ac }) }) } }; if (f.fn.hoverIntent && H.hoverIntent) { w.hoverIntent({ sensitivity: H.hoverIntent.sensitivity, interval: H.hoverIntent.interval, over: function(ab) { x(ab); q(ab) }, timeout: H.hoverIntent.timeout, out: function(ab) { X(ab); w.unbind("mousemove.cluetip") } }) } else { w.bind("mouseenter.cluetip", function(ab) { x(ab); q(ab) }).bind("mouseleave.cluetip", function(ab) { X(ab); w.unbind("mousemove.cluetip") }) } w.bind("mouseenter.cluetip", function(ab) { w.attr("title", "") }).bind("mouseleave.cluetip", function(ab) { w.attr("title", w.data("thisInfo").title) }) } } }) }; f.fn.cluetip.defaults = { width: 275, height: "auto", cluezIndex: 97, positionBy: "auto", topOffset: 15, leftOffset: 15, local: false, localPrefix: null, hideLocal: true, attribute: "rel", titleAttribute: "title", splitTitle: "", escapeTitle: false, showTitle: true, cluetipClass: "default", hoverClass: "", waitImage: true, cursor: "help", arrows: false, dropShadow: true, dropShadowSteps: 6, sticky: false, mouseOutClose: false, activation: "hover", clickThrough: false, tracking: false, delayedClose: 0, closePosition: "top", closeText: "Close", truncate: 0, fx: { open: "show", openSpeed: "" }, hoverIntent: { sensitivity: 3, interval: 50, timeout: 0 }, onActivate: function(l) { return true }, onShow: function(m, l) { }, onHide: function(m, l) { }, ajaxCache: true, ajaxProcess: function(l) { l = l.replace(/<(script|style|title)[^<]+<\/(script|style|title)>/gm, "").replace(/<(link|meta)[^>]+>/g, ""); return l }, ajaxSettings: { dataType: "html" }, debug: false }; var c = "appendTo", a = "body"; f.cluetip.setup = function(l) { if (l && l.insertionType && (l.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)) { c = l.insertionType } if (l && l.insertionElement) { a = l.insertionElement } } })(jQuery); $(document).ready(function() { twitter.init(); eventsPage.init(); attendeesLink.init(); iCal.init() }); twitter = { init: function() { try { $("div.s_twitter .singleUser:even").addClass("even").parent().find("a:first").addClass("even"); $("div.s_twitter .singleUser:odd").addClass("odd").parent().find("a:first").addClass("odd"); var b = $(".s_twitter p:first"); b.each(function() { var c = $(this); c.attr("innerHTML", linkify(c.attr("innerHTML"))) }); $(".s_twitter p").find("a").each(function() { $(this).attr("target", "_blank") }) } catch (a) { return false } } }; eventsPage = { init: function() { var b = "body.pg-events div.s_singleEvent"; var a = "span.s_venue a:eq(0)"; $(b).each(function() { $(this).hover(function() { $(this).addClass("hoveredEvent"); status = $(a, this).attr("href"); $("div.btn_wrapper a.btn", this).css({ marginTop: "0px", lineHeight: "100%" }); $("div.btn_wrapper a.btn span", this).css({ height: "13px" }); $("div.btn_wrapper", this).show() }, function() { $(this).removeClass("hoveredEvent"); $("div.btn_wrapper", this).hide() }); $(this).click(function(c) { if (c.target == this) { location = $(a, this).attr("href") } }) }) } }; iCal = { init: function() { var c = "?arch"; var a = "/events"; var b = window.location.href; ((b.indexOf(c) == -1) && (b.indexOf(a) != -1)) ? this.do_stuff() : $(".s_mod_cal").hide() }, do_stuff: function() { try { $(".s_mod_cal").each(function(c) { $(this).find("a.add_cal").attr("rel", ".clue-" + c); $(this).find(".s_calendars").addClass("clue-" + c) }); var b = $("a.add_cal"); $("a.add_cal").each(function(d) { var f = $(this).parent().parent().find(".s_where .s_venue a").clone().text(); var c = $(this).parent().parent().find(".s_date:first").clone().text(); var e = c + " - " + f; $(this).attr("title", e); $(this).cluetip({ width: 175, leftOffset: 25, showTitle: true, local: true, hideLocal: false, arrows: false, positionBy: "bottomTop", topOffset: 10, sticky: true, closePosition: "bottom", waitImage: false, dropShadow: true, mouseOutClose: true, activation: "click", cluetipClass: "iCal" }) }) } catch (a) { return false } } }; attendeesLink = { init: function() { var d = $("body.pg-events"); if (d.length >= 1) { var c = $("#s_attendees_summary .s_items"); if (c.length >= 1) { try { $('<a class="view-all" href="">view all attendee\'s comments</a>').appendTo(c); var h = $("#s_attendees_summary a.view-all"); var b = window.location.href; var a = getURLParam("eid", b); var g = getURLParam("arch", b); g == "" ? h.attr("href", "attendees.aspx?eid=" + a) : h.attr("href", "attendees.aspx?eid=" + a + "&arch=arch") } catch (f) { return false } } } } }; function getURLParam(e, f) { var d = ""; var c = f; if (c.indexOf("?") > -1) { var b = c.substr(c.indexOf("?")).toLowerCase(); var g = b.split("&"); for (var a = 0; a < g.length; a++) { if (g[a].indexOf(e.toLowerCase() + "=") > -1) { var h = g[a].split("="); d = h[1]; break } } } return unescape(d) } function linkify(a) { return a.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/g, function(b) { return b.link(b) }).replace(/@[\S]+/g, function(b) { }) } (function(a) { jQuery.fn.pngFix = function(d) { d = jQuery.extend({ blankgif: "blank.gif" }, d); var c = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1); var b = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1); if (jQuery.browser.msie && (c || b)) { jQuery(this).find("img[src$=.png]").each(function() { jQuery(this).attr("width", jQuery(this).width()); jQuery(this).attr("height", jQuery(this).height()); var l = ""; var g = ""; var f = (jQuery(this).attr("id")) ? 'id="' + jQuery(this).attr("id") + '" ' : ""; var m = (jQuery(this).attr("class")) ? 'class="' + jQuery(this).attr("class") + '" ' : ""; var i = (jQuery(this).attr("title")) ? 'title="' + jQuery(this).attr("title") + '" ' : ""; var j = (jQuery(this).attr("alt")) ? 'alt="' + jQuery(this).attr("alt") + '" ' : ""; var h = (jQuery(this).attr("align")) ? "float:" + jQuery(this).attr("align") + ";" : ""; var e = (jQuery(this).parent().attr("href")) ? "cursor:hand;" : ""; if (this.style.border) { l += "border:" + this.style.border + ";"; this.style.border = "" } if (this.style.padding) { l += "padding:" + this.style.padding + ";"; this.style.padding = "" } if (this.style.margin) { l += "margin:" + this.style.margin + ";"; this.style.margin = "" } var k = (this.style.cssText); g += "<span " + f + m + i + j; g += 'style="position:relative;white-space:pre-line;display:inline-block;background:transparent;' + h + e; g += "width:" + jQuery(this).width() + "px;height:" + jQuery(this).height() + "px;"; g += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + jQuery(this).attr("src") + "', sizingMethod='scale');"; g += k + '"></span>'; if (l != "") { g = '<span style="position:relative;display:inline-block;' + l + e + "width:" + jQuery(this).width() + "px;height:" + jQuery(this).height() + 'px;">' + g + "</span>" } jQuery(this).hide(); jQuery(this).after(g) }); jQuery(this).find("*").each(function() { var f = jQuery(this).css("background-image"); if (f.indexOf(".png") != -1) { var e = f.split('url("')[1].split('")')[0]; jQuery(this).css("background-image", "none"); jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + e + "',sizingMethod='scale')" } }); jQuery(this).find("input[src$=.png]").each(function() { var e = jQuery(this).attr("src"); jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + e + "', sizingMethod='scale');"; jQuery(this).attr("src", d.blankgif) }) } return jQuery } })(jQuery); $(document).ready(function() { $(document).pngFix() });