a:10:{s:7:"version";s:5:"3.5.1";s:12:"html_in_head";s:7455:"<style>
  
  
  #the_void{
  	display:none;
			grid-template-rows:5% 5% 85% 5%;
			grid-template-columns:5% 90% 5%;
			grid-template-areas:'. . .'
								'. a_fr a_x'
								'. a_fr .'
								'. . .';
		opacity:0;
		transition:opacity 0.3s ease-in-out;
  }
  #thing_to_increase_total_height_of_page{
    height:60vh;
  }
  
  .NewQuoteItem{
    display:none;
  }
  
  .Frame_Tool_Img{
		cursor:pointer;
		margin:20px;
		border:2px solid transparent;
		transition:border-color 0.1s linear;
	}
		.Frame_Tool_Img:hover{
			border-color:#79c6e8;
		}
  .specifically_the_frames_that_you_see_when_customizing{
  		position:absolute;
    		left:25vw;
   		 	top:6vh;
  }
	
	
	.coolframebutte{
		width:225px;
		height:auto;
	}


	#disable_1{
		
	}
	#disable_2,#disable_3,#disable_4,#disable_5{
        width: 20vw;
        height: 50vh;
        border-radius: 10px;
        position: absolute;
        left: 25%;
        background-color: #eee;
        display: grid;
        grid-auto-columns: 100%;
        grid-template-rows: 85% 15%;
		opacity:0;
		transition:opacity .25s ease-in-out;
	}
	#disable_5{
		height:7vh;
			width:12vw;
		font-size:2vh;
		top:45vh;
			left:44vw;
    
  	  visibility:hidden;
	}

	.fancy{
		width:20vw;
			height:50vh;
			border-radius:10px;
		position:absolute;
			left:25%;
			top:35vh;
    	z-index:2;
		background-color:#eee;
		display:grid;
			grid-auto-columns:100%;
			grid-template-rows:85% 15%;
	}
		#f1{
			backround-color:#fff;
			text-align:center;
		}
		#f2{
			background-color:#bbb;
		}
			#f2_2{
				width:25%;
					height:6%;
				position:absolute;
					left:15%;
					top:90%;
			}
			#f2_1,#f2_1_final,#f2_1_final_2{
				width:25%;
					height:6%;
				position:absolute;
					right:15%;
					top:90%;
			}
				.buTy_0{
					height:5%;
						width:65%;
    				margin-top:7px;
				}
				.buTy_1{
					height:5%;
						width:65%;
				}
				.buTy_2{
					position:absolute;
						width:45%;
						height:23%;
						bottom:18%;
					font-size:80%;
					text-align:left;
					background-color:#fff;
						border:solid #767676 1px;
						border-radius:2px;
   					 overflow-y:scroll;
				}
                  .butte_radio_lbl{
						margin-top:-3px;
   						margin-left:1px;
                  }
					#1_opt_text{
						height:1000%;
					}
					
				#project_type{
					position:relative;
						width:65%;
						height:5%;
						left:17.5%;
					font-size:80%;
					background-color:#fff;
						border:solid #767676 1px;
						border-radius:2px;
    				display:grid;
    					grid-template-columns:50% 50%;
				}
                      #bt_newmodel_container{
    					grid-area:1 / 1;
    					margin-left:1px;
                      }
                      #bt_ti_container{
   						grid-area:1 / 2;
    					margin-left:1px;
                      }
		
		#cart_area{
			height:100%;
			display:grid;
				grid-template-columns:33% 33% 33%;
				grid-auto-rows:50%;
		}
			.frame_frame_frame{
				
			}
				#frame_add{
					height:24%;
					margin-top:35%;
				}
				.add_frame{
					height:30%;
						width:30%;
					margin-top:25%;
				}
			#_addnotes{
				position:relative;
					width:90%;
					height:30%;
    			margin-top:5%;
			}
            #_url{
   				position:relative;
   				margin-top:30%;
            }
            #_upload{
                position:relative;
   				margin-top:5%;
            }
	
	#the_void{
		position:absolute;
			top:0;
			left:0;
			z-index:999;
		background-color:rgba(0,0,0,0.6);
		height:100%;
			width:100%;
		display:none;
			grid-template-rows:5% 5% 85% 5%;
			grid-template-columns:5% 90% 5%;
			grid-template-areas:'. . .'
								'. a_fr a_x'
								'. a_fr .'
								'. . .';
		opacity:0;
		transition:opacity 0.3s ease-in-out;
	}
		#all_of_the_frames_you_can_select_from{
			grid-area:a_fr;
		}
			#personalize_frame_frame{
				grid-area:a_fr;
				visibility:hidden;
    			pointer-events:none;
				opacity:0;
				transition:opacity 0.3s ease-in-out;
			}
		#the_little_x_in_the_top_right{
			grid-area:a_x;
				color:#fff;
				font-size:2.4vmax;
				cursor:pointer;
			transition:color .1s linear;
		}
				#the_little_x_in_the_top_right:hover{
					color:#79c6e8;
				}
			#customizations{
				position:absolute;
					top:7h;
					height:50%;
					left:50%;
				padding:20px;
				border-radius:5px;
				text-align:center;
				background-color:rgba(0,0,0,0.2);
			}
				#bottomofframeoptions{
					position:relative;
						width:100%;
						left:-20px;
						bottom:-20px;
					padding:20px;
					background-color:#bbb;
				}
				#joist_space,#opening_size,#unit_weight{
					height:2.5vh;
					border:none;
					border:2px solid transparent;
				}
				#unit_type{
					color:#fff;
					text-align:left;
				}
			#save_unit{
				width:50%;
					height:2.5vh;
			}
			
	#quickgridthing{
		display:grid;
			grid-template-columns:100%;
			grid-template-areas:100%;
	}
		#grandprize__hori,#grandprize__vert{
			animation:flickercolorselect 1s infinite;
			visibility:hidden;
		}
		.blinking_arrow{
			position:absolute;
				left:10px;
			font-size:1.6vh;
			color:red;
			visibility:hidden;
			animation:flickercolorselect 1s infinite;
		}
	@keyframes flickercolorselect{
		0%{opacity:0;}
		50%{opacity:1;}
		100%{opacity:0;}
	}
	
	
	.container_around_selected_frames_in_the_cart_screen{
   		 cursor:pointer;
	}
		.rmv{
			color:red;
			border:none;
			background-color:transparent;
			cursor:pointer;
		}
			.rmv:hover{
				text-decoration:underline;
			}
  
  
