$(document).ready(function(){		
	$("#measure").click(function(){
		$('#overlay').overlay().load();
	});
	$("#overlay").overlay({top: 'center', expose: '#333'});	
	
	/* Write out overlay HTML */
	$("#overlay").append("<h2>Measuring for an Eye Patch</h2>");
	$("#overlay").append("<div id='overlay_description'></div>");
	
	$("#overlay_description").append("<p>Please follow the instructions below to determine which size eye patch will best accommodate your needs. Please make sure to measure carefully as eye patches are not returnable once the package has been opened.</p>");
	$("#overlay_description").append("<p><img src='/v/vspfiles/assets/images/Eye_Patch_Measurements_Large.jpg' width='500' align='left'>Using a tape measure, measure around your entire head, following the path of where the strap would rest. If you do not have a tape measure, use a piece of string or a belt to measure around your entire head, then use a ruler to determine the total length. Use this circumference measurement to determine which eyepatch would fit you best.</p>");
	$("#overlay_description").append("<p>Please note that due to the velcro closure, you may be able to fit two sizes. For example, if you measure a 22 inch circumference, you could fit a Medium or Large patch. The best choice would be the Large, as your measurement falls in the middle of the Large range.</p>");
	$("#overlay_description").append("<p>The diagram shows the eye patch with dimensions for both adult and child patches.</p>");
	
	$("#overlay").append("<p id='disclaimer'></p>");
	$("#disclaimer").append("&copy; Copyright 2009 Erickson Labs Northwest, LLC");
	
});