$(document).ready(function() { 
  $("ul#main_menu").supersubs({ 
      minWidth:    5,   // minimum width of sub-menus in em units 
      maxWidth:    27,   // maximum width of sub-menus in em units 
      extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                         // due to slight rounding differences and font-family 
  }).superfish({
      autoArrows:  false, // removing arrows
      dropShadows: false  // removing shadows
  }).find('ul').bgIframe({opacity:true})

  $("#friends_of_pride marquee").marquee({
  }).mouseover(function () {
      $(this).trigger('stop');
    }).mouseout(function () {
      $(this).trigger('start');
    });

  $("#pride-store #shipping_options").change(function(){
    if($("#pride-store #shipping_options").val() == 'post') {
      $("input[name='shipping']").val(12.00);
      $("input[name='no_shipping']").val(2);
    } else {
      $("input[name='shipping']").val(0.00);
      $("input[name='no_shipping']").val(1);
    }
  });

  $("#pride-store select[name='amount']").change(function(){
    $(this).siblings("[name='os0']").val($(this).children(':selected').attr('title'));
  });

  $("#pride-parade select[name='amount']").change(function(){
    $(this).siblings("[name='os0']").val($(this).children(':selected').attr('title'));
  });
});