var maxQueueSize = 2;
var queueSize = 0;
var logouploadlimit="";
var theLogoCount="";

this.countLogos = function(){
theLogoCount = jQuery('.logo_uploaded').size();
theLogoCount=parseInt(theLogoCount);
if(theLogoCount == logouploadlimit){
jQuery("#logoUploadPanel").hide();
jQuery("#upload_choice").hide();
jQuery("#upload_max_reached").show();
}
};


///////////////////////////////////////////////// TOOLTIP /////////////////////////////////////////////////
this.tooltip = function(){	
	xOffset = 10;
	yOffset = 20;		
jQuery(".tooltip").hover(function(e){											  
	this.t = this.title;
	this.title = "";									  
	jQuery("body").append("<p id='tooltip'>"+ this.t +"</p>");
	jQuery("#tooltip")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px")
		.fadeIn("fast");		
},
function(){
	this.title = this.t;		
	jQuery("#tooltip").remove();
});	
jQuery(".tooltip").mousemove(function(e){
	jQuery("#tooltip")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px");
});			
};

this.tooltip2 = function(){	
	xOffset = 10;
	yOffset = 20;		
jQuery(".tooltip2").hover(function(e){											  
	this.t = this.title;
	this.title = "";									  
	jQuery("body").append("<p id='tooltip2'>"+ this.t +"</p>");
	jQuery("#tooltip2")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px")
		.fadeIn("fast");		
},
function(){
	this.title = this.t;		
	jQuery("#tooltip2").remove();
});	
jQuery(".tooltip2").mousemove(function(e){
	jQuery("#tooltip2")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px");
});			
};

///////////////////////////////////////////////// JQUERY /////////////////////////////////////////////////

jQuery(document).ready(function($){
								
///////////////////////////////////////////////// NEWSLETTER /////////////////////////////////////////////////

$('#frontendform').submit(function() {
  var url = $("#urlAjax").val()+"frontManage.php";
  if ($("#emailInput").val() == ""){
	  alert("Introduce un titulo de newsletter antes de guardar");
  }else{
	  $.ajax({
			type: "POST",
			url: url,
			data: "show=SaveIns&email="+$("#emailInput").val()+"&newsletter="+$("#newsletterHidden").val()+"&lista="+$("#listSuscribes").val(),
			beforeSend: function(objeto){
								 $("#resultado").html('<img  src="'+$("#loadingurl").val()+'" >');
			},
			success: function(datos){
				$("#resultado").html(datos);
			}
	  });
 }
	return false;
});

//////////////////////////////////////////////////////////////////////////////////////////////////

carpetbgX = '9px';
carpetbgY = '0px';

logouploadlimit='5';


$('form#frontendform').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
$('form#searchform').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
$('form#commentform').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
$('.wrap form').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
//$('form.jqtransform').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
$('form#rcrForm').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
$('form#rcrFormVinyl').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});
//$('form.wpsc_checkout_forms').jqTransform({imgPath:'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/img/'});


$("#colorselect").msDropDown();

///////////////////////////////////////////////// TOOLTIP /////////////////////////////////////////////////	
	
tooltip();	
tooltip2();	

///////////////////////////////////////////////// LOAD  IMAGES /////////////////////////////////////////////////

$("input:radio[name='pkgcbx']").change(function(){
											
$(".packagetype").removeAttr("checked");
$("#carpetloader").show();

if ($("input:radio[name='pkgcbx']:checked").val() == 'junior'){
	
	$('#carpetloader').animate({backgroundPosition: '9px '+carpetbgY+''})
	carpetbgX='9px';
	
	
	activePack ="junior";
	
	$(".customizer_gallery").hide();
	$("#junior_pics.customizer_gallery").show();
	$('#portableprice').html("$179");
	$('#professionalprice').html("$299");
	$('.bgd_portable_size').html("3x6");
	$('.carpet_portable_size').html("3x3");
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/package_junior.png",
				id: "productImage"
			});

} else if ($("input:radio[name='pkgcbx']:checked").val() == 'gold'){
	
	$('#carpetloader').animate({backgroundPosition: '-360px '+carpetbgY+''})
	carpetbgX='-360px';
	
	
	activePack ="gold";
	$(".customizer_gallery").hide();
	$("#gold_pics.customizer_gallery").show();
	$('#portableprice').html("$369");
	$('#professionalprice').html("$499");
	$('.bgd_portable_size').html("5x8");
	$('.carpet_portable_size').html("3x5");
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/package_gold.png",
				id: "productImage"
			});
	
	
} else if ($("input:radio[name='pkgcbx']:checked").val() == 'platinum'){
	
	$('#carpetloader').animate({backgroundPosition: '-740px '+carpetbgY+''})
	carpetbgX='-740px';
	
	
	activePack ="platinum";
	$(".customizer_gallery").hide();
	$("#platinum_pics.customizer_gallery").show();
	$('#portableprice').html("$499");
	$('#professionalprice').html("$629");
	$('.bgd_portable_size').html("7x8");
	$('.carpet_portable_size').html("3x7");
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/package_platinum.png",
				id: "productImage"
				});
	

} else if ($("input:radio[name='pkgcbx']:checked").val() == 'hollywood'){
	
	$('#carpetloader').animate({backgroundPosition: '-1120px '+carpetbgY+''})
	carpetbgX='-1120px';
	
	
	activePack ="holywood";
	$(".customizer_gallery").hide();
	$("#hollywood_pics.customizer_gallery").show();
	$('#portableprice').html("$699");
	$('#professionalprice').html("$949");
	$('.bgd_portable_size').html("10x8");
	$('.carpet_portable_size').html("3x10");
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/package_hollywood.png",
				id: "productImage"
		   });

}
});

