if(Drupal.jsEnabled) {
  $(document).ready(function(){
    var flashvars = {
      height: 192,
      width: 750,
      // SETS THE LOCATION OF THE FILE TO PLAY.
      // The mediaplayer can play a single MP3, FLV, SWF, JPG, GIF, PNG, H264 file or a playlist.
      // The imagerotator only plays playlists. The wmvplayer only plays WMV and WMA files and MMS streams.
      file: "/banners/xspf.xml",
      // SET THIS TO AN IMAGE THAT CAN BE PUT AS A WATERMARK LOGO IN THE TOP RIGHT CORNER OF THE DISPLAY.
      // Transparent PNG files give the best results
      //logo: "/misc/home-flash-top.png", 
      // ONLY FOR THE ROTATOR. SETS THE TRANSITION TO USE BETWEEN IMAGES. 
      // The default, random, randomly pick a transition.
      // To restrict to a certain transition, use these values: fade, bgfade, blocks, bubbles, circles, flash, fluids, lines or slowfade
      transition: "slowfade",
      // SETS HOW TO STRETCH IMAGES/MOVIES TO MAKE THEM FIT THE DISPLAY. 
      // The default stretches to fit the display. Set this to true to stretch them proportionally to fill the display, 
      // fit to stretch them disproportionally and none to keep original dimensions.
      overstretch: "fit",
      // SET THIS TO FALSE TO HIDE THE ACTIVITY ICON AND PLAY BUTTON IN THE MIDDLE OF THE DISPLAY
      showicons: false,
      // SET THIS TO FALSE TO COMPLETELY HIDE THE CONTROLBAR
      shownavigation: false,
      // NOT FOR THE WMVPLAYER. SET THIS TO TRUE TO AUTOMATICALLY REPEAT PLAYBACK OF ALL FILES.
      // SET THIS TO LIST TO PLAYBACK AN ENTIRE PLAYLIST ONCE.
      repeat: true,
      // NOT FOR THE WMVPLAYER. SETS THE NUMBER OF SECONDS AN IMAGE IS PLAYED BACK.
      rotatetime: 4,
      // NOT FOR THE WMVPLAYER. SET THIS TO TRUE TO PLAYBACK A PLAYLIST IN RANDOM ORDER.
      shuffle: true,
      // SET THIS TO TRUE TO MAKE A CLICK ON THE DISPLAY RESULT IN A JUMP TO THE WEBPAGE ASSIGNED TO THE LINK FLASHVAR.
      linkfromdisplay: false
    };
    var params = {};
    var attributes = {};
    swfobject.embedSWF("/misc/imagerotator.swf", "flashimages", flashvars.width, flashvars.height, "9.0.0", false, flashvars, params, attributes);
    // SWFOBJECT 2, NOT BACKWARDS COMPATABLE :|
    // http://www.swffix.org/swfobject/testsuite/test_api_createswf_com.html DYNAMIC DEMO
  });
}