</style>













<script>
console.log('Un!');
	
		var chosen_frame;
	function choose(zA){
			let a6=zA.src.length-5,a7=zA.src.length-6;
		chosen_frame= parseInt(zA.src[a7]!='-'?(zA.src[a7]+zA.src[a6]):zA.src[a6])+1;
		
		
		document.getElementById('grandprize').src= '/wp-content/uploads/dry-'+(chosen_frame-1)+'.png';
			setTimeout(function(){document.getElementById('grandprize').style.width= '375px';},50);
		
		
		document.getElementById('all_of_the_frames_you_can_select_from').style.visibility= 'hidden';
		document.getElementById('personalize_frame_frame').style.visibility= 'visible';
      	document.getElementById('personalize_frame_frame').style.pointerEvents= 'auto';
				document.getElementById('grandprize__hori').src= '/wp-content/uploads/hori-'+(chosen_frame-1)+'.png';
				document.getElementById('grandprize__vert').src= '/wp-content/uploads/vert-'+(chosen_frame-1)+'.png';
					setTimeout(function(){
								document.getElementById('grandprize__hori').style.width= '375px';
								document.getElementById('grandprize__vert').style.width= '375px';
							},50);
			document.getElementById('personalize_frame_frame').style.opacity= '1';
		
		if(chosen_frame==3 || chosen_frame==10){
			document.getElementById('grandprize__vert').hidden= true;
			document.getElementById('opening_size').hidden= true;
			document.getElementById('arrow_for_opening').hidden= true;
		} else{
			document.getElementById('grandprize__vert').hidden= false;
			document.getElementById('opening_size').hidden= false;
			document.getElementById('arrow_for_opening').hidden= false;
		}
		
		document.getElementById('joist_space').focus();
		
	}
	
	