///////////////////////////////////////////////// PORTABLE OR PROFESSIONAL /////////////////////////////////////////////////

$("input:radio[name='packagetype']").change(function(){
									   
if ($("input:radio[name='packagetype']:checked").val() == 'portable'){
	
	thenewprice=$('#portableprice').html();
	thenewprice=thenewprice.replace('$','');
	thenewprice=thenewprice.replace(',','');
	$('#total').val(thenewprice);

	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/portable/package_" +  $("input:radio[name='pkgcbx']:checked").val() + ".png",
				id: "productImage"
			});

} else if ($("input:radio[name='packagetype']:checked").val() == 'professional'){
	
	thenewprice=$('#professionalprice').html();
	thenewprice=thenewprice.replace('$','');
	thenewprice=thenewprice.replace(',','');
	$('#total').val(thenewprice);
	
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/professional/package_" +  $("input:radio[name='pkgcbx']:checked").val() + ".png",
				id: "productImage"
		   });

}
});
///////////////////////////////////////////////// COLORS /////////////////////////////////////////////////

$("input:radio[name='carpetcolor']").click(function(){
yposition=$(this).attr('title');
xposition=carpetbgX;
//$('#carpetloader').animate({backgroundPositionY: yposition})
$('#carpetloader').animate({backgroundPosition: ''+xposition+' '+yposition+''})
carpetbgY = yposition;

});


///////////////////////////////////////////////// LOGOS /////////////////////////////////////////////////

$('.selectlogos').change(function(){
		
		
		$('#upload_choice').show();
		logouploadlimit=$(this).val();
		if (logouploadlimit==4){
		totalprice=parseInt($('#total').val());
		$('#total').val(totalprice+10);
		} else if (logouploadlimit==5){
		totalprice=parseInt($('#total').val());
		$('#total').val(totalprice+20);
		}
		$("#totalprice").html('$'+$('#total').val());

		if (logouploadlimit > theLogoCount){
			$("#logoUploadPanel").show();
			$("#upload_choice").show();
			$("#upload_max_reached").hide();
		} else if (logouploadlimit <= theLogoCount){
			$("#logoUploadPanel").hide();
			$("#upload_choice").hide();
			$("#upload_max_reached").show();
		}


});

$('#customText').click(function(){
		$(this).val("");					
});



///////////////////////////////////////////////// LOGOBANK /////////////////////////////////////////////////

var div2 = $('div.horizontalscroll2'),
		   ul2 = $('.horizontalscroll2 ul'),
		   // unordered list's left margin
		   ulPadding2 = 15;

//Get menu width
var divWidth2 = div2.width();

//Remove scrollbars
div2.css({overflow: 'hidden'});

//Find last image container
var lastLi2 = ul2.find('li:last-child');

//When user move mouse over menu
div2.mousemove(function(e){

//As images are loaded ul width increases,
//so we recalculate it each time
var ulWidth2 = lastLi2[0].offsetLeft + lastLi2.outerWidth() + ulPadding2;

var left2 = (e.pageX - div2.offset().left) * (ulWidth2-divWidth2) / divWidth2;
div2.scrollLeft(left2);
});

