$(document).ready(function() {
  if (jQuery.browser.msie) {
    $('#function, #industry, #administrative_area_code, #location').each(function() {
      elt = $(this);
      if (this != null) {
        this.initWidth = elt.width();
        elt.bind('mousedown', function() {
          $(this).css('width', 'auto');
        });
        elt.bind('blur', function() {
          $(this).css('width', this.initWidth + "px");
        });
      }
    });		
  };

	$('.hideOnLoad').each(function() {
    elt = $(this);
    elt.hide();                           
		elt.removeClass('hideOnLoad');
	});
  
  $('a[rel="external"], area[rel="external"]').each(function() {
    link = $(this);
    if (link.attr('href') != '' && link.attr('href') != '#'){
      link.attr('target','_blank');
    }
  });
  
});

function hideFrames() {
//  if (jQuery.browser.msie || jQuery.browser.webkit) {
   $('iframe').hide();
//  }
};

function restoreFrames() {
//  if (jQuery.browser.msie || jQuery.browser.webkit) {
    $('iframe').show();
//  }
};

