$(function(){
	var settings1 = {
		tl: { radius: 0 },
		tr: { radius: 0 },
 		bl: { radius: 40 },
		br: { radius: 0 },
 		antiAlias: true
 } 
curvyCorners(settings1,'.leftContent');
curvyCorners(settings1,'.bottomLeft');
	var settings2 = {
		tl: { radius: 0 },
		tr: { radius: 40 },
 		bl: { radius: 0 },
		br: { radius: 40 },
 		antiAlias: true
 } 
curvyCorners(settings2,'.rightContent');
	var settings3 ={
		tl: { radius: 0 },
		tr: { radius: 40 },
 		bl: { radius: 40 },
		br: { radius: 40 },
 		antiAlias: true
	}
curvyCorners(settings3,'.centerContent');
		var settings4 ={
		tl: { radius: 0 },
		tr: { radius: 0 },
 		bl: { radius: 0 },
		br: { radius: 40 },
 		antiAlias: true
	}
curvyCorners(settings4,'.bottomRight');
	var settings5 ={
		tl: { radius: 40 },
		tr: { radius: 40 },
 		bl: { radius: 40 },
		br: { radius: 40 },
 		antiAlias: true
	}
	curvyCorners(settings5,'.modalBox');
$('.resourceThumbnail').click(function(){
	$('#overlay').show();
	$('#modalCaseStudy').show();	
});
$('#overlay,.closeModal').bind('click',function(){
	$('#modalCaseStudy').hide();
	$('#overlay').hide();
});
$('#downloadDocs').submit(function(){
	//alert("here");
	var strError = "";
	var fName = $('#fName').val();
	//alert(fName);
	//alert(fIsText(fName));
	if(fIsText(fName) == false){
		strError += "Please enter a valid First Name.\r\n";
	}

	var lName = $('#lName').val();
	if(fIsText(lName) == false){
		strError += "Please enter a valid Last Name.\r\n";
	}
		//alert(strError);
	var email = $('#email').val();
	if(fVerifyEmail(email) == false){
		strError += "Please enter a valid Email Address.\r\n";
	}
	if(strError != ""){
		alert(strError);
		return false;
	} else {
		return true;
	}
	return false;
});

});