///////////////////////////////////////////////// UPLOAD /////////////////////////////////////////////////

	$('#swfupload-control').swfupload({
	upload_url: "http://redcarpetrunway.com/wp-content/themes/redcarpet/upload-file.php",
	file_post_name: 'uploadfile',
	file_size_limit : "10 MB",
	file_types : "*.jpg;*.png;*.ai;*.eps;",
	file_types_description : "Image files",
	file_upload_limit : 5,
	flash_url : "http://redcarpetrunway.com/wp-content/themes/redcarpet/js/swfupload/swfupload.swf",
	button_image_url : 'http://redcarpetrunway.com/wp-content/themes/redcarpet/js/swfupload/wdp_buttons_upload_114x29.png',
	button_width : 114,
	button_height : 29,
	button_placeholder : $('#button')[0],
	debug: false
})
	.bind('fileQueued', function(event, file){
		var listitem='<li id="'+file.id+'" >'+
			'File: <em>'+file.name+'</em> ('+Math.round(file.size/1024)+' KB) <span class="progressvalue" ></span>'+
			'<div class="progressbar" ><div class="theprogress" ></div></div>'+
			'<p class="status" >Pending</p>'+
			'<span class="cancel" >&nbsp;</span>'+
			'</li>';
		$('#log').append(listitem);
		$('li#'+file.id+' .cancel').bind('click', function(){
			var swfu = $.swfupload.getInstance('#swfupload-control');
			swfu.cancelUpload(file.id);
			$('li#'+file.id).slideUp('fast');
		});
		// start the upload since it's queued
		$(this).swfupload('startUpload');
	})
	.bind('fileQueueError', function(event, file, errorCode, message){
		alert('Size of the file '+file.name+' is greater than limit');
	})
	.bind('fileDialogComplete', function(event, numFilesSelected, numFilesQueued){
		$('#queuestatus').text('Files Selected: '+numFilesSelected+' / Queued Files: '+numFilesQueued);
		if (numFilesSelected > file_upload_limit){
			$('#queuestatus').text('You can only upload '+file_upload_limit);
		}
	})
	.bind('uploadStart', function(event, file){
		$('#log li#'+file.id).find('p.status').text('Uploading...');
		$('#log li#'+file.id).find('span.progressvalue').text('0%');
		$('#log li#'+file.id).find('span.cancel').hide();
	})
	.bind('uploadProgress', function(event, file, bytesLoaded){
		//Show Progress
		var percentage=Math.round((bytesLoaded/file.size)*100);
		$('#log li#'+file.id).find('div.theprogress').css('width', percentage+'%');
		$('#log li#'+file.id).find('span.progressvalue').text(percentage+'%');
	})
	.bind('uploadSuccess', function(event, file, serverData){

		var item=$('#log li#'+file.id);
		item.find('div.theprogress').css('width', '100%');
		item.find('span.progressvalue').text('100%');
		var pathtofile='<a href="http://redcarpetrunway.com/logoupload/'+serverData+'" target="_blank" rel="lightbox[uploaded]" >view &raquo;</a>';
		item.addClass('success').find('p.status').html('Done!!! | '+pathtofile);
	$('#logos_list').append('<div class="customlogo_preview"><a class="deletelogo" href="#" title="'+serverData+'">delete</a><a target="_blank" rel="lightbox[logos]" href="http://redcarpetrunway.com/logoupload/'+ serverData + '"><img src="http://redcarpetrunway.com/logoupload/thumbs/th_'+ serverData + '" alt="'+serverData+'" class="img_logolist" width="80" height="80"/></a><input type="hidden" class="logo_uploaded" name="logo'+file.id+'" value="http://redcarpetrunway.com/logoupload/'+ serverData + '" /><input type="hidden" class="array_color" name="colorsuploaded[]" value="according to uploaded file"/><input type="hidden" class="array_text" name="textuploaded[]" value="according to uploaded file"/></div>');
	$('#logos_list').slideDown();
	//$('#rcrForm').append('<input type="hidden" class="logo_uploaded" name="logo'+file.id+'" value="http://redcarpetrunway.com/logoupload/'+ serverData + '" />');
	countLogos();
	})
	.bind('uploadComplete', function(event, file){
		// upload has completed, try the next one in the queue
		$(this).swfupload('startUpload');
	})

///////////////////////////////////////////////// DATE PICKER /////////////////////////////////////////////////

$("#dateEvent").datepicker({ minDate: +10 });
$("#delivery_date").datepicker({ minDate: +10 });
$("#carpetonly_date").datepicker({ minDate: +2 });
			
///////////////////////////////////////////////// FORM VALIDATION /////////////////////////////////////////////////

	$(".customform").validate({
				rules: {
					packagetype: "required",
					bgdcbx: "required",
					pkgcbx: "required",
					pkgcbx2: "required",
					carpetcolor:"required",
					eventtype:"required",
					special_width:"required",
					special_height:"required"
				},
				messages: {
					firstname: "Enter your firstname",
					lastname: "Enter your lastname",
					packagetype: "Please Choose a Package",
					pkgcbx: "Please Pick a Package",
					pkgcbx2: "Please Choose a size",
					bgdcbx: "Please Pick a Pattern For Your Backdrop",
					carpetcolor: "You must pick a color for your Carpet",
					eventtype: "You must select the type of your event",
					special_width:"Please enter a height",
					special_height:"Please enter a lenght"
				},
				errorPlacement: function(error, element) {
					if ( element.is(":radio") && !element.is("input[name=bgdcbx]"))
						error.appendTo( element.parent().parent().parent().parent());
					else if ( element.is(":checkbox") || element.is("select[name=eventtype]")  || element.is("select[name=state]"))
						error.appendTo ( element.parent().parent());
						else if ( element.is(":radio") && element.is("input[name=bgdcbx]"))
						error.appendTo ( $("#error_bgpattern"));
					else
						error.appendTo( element.parent());
				},
				submitHandler: function() {
				form.submit();
				},
				// set this class to error-labels to indicate valid fields
				success: function(label) {
					// set &nbsp; as text for IE
					label.html("&nbsp;").addClass("checked");
				}


				}
		);
	




///////////////////////////////////////////////// PROGRESS /////////////////////////////////////////////////

$('#step1_to_step0_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep1').addClass('currentStep');
});
$('#step2_to_step1_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep1').addClass('currentStep');
});
$('#step3_to_step2_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep1').addClass('currentStep');
});
$('#step4_to_step3_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep2').addClass('currentStep');
});
$('#step5_to_step4_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep4').addClass('currentStep');
});
$('#step6_to_step5_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep5').addClass('currentStep');
});
$('#step7_to_step6_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep6').addClass('currentStep');
});
$('#step8_to_step7_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep7').addClass('currentStep');
});
$('#step9_to_step8_btn').click(function() {
$('#progress ul li').removeClass('currentStep');
$('#progressStep8').addClass('currentStep');
});


