function uniqid()
          {
          var newDate = new Date;
          return newDate.getTime();
          }

$(document).ready(function(){

	 	 $(".eyesImg").click(function () {
		 var $eyesID = $(this).attr('alt');  
		$(".eyesImg").css("background-color","#ffffff");
		$(this).css("background-color","#ccffff");
		 $('#txtEyes').val($eyesID);
		$("#btnPreview").click();
	   });

	 	 $(".noseImg").click(function () {
		 var $noseID = $(this).attr('alt');  
		$(".noseImg").css("background-color","#ffffff");
		$(this).css("background-color","#ccffff");
		 $('#txtNose').val($noseID);
		$("#btnPreview").click();
	   });

	 	 $(".mouthImg").click(function () {
		 var $mouthID = $(this).attr('alt');  
		$(".mouthImg").css("background-color","#ffffff");
		$(this).css("background-color","#ccffff");
		 $('#txtMouth').val($mouthID);
		$("#btnPreview").click();
	   });

			 $(".upd").change(function () {
				$("#btnPreview").click();
			 });

			 $("#btnPreview").click(function () {
				$(".smlEyesLayer").css("background", "url(smallparts/eyes" + $("#txtEyes").val() + ".png)");
				$(".EyesLayer").css("background", "url(mediumparts/eyes" + $("#txtEyes").val() + ".png)");
				$(".smlMouthLayer").css("background", "url(smallparts/mouth" + $("#txtMouth").val() + ".png)");
				$(".MouthLayer").css("background", "url(mediumparts/mouth" + $("#txtMouth").val() + ".png)");
				$(".smlNoseLayer").css("background", "url(smallparts/nose" + $("#txtNose").val() + ".png)");
				$(".NoseLayer").css("background", "url(mediumparts/nose" + $("#txtNose").val() + ".png)");
			});
			 $(".ZoomLayer").click(function () {
				 $("#avPreview").hide();
				 $("#shirtPreview").show();
			});
			 $(".smlZoomLayer").click(function () {
				 $("#avPreview").show();
				 $("#shirtPreview").hide();
			});

			$("#btnPreview").click();
		});

