///
/// change the value of this to change the inital opacity 
/// of images with class ".fadeimg"
///
var opacity = 0.7;

$(document).ready(function(){
	
	
	$('.fadeimg').hover(function(){
		$(this).fadeTo('fast', 1.0); 
	},function(){
		$(this).fadeTo('fast', opacity); 
	});
	
	$('.fadeimg').fadeTo('fast', opacity);

	if($("#myController").length > 0) 
	{
		$("#myController").jFlow({
			slides: "#slides",
			controller: ".jFlowControl", // must be class, use . sign
			slideWrapper : "#jFlowSlide", // must be id, use # sign
			selectedWrapper: "jFlowSelected",  // just pure text, no sign
			easing: "swing",
			width: "840px",
			height: "220px",
			duration: 600,
			prev: ".jFlowPrev", // must be class, use . sign
			next: ".jFlowNext" // must be class, use . sign
		});
	}
});