/*
Bones Scripts File
Author: Eddie Machado

This file should contain any js scripts you want to add to the site.
Instead of calling it in the header or throwing it inside wp-head()
this file will be called automatically in the footer so as not to 
slow the page load.

*/

// as the page loads, cal these scripts
$(document).ready(function() {
    $("#jquery_jplayer_15").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_12-18.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_14").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_15',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_14").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_12-4.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_13").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_14',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });

    $("#jquery_jplayer_13").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_11-20.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_12").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_13',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_12").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_11-13.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_11").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_12',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });

    $("#jquery_jplayer_11").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_10-30.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_10").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_11',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_10").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_10-2.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_9").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_10',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_9").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_9-25.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_8").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_9',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });

    $("#jquery_jplayer_1").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/920A_TECH_WORK_6-27.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_2").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_1',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_2").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_7-10.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_1").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_2',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_3").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_7-24.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_2").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_3',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_4").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_7-31.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_5").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_4',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_5").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_8-7.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_6").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_5',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_6").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_8-14.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_7").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_6',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_7").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_8-28.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_8").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_7',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });
    
    $("#jquery_jplayer_8").jPlayer({
        ready: function () {
            $(this).jPlayer("setMedia", {
                mp3: "/wp-content/uploads/In_the_Workplace_9-18.mp3",
            });
        },
        ended: function (event) {
            $("#jquery_jplayer_1").jPlayer("play", 0);
        },
        swfPath: "/wp-content/themes/eddiemachado-bones-9f34c2f/library/js/",
        supplied: "mp3",
        cssSelectorAncestor: '#jp_interface_8',
        preload: 'none'
    })
    .bind($.jPlayer.event.play, function() {
            $(this).jPlayer("pauseOthers");
    });

}); /* end of as page load scripts */
