jQuery(document).ready(function($){

  $('ul#main-menu')
    .supersubs({
      maxWidth:    35,
      minWidth:    15
    })
    .superfish({
      animation:   {opacity:'show',height:'show'},
      easing:      'easeOutBack'
    })
    .find('ul').bgIframe({opacity:false});

});

jQuery(document).ready(function($){
  $('#newsletter-form label').hide();
  $('#newsletter-form input').addClass('with-js').labelify();

});

jQuery(document).ready(function($){

    $('.explanation').show();
    $('.question h3').prepend('<span class="question-toggle show">[+]</span>');
    $('.answer').hide();
    
    $('.question')
        .toggle(function() {
            $(this).next('.answer').slideDown(400).end()
            .find('.question-toggle').replaceWith('<span class="question-toggle hide">[&ndash;]</span>');
        },function() {
            $(this).next('.answer').slideUp(400).end()
            .find('.question-toggle').replaceWith('<span class="question-toggle show">[+]</span>');
        });
    
    $('.show-all').click(function() {
        $('.answer').slideDown(400);
        $('.question-toggle').replaceWith('<span class="question-toggle hide">[&ndash;]</span>');
        return false;
        });
    
    $('.hide-all').click(function() {
        $('.answer').slideUp(400);
        $('.question-toggle').replaceWith('<span class="question-toggle show">[+]</span>');
        return false;
        });
});

jQuery(document).ready(function($) {
	var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
	if (badBrowser) {

				DD_belatedPNG.fix('img, input, .content-wrapper-inner-1, .content-wrapper-inner-2, .content-wrapper-inner-3');
	} 
});