$(document).ready(function(){

        $("select#weight-type").change(function () {
         
        var Type = $("select#weight-type").val();

		if(Type == "Kilograms"){
			$(".stones-pounds").hide();
			$(".kilograms").show();

		}
		
		if(Type == "Stones & Pounds"){
			$(".kilograms").hide();
			$(".stones-pounds").show();
		}
	
	 	}).change();
	 	
	 	$("select#height-type").change(function () {
         
        var Type = $("select#height-type").val();

		if(Type == "Centemeters"){
			$(".feet-inches").hide();
			$(".centemeters").show();

		}
		
		if(Type == "Feet & Inches"){
			$(".centemeters").hide();
			$(".feet-inches").show();
		}
	
	 	}).change();
	 	
	 	$("#contact").validate();

		$("#sForm").validate({
			rules:{  
					password: {
					required: true,
					minlength: 5
					},
					VerifyPassword: {
					required: true,
					minlength: 5,
					equalTo: "#password"
					}
				},
				messages: {
					
					password: {
					required: "Please provide a password",
					minlength: "Your password must be at least 5 characters long"
					},
					VerifyPassword: {
					required: "Please provide a password",
					minlength: "Your password must be at least 5 characters long",
					equalTo: "Please enter the same password as above"
					}
				}
				
			});
			
	// Tips & Tutorials Lightbox!
	$('a[@rel*=L-Press-Ups-For-Chest-And-Arms]').lightBox();
	$('a[@rel*=L-Chest-Press-For-Chest]').lightBox();

});