///////////////////////////////////////////////// STEP BY STEP FORM /////////////////////////////////////////////////
			
			  var step0 = $('#step0');  
			  var step1 = $('#step1');  
			  var step2 = $('#step2');  
			  var step3 = $('#step3');  
			  var step4 = $('#step4');  
			  var step5 = $('#step5');  
			  var step6 = $('#step6');  
			  var step7 = $('#step7');  
			  var step8 = $('#step8');  

			  $('#step1').hide();  
			  $('#step2').hide();  
			  $('#step3').hide();  
			  $('#step4').hide();  
			  $('#step5').hide();  
			  $('#step6').hide();  
			  $('#step7').hide();  
			  $('#step8').hide();  

			  
			  $('#step0').show();  
			  
				function step0_validator(){
				  if($(".pkg_radio").valid()){
					  $("#content_checklist0").html($("input[name=pkgcbx]:checked").val());
					 return true;
				  }else{
				   return false;
				  }
				}

				function step1_validator(){
				  if($(".packagetype").valid()){
					  $("#content_checklist1").html($("input[name=packagetype]:checked").val());
					 return true;
				  }else{
				   return false;
				  }
				}

				function step2_validator(){
				  if($("#dateEvent").valid()){
					  $("#content_checklist2").html($("input[name=dateEvent]").val());
					 return true;
				  }else{
				   return false;
				  }
				}
				
				function step3_validator(){
				  if($(".bgd_radio").valid()){
					  $("#content_checklist3").html($("input[name=bgdcbx]:checked").val());
					 return true;
				 }else{
				   return false;
				  }
				}
				function step4_validator(){
				  if($(".carpet_radio").valid()){
					  $("#content_checklist4").html($("input[name=carpetcolor]:checked").val());
					 return true;
				 }else{
				   return false;
				  }
				}

				function step5_validator(){
				//  if($(".bgd_radio").valid()){
					  $("#content_checklist5quantity").html('<b>Number of Logos:' + $("#logo_number").val() + 
					 '</b>'
					 );
					 /* $("#content_checklist5uploads").html('<b>Custom Logo Design</b><br><b>Number of Logos:' + $("input[name=logo_number]").val() + 
					 '</b><br>Logo: ' + $("input[name=logobank]").val() + 
					 '<br>Text: ' + $("input[name=customText]").val()
					 );
					  $("#content_checklist5custom").html('<b>Custom Logo Design</b><br><b>Number of Logos:' + $("input[name=logo_number]").val() + 
					 '</b><br>Logo: ' + $("input[name=logobank]").val() + 
					 '<br>Text: ' + $("input[name=customText]").val()
					 );
					//  $("li#checklist_step5").slideDown();
					
					*/ 
					return true;
				//  }else{
				//   return false;
				//  }
				}
				
				function step6_validator(){
				if($("select[name=eventtype]").valid()){
					  $("#content_checklist6").html('Event:' + $("#eventtype").val());
							$('#progress ul li').removeClass('currentStep');
							$('#progressStep8').addClass('currentStep');
					 return true;
				  }else{
				  return false;
				  }
				}

				function step7_validator(){
					$("#totalprice").html('$'+$('#total').val());
				  if($("#firstname").valid() && $("#lastname").valid() && $("#phone").valid() && $("#email").valid() && $("#address").valid() && $("#city").valid() && $("#state").valid() && $("#zipcode").valid()){
					  $("#content_checklist7").html($("input[name=firstname]").val() + '  ' + $("input[name=lastname]").val() + '<br> Phone: ' + 
					  $("input[name=phone]").val() + '<br> Email: ' + $("input[name=email]").val() + '<br>' + 
					   $("input[name=address]").val() + '<br>' +
					   $("input[name=city]").val()  + ', ' + $("select[name=state]").val()  + ', ' + $("input[name=zipcode]").val()
					 );
					  $('.customlogo_preview').each(function(index) {
						$("#content_checklist8").append('<input type="hidden" name="logo_'+index+'" class="logo_uploaded" value="'+$('.logo_uploaded', this).val() +'" />');								
						$("#content_checklist8").append('<input type="hidden" name="color_'+index+'" class="logo_colors" value="'+$('.array_color',this).val() +'" />');								
						$("#content_checklist8").append('<input type="hidden" name="text_'+index+'" class="logo_text" value="'+$('.array_text', this).val() +'" />');								
					  });
					 return true;
				  }else{
				   return false;
				  }
				}
			  
				step0.bindStep(step1,{ 
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step1"){
							$('#progressStep2').addClass('currentStep');
							} else {
							$('#progressStep1').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },nextValidator: step0_validator
				  });  
				step1.bindStep(step2,{ 
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step2"){
							$('#progressStep3').addClass('currentStep');
							} else {
							$('#progressStep2').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },nextValidator: step1_validator
				  });  

				step2.bindStep(step3,{  
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step3"){
							$('#progressStep4').addClass('currentStep');
							} else {
							$('#progressStep3').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  }, nextValidator: step2_validator
				});  
				step3.bindStep(step4,{  
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step4"){
							$('#progressStep5').addClass('currentStep');
							} else {
							$('#progressStep4').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  } , nextValidator: step3_validator
				});  
				step4.bindStep(step5,{  
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step5"){
							$('#progressStep6').addClass('currentStep');
							} else {
							$('#progressStep5').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
					$('#customlogo').hide();
				  } , nextValidator: step4_validator
				});  
				step5.bindStep(step6,{  
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step6"){
							$('#progressStep7').addClass('currentStep');
							} else {
							$('#progressStep6').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  } ,
				   nextValidator: step5_validator
				});  
				step6.bindStep(step7,{ 
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step7"){
							$('#progressStep8').addClass('currentStep');
							} else {
							$('#progressStep7').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },
				   nextValidator: step6_validator
				});  
				step7.bindStep(step8,{ 
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step8"){
							$('#progressStep9').addClass('currentStep');
							} else {
							$('#progressStep8').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },
				   nextValidator: step7_validator
				});  


