  jQuery.noConflict(); //return $ function to prototype lib...
  jQuery().cycle.defaults.timeout = 9000 // change cycle plugin default timout to 10sec

  jQuery(document).ready(function() {
    jQuery('#featured_image').cycle('fade');
    jQuery('#post_image_container').cycle('fade');
    jQuery('.adunit').not(jQuery('#adunit_728x90')).cycle('fade')
  });

function processEmail() {
var errorMSG = 'Enter Email Address';
    if(jQuery('#email_address').val() != '' && jQuery('#email_address').val() != errorMSG) {
        jQuery.post('/newsletter', {email_address: jQuery('#email_address').val()}, function(data, textStatus){jQuery('#subscribe').html(data)}, 'html' ); 
    } else {
        jQuery('#email_address').val(errorMSG).bind('click', function(){jQuery('#email_address').val('').unbind('click')});    }
}


jQuery(function() { 
  jQuery('.nav_dropdown div').click(function() {
    jQuery('.nav_dropdown table').toggle();
  });
});

var GB_ANIMATION = true;
jQuery(document).ready(function(){
  jQuery("a.greybox").click(function(){
    var t = this.title || jQuery(this).text() || this.href;
    GB_show(t,this.href,600,800);
    return false;
  });
});


jQuery(document).ready(function () {
  jQuery('a[href^="http"]').not(jQuery('a[href*="smoothjazznewyork.com"]')).not(jQuery('a[href*="localhost"]')).not(jQuery('a[href*="127.0.0.1"]')).add(jQuery('a[href*="store.smoothjazznewyork.com"]')).attr({target: '_new'});
});


// var wimpyWindow;
// var winOpen=0;
// function wimpyPopPlayer(wimpyPopPage,theWidth,theHeight) {
//   wimpyWindow = window.open(wimpyPopPage,'wimpyMP3player','width='+theWidth+',height='+theHeight);
//   winOpen=1;
// }
// function wimpyPopPlayerWithFile(wimpyPopPage,initialFile,theWidth,theHeight) {
//   wimpyWindow = window.open(wimpyPopPage+'?theFile='+initialFile,'wimpyMP3player','width='+theWidth+',height='+theHeight);
//   winOpen=1;
// }
// function wimpyIsOpen(){
//   if (winOpen==1){
//     if (wimpyWindow.closed){
//       return false;
//     } else {
//       return true;
//     }
//   } else {
//     return false;
//   }
// }
// function wimpyPopAndPlay(theFile, theArtist, theTitle, graphicURL, hotlinkURL){
//   if(wimpyIsOpen()){
//     wimpyWindow.wimpy_loadAndPlay(theFile, theArtist, theTitle, graphicURL, hotlinkURL);
//   } else {
//     wimpyPopPlayerWithFile('readme_wimpy_mp3_js_example7-popup.html',theFile,'480','140');
//   }
// }