</script>";s:14:"html_in_footer";s:26569:"<style>
    #customizations{
   		min-height:440px;
    }
  @media (max-width: 319px){
    #thing_to_increase_total_height_of_page{
      height:500px;
    }
    #f2_1, #f2_1_final, #f2_1_final_2 {
        height: 30px;
    }
    #save_unit {
	height: 30px;
    }
    #disable_1{
		width:100vw;
			height:350px;
			top:550px;
      left:10vw;
    }
    #disable_2{
      left: 10vw;
      top:550px;
      height: 500px;
      width: 100vw;
    }
    #disable_3{
      left: 10vw;
      height: 500px;
      width: 100vw;
      top: 550px;
    }
    #disable_4{
    	left: 10vw;
      	height: 500px;
     	width: 100vw;
     	top: 550px;
    }
    #the_void{
      overflow-y:scroll;
    }
    .specifically_the_frames_that_you_see_when_customizing{
        left: 0vw;
        top: 6vh;
        margin: 0;
    }
    #customizations{
        top: calc(6vh + 400px);
        left: 12%;
    }
    .fancy{
      margin-left:-10%;
		width:100vw;
			height:60vh;
			top:90vh;
      left:2.8vw;

	}
  }
  @media (min-width: 320px) and (max-width: 411px){
    #thing_to_increase_total_height_of_page{
      height:500px;
    }
    #f2_1, #f2_1_final, #f2_1_final_2 {
        height: 30px;
    }
    #save_unit {
	height: 30px;
    }
    #disable_1{
	width:100vw;
	height:400px;
	top:550px;
        left:0vw;
    }
    #disable_2{
      left: 0vw;
      top:550px;
      height: 500px;
      width: 100vw;
    }
    #disable_3{
      left: 10vw;
      height: 500px;
      width: 100vw;
      top: 550px;
    }
    #disable_4{
    	left: 10vw;
      	height: 500px;
     	width: 100vw;
     	top: 550px;
    }
    #the_void{
      overflow-y:scroll;
    }
    .specifically_the_frames_that_you_see_when_customizing{
        left: 0vw;
        top: 6vh;
        margin: 0;
    }
    #customizations{
        top: calc(6vh + 400px);
        left: 20%;
    }
    .fancy{
      margin-left:-10%;
		width:100vw;
			height:60vh;
			top:90vh;
      left:2.8vw;

	}
  }
  @media (min-width: 412px) and (max-width: 769px){
    #thing_to_increase_total_height_of_page{
      height:500px;
    }
    #f2_1, #f2_1_final, #f2_1_final_2 {
        height: 30px;
    }
    #save_unit {
	height: 30px;
    }
    #disable_1{
		width:350px;
		height:350px;
		top:500px;
        left: calc(50% - 125px);
    }
    #disable_2{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:350px;
    }
    #disable_3{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:350px;
    }
    #disable_4{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:350px;
    }
    #the_void{
      overflow-y:scroll;
    }
    .specifically_the_frames_that_you_see_when_customizing{
        left: calc(50% - 185px);
        top: 6vh;
        margin: 0;
    }
    #customizations{
        top: calc(6vh + 400px);
        left: calc(50% - 110px);
    }
    .fancy{
      margin-left:-10%;
		width:100vw;
			height:60vh;
			top:90vh;
      left:2.8vw;

	}
  }
  @media (min-width: 770px) and (max-width: 1249px){
    #thing_to_increase_total_height_of_page{
      height:700px;
    }
    #f2_1, #f2_1_final, #f2_1_final_2 {
        height: 30px;
    }
    #save_unit {
	height: 30px;
    }
    #disable_1{
		width:400px;
		height:350px;
		top:500px;
        left: calc(50% - 125px);
    }
    #disable_2{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #disable_3{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #disable_4{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #the_void{
      overflow-y:scroll;
    }
    .specifically_the_frames_that_you_see_when_customizing{
        left: calc(50% - 300px);
        top: 6vh;
        margin: 0;
    }
    #customizations{
        left: calc(50% + 100px);
        top: 6vh;
        margin: 0;
    }
    .fancy{
      margin-left:-10%;
		width:100vw;
			height:60vh;
			top:90vh;
      left:2.8vw;

	}
  }
  @media (min-width: 1250px){
    #thing_to_increase_total_height_of_page{
      height:700px;
    }
    #f2_1, #f2_1_final, #f2_1_final_2 {
        height: 30px;
    }
    #save_unit {
	height: 30px;
    }
    #disable_1{
		width:400px;
		height:425px;
		top:500px;
        left: calc(50% - 125px);
    }
    #disable_2{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #disable_3{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #disable_4{
        left: calc(50% - 125px);
      top:500px;
      height: 500px;
      width:400px;
    }
    #the_void{
      overflow-y:scroll;
    }
    .specifically_the_frames_that_you_see_when_customizing{
        left: calc(50% - 350px);
        top: 6vh;
        margin: 0;
    }
    #customizations{
        left: calc(50% + 180px);
        top: 6vh;
        margin: 0;
    }
    .fancy{
      margin-left:-10%;
		width:100vw;
			height:60vh;
			top:90vh;
      left:2.8vw;

	}
  }