///////////////////////////////////////////////// CHECKLIST Page /////////////////////////////////////////////////

					$('#checklist. a.edit').click(function() {
						$('a#gotoChecklist').show();
						return false;
					});
					$('a#gotoChecklist').click(function() {
					$('.stepbystep').slideUp();  
					step8.slideDown(); 
					$(this).hide();
						   return false;
					});
					$('a#gotoStep0').click(function() {
					step8.slideUp();  
					step0.slideDown();  
						   return false;
					});

					$('a#gotoStep1').click(function() {
					step8.slideUp();  
					step1.slideDown();  
						   return false;
					});
					$('a#gotoStep2').click(function() {
					step8.slideUp();  
					step2.slideDown();  
						   return false;
					});
					$('a#gotoStep3').click(function() {
					step8.slideUp();  
					step3.slideDown();  
						   return false;
					});
					$('a#gotoStep4').click(function() {
					step8.slideUp();  
					step4.slideDown();  
						   return false;
					});
					$('a#gotoStep5').click(function() {
					step8.slideUp();  
					step5.slideDown();  
						   return false;
					});
					$('a#gotoStep6').click(function() {
					step8.slideUp();  
					step6.slideDown();  
						   return false;
					});
					$('a#gotoStep7').click(function() {
					step8.slideUp();  
					step7.slideDown();  
						   return false;
					});

//////////////

					$('#checklist.checklistVinyl a.edit').click(function() {
						$('a#gotoChecklist2').show();
						return false;
					});

					$('a#gotoChecklist2').click(function() {
					$('.stepbystep').slideUp();  
					step6_vinyl.slideDown(); 
					$(this).hide();
						   return false;
					});

					$('a#gotoStepVinyl0').click(function() {
					step6_vinyl.slideUp();  
					step0_vinyl.slideDown();  
						   return false;
					});

					$('a#gotoStepVinyl1').click(function() {
					step6_vinyl.slideUp();  
					step1_vinyl.slideDown();  
						   return false;
					});
					$('a#gotoStepVinyl2').click(function() {
					step6_vinyl.slideUp();  
					step2_vinyl.slideDown();  
						   return false;
					});
					$('a#gotoStepVinyl3').click(function() {
					step6_vinyl.slideUp();  
					step2_vinyl.slideDown();  
						   return false;
					});
					$('a#gotoStepVinyl4').click(function() {
					step6_vinyl.slideUp();  
					step3_vinyl.slideDown();  
						   return false;
					});
					$('a#gotoStepVinyl5').click(function() {
					step6_vinyl.slideUp();  
					step4_vinyl.slideDown();  
						   return false;
					});
					$('a#gotoStepVinyl6').click(function() {
					step6_vinyl.slideUp();  
					step5_vinyl.slideDown();  
						   return false;
					});



///////////////////////////////////////////////// CUSTOM COLORS /////////////////////////////////////////////////

$('#colorSelector1').ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
	$(colpkr).fadeIn(500);
	return false;
},
onHide: function (colpkr) {
	$(colpkr).fadeOut(500);
	return false;
},
onChange: function (hsb, hex, rgb) {
	$('#colorSelector1 div').css('backgroundColor', '#' + hex);
	$('#customColor1').val(hex);
}
});

$('#colorSelector2').ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
	$(colpkr).fadeIn(500);
	return false;
},
onHide: function (colpkr) {
	$(colpkr).fadeOut(500);
	return false;
},
onChange: function (hsb, hex, rgb) {
	$('#colorSelector2 div').css('backgroundColor', '#' + hex);
	$('#customColor2').val(hex);
}
});
$('#colorSelector3').ColorPicker({
color: '#ffffff',
onShow: function (colpkr) {
	$(colpkr).fadeIn(500);
	return false;
},
onHide: function (colpkr) {
	$(colpkr).fadeOut(500);
	return false;
},
onChange: function (hsb, hex, rgb) {
	$('#backdropvinyl').css('backgroundColor', '#' + hex);
	$('#colorSelector3 div').css('backgroundColor', '#' + hex);
	$('#customColor3').val(hex);
}
});

///////////////////////////////////////////////// Save CUSTOM LOGO /////////////////////////////////////////////////

$('a#savelogo').click(function(){
thelogoUrl = $("input:radio[name='logobank']:checked").val();
$('#logo_custom_list').append('<div class="customlogo_preview"><a class="deletelogo" href="#" title="'+thelogoUrl+'">delete</a><a target="_blank" rel="lightbox[logos]" href="http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/logobank/'+thelogoUrl +'.jpg"><img alt="'+thelogoUrl+'" src="http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/logobank/thumbs/'+thelogoUrl +'.jpg"  class="img_logolist" width="80" height="80"/></a><div class="customlogo_colors"><b>colors:</b><br><span class="color1" style="background-color:#'+ $("input[name=customColor1]").val() +'"></span><span class="color2" style="background-color:#'+ $("input[name=customColor2]").val() +'"></span></div><div class="customlogo_text"><b>text:</b><br>'+ $("input[name=customText]").val() +'<input type="hidden" class="array_text" name="array_text[]" value="'+ $("input[name=customText]").val() +'"/></div><input type="hidden" class="logo_uploaded" name="logo_'+thelogoUrl+'" value=http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/logobank/thumbs/'+thelogoUrl +'.jpg" /><input type="hidden" class="array_color" name="colors_'+thelogoUrl+'" value="#'+ $("input[name=customColor1]").val() +' - #'+ $("input[name=customColor2]").val() +'"/><input type="hidden" class="array_text" name="text_'+thelogoUrl+'" value="'+ $("input[name=customText]").val() +'"/></div>');
$('#logo_custom_list').slideDown();
countLogos();

});

