$(document).ready(function(){

  var myPlaylist = new jPlayerPlaylist({
    jPlayer: "#jquery_jplayer_N",
    cssSelectorAncestor: ""
  }, [
  
  
      {
        title:"Diamant til kull",
        artist:"Kaizers Orchestra",
        mp3:"/mp3/kaizers_diamant.mp3",
        oga:"/mp3/kaizers_diamant.ogg",
        poster: "/mp3/thumb_kaizers.jpg"
      },
	 
    {
        title:"In the backseat",
        artist:"Jonas Alaska",
        mp3:"/mp3/jonas_backseat.mp3",
        oga:"/mp3/jonas_backseat.ogg",
        poster: "/mp3/thumb_alaska.jpg"
      },
    {
      title:"Rendition of you",
      artist:"Montée",
      mp3:"/mp3/montee_rendition.mp3",
      oga:"/mp3/montee_rendition.ogg",
      poster: "/mp3/thumb_montee.jpg"
    },
	
	{
        title:"Private caller",
        artist:"Sondre Lerche",
        mp3:"/mp3/sondre_private.mp3",
        oga:"/mp3/sondre_private.ogg",
        poster: "/mp3/thumb_sondre.jpg"
      },
	  
	{
        title:"No seats at the fillmore",
        artist:"El Cuero",
        mp3:"/mp3/elcuero_noseats.mp3",
        oga:"/mp3/elcuero_noseats.ogg",
        poster: "/mp3/thumb_elcuero.jpg"
      },
	  
      {
        title:"Soft insulated days",
        artist:"Rumble in Rhodos",
        mp3:"/mp3/rir_soft.mp3",
        oga:"/mp3/rir_soft.ogg",
        poster: "/mp3/thumb_rumble.jpg"
      },
	  
		{
        title:"Ta for deg nå",
        artist:"Bare Egil Band",
        mp3:"/mp3/egil_tafordeg.mp3",
        oga:"/mp3/egil_tafordeg.ogg",
        poster: "/mp3/thumb_egil.jpg"
      },
	  
      {
        title:"Gå i stå",
        artist:"Staut",
        mp3:"/mp3/staut_gaaistaa.mp3",
        oga:"/mp3/staut_gaaistaa.ogg",
        poster: "/mp3/thumb_staut.jpg"
      },
      {
        title:"Grønland",
        artist:"Ila Auto",
        mp3:"/mp3/ila_gronland.mp3",
        oga:"/mp3/ila_gronland.ogg",
        poster: "/mp3/thumb_ila.jpg"
      },
	  
	  	{
        title:"Silver",
        artist:"Kaizers Orchestra",
        mp3:"/mp3/kaizers_silver.mp3",
        oga:"/mp3/kaizers_silver.ogg",
        poster: "/mp3/thumb_kaizers.jpg"
      },
	  
	  {
        title:"Say it all",
        artist:"Sondre Lerche",
        mp3:"/mp3/sondre_sayitall.mp3",
        oga:"/mp3/sondre_sayitall.ogg",
        poster: "/mp3/thumb_sondre.jpg"
      },
    	{
        title:"Sko",
        artist:"Bare Egil Band",
        mp3:"/mp3/egil_sko.mp3",
        oga:"/mp3/egil_sko.ogg",
        poster: "/mp3/thumb_egil.jpg"
      },
      
          {
        title:"Castles in the sky",
        artist:"Ugle",
        mp3:"/mp3/ugle_castles.mp3",
        oga:"/mp3/ugle_castles.ogg",
        poster: "/mp3/thumb_ugle.jpg"
      },
      
          {
        title:"Faith",
        artist:"Montée",
        mp3:"/mp3/montee_faith.mp3",
        oga:"/mp3/montee_faith.ogg",
        poster: "/mp3/thumb_montee.jpg"
      },
      
          {
        title:"White dancing",
        artist:"Rumble in Rhodos",
        mp3:"/mp3/rir_white.mp3",
        oga:"/mp3/rir_white.ogg",
        poster: "/mp3/thumb_rumble.jpg"
      },
	  
	      {
        title:"Still be your man",
        artist:"El Cuero",
        mp3:"/mp3/elcuero_still.mp3",
        oga:"/mp3/elcuero_still.ogg",
        poster: "/mp3/thumb_elcuero.jpg"
      },
	  	  
	
		{
        title:"Hjerteknuser",
        artist:"Kaizers Orchestra",
        mp3:"/mp3/kaizers_hjerteknuser.mp3",
        oga:"/mp3/kaizers_hjerteknuser.ogg",
        poster: "/mp3/thumb_kaizers.jpg"
      },
      
      {
        title:"Robert Ollinger",
        artist:"Jonas Alaska",
        mp3:"/mp3/jonas_robert.mp3",
        oga:"/mp3/jonas_robert.ogg",
        poster: "/mp3/thumb_alaska.jpg"
      },
      
      {
        title:"Slepp me inn",
        artist:"Staut",
        mp3:"/mp3/staut_slepp.mp3",
        oga:"/mp3/staut_slepp.ogg",
        poster: "/mp3/thumb_staut.jpg"
      },
      
          
          {
        title:"Creedence på kassett",
        artist:"Ila Auto",
        mp3:"/mp3/ila_creedence.mp3",
        oga:"/mp3/ila_creedence.ogg",
        poster: "/mp3/thumb_ila.jpg"
      },
	  
	  {
        title:"Two way monologue",
        artist:"Sondre Lerche",
        mp3:"/mp3/sondre_twoway.mp3",
        oga:"/mp3/sondre_twoway.ogg",
        poster: "/mp3/thumb_sondre.jpg"
      },
      
          {
        title:"Grindafjell",
        artist:"Ugle",
        mp3:"/mp3/ugle_grindafjell.mp3",
        oga:"/mp3/ugle_grindafjell.ogg",
        poster: "/mp3/thumb_ugle.jpg"
      },
	  
	  	{
        title:"Pump opp oljen",
        artist:"Bare Egil Band",
        mp3:"/mp3/egil_pump.mp3",
        oga:"/mp3/egil_pump.ogg",
        poster: "/mp3/thumb_egil.jpg"
      },

  ], {
    playlistOptions: {
      enableRemoveControls: true
    },
    swfPath: "/js",
    supplied: "webmv, ogv, m4v, oga, mp3"
  });

  // Click handlers for jPlayerPlaylist method demo

  
  // The remove commands

  $("#playlist-remove").click(function() {
    myPlaylist.remove();
  });

  $("#playlist-remove--2").click(function() {
    myPlaylist.remove(-2);
  });
  $("#playlist-remove--1").click(function() {
    myPlaylist.remove(-1);
  });
  $("#playlist-remove-0").click(function() {
    myPlaylist.remove(0);
  });
  $("#playlist-remove-1").click(function() {
    myPlaylist.remove(1);
  });
  $("#playlist-remove-2").click(function() {
    myPlaylist.remove(2);
  });

  // The shuffle commands

  $("#playlist-shuffle").click(function() {
    myPlaylist.shuffle();
  });

  $("#playlist-shuffle-false").click(function() {
    myPlaylist.shuffle(false);
  });
  $("#playlist-shuffle-true").click(function() {
    myPlaylist.shuffle(true);
  });

  // The select commands

  $("#playlist-select--2").click(function() {
    myPlaylist.select(-2);
  });
  $("#playlist-select--1").click(function() {
    myPlaylist.select(-1);
  });
  $("#playlist-select-0").click(function() {
    myPlaylist.select(0);
  });
  $("#playlist-select-1").click(function() {
    myPlaylist.select(1);
  });
  $("#playlist-select-2").click(function() {
    myPlaylist.select(2);
  });

  // The next/previous commands

  $("#playlist-next").click(function() {
    myPlaylist.next();
  });
  $("#playlist-previous").click(function() {
    myPlaylist.previous();
  });

  // The play commands

  $("#playlist-play").click(function() {
    myPlaylist.play();
  });

  $("#playlist-play--2").click(function() {
    myPlaylist.play(-2);
  });
  $("#playlist-play--1").click(function() {
    myPlaylist.play(-1);
  });
  $("#playlist-play-0").click(function() {
    myPlaylist.play(0);
  });
  $("#playlist-play-1").click(function() {
    myPlaylist.play(1);
  });
  $("#playlist-play-2").click(function() {
    myPlaylist.play(2);
  });

  // The pause command

  $("#playlist-pause").click(function() {
    myPlaylist.pause();
  });

  // Changing the playlist options

  // Option: autoPlay

  $("#playlist-option-autoPlay-true").click(function() {
    myPlaylist.option("autoPlay", true);
  });
  $("#playlist-option-autoPlay-false").click(function() {
    myPlaylist.option("autoPlay", false);
  });

  // Option: enableRemoveControls

  $("#playlist-option-enableRemoveControls-true").click(function() {
    myPlaylist.option("enableRemoveControls", true);
  });
  $("#playlist-option-enableRemoveControls-false").click(function() {
    myPlaylist.option("enableRemoveControls", false);
  });

  // Option: displayTime

  $("#playlist-option-displayTime-0").click(function() {
    myPlaylist.option("displayTime", 0);
  });
  $("#playlist-option-displayTime-fast").click(function() {
    myPlaylist.option("displayTime", "fast");
  });
  $("#playlist-option-displayTime-slow").click(function() {
    myPlaylist.option("displayTime", "slow");
  });
  $("#playlist-option-displayTime-2000").click(function() {
    myPlaylist.option("displayTime", 2000);
  });

  // Option: addTime

  $("#playlist-option-addTime-0").click(function() {
    myPlaylist.option("addTime", 0);
  });
  $("#playlist-option-addTime-fast").click(function() {
    myPlaylist.option("addTime", "fast");
  });
  $("#playlist-option-addTime-slow").click(function() {
    myPlaylist.option("addTime", "slow");
  });
  $("#playlist-option-addTime-2000").click(function() {
    myPlaylist.option("addTime", 2000);
  });

  // Option: removeTime

  $("#playlist-option-removeTime-0").click(function() {
    myPlaylist.option("removeTime", 0);
  });
  $("#playlist-option-removeTime-fast").click(function() {
    myPlaylist.option("removeTime", "fast");
  });
  $("#playlist-option-removeTime-slow").click(function() {
    myPlaylist.option("removeTime", "slow");
  });
  $("#playlist-option-removeTime-2000").click(function() {
    myPlaylist.option("removeTime", 2000);
  });

  // Option: shuffleTime

  $("#playlist-option-shuffleTime-0").click(function() {
    myPlaylist.option("shuffleTime", 0);
  });
  $("#playlist-option-shuffleTime-fast").click(function() {
    myPlaylist.option("shuffleTime", "fast");
  });
  $("#playlist-option-shuffleTime-slow").click(function() {
    myPlaylist.option("shuffleTime", "slow");
  });
  $("#playlist-option-shuffleTime-2000").click(function() {
    myPlaylist.option("shuffleTime", 2000);
  });

  // Equivalent commands

  $("#playlist-equivalent-1-a").click(function() {
    myPlaylist.add({
      title:"Your Face",
      artist:"The Stark Palace",
      mp3:"http://www.jplayer.org/audio/mp3/TSP-05-Your_face.mp3",
      oga:"http://www.jplayer.org/audio/ogg/TSP-05-Your_face.ogg",
      poster: "http://www.jplayer.org/audio/poster/The_Stark_Palace_640x360.png"
    }, true);
  });

  $("#playlist-equivalent-1-b").click(function() {
    myPlaylist.add({
      title:"Your Face",
      artist:"The Stark Palace",
      mp3:"http://www.jplayer.org/audio/mp3/TSP-05-Your_face.mp3",
      oga:"http://www.jplayer.org/audio/ogg/TSP-05-Your_face.ogg",
      poster: "http://www.jplayer.org/audio/poster/The_Stark_Palace_640x360.png"
    });
    myPlaylist.play(-1);
  });

  // AVOID COMMANDS

  $("#playlist-avoid-1").click(function() {
    myPlaylist.remove(2); // Removes the 3rd item
    myPlaylist.remove(3); // Ignored unless removeTime=0: Where it removes the 4th item, which was originally the 5th item.
  });

document.getElementById("mongo").setAttribute("style", "");

});

