			$(function(){
				if($('#slider').length>0){	   
					$('#slider').slider({
						range: "min"
						,paddingMin: 8
						,paddingMax: 39
						,min: 3
						,max: 250
						,step: 1
						,slide: function( event, ui ) {
							$('.sval').val(ui.value);							
							val1 = ui.value * 1.49;
							val1 = Math.round(val1 * 20) / 20;
							$('#projectsCost').val(val1);
							if($('#toursCost').val())
							{ toursCost = 	$('#toursCost').val();}
							else { toursCost = 0; }	
							if($("#realtorANDakamai").val())
							{ realtorANDakamai = $("#realtorANDakamai").val(); }
							else { realtorANDakamai = 0; }
							tot = parseFloat(toursCost) + parseFloat($('#projectsCost').val()) + parseFloat(realtorANDakamai);
							roundedvalue = Math.round(tot * 20) / 20;
							$('#Total').val(roundedvalue);
						}				
					});
				}
				if($('#slider2').length>0){
					$('#slider2').slider({
						range: "min"
						,paddingMin: 8
						,paddingMax: 39
						,min: 3
						,max: 250
						,step: 1
						,slide: function( event, ui ) {
							$('.sval2').val(ui.value);							
							val2 = ui.value * 1.05;
							val2 = Math.round(val2 * 20) / 20;
							$('#toursCost').val(val2);
							if($('#projectsCost').val())
							{    	projectsCost = 	$('#projectsCost').val(); }
							else	
							{	projectsCost = 	0; }
							if($("#realtorANDakamai").val())
							{ realtorANDakamai = $("#realtorANDakamai").val(); }
							else { realtorANDakamai = 0; }	
							tot = parseFloat(projectsCost) + parseFloat($('#toursCost').val()) + parseFloat(realtorANDakamai);
							roundedvalue = Math.round(tot * 20) / 20;
							$('#Total').val(roundedvalue);
						}
					});
				}
				if($('.sval').length>0){
					$('.sval').bind('keypress', function(e) {
						if(e.keyCode==13){
							var val = parseInt($('.sval').val());
							if(val<=3){
								$('#slider').slider({
									animate: true,
									value: 3
								});
								$('.sval').val('3');
							} else {
								$('#slider').slider({
									animate: true,
									value: val
								});							
							}
						}
					});	
				}
				if($('.sval2').length>0){
					$('.sval2').bind('keypress', function(e) {
						if(e.keyCode==13){
							var val = parseInt($('.sval2').val());
							if(val<=3){
								$('#slider2').slider({
									animate: true,
									value: 3
								});
								$('.sval2').val('3');
							} else {
								$('#slider2').slider({
									animate: true,
									value: val
								});							
							}
						}
					});	
				}
			});

	/* Following code segement to redirect page to https to http if https found  */
	window.onload=redirect(); 
	function redirect(){ 
			var loc = location.href.split(':'); 
			var hostName = window.location.hostname;
			/* If new https pages will come you can change following code from end of if. You can check example of "if()" in commented code where you just need to add before closing of if("condition") add 
				
			&& window.location.href != "https://"+hostName+"/yourPageName.php"
			
			if(loc[0]=='https' && window.location.href != "https://"+hostName+"/pay-monthly.php" && window.location.href != "https://"+hostName+"/pay.php" && window.location.href != "https://"+hostName+"/pay-monthly-A.php" && window.location.href != "https://"+hostName+"/newPageName.php"){ 
				window.location.href='http:'+loc[1]; 
			}*/
 
			if(loc[0]=='https' && window.location.href != "https://"+hostName+"/pay-monthly.php" && window.location.href != "https://"+hostName+"/pay.php" && window.location.href != "https://"+hostName+"/pay-monthly-A.php"){ 
				window.location.href='http:'+loc[1]; 
			} 
	} // End function	 
	/* End code segement to redirect page to https to http if https found  */	
