/*BGIFrame - Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
 */
(function($) { $.fn.bgIframe = $.fn.bgiframe = function(s) { if ($.browser.msie && /6.0/.test(navigator.userAgent)) { s = $.extend({ top: 'auto', left: 'auto', width: 'auto', height: 'auto', opacity: true, src: 'javascript:false;' }, s || {}); var prop = function(n) { return n && n.constructor == Number ? n + 'px' : n; }, html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + s.src + '"' + 'style="display:block;position:absolute;z-index:-1;' + (s.opacity !== false ? 'filter:Alpha(Opacity=\'0\');' : '') + 'top:' + (s.top == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')' : prop(s.top)) + ';' + 'left:' + (s.left == 'auto' ? 'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')' : prop(s.left)) + ';' + 'width:' + (s.width == 'auto' ? 'expression(this.parentNode.offsetWidth+\'px\')' : prop(s.width)) + ';' + 'height:' + (s.height == 'auto' ? 'expression(this.parentNode.offsetHeight+\'px\')' : prop(s.height)) + ';' + '"/>'; return this.each(function() { if ($('> iframe.bgiframe', this).length == 0) this.insertBefore(document.createElement(html), this.firstChild); }); } return this; }; })(jQuery);
/*Cookie plugin - Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); } var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };
/*mdwMenu
* rumourDetail
* ratings_addMouseEvents
* Copyright (c) 2010 Mark Waldron (cortex-it.co.uk)
*/
jQuery.ratings_addMouseEvents = function() { function swaptext(a, b, c) { var d = b.text(); a.mouseenter(function() { b.text(c) }).mouseleave(function() { b.text(d) }) } function ratings_addMouseEventsToRating(a) { var b = $("p.rt", a); var c = ($("li.rv", a).size() > 0); if (c) { var d = $("p.rtv", a).text(); var e = "N/A"; if (d == '-2') e = "Expired"; else if (d == '-1') e = "Transfered"; else if (d == '1' || d == '2' || d == '3' || d == '4' || d == '5') e = "You voted " + d; swaptext($("ul.rl", a), b, e) } swaptext($("a.r1", a), b, "No Chance!"); swaptext($("a.r2", a), b, "Unlikely"); swaptext($("a.r3", a), b, "Possible"); swaptext($("a.r4", a), b, "Likely"); swaptext($("a.r5", a), b, "Dead Cert") } $("div.rat").each(function() { ratings_addMouseEventsToRating($(this)) }) };
/*(function($) { $.fn.extend({ mdwMenu: function() { function setupSubMenu(ul) { var a = $("a:first", ul); var dYa = a.height(); var dX = ul.width(); var pad = parseInt(a.css("padding-left")) + parseInt(a.css("padding-right")); $(">li>a", ul).width(dX - pad); $(">li>ul", ul).each(function() { $(this).css("margin", "-" + (dYa - 3) + "px 0 0 " + (dX - 3) + "px"); setupSubMenu($(this)); }); ul.bgiframe(); ul.hide(); }; function showSubMenu(ul) { ul.stop(true, false); if (!ul.is(":visible")) { ul.animate({ delay: 1 }, 250, function() { animateSubMenu(ul); }); } }; function hideSubMenu(ul) { ul.stop(true, false); if (ul.is(":visible")) { ul.animate({ delay: 1 }, 250, function() { ul.hide(); }); } }; return this.each(function() { var menu = $(this); menu.css("visibility", "hidden"); menu.addClass("js"); $("ul", menu).css("left", "auto"); $(">li>ul", menu).each(function() { setupSubMenu($(this)); }); $("li", menu).mouseenter(function() { $(this).addClass("active"); showSubMenu($("ul:first", this)); }).mouseleave(function() { $(this).removeClass("active"); hideSubMenu($("ul:first", this)); }); menu.css("visibility", "visible"); }); } }); })(jQuery);*/
(function($) { $.fn.extend({ rumourDetail: function(cookieid) { return this.each(function() { var tbl = $(">table.info", this); $("th .arrow", tbl).click(function() { var up = $(this).hasClass("up"); $("tr.master", tbl).each(function() { var master = $(this); var rowUp = master.find(".arrow").hasClass("up"); if (up == rowUp) { master.next("tr").find("div.sourcedquote").animate({ height: "toggle", opacity: "toggle" }, 'slow'); master.find(".arrow").toggleClass("up") } }); $(this).toggleClass("up"); if (true == up) $.cookie(cookieid, false); else $.cookie(cookieid, true) }); $("tr.master .arrow", tbl).click(function() { $(this).closest("tr").next("tr").find("div.sourcedquote").animate({ height: "toggle", opacity: "toggle" }, 'slow'); $(this).toggleClass("up") }) }) } }) })(jQuery);