$('a.deletelogo').livequery('click', function(event) { 
$(this).parent().remove();
countLogos();
		if (logouploadlimit > theLogoCount){
			$("#logoUploadPanel").show();
			$("#upload_choice").show();
			$("#upload_max_reached").hide();
		} else if (logouploadlimit <= theLogoCount){
			$("#logoUploadPanel").hide();
			$("#upload_choice").hide();
			$("#upload_max_reached").show();
		}

	return false; 
});


///////////////////////////////////////////////// UPLOAD /////////////////////////////////////////////////

$('a#uploadlogo_link').click(function() {
$('#customlogo').slideUp();
$('#uploadlogo').slideDown();
return false;
});

$('a#createlogo_link').click(function() {
$('#uploadlogo').slideUp();
$('#customlogo').slideDown();
return false;
});

$("input:radio[name='bgdcbx']").change(function(){
if ($(this).is(':checked')){
$(this).parent().parent().parent().parent().addClass('selected');
} else {
		$(this).parent().parent().parent().parent().removeClass('selected');

}
});

$("input:radio[name='logobank']").change(function(){
if ($(this).is(':checked')){
$(this).parent().parent().parent().addClass('selected');
} else {
		$(this).parent().parent().parent().removeClass('selected');

}
});

///////////////////////////////////////////////// EXPERTS /////////////////////////////////////////////////
$('a#authorbio').click(function() {

$(this).addClass('selected');
if ($('a#authorvideos').hasClass('selected')){
	$('a#authorvideos').removeClass('selected');
}
if ($('a#authorpics').hasClass('selected')){
	$('a#authorpics').removeClass('selected');
}
$('#box_expert_pics').slideUp();
$('#box_expert_videos').slideUp();
$('#box_expert_bio').slideDown();
return false;
});

$('a#authorpics').click(function() {
$(this).addClass('selected');
if ($('a#authorvideos').hasClass('selected')){
	$('a#authorvideos').removeClass('selected');
}
if ($('a#authorbio').hasClass('selected')){
	$('a#authorbio').removeClass('selected');
}
$('#box_expert_bio').slideUp();
$('#box_expert_videos').slideUp();
$('#box_expert_pics').slideDown();
return false;
});

$('a#authorvideos').click(function() {
$(this).addClass('selected');
if ($('a#authorpics').hasClass('selected')){
	$('a#authorpics').removeClass('selected');
}
if ($('a#authorbio').hasClass('selected')){
	$('a#authorbio').removeClass('selected');
}
$('#box_expert_pics').slideUp();
$('#box_expert_bio').slideUp();
$('#box_expert_videos').slideDown();
return false;
});


