
$(document).ready(function(){
	// cycle plugin initalization
	// TONS of options and effects at:
	// http://malsup.com/jquery/cycle/
	$('div.slideshow').cycle({ 
		fx:     'fade', 
		speed:   600, 
		timeout: 3000, 
		next:   '.promo img', 
		pause:   1 
	});
	
	// gallery - lightbox plugin
	$(function() {
        $('.gallery1 .item a').lightBox();
    });
	
	// second gallery - lightbox plugin
	$(function() {
        $('.gallery2 .item a').lightBox();
    });
	
	// second gallery - lightbox plugin
	$(function() {
        $('a.blog-lightbox').lightBox();
    });
	
	$(".more").hide();
	$(".showmore").click(function(){
			$(".more").slideToggle("slow");
			$(".showmore .choices").toggle();
	});
	
});



/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
 */

$(document).ready(function() {
	$('.styleswitch').click(function()
	{
		switchStylestyle(this.getAttribute("rel"));
		return false;
	});
		var c = readCookie('style');
		if (c) switchStylestyle(c);
	});
	
	function switchStylestyle(styleName)
	{
		$('link[@rel*=style][title]').each(function(i)
	{
	this.disabled = true;
	if (this.getAttribute('title') == styleName) this.disabled = false;
	});
	createCookie('style', styleName, 365);
}

function searchGoogle(query)
{
	// change this to your website
	var yourSiteURL = "www.RunyonRomp.com";
	
	if(query != "")
	{
		// this will redirect the form to google using an advanced "site:" query
		// http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=136861
		window.location = "http://www.google.com/search?q=" + query + "+site%3A" + "http://www.RunyonRomp.com";
	}
	return false;
}
//

