jQuery(document).ready(function(){
	jQuery(function() { //on DOM ready
		jQuery("#scroller").simplyScroll({
			autoMode: 'loop'

		});
	});
});


		
jQuery(document).ready(function(){
jQuery('#sliderContent').cycle({ 
fx:     'scrollHorz', 
speed:   500, 
timeout: 10000, 
next:   '#next', 
prev:   '#prev',
pause: 1

});
});





// this tells jquery to run the function below once the DOM is ready
jQuery(document).ready(function() {

// choose text for the show/hide link
var showText="Read more [+]";
var hideText="Read less [-]";

// create the toggle link
jQuery("#hide_this").after("<p><a href='#' id='toggle_link'>"+showText+"</a></p>");

// hide the content
jQuery('#hide_this').hide();

// capture clicks on the newly created link
jQuery('a#toggle_link').click(function() {

// change the link text
if (jQuery('a#toggle_link').text()==showText) {
jQuery('a#toggle_link').text(hideText);
}
else {
jQuery('a#toggle_link').text(showText);
}

// toggle the display
jQuery('#hide_this').slideToggle('slow');

// return false so any link destination is not followed
return false;
});

});


// this tells jquery to run the function below once the DOM is ready
jQuery(document).ready(function() {

// choose text for the show/hide link
var showText="Read more [+]";
var hideText="Read less [-]";

// create the toggle link
jQuery("#hide_this2").after("<p><a href='#' id='toggle_link2'>"+showText+"</a></p>");

// hide the content
jQuery('#hide_this2').hide();

// capture clicks on the newly created link
jQuery('a#toggle_link2').click(function() {

// change the link text
if (jQuery('a#toggle_link2').text()==showText) {
jQuery('a#toggle_link2').text(hideText);
}
else {
jQuery('a#toggle_link2').text(showText);
}

// toggle the display
jQuery('#hide_this2').slideToggle('slow');

// return false so any link destination is not followed
return false;
});

});




jQuery(document).ready(function(){
jQuery(".block-link").hide();
jQuery("#home .block-sm").hover(
function(){
jQuery(this).find(".block-link").fadeIn('fast');
},
function() {
jQuery(this).find(".block-link").fadeOut('fast');
});
});



jQuery(document).ready(function(){
jQuery("#winegala").click(function(){
    	window.location=jQuery(this).find("a").attr("href");return false;
	});
jQuery("#winegala").css({"cursor":"pointer"});
});

jQuery(document).ready(function(){
jQuery("#tickets").click(function(){
    	window.location=jQuery(this).find("a").attr("href");return false;
	});
jQuery("#tickets").css({"cursor":"pointer"});
});


jQuery(document).ready( function() {
jQuery('A[rel="external"]').addClass("external").click( function() {
window.open( jQuery(this).attr('href') );
return false;
});
});


jQuery(function() {
jQuery('.gallery a').lightBox(); // Select all links in object with gallery ID
});

jQuery(function() {
jQuery('a[rel="lightbox"]').lightBox(); // Select all links in object with gallery ID
});

jQuery(document).ready( function() {
jQuery('.galleryid-433 a, .galleryid-433 img').attr('title', '(C) 2008 WaynesView Photography');
});

jQuery(document).ready( function() {
jQuery('.galleryid-344 a, .galleryid-344 img').attr('title', '(C) 2008 WaynesView Photography');
});


jQuery(document).ready(function() 
{
   // Match all link elements with href attributes within the content div
   jQuery('.tooltip').qtip({

   style: { 
      width: 320,
      padding: 10,
      background: '#ffffff',
      textAlign: 'left',
      border: {
         width: 1,
         radius: 5,
         color: '#005282'
      }

   },
      content: '<h5>The membership offers: </h5><ul><li>Two (2) All-Access VIP Passes <em>except the Wine Gala</em></li><li>Preferred Seating</li><li>A listing in the Festival Program Souvenir Book</li></ul><p><strong>Price: $250.00</strong> <span>Add $1.50 for shipping &amp; handling</span></p>' // Give it some content, in this case a simple string

   });

});


jQuery(document).ready(function(){
jQuery("#myaccordion").accordion({ header: 'dt', autoHeight: false });
  });



  
jQuery(document).ready(function(){
jQuery('#defaultCountdown').countdown({until: new Date(2010, 9 - 1, 21), format: 'odH'}); 
});


jQuery(document).ready(function() {
	jQuery('ul#cat-filter a').click(function() {
		jQuery(this).css('outline','none');
		jQuery('ul#cat-filter .cat-link').removeClass('cat-link');
		jQuery(this).parent().addClass('cat-link');
		
		var filterVal = jQuery(this).text().toLowerCase().replace(' ','-');
				
		if(filterVal == 'entire-program') {
			jQuery('#cat-folio > div.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			
			jQuery('#cat-folio > div').each(function() {
				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hidden');
				} else {
					jQuery(this).fadeIn('normal').removeClass('hidden');
				}
			});
		}
		
		return false;
	});
});

jQuery(document).ready(function(){
jQuery('#home .entry:last-child').css('margin-left', '20px'); 
});

jQuery(document).ready(function(){
jQuery('#home #post-2046 .btn:last').hide(); 
});

//jQuery(function() {
//    jQuery('.quickFlip').quickFlip();
//});

jQuery(window).load(function(){
jQuery(".card img").imgCenter({scaleToFit:false});
});

jQuery(window).load(function(){
jQuery("#home .entry .thumb img").imgCenter({scaleToFit:true});
});
