$(document).ready(function() {
$("#commentform").validate();

$(".more").toggle(function(){
$(this).addClass("active");
$(this).text("hide info");
}, function () {
$(this).removeClass("active");
$(this).text("more info");
});

$(".more").click(function(){
$(this).next(".moretextdiv").slideToggle("fast");
});
$(".showmore").toggle(function(){
$(this).addClass("active");
$(this).text("show less");
}, function () {
$(this).removeClass("active");
$(this).text("show more");
});

$(".showmore").click(function(){
$("#extralist").slideToggle("fast");
});

});


function addmore(){
$(".moretextdiv").hide();
var morelink = "<a href=\"#\" class=\"more\">more info</a>";
$(morelink).insertBefore(".moretextdiv");
};

function rellist(){
$("#extralist").hide();
var morelink = "<p class=\"right\"><a href=\"#\" class=\"showmore\">show more</a></p>";
$(morelink).insertAfter("#related");
}; 

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17298945-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

function setclip(clipname){
$f("audio", "http://www.breakbeatpolice.com/scripts/flowplayer-3.2.5.swf", {
plugins: {
controls: {
url: 'flowplayer.controls-tube-3.2.3.swf',
height: 35,
width: 35,
bottom: 0,
background:'#fafafa',
buttonOverColor: '#be3235',
fullscreen: false,
scrubber:false,
time:false,
volume:false,
mute:false,
autoHide: false
}
},
clip: {
autoPlay: false,
url: clipname,
// optional: when playback starts close the first audio playback
onPause: function () {
this.stop();
},
onResume: function(clip) {
   this.play();
},	
onBeforeBegin: function() {
$f("player").close();
}
}
})
};

