//
/*
|=================================================================|
| 
| SATIN BOW THEME >> CC4 
| 
|=================================================================|
|
| Theme Name: SATIN BOW CC4 >> CubeCart V4.3.7 
| Theme URL: FlairConcepts.com http://flairconcepts.com 
| Theme Author Email: support@flairconcepts.com
| Author: FlairConcepts 
| Author URL: http://flairconcepts.com 
| Version: 1.0
| Creation Date: October 2009
| Forum Nickname Details: Andrea aka FlairConcepts
| Copyright: International and Domestic Copyright Laws apply 
| These notes and all Copyright hyperlinks MUST stay intact for verification and legal use
| 
| COPYRIGHT REMOVAL IS PROHIBITED UNLESS A LICENCE HAS BEEN PURCHASED
|
=================================================================|*/
jQuery(function($) {
	$('input[type="image"]').hover(
		function () { $(this).attr("src", $(this).attr("src").split('-off').join('-on')); },
		function () { $(this).attr("src", $(this).attr("src").split('-on').join('-off')); }
	);

$("img.buttons").hover(
function () { this.src = this.src.replace("_off","_on");
},
function () { this.src = this.src.replace("_on","_off");
}
);
////////end buttons/////

 $('#slideshow').slideshow({
         timeout: 5000,
         fadetime:3000,
         type: 'sequence'
     });

////////end slideshow/////


$("a.group").fancybox({ 
                'overlayShow' : true, 
                'zoomSpeedIn' : 600, 
                'zoomSpeedOut' : 500 
     }); 


//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("h2.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});


});//end document ready

