jQuery(document).ready(function(){
	jQuery(function() { //on DOM ready
		jQuery("#scroller").simplyScroll({
			autoMode: 'loop',
			speed: 2,
			frameRate: 24
		});
	});
});


		
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(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("#accordion").accordion({ header: 'dt', autoHeight: false });
  });



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


