$(document).ready(function(){
		
// SHOW SEARCH

// hides the search bar on page load
$('#searchBar').hide();

// toggles the search bar down/up
$("#searchBttn").click(function () {
      $("#searchBar").slideToggle("fast");
    });

// DRUMS SECTION 

// shows the features content box on page load.
$('#features').show();

// shows the content box on clicking the features link.
// hides any other visible box.
  $('a.features').click(function() {
    $('#features').show('slow');
	$('#sizes').slideUp('fast');
	$('#kits').slideUp('fast');
	$('#colors').slideUp('fast');
	$('#artists').slideUp('fast');
	$('#media').slideUp('fast');
    return false;
  });
  
// hides the sizes content box on page load.
$('#sizes').hide();
  
// shows the content box on clicking the sizes link.
// hides any other visible box.
  $('a.sizes').click(function() {
	$('#sizes').show('slow');
	$('#features').slideUp('fast');
	$('#kits').slideUp('fast');
	$('#colors').slideUp('fast');
	$('#artists').slideUp('fast');
	$('#media').slideUp('fast');
    return false;
  });
  
 // hides the kits content box on page load.
$('#kits').hide();
 
// shows the content box on clicking the kits link.
// hides any other visible box.
  $('a.kits').click(function() {
    $('#kits').show('slow');
	$('#features').slideUp('fast');
	$('#sizes').slideUp('fast');
	$('#colors').slideUp('fast');
	$('#artists').slideUp('fast');
	$('#media').slideUp('fast');
    return false;
  });
 
 // hides the colors content box on page load.
 $('#colors').hide();
 
// shows the content box on clicking the colors link.
// hides any other visible box.
  $('a.colors').click(function() {
    $('#colors').show('slow');
	$('#features').slideUp('fast');
	$('#sizes').slideUp('fast');
	$('#kits').slideUp('fast');
	$('#artists').slideUp('fast');
	$('#media').slideUp('fast');
    return false;
  });
  
 // hides the artists content box on page load.
  $('#artists').hide();
 
// shows the content box on clicking the artists link.
// hides any other visible box.
  $('a.artists').click(function() {
    $('#artists').show('slow');
	$('#features').slideUp('fast');
	$('#sizes').slideUp('fast');
	$('#kits').slideUp('fast');
	$('#colors').slideUp('fast');
	$('#media').slideUp('fast');
    return false;
  });
  
 // hides the media content box on page load.
  $('#media').hide();
 
// shows the content box on clicking the artists link.
// hides any other visible box.
  $('a.media').click(function() {
    $('#media').show('slow');
	$('#features').slideUp('fast');
	$('#sizes').slideUp('fast');
	$('#kits').slideUp('fast');
	$('#colors').slideUp('fast');
	$('#artists').slideUp('fast');
    return false;
  });


// News

// shows the pressreleases content box on page load.
//$('#pressreleases').show();
$('.showPress').show();
$('.hidePress').hide();

// shows the content box on clicking the pressreleases link.
// hides any other visible box.
 $('a.pressreleases').click(function() {
	$('#pressreleases').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#artistsnews').slideUp('fast');
    return false;
  });
  
// hides the newsfeatures content box on page load.
$('#newsfeatures').hide();
$('.showFeatures').show();
  
// shows the content box on clicking the newsfeatures link.
// hides any other visible box.
  $('a.newsfeatures').click(function() {
	$('#newsfeatures').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#artistsnews').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });
  
 // hides the magazine content box on page load.
$('#magazine').hide();
$('.showMagazine').show();

  
// shows the content box on clicking the magazine link.
// hides any other visible box.
 $('a.magazine').click(function() {
	$('#magazine').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#artistsnews').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });
  
  // hides the events content box on page load.
$('#events').hide();
$('.showEvents').show();
  
// shows the content box on clicking the events link.
// hides any other visible box.
 $('a.events').click(function() {
	$('#events').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#artistsnews').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });
  
  // hides the newsflashes content box on page load.
$('#newsflashes').hide();
$('.showFlashes').show();  
  
// shows the content box on clicking the newsflashes link.
// hides any other visible box.
  $('a.newsflashes').click(function() {
	$('#newsflashes').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#artistsnews').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });
  
  // hides the articles content box on page load.
$('#articles').hide();
$('.showArticles').show();

// shows the content box on clicking the articles link.
// hides any other visible box.
 $('a.articles').click(function() {
	$('#articles').show('slow');
	$('#reviews').slideUp('fast');
	$('#artistsnews').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });

  // hides the reviews content box on page load.
$('#reviews').hide();
$('.showReviews').show();
  
// shows the content box on clicking the reviews link.
// hides any other visible box.
  $('a.reviews').click(function() {
	$('#reviews').show('slow');
	$('#artistsnews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });
  
  // hides the artistsnews content box on page load.
$('#artistsnews').hide();
$('.showArtists').show();

// shows the content box on clicking the artistsnews link.
// hides any other visible box.
  $('a.artistsnews').click(function() {
	$('#artistsnews').show('slow');
	$('#reviews').slideUp('fast');
	$('#articles').slideUp('fast');
	$('#newsflashes').slideUp('fast');
	$('#events').slideUp('fast');
	$('#magazine').slideUp('fast');
	$('#newsfeatures').slideUp('fast');
	$('#pressreleases').slideUp('fast');
    return false;
  });


// Artist Detail Drum Kit Grow

$('#setupLinkShrink').hide();
$('img.drumsLegend').attr({ 
          width: "0px",
          height: "0px"
          });


$("a.setupEnlarge").click(function () {
	$("#setup").animate({ 
        width: "490px"
      }, 1000 );
    $("img.drums").animate({ 
        width: "300px"
      }, 1000 );
    
    $('img.drumsLegend').animate({ 
        width: "170px",
        height: "200px"
      }, 1000 );

    $('#setupLinkShrink').show('fast');
    $('#setupLinkEnlarge').hide('fast');
     });
     
 
     
$("a.setupShrink").click(function () {
	$("#setup, img.drums").animate({ 
        width: "150px"
      }, 1000 );
    $('img.drumsLegend').animate({ 
        width: "0%",
        height: "0%"
      }, 1000 );

    $('#setupLinkShrink').hide('fast');
    $('#setupLinkEnlarge').show('fast');
     });

     

});




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function popup(img,x,y,name) {

  // path, width and height as arguments
  var msgWindow = window.open('','','Width=' + x + ',Height=' + y + 'resizable=no,scrollbars=auto,menubar=no,statusbar=no,toolbar=no');
  var page='';
  msgWindow.document.open();
  msgWindow.document.write("<HTML><HEAD><TITLE>");
  msgWindow.document.write(name);
  msgWindow.document.write("</TITLE><style type=\"text/css\">@import \"css/base.css\"; /* basic formatting */ @import \"css/layout.css\"; /* layout formatting */</style></head><BODY BGCOLOR=FFFFFF text=000000 link=000000 alink=000000 vlink=000000 marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>");
  msgWindow.document.write("<div style=\" align: center;\"><div id=\"featureNav\" style=\"width:100%;\"><ul><li><a href=\"javascript:window.close();\">close window</a></li></ul></div><br /><br /><TABLE width=100% border=0 cellspacing=0 cellpadding=0 height=100%><TR><TD align=center valign=middle><IMG SRC="+img+" border=1></TD></TR></TABLE></BODY></HTML>");
  msgWindow.document.close();

}


/// for popup for mailing list

function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}