///////////////////////////////////////////////// Vinyl Only FORM /////////////////////////////////////////////////

			  var step0_vinyl = $('#step0_vinylonly');  
			  var step1_vinyl = $('#step1_vinylonly');  
			  var step2_vinyl = $('#step2_vinylonly');  
			  var step3_vinyl = $('#step3_vinylonly');  
			  var step4_vinyl = $('#step4_vinylonly');  
			  var step5_vinyl = $('#step5_vinylonly');  
			  var step6_vinyl = $('#step6_vinylonly');  

			  $('#step1_vinylonly').hide();  
			  $('#step2_vinylonly').hide();  
			  $('#step3_vinylonly').hide();  
			  $('#step4_vinylonly').hide();  
			  $('#step5_vinylonly').hide();  
			  $('#step6_vinylonly').hide();  
			 
			  $('#step0_vinylonly').show();  



				function step0_validator_vinyl(){
				  if($(".pkg_radio").valid() || ($("#special_width").valid() && $("#special_height").valid())){
					  $("#content_checklist0").html($("input[name=pkgcbx2]:checked").val());
					  $('#progress ul li').removeClass('currentStep');
					  $('#progressStep2').addClass('currentStep');
					//  $("li#checklist_step0").slideDown();
				   return true;
				  }else{
				   return false;
				  }
				}

				function step1_validator_vinyl(){
				  if($("#dateEvent").valid()){
					  $("#content_checklist1").html($("input[name=dateEvent]").val());
					  $('#progress ul li').removeClass('currentStep');
					  $('#progressStep3').addClass('currentStep');

					//  $("li#checklist_step2").slideDown();
					 return true;
				  }else{
				   return false;
				  }
				}

				function step2_validator_vinyl(){
				  if($(".bgd_radio").valid()){
					  $("#content_checklist2").html($("input[name=bgdcbx]:checked").val());
					  $("#content_checklist3").html('color:'+ $("#customColor3").val());
					//  $("li#checklist_step3").slideDown();
					 return true;
				 }else{
				   return false;
				  }
				}

				function step3_validator_vinyl(){
				//  if($(".bgd_radio").valid()){
					  $("#content_checklist4quantity").html('<b>Number of Logos:' + $("#logo_number").val() + 
					 '</b>'
					 );
					return true;
				//  }else{
				//   return false;
				//  }
				}
				
				function step4_validator_vinyl(){
				if($("select[name=eventtype]").valid()){
					  $("#content_checklist5").html('Event: ' + $("#eventtype").val() + '<br> Special Instructions: ' + $("#specialinstructions").val() );
					//  $("li#checklist_step6").slideDown();
					 return true;
				  }else{
				  return false;
				  }
				}

				function step5_validator_vinyl(){
				  if($("#firstname").valid() && $("#lastname").valid() && $("#phone").valid() && $("#email").valid() && $("#address").valid() && $("#city").valid() && $("#state").valid() && $("#zipcode").valid()){
					  $("#content_checklist6").html($("input[name=firstname]").val() + '  ' + $("input[name=lastname]").val() + '<br> Phone: ' + 
					  $("input[name=phone]").val() + '<br> Email: ' + $("input[name=email]").val() + '<br>' + 
					   $("input[name=address]").val() + '<br>' +
					   $("input[name=city]").val()  + ', ' + $("select[name=state]").val()  + ', ' + $("input[name=zipcode]").val()
					 );
					  $('.customlogo_preview').each(function(index) {
						$("#content_checklist7").append('<input type="hidden" name="logo_'+index+'" class="logo_uploaded" value="'+$('.logo_uploaded', this).val() +'" />');								
						$("#content_checklist7").append('<input type="hidden" name="color_'+index+'" class="logo_colors" value="'+$('.array_color',this).val() +'" />');								
						$("#content_checklist7").append('<input type="hidden" name="text_'+index+'" class="logo_text" value="'+$('.array_text', this).val() +'" />');								
					  });
					 
					// $("li#checklist_step7").slideDown();
					 return true;
				  }else{
				   return false;
				  }
				}
			  
				step0_vinyl.bindStep(step1_vinyl,{ 
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step1_vinylonly"){
							$('#progressStep2').addClass('currentStep');
							} else {
							$('#progressStep1').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },nextValidator: step0_validator_vinyl
				  });  

				step1_vinyl.bindStep(step2_vinyl,{ 
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step2_vinylonly"){
							$('#progressStep3').addClass('currentStep');
							} else {
							$('#progressStep2').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  },nextValidator: step1_validator_vinyl
				  });  

				step2_vinyl.bindStep(step3_vinyl,{  
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step3_vinylonly"){
							$('#progressStep4').addClass('currentStep');
							} else {
							$('#progressStep3').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
					$('#customlogo').hide();
				  }, nextValidator: step2_validator_vinyl
				});  
				step3_vinyl.bindStep(step4_vinyl,{  
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step5_vinylonly"){
							$('#progressStep6').addClass('currentStep');
							} else {
							$('#progressStep5').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  } , nextValidator: step3_validator_vinyl
				});  
				step4_vinyl.bindStep(step5_vinyl,{  
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step6_vinylonly"){
							$('#progressStep7').addClass('currentStep');
							} else {
							$('#progressStep6').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  } , nextValidator: step4_validator_vinyl
				});  
				step5_vinyl.bindStep(step6_vinyl,{  
				  nextBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btNext2.png',
				  prevBtn:'http://redcarpetrunway.com/wp-content/themes/redcarpet/images/btPrev2.png',
				  transition: function(currStep,nextStep){  
					currStep.slideUp('normal', function() {
							$('#progress ul li').removeClass('currentStep');
							if(nextStep.attr('id') == "step7_vinylonly"){
							$('#progressStep8').addClass('currentStep');
							} else {
							$('#progressStep7').addClass('currentStep');
							}
					});  
					nextStep.slideDown();  
				  } ,
				   nextValidator: step5_validator_vinyl
				});  



///////////////////////////////////////////////// LOAD  IMAGES /////////////////////////////////////////////////	

$("#rcrFormVinyl input:radio[name='pkgcbx2']").change(function(){
											
$(".packagetype").removeAttr("checked");
$("#carpetloader").show();

$("input[name='special_width']").val("");
$("input[name='special_height']").val("");


if ($("#rcrFormVinyl input:radio[name='pkgcbx2']:checked").val() == 'gold'){
	
	$('#carpetloader').animate({backgroundPosition: '-360px '+carpetbgY+''})
	carpetbgX='-360px';
	
	$('#backdropvinyl').animate({width: '126.8px', height:'229px',left: '126px',top:'9px'});
	
	
	$('#total').val(369);
	activePack ="gold";
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/vinyl/package_gold.png",
				id: "productImage"
			});
	
	
} else if ($("#rcrFormVinyl input:radio[name='pkgcbx2']:checked").val() == 'platinum'){
	
	$('#carpetloader').animate({backgroundPosition: '-740px '+carpetbgY+''})
	carpetbgX='-740px';
	
	$('#backdropvinyl').animate({width: '198.6px', height:'229px',left: '87px',top:'9px'});
	
	$('#total').val(499);
	activePack ="platinum";
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/vinyl/package_platinum.png",
				id: "productImage"
				});
	

} else if ($("#rcrFormVinyl input:radio[name='pkgcbx2']:checked").val() == 'hollywood'){
	
	$('#carpetloader').animate({backgroundPosition: '-1120px '+carpetbgY+''})
	carpetbgX='-1120px';
			
	$('#backdropvinyl').animate({width: '280px', height:'229px',left: '44px',top:'9px'});

	
	$('#total').val(699);
	activePack ="holywood";
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/vinyl/package_hollywood.png",
				id: "productImage"
		   });

}

