
$(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() {
        $('.gallery3 .item a').lightBox();
    });
	
		// second gallery - lightbox plugin
	$(function() {
        $('.gallery4 .item a').lightBox();
    });
	
		// second gallery - lightbox plugin
	$(function() {
        $('.gallery5 .item a').lightBox();
    });
	
		// second gallery - lightbox plugin
	$(function() {
        $('.gallery6 .item a').lightBox();
    });
	
		// second gallery - lightbox plugin
	$(function() {
        $('.gallery7 .item a').lightBox();
    });
	
	// second gallery - lightbox plugin
	$(function() {
        $('a.blog-lightbox').lightBox();
    });
	
	$(".more").hide();
	$(".showmore").click(function(){
			$(".more").slideToggle("slow");
			$(".showmore .choices").toggle();
	});
	
	$(".more2").hide();
	$(".showmore2").click(function(){
			$(".more2").slideToggle("slow");
			$(".showmore2 .choices2").toggle();
	});
	
	$(".more3").hide();
	$(".showmore3").click(function(){
			$(".more3").slideToggle("slow");
			$(".showmore3 .choices3").toggle();
	});
	
		$(".more4").hide();
	$(".showmore4").click(function(){
			$(".more4").slideToggle("slow");
			$(".showmore4 .choices4").toggle();
	});
            $(".more5").hide();
	      $(".showmore5").click(function(){
			$(".more5").slideToggle("slow");
			$(".showmore5 .choices5").toggle();
	});
            $(".more6").hide();
	      $(".showmore6").click(function(){
			$(".more6").slideToggle("slow");
			$(".showmore6 .choices6").toggle();
	});
	     $(".more7").hide();
	      $(".showmore7").click(function(){
			$(".more7").slideToggle("slow");
			$(".showmore7 .choices7").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);
}


