      var pageTracker;
      var ready = 0;
      var mx = 0;
      var url = "";
      var my = 0;
      var cardinterval = "";
      var banner = "";
      var bgclass = "";
      var loc = 0;
      var animate = "done";
      var location_list = "";
      
      $(document).ready(function(){
         ready = 1;
         cpwr_changeBodyTextSize(cpwr_getCookie('cpwrWWWCSSTextSize'));
         //$(".country_specific").load('/ajax/getspecific_content.asp?url=' + document.location);
         $('ul.sf-menu').supersubs({
               minWidth:    12,  
               maxWidth:    27,  
               extraWidth:  1   
            }).superfish({ 
               delay:       1000, 
               animation:   {opacity:'show',height:'show'}, 
               speed:       'fast', 
               autoArrows:  false, 
               dropShadows: false 
         }); 
         $().mousemove(function(e){
            mx = e.pageX;
            my = e.pageY;
         }); 
         var page = window.location.pathname;
         $.getJSON('/ajax/getadditionalcontent.asp?page=' + page + '&domain=' + document.domain, function(data){
            if (data.additional_content.length > 0) {
               $("#Syn_ContentHeader").append(data.additional_content_headline);
               $("#Syn_Content").append(data.additional_content);
               $("#Syn_ContentHeader").show();
               $("#Syn_Content").show();
            }
            });
         
         
         
         var proservices = ';sample.compuware.com;www.compuware.com;ca.compuware.com;fr.ca.compuware.com;10.4.26.83';
         if (proservices.indexOf(document.domain) == -1) {
            $('#card_services_2').hide();
         }
          switch_infobar('solutions');
          $("#location").click(function(){ $('#card_location').show(); });
          $("#searchbox").click(function(){ if ($("#searchbox").val() == 'Search') { $("#searchbox").val(''); }; });
          $("#searchbox").mouseleave(function(){ if ($("#searchbox").val().length = 0) { $("#searchbox").val('Search'); }; });
          $("#searchbutton").click(function(){ document.location.href = "/search.asp?domain=" + document.domain + "&q=" + $('#searchbox').val(); })
          $("#searchbox").keypress(function(e){ if (e.which==13) { document.location.href = "/search.asp?domain=" + document.domain + "&q=" + $('#searchbox').val(); } } )
          $("#location").mouseleave(function(){ $('#card_location').hide(); });
          
          /* new search autocomplete code */
          $("#searchbox").keyup(function(e){
             if ($("#searchbox").val().length > 2) { 
               url = "/ajax/getsearch.asp?domain=" + document.domain + "&q=" + $("#searchbox").val();
               $.getJSON(url, function(data){
                  $("#searchautocomplete").html('');
                  $("#searchautocomplete").show();
                  $.each(data.gsp.res.r, function(i,item){
                     if (bgclass=='shade') { bgclass = '' } else { bgclass = 'shade' }
                     url = item.u.replace("www.compuware.com",document.domain);
                     $("#searchautocomplete").append('<div class=\'auto_search_result ' + bgclass + '\'><a href="' + url + '">' + item.t + '</a></div>');
                  });
                  
               });
             }
          });

          if (jQuery.browser.msie && (jQuery.browser.version < 7)) {
            $('#logo img').attr('src','/_onelink_/compuware/images/logo.png');
            $('#valuestatement_content').css('background','url(/images/bubble_bg.gif)');
            $("#valuestatement img:first").attr('src','/images/bubble_top.gif');
            $("#valuestatement img:last").attr('src','/images/bubble_bottom.gif');
            $('#header_links').css('bottom','-2px');
			
			//add code to size tabs for ie, force overflow to disappear
			$('div.cpwr_tab div').css({"width":"20%","overflow":"hidden","height":"35px"})
            
          }

         //set location
         location_list = {"sites":[{"domain":"au.compuware.com","text":"Australia - English","country":"Australia"},
                              {"domain":"at.compuware.com","text":"&Ouml;sterreich - Deutsch","country":"Austria"},
                              {"domain":"be.compuware.com","text":"Belgium - English","country":"Belgium"},
                              {"domain":"ca.compuware.com","text":"Canada - English","country":"Canada"},
                              {"domain":"frca.compuware.com","text":"Canada - Fran&ccedil;ais","country":"Canada"},
                              {"domain":"cn.compuware.com","text":"&#20013;&#22269; - &#31616;&#20307;&#20013;&#25991;","country":"China"},
                              {"domain":"dk.compuware.com","text":"Denmark - English","country":"Denmark"},
                              {"domain":"fi.compuware.com","text":"Finland - English","country":"Finland"},
                              {"domain":"fr.compuware.com","text":"France - Fran&ccedil;ais","country":"France"},
                              {"domain":"de.compuware.com","text":"Deutschland - Deutsch","country":"Germany"},
                              {"domain":"hk.compuware.com","text":"Hong Kong - English","country":"Hong Kong"},
                              {"domain":"in.compuware.com","text":"India - English","country":"India"},
                              {"domain":"it.compuware.com","text":"Italia - Italiano","country":"Italy"},
                              {"domain":"jp.compuware.com","text":"&#26085;&#26412; - &#26085;&#26412;&#35486;","country":"Japan"},
                              {"domain":"kr.compuware.com","text":"&#54620;&#44397; - &#54620;&#44397;&#50612;","country":"Korea, Republic of"},
                              {"domain":"ptla.compuware.com","text":"Am&eacute;rica Latina - Portugu&ecirc;s","country":"Brazil"},
                              {"domain":"esla.compuware.com","text":"Am&eacute;rica Latina - Espa&ntilde;ol","country":"Mexico"},
                              {"domain":"me.compuware.com","text":"Middle East - English","country":""},
                              {"domain":"nl.compuware.com","text":"Netherlands - English","country":"Netherlands"},
                              {"domain":"no.compuware.com","text":"Norway - English","country":"Norway"},
                              {"domain":"pl.compuware.com","text":"Poland - English","country":"Poland"},
                              {"domain":"pt.compuware.com","text":"Portugal - English","country":"Portugal"},
                              {"domain":"sg.compuware.com","text":"Singapore - English","country":"Singapore"},
                              {"domain":"es.compuware.com","text":"Espa&ntilde;a - Espa&ntilde;ol","country":"Spain"},
                              {"domain":"za.compuware.com","text":"South Africa - English","country":"South Africa"},
                              {"domain":"se.compuware.com","text":"Sweden - English","country":"Sweden"},
                              {"domain":"ch.compuware.com","text":"Schweiz - Deutsch","country":"Switzerland"},
                              {"domain":"uk.compuware.com","text":"United Kingdom - English","country":"United Kingdom"},
                              {"domain":"sample.compuware.com","text":"United States - English","country":"United States"},
                              {"domain":"www.compuware.com","text":"United States - English","country":"United States"},
                              {"domain":"10.4.26.83","text":"United States - English","country":"United States"}]}
         $.each(location_list.sites, function(i,item){
            //alert(item.domain + ' - ' + document.domain);
            if (item.domain == document.domain) { $("#locationbox").html(item.text); };
          });


      })

      function loadNewBkg(a) {
      }

      function checksize() {
         var winWidth =  browserWidth(); 
         $("#footer").show();
         $("#footer").css("top",$(document).height());
         if (winWidth < 1000) {
            $("#wrapper").css("left","0px");
            $("#wrapper").css("margin-left","0px");
         } else {
            $("#wrapper").css("left","50%");
            $("#wrapper").css("margin-left","-480px");
         }
      }

      function browserWidth() {
        var myWidth = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
           //Non-IE
           myWidth = window.innerWidth;
        } else if( document.documentElement && document.documentElement.clientWidth ) {
           //IE 6+ in 'standards compliant mode'
           myWidth = document.documentElement.clientWidth;
        } else if( document.body && document.body.clientWidth ) {
           //IE 4 compatible
           myWidth = document.body.clientWidth;
        }
        return myWidth;
      }

    
      function switch_infobar(a) {
         $('.infobar_content').hide();
         $('#infobar_' + a).show();
         /*$('.arrow-down').attr({src : "/images/arrow-none.gif"});
         $('#infobar_menu_' + a + ' .arrow-down').attr({src : "/images/arrow-down.gif"});*/
         $('.infobar_menu_item').css("background","");
         $('#infobar_menu_' + a).css("background","url(/images/tab_active_bg.gif)");
         $('.infobar_menu_item').css("background-color","#e0e2e4");
         $('#infobar_menu_' + a).css("background-color","#fff");
         $('.infobar_menu_item').css("color","#777");
         $('#infobar_menu_' + a).css("color","#4d4d4d");
      }
      
      function show_location(a) {
         //$("#debug").val("1: " + loc);
         if (a==2) {
            loc = 1;
            $("#card_location").show();
            //$("#debug").val("1: " + loc);
         } else {
            if (loc==1) { $("#card_location").show(); }
         }
      }

      function check_location () {
            $("#debug").val('check card ' + $('#location').css('left') + '\n location ' + $('#card_location').css('display'))
            var t1 = parseInt($('#location').css('top'));
            var l1 = parseInt($('#location').css('left'));
            var t2 = t1 + parseInt($('#card_location').css('height'));
            var l2 = l1 + parseInt($('#card_location').css('width'));
            
            if ( mx > l1 && mx < l2 && my > t1 && my < t2) {
               $("#debug").val('1 - ' + mx + ': ' + l1 + ',' + l2 + '  ' + my + ': ' + t1  + ',' +t2);
            } else {
               $("#debug").val('2 - ' + mx + ': ' + l1 + ',' + l2 + '  ' + my + ': ' + t1  + ',' +t2);
               $('#card_location').hide();
               loc = 0;
            }
      }

      var currentpromo = 0;
      function goleft() {
         if (animate == "done") {
            var ml = parseInt($('#promobox-content').css("margin-left"));
            if (ml <= -100) {
               currentpromo-- ;
               animate = "not"; 
               $('#promobox-content').animate({marginLeft:"+=296px"},500,"linear",function(data){ animate = "done"; });
               
            } 
         }   
         }
      
      function goright() {
         if (animate == "done") {
            var ml = parseInt($('#promobox-content').css("margin-left"));
            if (ml > ((promonumber-1) * -296)) {
               currentpromo++ ;
               animate = "not"; 
               $('#promobox-content').animate({marginLeft:"-=296px"},500,"linear",function(data){ animate = "done"; });
            } 
         }
         }
         
      function location_next(){ 
         var t1 = parseInt($('#card_location_content ul').css('margin-top'));
         if (t1 > -550) { $('#card_location_content ul').animate({marginTop:"-=150px"},500); }
         }
         
     function location_prev(){ 
         var t1 = parseInt($('#card_location_content ul').css('margin-top'));
         if (t1 < 0) { $('#card_location_content ul').animate({marginTop:"+=150px"},500); }
         }

      function switchbanner(c) {
         var ml = parseInt($('#promobox-content').css("margin-left"));
         ml = -296*c;      
         $('#promobox-content').css("margin-left",ml);
         }

      function whichbanner(a) {
         switch (a) {
            case 'bsd':
               b = 'solutions';
               break;
            case 'mainframe':
               b = 'solutions';
               break;
            case 'apm':
               b = 'solutions';
               break;			   
            case 'itsm':
               b = 'solutions';
               break;
            case 'itpm':
               b = 'solutions';
               break;
            case 'ead':
               b = 'solutions';
               break;
            default:
               b = a;
               break;
         }
         return b;
      }


   function CPWR_lightbox(a) {
      var thumb = $(a).children().attr("src");
      var big = thumb.replace('/t_','/l_');
      $('#cover_content').html("<img src='" + big + " '>");
      $('#cover').show();

      $('#cover_content img').load(function(){
         $('#cover_header').html($(a).attr("alt"));
         $('#cover_content').html("<img src='" + big + " '>");
         var top_center = Math.round($('#cover_content img').height()/2*-1)-25;     
         var left_center = Math.round($('#cover_content img').width()/2*-1)-3; 
         $('#cover_wrap').css('margin-top',top_center);
         $('#cover_wrap').css('margin-left',left_center);
         $('#cover_wrap').css('width',$('#cover_content img').width());
         $('#cover_wrap').css('height',$('#cover_content img').height()+44);
         $('#cover_footer').html("<a href='/scripts/getimage.asp?img=" + thumb + "'>Download Image</a>");
      });


   }





	function cpwrTabContent(){
	
		/****************************************
			Arrange all tabs and add click event
		*****************************************/
		$('div.cpwr_tab').each(function(i){
			$(this).css({"float":"left"})
			
			
			$(this).remove().appendTo('#cpwr_tabPanel_tabWrap');
		
			//set first tab to active
			if(i==0){$(this).addClass('cpwr_tab_active')}
			
			$(this).bind("click",function(){
				
				/******************************************
					Hide all content except for this tab
					remove active status from any other tab
					and set this tab as active.
					Finally, show the appropriate content
				*******************************************/
				
				$('div.cpwr_tab_content').each(function(i){	
					$(this).hide();
				});
				
				$('div.cpwr_tab').each(function(i){	
					$(this).removeClass('cpwr_tab_active');
				});
				
				var clickTarget = $(this).children(0).attr("id")
				$(this).addClass('cpwr_tab_active');
				$(clickTarget).show()
			})

		});
		/****************************************
			prevent content from sitting next to tabs
		*****************************************/
		
		$('#cpwr_tabPanel_tabWrap').append("<br style ='clear:both;height:0px;'/>")
		
		/******************************************
			Hide all content and show first box 
			when page loads.
		*******************************************/
		
		$('div.cpwr_tab_content').each(function(i){	
			$(this).remove().appendTo('#cpwr_tabPanel_contentWrap');
			if(i==0){$(this).show()}
		});
		
		
	}

   function OneLink(sHostname)
   {
      var url = document.location.protocol + "//" + sHostname + document.location.pathname + document.location.search;
      document.location.href = url;
   }
				
   function linkto(a) {
      if (window.page == undefined) { page = document.location.pathname; }
      switch (a) {
         case 'analyst':
            document.location="/d/analyst-reports.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
         case 'casestudies':
            document.location="/d/case_studies.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
         case 'events':
            document.location="/d/events.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
         case 'news':
            document.location="/d/press-releases.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
		 case 'apm_explainer_videos':
			document.location="/solutions/application-performance-management-two-minute-explainers.asp";
			break;
         case 'brochuresfactsheetsitpm':
            document.location="/solutions/itpm_brochures_factsheets.asp";
            break;
	      case 'brochuresfactsheetse2e':
            document.location="/solutions/e2e_brochures_factsheets.asp";
            break;
	      case 'brochuresfactsheetshealthcare':
            document.location="/solutions/healthcare-brochures-factsheets.asp";
            break;
	      case 'brochuresfactsheetsmainframe':
            document.location="/solutions/mainframe-brochures-factsheets.asp";
            break;
         case 'podcast_itpm':
            document.location="/podcasts/changepoint.php";
            break;
         case 'podcast_itsm':
            document.location="/podcasts/vantagepoint.php";
            break;
	      case 'press':
            document.location="/d/press-mentions.asp";
            break;
	      case 'unifaceTv':
            document.location="http://compuware.vstream.ie/webtv/";
            break;
         case 'whitepapers':
            document.location="/d/white-papers.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
         case 'webcasts':
            document.location="/d/webcasts.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;

         case 'trials':
            document.location="/d/trials.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;

         case 'demos':
            document.location="/d/demos.asp?banner=" + banner + "&solution=" + solution + "&industry=" + industry + "&page=" + page;
            break;
			
         case 'blog':
            document.location="http://blog.compuware.com";
            break;
      }
      //document.location="/";
   }

   function cpwr_changeBodyTextSize(sz){
    	var tmp;
    	switch(sz){
          case "sm":
             tmp= "80%"
          break;
          case "lg":
             tmp = "120%"
          break;
          default:
             tmp = "100%"
          break;
    	}
    	cpwr_deleteCookie("cpwrWWWCSSTextSize")
    	cpwr_setCookie("cpwrWWWCSSTextSize", sz, 1, '/', '')   
    	$("#content").css("font-size",tmp);
    	checksize();
   }

  function cpwr_deleteCookie( name, path, domain ) {
    if ( cpwr_getCookie( name ) ) {
       var exp = name + "=" + ( ( path ) ? ";path=" + path : "");
       exp += ( ( domain ) ? ";domain=" + domain : "" )
       exp += ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
       document.cookie = exp
       }
  }
   
   function cpwr_setCookie(name, val, exp, p, d, s){
     cpwr_deleteCookie(name, p, d)
     var today = new Date();
     today.setTime(today.getTime());
     if(exp){exp = exp * 1000 * 60 * 60 * 24;}
     var exp_date = new Date (today.getTime() + exp)
     var c = name +   "=" + escape( val );
     c+= (exp)?";expires=" + exp_date.toGMTString() : "" ;
     c+= (p)?";path=" + p : "" ;
     c+= (d)?";domain=" + d : "" ;
     c+= (s)?";secure=" + s : "" ;
     document.cookie = c;
   } 

    
   function cpwr_getCookie( name ) {
       var start = document.cookie.indexOf( name + "=" );
       var len = start + name.length + 1;
       if ( ( !start ) &&( name != document.cookie.substring( 0, name.length ) ) )
       {
          return null;
       }
       if ( start == -1 ) return null;
       var end = document.cookie.indexOf( ";", len );
       if ( end == -1 ) end = document.cookie.length;
       return unescape( document.cookie.substring( len, end ) );
   }