</style>

<script>
console.log('Du!!');
  	var vault={
		fname:'',
		lname:'',
      	cname:'',
		email:'',
		tel:'',
		
		projname:'',
		postal:'',
		date:'',
		TI:'',
		OPT1:'',
		OPT2:'',
		
		notes:''
	},
	istherecurrentlyaframebeingconsidered= false;
  
	let validateFields= (zA,zB)=>{
		let xA=0;
		for(let cA=0;cA< zA.length ;cA++){
			if(document.getElementById(zA[cA]).value==''){
				document.getElementById(zA[cA]).style.borderColor='red';
				xA++;
			}
		}
		if(zB){
			let xB={
				a:'project_type',
				b:'div_for_b',
				c:'div_for_c',
				d:'div_for_d'
			}
			for(let cA=0;cA< zB.length ;cA++){
				if(!document.querySelector('input[name="'+zB[cA]+'"]:checked')){
					document.getElementById(xB[zB[cA]]).style.borderColor='red';
					xA++;
				}
			}
		}
		return (xA > 0);
	}
  
try{
		var full_frames=[],
		cur_frame=0,num_of_frames_in_cart=0;
		var final_list_of_frames=[];
	function removeoneoftheframesfromfull_frames(zA){
		document.getElementById('frame_'+zA).remove();
		for(let cA=0;cA< final_list_of_frames.length ;cA++){
			if(final_list_of_frames[cA]==parseInt(zA)){
				final_list_of_frames.splice(cA,1);
				break;
			}
		}
      //console.log(full_frames);
	}
	function saveinfofromframecustomizer(zA){
		
			let type_of_frame_selected= document.querySelector('input[name="d"]:checked').id;
		let frame_text= ( type_of_frame_selected=='u_opt_text'
						  ? document.getElementById('u_opt_text_field').value
						  : '' );
		
		if(zA){
				let cA= parseInt(zA);
			full_frames[cA]['joist']= document.getElementById('joist_space').value;
				full_frames[cA]['opening']= document.getElementById('opening_size').value;
				full_frames[cA]['type']= type_of_frame_selected;
				full_frames[cA]['custom_unit_type_text']= frame_text;
				full_frames[cA]['weight']= document.getElementById('unit_weight').value;
		
		} else{
				let curItem= full_frames.length;
			full_frames.push({
				'ID':curItem,
				'frame':chosen_frame,
				'joist':document.getElementById('joist_space').value,
				'opening':document.getElementById('opening_size').value,
				'type':type_of_frame_selected,
				'custom_unit_type_text':frame_text,
				'weight':document.getElementById('unit_weight').value,
				'quantity':1
			});
		}
      
      //console.log(full_frames);
			
		document.getElementById('joist_space').value='';
			document.getElementById('u_opt_text_field').value='';
			document.getElementById('opening_size').value='';
			document.getElementById('unit_weight').value='';
			document.querySelector('input[name="d"]:checked').checked=false;
		
		if(zA) return;
      
		num_of_frames_in_cart++;

		let new_frame= (new DOMParser()).parseFromString("<div class=container_around_selected_frames_in_the_cart_screen id=frame_UND ><img id=saved_frame_UND onclick='edit_frame_from_cart(this.id[this.id.length-1])'><div>Qty: <select id=quant_UND onchange='full_frames[this.id[this.id.length-1]].quantity= this.value'><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10+</option></select></div><br><input id=rmv_qUND class=rmv type=button value='Delete' onclick='removeoneoftheframesfromfull_frames(this.id[this.id.length-1])'/></div>", 'text/html');
		document.getElementById('cart_area').append(new_frame.body.firstChild);
      //document.getElementById('cart_area').innerHTML+="<div class=container_around_selected_frames_in_the_cart_screen id=frame_UND ><img id=saved_frame_UND onclick='edit_frame_from_cart(this.id[this.id.length-1])'><div>Qty: <select id=quant_UND ><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10+</option></select></div><br><input id=rmv_qUND class=rmv type=button value='Delete' onclick='removeoneoftheframesfromfull_frames(this.id[this.id.length-1])'/></div>";
		
			let temp_add_butte= document.getElementById('thing_that_needs_to_be_after_the_last_frame');
		document.getElementById('thing_that_needs_to_be_after_the_last_frame').remove();
			document.getElementById('cart_area').appendChild(temp_add_butte);
		
      	try{document.querySelector('#cart_area>p').remove();}catch(err){console.log('no <p>\'s added :)');}
      
			let temp_frame_number_for_id_stuff= 'saved_frame_'+(num_of_frames_in_cart-1);
		document.getElementById('saved_frame_UND').id= temp_frame_number_for_id_stuff;
		document.getElementById(temp_frame_number_for_id_stuff).src= '/wp-content/uploads/frame-'+(chosen_frame-1)+'.png';
		document.getElementById(temp_frame_number_for_id_stuff).style.width= '62px';
		
      	document.getElementById('frame_UND').id= 'frame_'+(num_of_frames_in_cart-1);
      	document.getElementById('quant_UND').id= 'quant_'+(num_of_frames_in_cart-1);
		document.getElementById('rmv_qUND').id= 'rmv_q'+(num_of_frames_in_cart-1);
		
	}
	
	function fillupframeinfoafterbeingselected(zA){
		document.getElementById('joist_space').value= full_frames[zA]['joist'];
			document.getElementById('u_opt_text_field').value= full_frames[zA]['custom_unit_type_text'];
			document.getElementById('opening_size').value= full_frames[zA]['opening'];
			document.getElementById('unit_weight').value= full_frames[zA]['weight'];
			document.getElementById(full_frames[zA]['type']).checked= true;
	}

	function edit_frame_from_cart(zB){
		opentheframeselectwindow();
		
		choose({'src':'-'+(full_frames[parseInt(zB)]['frame']-1)+'aaaa'});
			document.getElementById('save_unit').dataset.framenum= zB;
			document.getElementById('save_unit').value= 'Save';
		
		fillupframeinfoafterbeingselected(zB);
	}



	function closetheframeselectwindow(){
		document.getElementById('personalize_frame_frame').style.opacity= '0';
		document.getElementById('personalize_frame_frame').style.visibility= 'hidden';
		
		document.getElementById('save_unit').dataset.framenum= '-1';
		document.getElementById('save_unit').value= 'Add to Cart';
		
		document.getElementById('fanciest').style.visibility= 'visible';
		document.getElementById('the_void').style.opacity= '0';
		setTimeout(function(){
			//document.getElementById('the_void').style.visibility= 'hidden';
			document.getElementById('all_of_the_frames_you_can_select_from').style.visibility= 'visible';
			document.getElementById('the_void').style.display= 'none';
		},300);
	}
			function opentheframeselectwindow(){
				//document.getElementById('the_void').style.visibility= 'visible';
				document.getElementById('fanciest').style.visibility= 'hidden';
				document.getElementById('the_void').style.display= 'grid';
				document.getElementById('the_void').style.opacity= '1';
              	document.getElementById('personalize_frame_frame').style.pointerEvents= 'none';
			}
	
	function dotheframething(){
		opentheframeselectwindow();
      
		let zA= document.addEventListener('keydown',(zB)=>{
			if(zB.key=='Escape') closetheframeselectwindow();
		},false);
      
		if(!istherecurrentlyaframebeingconsidered){
			istherecurrentlyaframebeingconsidered= true;
			document.getElementById('f2_1_final').value= 'Next';
		} else{
			document.getElementById('joist_space').value='';
				document.getElementById('u_opt_text_field').value='';
				document.getElementById('opening_size').value='';
				document.getElementById('unit_weight').value='';
				document.querySelector('input[name="d"]:checked').checked=false;
		}
	}
	function saveframe(zA){
		if(validateFields(
			( window.getComputedStyle(document.getElementById('opening_size')).display=='none'
              ? ['joist_space','unit_weight']
              : ['joist_space','opening_size','unit_weight']
            ),
			['d'],
			true
		)) return;
		
		if(zA=='-1') saveinfofromframecustomizer();
			else saveinfofromframecustomizer(zA);
		
		closetheframeselectwindow();
		
		final_list_of_frames.push(num_of_frames_in_cart-1);
      //console.log(final_list_of_frames);
	}
	
	function back(zA){
		if(zA==1){
			document.getElementById('disable_1').style.display= 'grid';
			document.getElementById('disable_1').style.opacity= '1';
			document.getElementById('disable_2').style.opacity= '0';
			document.getElementById('display_2').style.display= 'none'
		}else if(zA==2){
			document.getElementById('disable_2').style.display= 'grid';
			document.getElementById('disable_2').style.opacity= '1';
			document.getElementById('disable_3').style.opacity= '0';
			document.getElementById('display_3').style.display= 'none'
        }else if(zA==3){
			document.getElementById('disable_3').style.display= 'grid';
			document.getElementById('disable_3').style.opacity= '1';
			document.getElementById('disable_4').style.opacity= '0';
			document.getElementById('display_4').style.display= 'none';
		}
	}
	function next(zA){
		if(zA==0){
			if(validateFields(
				['_fname','_lname','_cname','_email','_tel'],
				false,
				false
			)) return;
          	
			vault.fname= document.getElementById('_fname').value;
			vault.lname= document.getElementById('_lname').value;
          	vault.cname= document.getElementById('_cname').value;
			vault.email= document.getElementById('_email').value;
			vault.tel= document.getElementById('_tel').value;
			
			document.getElementById('disable_1').style.display= 'none';
			document.getElementById('disable_2').style.opacity= '1';
		}else if(zA==1){
			if(validateFields(
				['_projname','_postal','_neededby'],
				['a','b','c'],
				false
			)) return;
          	
			vault.projname= document.getElementById('_projname').value;
			vault.postal= document.getElementById('_postal').value;
			vault.date= document.getElementById('_neededby').value;
			vault.TI= document.querySelector('input[name="a"]:checked').id;
			vault.OPT1= document.querySelector('input[name="b"]:checked').id;
			vault.OPT2= document.querySelector('input[name="c"]:checked').id;
			
			document.getElementById('disable_2').style.display= 'none';
			document.getElementById('disable_3').style.opacity= '1';
			
          //console.log(vault);
		}else if(zA==2){
			document.getElementById('disable_3').style.display= 'none';
			document.getElementById('disable_4').style.opacity= '1';
		}else if(zA==3){
          //document.getElementById('disable_4').style.display= 'none';
          //document.getElementById('disable_5').style.opacity= '1';
          	vault.notes= document.getElementById('_addnotes').value;
          	
          	
          	document.querySelector('#NewQuote_fname>span>input[placeholder="EMPTY"]').value= vault['fname'];
          	document.querySelector('#NewQuote_lname>span>input[placeholder="EMPTY"]').value= vault['lname'];
          	document.querySelector('#NewQuote_cname>span>input[placeholder="EMPTY"]').value= vault['cname'];
         	document.querySelector('#NewQuote_email>span>input[placeholder="EMPTY"]').value= vault['email'];
          	document.querySelector('#NewQuote_tel>span>input[placeholder="EMPTY"]').value= vault['tel'];
          
          	document.querySelector('#NewQuote_projname>span>input[placeholder="EMPTY"]').value= vault['projname'];
          	document.querySelector('#NewQuote_opt1>span>input[placeholder="EMPTY"]').value= document.querySelector('label[for="'+vault['OPT1']+'"]').innerHTML;
          	document.querySelector('#NewQuote_opt2>span>input[placeholder="EMPTY"]').value= document.querySelector('label[for="'+vault['OPT2']+'"]').innerHTML;
          	document.querySelector('#NewQuote_ti>span>input[placeholder="EMPTY"]').value= document.querySelector('label[for="'+vault['TI']+'"]').innerHTML;
          	document.querySelector('#NewQuote_postal>span>input[placeholder="EMPTY"]').value= vault['postal'];
          	document.querySelector('#NewQuote_date>span>input[placeholder="EMPTY"]').value= vault['date'];
          
          	document.querySelector('#NewQuote_url>span>input[placeholder="EMPTY"]').value= document.getElementById('_url').value;
          	if(document.getElementById('_upload').files.length!=0) document.querySelector('#NewQuote_drawing>span>input').files= document.getElementById('_upload').files;
          	document.querySelector('#NewQuote_notes>span>input[placeholder="EMPTY"]').value= vault['notes'];
          
         	 let zC= final_list_of_frames;
          try{
          	document.querySelector('#NewQuote_f1_type>span>input[placeholder="EMPTY"]').value= full_frames[zC[0]]['frame'];
          	document.querySelector('#NewQuote_f1_spacing>span>input[placeholder="EMPTY"]').value= full_frames[zC[0]]['joist'];
          	document.querySelector('#NewQuote_f1_size>span>input[placeholder="EMPTY"]').value= full_frames[zC[0]]['opening'];
          	document.querySelector('#NewQuote_f1_weight>span>input[placeholder="EMPTY"]').value= full_frames[zC[0]]['weight'];
            	let q0= document.getElementById('quant_'+zC[0]);
          	document.querySelector('#NewQuote_f1_qty>span>input[placeholder="EMPTY"]').value= q0.options[q0.selectedIndex].value;
         	document.querySelector('#NewQuote_f1_equipment>span>input[placeholder="EMPTY"]').value= (full_frames[zC[0]]['type']!='u_opt_text' ? document.querySelector('label[for="'+full_frames[zC[0]]['type']+'"]').innerHTML : full_frames[zC[0]]['custom_unit_type_text']);
          }catch(errr){}
          try{
          	document.querySelector('#NewQuote_f2_type>span>input[placeholder="EMPTY"]').value= full_frames[zC[1]]['frame'];
          	document.querySelector('#NewQuote_f2_spacing>span>input[placeholder="EMPTY"]').value= full_frames[zC[1]]['joist'];
          	document.querySelector('#NewQuote_f2_size>span>input[placeholder="EMPTY"]').value= full_frames[zC[1]]['opening'];
          	document.querySelector('#NewQuote_f2_weight>span>input[placeholder="EMPTY"]').value= full_frames[zC[1]]['weight'];
            	let q1= document.getElementById('quant_'+zC[1]);
          	document.querySelector('#NewQuote_f2_qty>span>input[placeholder="EMPTY"]').value= q1.options[q1.selectedIndex].value;
          	document.querySelector('#NewQuote_f2_equipment>span>input[placeholder="EMPTY"]').value= (full_frames[zC[1]]['type']!='u_opt_text' ? document.querySelector('label[for="'+full_frames[zC[1]]['type']+'"]').innerHTML : full_frames[zC[1]]['custom_unit_type_text']);
          }catch(errr){}
          try{
          	document.querySelector('#NewQuote_f3_type>span>input[placeholder="EMPTY"]').value= full_frames[zC[2]]['frame'];
          	document.querySelector('#NewQuote_f3_spacing>span>input[placeholder="EMPTY"]').value= full_frames[zC[2]]['joist'];
          	document.querySelector('#NewQuote_f3_size>span>input[placeholder="EMPTY"]').value= full_frames[zC[2]]['opening'];
          	document.querySelector('#NewQuote_f3_weight>span>input[placeholder="EMPTY"]').value= full_frames[zC[2]]['weight'];
            	let q2= document.getElementById('quant_'+zC[2]);
          	document.querySelector('#NewQuote_f3_qty>span>input[placeholder="EMPTY"]').value= q2.options[q2.selectedIndex].value;
          	document.querySelector('#NewQuote_f3_equipment>span>input[placeholder="EMPTY"]').value= (full_frames[zC[2]]['type']!='u_opt_text' ? document.querySelector('label[for="'+full_frames[zC[2]]['type']+'"]').innerHTML : full_frames[zC[2]]['custom_unit_type_text']);
          }catch(errr){}
          try{
          	document.querySelector('#NewQuote_f4_type>span>input[placeholder="EMPTY"]').value= full_frames[zC[3]]['frame'];
          	document.querySelector('#NewQuote_f4_spacing>span>input[placeholder="EMPTY"]').value= full_frames[zC[3]]['joist'];
          	document.querySelector('#NewQuote_f4_size>span>input[placeholder="EMPTY"]').value= full_frames[zC[3]]['opening'];
          	document.querySelector('#NewQuote_f4_weight>span>input[placeholder="EMPTY"]').value= full_frames[zC[3]]['weight'];
            	let q3= document.getElementById('quant_'+zC[3]);
          	document.querySelector('#NewQuote_f4_qty>span>input[placeholder="EMPTY"]').value= q3.options[q3.selectedIndex].value;
          	document.querySelector('#NewQuote_f4_equipment>span>input[placeholder="EMPTY"]').value= (full_frames[zC[3]]['type']!='u_opt_text' ? document.querySelector('label[for="'+full_frames[zC[3]]['type']+'"]').innerHTML : full_frames[zC[3]]['custom_unit_type_text']);
          }catch(errr){}
          try{
          	document.querySelector('#NewQuote_f5_type>span>input[placeholder="EMPTY"]').value= full_frames[zC[4]]['frame'];
          	document.querySelector('#NewQuote_f5_spacing>span>input[placeholder="EMPTY"]').value= full_frames[zC[4]]['joist'];
          	document.querySelector('#NewQuote_f5_size>span>input[placeholder="EMPTY"]').value= full_frames[zC[4]]['opening'];
          	document.querySelector('#NewQuote_f5_weight>span>input[placeholder="EMPTY"]').value= full_frames[zC[4]]['weight'];
            	let q4= document.getElementById('quant_'+zC[4]);
          	document.querySelector('#NewQuote_f5_qty>span>input[placeholder="EMPTY"]').value= q4.options[q4.selectedIndex].value;
          	document.querySelector('#NewQuote_f5_equipment>span>input[placeholder="EMPTY"]').value= (full_frames[zC[4]]['type']!='u_opt_text' ? document.querySelector('label[for="'+full_frames[zC[4]]['type']+'"]').innerHTML : full_frames[zC[4]]['custom_unit_type_text']);
          }catch(errr){}
          
          setTimeout(function(){document.querySelector('#NewQuote_Submit>input').click()},3000);
          
          window.open('/wp-content/uploads/pdf-files/quickframes-price-list-2020.pdf','_blank');
          
          
         	 let CAMPAIGN_PUSH= new XMLHttpRequest();
          CAMPAIGN_PUSH.open('POST','/wp-content/themes/quickframes/active_campaign.php',true);
          CAMPAIGN_PUSH.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
          console.log(CAMPAIGN_PUSH.send(('email='+vault.email+'&fname='+vault.fname+'&lname='+vault.lname+'&tel='+vault.tel+'&cname='+vault.cname)));
          
          return false;
          
		}
	}
  
  setTimeout(function(){
      for(let cA=0,xA=['#fr_double','#fr_triple','#fr_quad'];cA< xA.length ;cA++){
        for(let cB=0,xB=document.querySelectorAll(xA[cA]+'>br');cB< xB.length ;cB++){
            xB[cB].remove();
        }
      }
    //if(document.getElementsByClassName('.wpcf7-response-out')[0].innerHTML!=''){
    //	document.getElementById('fanciest').remove();
    //}
  },100);
  
  		var default_color_for_input_borders= document.getElementById('_fname').style.borderColor;
	function unvalidate(zA){
		document.getElementById(zA.id).style.borderColor= default_color_for_input_borders;
	}
  
  		var input_last_selected= false;
	function selectoneofthetwoinputspluscolouring(zA,obj){
		if(obj) unvalidate(obj);
		if(zA=='joist'){
			if(input_last_selected=='opening'){
				//document.getElementById('opening_size').style.borderLeftColor= 'transparent';
				document.getElementById('arrow_for_opening').style.visibility= 'hidden';
				document.getElementById('grandprize__vert').style.visibility= 'hidden';
			}
			input_last_selected= 'joist';
			//document.getElementById('joist_space').style.borderLeftColor= 'red';
			document.getElementById('arrow_for_joist').style.visibility= 'visible';
			document.getElementById('grandprize__hori').style.visibility= 'visible';
		} else if(zA=='opening'){
			if(input_last_selected=='joist'){
				//document.getElementById('joist_space').style.borderLeftColor= 'transparent';
				document.getElementById('arrow_for_joist').style.visibility= 'hidden';
				document.getElementById('grandprize__hori').style.visibility= 'hidden';
			}
			input_last_selected= 'opening';
			//document.getElementById('opening_size').style.borderLeftColor= 'red';
			document.getElementById('arrow_for_opening').style.visibility= 'visible';
			document.getElementById('grandprize__vert').style.visibility= 'visible';
		} else if(!zA){
			if(input_last_selected=='joist'){
				//document.getElementById('joist_space').style.borderLeftColor= 'transparent';
				document.getElementById('arrow_for_joist').style.visibility= 'hidden';
				document.getElementById('grandprize__hori').style.visibility= 'hidden';
			} else if(input_last_selected=='opening'){
				//document.getElementById('opening_size').style.borderLeftColor= 'transparent';
				document.getElementById('arrow_for_opening').style.visibility= 'hidden';
				document.getElementById('grandprize__vert').style.visibility= 'hidden';
			}
		}
	}

} catch(err){console.log(err);}
  
  	
  	//document.querySelector('#NewQuote_Text1>span>input').value= 'most excellent hat choice.';
  	//setTimeout(function(){document.querySelector('input[value="Send"]').click()},1000);
  
</script>";s:4:"less";s:0:"";s:8:"compiled";s:0:"";s:6:"styles";s:0:"";s:6:"coffee";s:0:"";s:15:"coffee_compiled";s:0:"";s:15:"scripts_in_head";s:0:"";s:7:"scripts";s:0:"";}