//Shadowbox.init({    language: 'en',    players:  ['img','iframe']});





$(document).ready(function() {

	$("#promos").find("div").each(function() {
		if (this.id.substr(0,6) == "promo_") {
			var id = this.id;
			$(this).mouseover(function() {
				$(this).find("div").each(function() {
					if (this.id == id + "_lg") {
						$(this).show();
					}
				});
			});
			$(this).mouseout(function() {
				$(this).find("div").each(function() {
					if (this.id == id + "_lg") {
						$(this).hide();
					}
				});
			});			
		}
	});



	$("#div_service").find("input").each(function() {

		$(this).click(function() {

			if ( $("#" + this.id + ":checked").val() != undefined ) {

				$("#lbl_" + this.id).addClass("input-on");

			}

			else {

				$("#lbl_" + this.id).removeClass("input-on");

			}

		});

	});

	

	$("#id_name").focus(function() {

		$("#id_name").addClass("input-on");

		if ( $("#id_name").val() == "Your Name" ) {

			$("#id_name").attr("value", "");

		}

	});	

	$("#id_name").blur(function() {

		if ( $("#id_name").val() == "Your Name" || $("#id_name").val() == "" ) {

			$("#id_name").attr("value", "Your Name");

			$("#id_name").removeClass("input-on");

		}

	});

	

	$("#id_email").focus(function() {

		$("#id_email").addClass("input-on");

		if ( $("#id_email").val() == "Your E-mail address" ) {

			$("#id_email").attr("value", "");

		}

	});	

	$("#id_email").blur(function() {

		if ( $("#id_email").val() == "Your E-mail address" || $("#id_email").val() == "" ) {

			$("#id_email").attr("value", "Your E-mail address");

			$("#id_email").removeClass("input-on");

		}

	});

	

	$("#id_subject").focus(function() {

		$("#id_subject").addClass("input-on");

		if ( $("#id_subject").val() == "Message Subject" ) {

			$("#id_subject").attr("value", "");

		}

	});	

	$("#id_subject").blur(function() {

		if ( $("#id_subject").val() == "Message Subject" || $("#id_subject").val() == "" ) {

			$("#id_subject").attr("value", "Message Subject");

			$("#id_subject").removeClass("input-on");

		}

	});

	

	$("#id_message").focus(function() {

		$("#id_message").addClass("input-on");

		if ( $("#id_message").val() == "Enter your Message" ) {

			$("#id_message").attr("value", "");

		}

	});	

	$("#id_message").blur(function() {

		if ( $("#id_message").val() == "Enter your Message" || $("#id_message").val() == "" ) {

			$("#id_message").attr("value", "Enter your Message");

			$("#id_message").removeClass("input-on");

		}

	});

});