- $('marquee').marquee().mouseover(function () {
- $(this).trigger('stop');
- }).mouseout(function () {
- $(this).trigger('start');
- $(this).data('drag', false);
- }).mousemove(function (event) {
- if ($(this).data('drag') == true) {
- this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
+ $('.sponsor-logos').cycle({timeout: 3000});
+
+ $('.widget-code').focus(
+ function(){
+ $(this).animate({rows: '11'}, 100, function(){
+ this.select();
+ $(this).click(function(){
+ this.select();
+ });
+ })
+
+ }
+ ).blur(
+ function(){
+ $(this).animate({rows: '1'}, 300, function(){
+ $(this).unbind('click');
+ })
+ }
+ );
+
+ $('.book-list-index').click(function(){
+ $('.book-list-show-index').hide('slow');
+ if($(this).parent().next('ul:not(:hidden)').length == 0){
+ $(this).parent().next('ul').toggle('slow');
+ }
+ return false;
+ });
+
+ // player for audiobooks
+
+ // event handlers for playing different formats
+ $('p.header span').click(function(){
+ if(this.className != "desc"){
+ $('.audiobook-list').hide();
+ $('p.header span.active').attr('class', '');
+ // we don't want to interact with "audiobook" label, just 'format' tabs
+ this.className = "active";
+ $("#"+$("p.header span.active").html().toLowerCase()+"-files").show();