
/*
 * Supersubs v0.2b - jQuery plugin
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 *
 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
 * their longest list item children. If you use this, please expect bugs and report them
 * to the jQuery Google Group with the word 'Superfish' in the subject line.
 *
 */ 
(function(a){a.fn.supersubs=function(c){var e=a.extend({},a.fn.supersubs.defaults,c);var d={padding:0,position:"absolute",top:"-999em",width:"auto"};if(a.browser.msie&&parseInt(a.browser.version)===6){d={};var b="1px"}return this.each(function(){var f=a(this);var g=a.meta?a.extend({},e,f.data()):e;var h=a('<li id="menu-fontsize">&#8212;</li>').css(d).appendTo(f).width();a("#menu-fontsize").remove();$ULs=f.find("ul");$ULs.each(function(n){var m=$ULs.eq(n);var l=m.children();var j=l.children("a");var o=l.css("white-space","nowrap").css("float");var k=m.add(l).add(j).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/h;k+=g.extraWidth;if(k>g.maxWidth){k=g.maxWidth}else{if(k<g.minWidth){k=g.minWidth}}k+="em";m.css("width",k);l.css({"float":o,width:"100%","white-space":"normal",height:b}).each(function(){var p=a(">ul",this);var i=p.css("left")!==undefined?"left":"right";p.css(i,k)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);;  
