
/* jFlow slideshow / promo controller */
$(document).ready(function(){

//	$("#myController").jFlow({
//		slides: "#promo-large",
//		width: "100%",
//		height: "300px",
//		duration: 100
//    });
	
	$('#promo-large').innerfade({
	        animationtype: 'fade',
	        speed: '4000',
	        timeout: 7000,
	        type: 'sequence',
	        containerheight: 'auto'
	    });
	    
	    
});

// gallery - lightbox plugin
$(function() {
	$('.gallery a').lightBox();
});
	
function validate(form) {

	if( $('#cfname').val() === "" || $('#cfemail').val() === "" || $('#cfcomments').val() === "" ) 
   {
       $('#message').html('Please fill out name, email and a message.');
       $('#message').show();
	  return false; 
   }
}

function slideshow() {
    window.open("http://www.boundarymedical.com/slideshow.html","OESlideshow","width=825,height=625",false);
}