/*
 * Superfish v1.4.8 - jQuery menu widget
 * 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
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			var menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);


/*
 * 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($){ // $ will refer to jQuery within this closure

	$.fn.supersubs = function(options){
		var opts = $.extend({}, $.fn.supersubs.defaults, options);
		// return original object to support chaining
		return this.each(function() {
			// cache selections
			var $$ = $(this);
			// support metadata
			var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
			// get the font size of menu.
			// .css('fontSize') returns various results cross-browser, so measure an em dash instead
			var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
				'padding' : 0,
				'position' : 'absolute',
				'top' : '-999em',
				'width' : 'auto'
			}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
			// remove em dash
			$('#menu-fontsize').remove();
			// cache all ul elements
			$ULs = $$.find('ul');
			// loop through each ul in menu
			$ULs.each(function(i) {	
				// cache this ul
				var $ul = $ULs.eq(i);
				// get all (li) children of this ul
				var $LIs = $ul.children();
				// get all anchor grand-children
				var $As = $LIs.children('a');
				// force content to one line and save current float property
				var liFloat = $LIs.css('white-space','nowrap').css('float');
				// remove width restrictions and floats so elements remain vertically stacked
				var emWidth = $ul.add($LIs).add($As).css({
					'float' : 'none',
					'width'	: 'auto'
				})
				// this ul will now be shrink-wrapped to longest li due to position:absolute
				// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
				.end().end()[0].clientWidth / fontsize;
				// add more width to ensure lines don't turn over at certain sizes in various browsers
				emWidth += o.extraWidth;
				// restrict to at least minWidth and at most maxWidth
				if (emWidth > o.maxWidth)		{ emWidth = o.maxWidth; }
				else if (emWidth < o.minWidth)	{ emWidth = o.minWidth; }
				emWidth += 'em';
				// set ul to width in ems
				$ul.css('width',emWidth);
				// restore li floats to avoid IE bugs
				// set li width to full width of this ul
				// revert white-space to normal
				$LIs.css({
					'float' : liFloat,
					'width' : '100%',
					'white-space' : 'normal'
				})
				// update offset position of descendant ul to reflect new width of parent
				.each(function(){
					var $childUl = $('>ul',this);
					var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
					$childUl.css(offsetDirection,emWidth);
				});
			});
			
		});
	};
	// expose defaults
	$.fn.supersubs.defaults = {
		minWidth		: 9,		// requires em unit.
		maxWidth		: 25,		// requires em unit.
		extraWidth		: 0			// extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
	};
	
})(jQuery); // plugin code ends
