/*
     jQuery includes for WSD
*/
jQ(document).ready(function() {

// regular stiped rows ignoring thead
  jQ('table.striped tbody tr:nth-child(odd)').addClass('oddWSD');
  jQ('table.striped tbody tr:nth-child(even)').addClass('evenWSD');

// verify required fields for forms
  jQ('form.verify').submit( function() {
    var complete = true
    jQ("input[name*='required_']").each( function() {
      if ( !jQ(this).val() ) {
        alert ('Please fill out all required fields.');
        complete = false;
        return false; // just breaks loop
      }
    });

    if (complete) {
      return true;
    }
    else {
      return false;
    }
  });
  
  if (jQ('#player').length) {
    flowplayer('player', './misc/flowplayer/flowplayer-3.2.5.swf', {clip: {autoPlay: false, autoBuffering: true}});
  }

});


