/**
 * Snepo swfobject JS
 *
 * Here we provide a method to implement swfObject for all SWF files
 */
$(function() {
  
  // Find all snepo_swf objects
  $( 'div.snepo_swf' ).each( function( index, element ){
    // Get id and filepath
    var id = $( this ).attr( 'id' );
    var file = $( this ).find( '.snepo_swf_file' ).val();
    var width = $( this ).find( '.snepo_swf_width' ).val();
    var height = $( this ).find( '.snepo_swf_height' ).val();
    
    // Call swfObject
    swfobject.embedSWF( file, id, width, height, "10.0.1", null, null, { "wmode" : "opaque" } );
  });
  
});