if($("#rcrFormVinyl input[name='special_width']").val() != ""){
$('#size_warning').show();
} else {
$('#size_warning').hide();
}


});



///////////////////////////////////////////////// CUSTOM SIZE /////////////////////////////////////////////////
$(".specialsizeinput").focus(function() {
  $(".pkg_radio").removeAttr("checked");
  $(".pkg_cbx a.jqTransformRadio").removeClass('jqTransformChecked')
});


$("#rcrFormVinyl input.specialsizeinput").change(function(){

if($("#rcrFormVinyl input[name='special_width']").val() != ""){
$('#size_warning').show();
} else {
$('#size_warning').hide();
}

  //$(".packagetype").removeAttr("checked");

  
	$('#carpetloader').animate({backgroundPosition: '-1120px '+carpetbgY+''})
	carpetbgX='-1120px';
			
	$('#backdropvinyl').animate({width: '280px', height:'229px',left: '44px',top:'9px'});

	
	
	activePack ="custom";
	var img = new Image();
	$(img).load(function () {
	$('#loading_package').show();					  
	$(this).hide();
	$('#preview_img').html(this);
	$('#loading_package').hide();					  
	$(this).fadeIn();
	}).error(function () {
		// notify the user that the image could not be loaded
	}).attr({
				src: "http://redcarpetrunway.com/wp-content/themes/redcarpet/images/customizer/packages/vinyl/vinyl_blank.png",
				id: "productImage"
		   });
	
	if ($("#special_width").val() != ""){
	widthprice=parseInt($("#special_width").val());
	} else {
	widthprice=0;
	}
	if ($("#special_height").val() != ""){
	lenghtprice=parseInt($("#special_height").val());
	} else {
	lenghtprice=0;
	}
	
	theprice=7.50 * (widthprice * lenghtprice);
	
	$('#total').val(theprice);
	$("#totalprice").html('$'+$('#total').val());


});
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<!------------ CALLBACK -------------->


$("#rcrForm").submit(function(){

var str = $(this).serialize();

$.ajax({
type: "POST",
url: "http://redcarpetrunway.com/wp-content/themes/redcarpet/process_customizer.php",
data: str,
success: function(msg){

$("#note").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
$("#checklist").slideUp();	
$(".btFormContainer.prev").hide();	
$("#step8 #button.submit").hide();
$("#upload_choice").slideUp();
$("#upload_max_reached").slideUp();
$("#logos_list").slideUp();
$("#logo_custom_list").slideUp();

result = '<div class="notification_ok">Thank you! Your RCR Package is getting reviewed now<br/>You will receive on your email a copy of your request.<br/>We will design & create a digital mock-up within 24hr<br/><br/><a href="http://redcarpetrunway.com/eshop/">Go to the Store</a></div>';
$('#rcrForm')[0].reset();
}
else
{
result = msg;
}
$(this).html(result);
});
}
});

return false;

});
<!------------ END CALLBACK -------------->

<!------------ CALLBACK VINYL ONLY -------------->


$("#rcrFormVinyl").submit(function(){

var str = $(this).serialize();

$.ajax({
type: "POST",
url: "http://redcarpetrunway.com/wp-content/themes/redcarpet/process_customizer_vinyl.php",
data: str,
success: function(msg){

$("#note").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
$("#checklist").slideUp();	
$(".btFormContainer.prev").hide();	
$("#step6_vinylonly #button.submit").hide();
$("#upload_choice").slideUp();
$("#upload_max_reached").slideUp();
$("#logos_list").slideUp();
$("#logo_custom_list").slideUp();

result = '<div class="notification_ok">Thank You, your request is being reviewed, a total will be sent to you shortly<br/><br/><a href="http://redcarpetrunway.com/eshop/">Go to the Store</a></div>';
$('#rcrFormVinyl')[0].reset();
}
else
{
result = msg;
}
$(this).html(result);
});
}
});

return false;

});
<!------------ END CALLBACK -------------->

<!------------ CALLBACK REQUEST -------------->

	var loader = $('<div id="loader"><img src="http://redcarpetrunway.com/wp-content/themes/redcarpet/images/loading.gif" alt="loading..." /></div>')
		.css({position: "relative", top: "1em", left: "25em"})
		.appendTo("#note")
		.hide();
	$().ajaxStart(function() {
		loader.show();
	}).ajaxStop(function() {
		loader.hide();
	}).ajaxError(function(a, b, e) {
		throw e;
	});


	var v = $("#request_form").validate({
								
				errorPlacement: function(error, element) {
					if ( element.is(":radio") && !element.is("input[name=bgdcbx]"))
						error.appendTo( element.parent().parent().parent().parent());
					else if ( element.is(":checkbox") || element.is("select[name=eventtype]")  || element.is("select[name=state]"))
						error.appendTo ( element.parent().parent());
						else if ( element.is(":radio") && element.is("input[name=bgdcbx]"))
						error.appendTo ( $("#error_bgpattern"));
					else
						error.appendTo( element.parent());
				},
				submitHandler: function(form) {
				$(form).ajaxSubmit({
				target: "#note"
				
			});
			$('#request_form')[0].reset();
			$('#contactform_request2').hide("slow");
			$('.notification_ok2').remove();


				}

				}
		);
////////////////////////////////

$('a#newrequest').livequery('click', function(event) {
$('#contactform_request2').slideDown();
$('.notification_ok2').remove();
return false;
});
<!------------ END CALLBACK -------------->
});