$(document).bind('slided_or_ready', function() {
  // resizes tabs in main nav, css with:auto not possible due to absolute positioning of span element
  $('.nav_main.nav_level_0 > li > a').not('.edit_link').each(function(){
    var a = $(this)
    , parent = a.parent()
    , width = a.find('span').width();

    a.width(width + parseInt(parent.css('padding-left'), 10));
    parent.width(width + parseInt(parent.css('padding-left'), 10));
  });
});

  // preventing outline links in IE

$(".tabs li span").click(function() {
  this.style.outlineStyle = 'none';
});   
$(".tabs li span").mousedown(function() {
  this.style.outlineStyle = 'none';
});
$(".tabs li span").mouseup(function() {
  this.style.outlineStyle = 'none';
});

/* centering footer in ie7 
var version         = parseInt($.browser.version);
if ($.browser.msie && $.browser.version <= version) { 
  var footer_width  = $('#footer_standard').width(); 
  var nav_width     = $('.nav_footer').width(); 
  $('.nav_footer').width(nav_width);
  $('.nav_footer').css('margin-left', parseInt((footer_width - nav_width)/2));
}*/
