if (document.cookie.search(/(; ?|^)agreeConfirmed=1( ?;|$)/) == -1) {
	var mainText = "<h1>DISCLAIMER</h1><p>If you are interested in viewing information about our past results and testimonials about us, please read and acknowledge the information below. The information in this section contains information about our past results, testimonials about us, and statements regarding the quality of our legal services. The information has not been reviewed or approved by The Florida Bar. </p><p><strong>You should know that: </strong></p>";
	var cbText1 = "The facts and circumstances of your case may differ from the matters in which results and testimonials have been provided.";
	var cbText2 = "All results of cases handled by us are not provided and not all clients have given testimonials.";
	var cbText3 = "The results and testimonials provided are not necessarily representative of results obtained by our firm or of the experience of all of our clients or others with us. Every case is different, and each client’s case must be evaluated and handled on its own merits.";
	var yesText = "I acknowledge that I have read and understand the above information and would like to view the information.";
	var noText = "I do not want to view the information.";
	var alertText = "You cannot view the information unless you are agreed to all the terms of this disclaimer and check the corresponding checkboxes.";

	if (navigator.userAgent.toLowerCase().indexOf('iphone')!=-1) {
		var mainStyle = 'position:relative;';
		var innerStyle = 'position:relative;';
	} else {
		var mainStyle = 'position: fixed; left: 20%; right: 20%; top: 10%; bottom: 10%;';
		var innerStyle = 'position: absolute; top: 10px; left: 0; right: 0; bottom: 10px; overflow: auto;';
	}
	document.write('<div id="agreePopup" style="display:none; background: white; border: 10px solid black; -moz-border-radius: 20px; -webkit-border-radius: 20px; -khtml-border-radius: 20px; border-radius: 20px; box-shadow: 10px 10px 10px #888; -webkit-box-shadow: 10px 10px 10px #888; -moz-box-shadow: 10px 10px 10px #888888; filter:progid:DXImageTransform.Microsoft.DropShadow(color=\'#888888\',offX=\'10\',offY=\'10\'); padding: 10px 0; cursor: default; z-index: 3000; ' + mainStyle + '">');
	document.write('<div style="text-align: left; padding: 0px 10px; ' + innerStyle + '">');
	document.write(mainText);
	document.write('<fieldset style="border:none">');
	document.write('<p><input type="checkbox" id="cbAgree1"><label for="cbAgree1">' + cbText1 + '</label></p>');
	document.write('<p><input type="checkbox" id="cbAgree2"><label for="cbAgree2">' + cbText2 + '</label></p>');
	document.write('<p><input type="checkbox" id="cbAgree3"><label for="cbAgree3">' + cbText3 + '</label></p>');
	document.write('<div id="agreeAlert" style="display:none; color: red; background: #FFC; border: 5px solid #999; -moz-border-radius: 20px; -webkit-border-radius: 20px; -khtml-border-radius: 20px; border-radius: 20px; padding: 20px;">' + alertText + '</div>');

	document.write('<p><a id="agreeYes" href="javascript:void(0);" style="cursor: pointer">' + yesText + '</a></p>');
	document.write('<p><a id="agreeNo" href="javascript:void(0);" style="cursor: pointer">' + noText + '</a></p>');
	document.write('</fieldset></div></div>');
	
	$('#agreeYes').click(function() { 
		if (document.getElementById('cbAgree1').checked && document.getElementById('cbAgree2').checked && document.getElementById('cbAgree3').checked) {
			document.cookie = 'agreeConfirmed=1;path=/';
			$.unblockUI();
		} else {
			$('#agreeAlert').show();
		}
		return false; 
	});
	$('#agreeNo').click(function() { 
		location.href='/';
		return false; 
	});

	$(function(){
		if (navigator.userAgent.toLowerCase().indexOf('iphone')!=-1) {
			$('#agreePopup').css({position:'relative',left:'auto',top:'auto',right:'auto',bottom:'auto'});
			$('#agreePopup > DIV').css({position:'relative',overflow:'visible',bottom:'auto'});
		} else if (jQuery.browser.msie && Math.floor(jQuery.browser.version) <= 6) {
			$('#agreePopup').css({height:$(window).height()/100*80});
			$('#agreePopup > DIV').css({position:'static',height:$('#agreePopup').height()});
		}
		var styles = {width:'80%',top:'0',left:'0',margin:'20px 10%',height:'auto',position:'absolute',border:'none',background:'transparent'};
		$.blockUI({ message: $('#agreePopup'), css: styles, overlayCSS: { backgroundColor: '#DDD', opacity: 0.9 } });
	});
}
