 $(document).ready(function(){

//initalize tabs
	$("#tabs").tabs();

	$("#DeductTabs").tabs();
	
	$("#CreditsTabs").tabs();

	$("#WagesSlider").slider({
	value: 0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Wages").val(ui.value);
		calc1040();
		}
	});	
	
	$("#CapitalGainsSlider").slider({
	value:0,
	min: -50000,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#CapitalGains").val(ui.value);
		calc1040();
		}
	});
	
	$("#BusRealFarmSlider").slider({
	value:0,
	min: -50000,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#BusRealFarm").val(ui.value);
		calc1040();
		}
	});

$("#Income3Slider").slider({
	value:0,
	min: -50000,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Income3").val(ui.value);
		calc1040();
		}
	});
	
	$("#Income4Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 500,
	slide: function(event, ui) {
		$("#Income4").val(ui.value);
		calc1040();
		}
	});
	
	
	$("#OtherIncomeSlider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#OtherIncome").val(ui.value);
		calc1040();
		}
	});	
	
	
	$("#DeductionsSlider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#testDeductions").val(ui.value);
		$("#Deductions").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions2Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions2").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions3Slider").slider({
	value:0,
	min: 0,
	max: 4000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions3").val(ui.value);
		calc1040();
		}
	});	
	$("#REDeductions4Slider").slider({
	value:0,
	min: 0,
	max: 1000,
	step: 50,
	slide: function(event, ui) {
		$("#REDeductions4").val(ui.value);
		calc1040();
		}
	});
	$("#Deductions4Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions4").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions5Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions5").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions6Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions6").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions7Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions7").val(ui.value);
		calc1040();
		}
	});		
	$("#Deductions8Slider").slider({
	value:0,
	min: 0,
	max: 7950,
	step: 50,
	slide: function(event, ui) {
		$("#Deductions8").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions9Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions9").val(ui.value);
		calc1040();
		}
	});		
	$("#Deductions10Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions10").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions11Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions11").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions12Slider").slider({
	value:0,
	min: 0,
	max: 500,
	step: 5,
	slide: function(event, ui) {
		$("#Deductions12").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions13Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions13").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions14Slider").slider({
	value:0,
	min: 0,
	max: 16340,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions14").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions15Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions15").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions16Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions16").val(ui.value);
		calc1040();
		}
	});	
	$("#Deductions17Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions17").val(ui.value);
		calc1040();
		}
	});		
	$("#Deductions18Slider").slider({
	value:0,
	min: 0,
	max: 100000,
	step: 250,
	slide: function(event, ui) {
		$("#Deductions18").val(ui.value);
		calc1040();
		}
	});		
	
$("#OtherTaxes1Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#OtherTaxes1").val(ui.value);
		calc1040();
		}
});	




$("#OtherTaxes3Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#OtherTaxes3").val(ui.value);
		calc1040();
		}
});	

$("#OtherTaxes4Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#OtherTaxes4").val(ui.value);
		calc1040();
		}
});	
	
	
$("#Credits0Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 1000,
	slide: function(event, ui) {
		$("#Credits0").val(ui.value);
		calc1040();
		}
});	
$("#Credits1Slider").slider({
	value:0,
	min: 0,
	max: 2100,
	step: 100,
	slide: function(event, ui) {
		$("#Credits1").val(ui.value);
		calc1040();
		}
});	
	
$("#Credits2Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Credits2").val(ui.value);
		calc1040();
		}
});	

$("#Credits3Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 2500,
	slide: function(event, ui) {
		$("#Credits3").val(ui.value);
		calc1040();
		}
});	

$("#Credits4Slider").slider({
	value:0,
	min: 0,
	max: 2000,
	step: 25,
	slide: function(event, ui) {
		$("#Credits4").val(ui.value);
		calc1040();
		}
});	

$("#Credits5Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Credits5").val(ui.value);
		calc1040();
		}
});	

$("#Payments1Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Payments1").val(ui.value);
		calc1040();
		}
});	

$("#Payments2Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Payments2").val(ui.value);
		calc1040();
		}
});	

$("#Payments3Slider").slider({
	value:0,
	min: 0,
	max: 5657,
	step: 50,
	slide: function(event, ui) {
		$("#Payments3").val(ui.value);
		calc1040();
		}
});	

$("#Payments4Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Payments4").val(ui.value);
		calc1040();
		}
});	

$("#Payments5Slider").slider({
	value:0,
	min: 0,
	max: 25000,
	step: 250,
	slide: function(event, ui) {
		$("#Payments5").val(ui.value);
		calc1040();
		}
});	

$("#PaymentsFTHBSlider").slider({
	value:0,
	min: 0,
	max: 1000000,
	step: 5000,
	slide: function(event, ui) {
		$("#PaymentsFTHB").val(ui.value);
		calc1040();
		}
});	
	
	$("#Wages").change( function() {
	/*$("#Wages").val(Math.round(Number($("#Wages").val())));*/
	$("#WagesSlider").slider("value", this.value);
	calc1040();
	});

	$("#CapitalGains").change( function() {
	$("#CapitalGainsSlider").slider("value", this.value);
	calc1040();
	});
	
	$("#BusRealFarm").change( function() {
	$("#BusRealFarmSlider").slider("value", this.value);
	calc1040();
	});

	$("#Income3").change( function() {
	$("#Income3Slider").slider("value", this.value);
	calc1040();
	});
		
	$("#Income4").change( function() {
	$("#Income4Slider").slider("value", this.value);
	calc1040();
	});

	$("#OtherIncome").change( function() {
	$("#OtherIncomeSlider").slider("value", this.value);
	calc1040();
	});

	$("#Deductions").change( function() {
	$("#DeductionsSlider").slider("value", this.value);
	calc1040();
	});
	$("#Deductions2").change( function() {
	$("#Deductions2Slider").slider("value", this.value);
	calc1040();
	});
	$("#Deductions3").change( function() {
	$("#Deductions3Slider").slider("value", this.value);
	calc1040();
	});

	$("#REDeductions4").change( function() {
	$("#REDeductions4Slider").slider("value", this.value);
	calc1040();
	});
	$("#Deductions4").change( function() {
	$("#Deductions4Slider").slider("value", this.value);
	calc1040();
	});
	$("#Deductions5").change( function() {
	$("#Deductions5Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions6").change( function() {
	$("#Deductions6Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions7").change( function() {
	$("#Deductions7Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions8").change( function() {
	$("#Deductions8Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions9").change( function() {
	$("#Deductions9Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions10").change( function() {
	$("#Deductions10Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions11").change( function() {
	$("#Deductions11Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions12").change( function() {
	$("#Deductions12Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions13").change( function() {
	$("#Deductions13Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions14").change( function() {
	$("#Deductions14Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions15").change( function() {
	$("#Deductions15Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions16").change( function() {
	$("#Deductions16Slider").slider("value", this.value);
	calc1040();
	});	
	$("#Deductions17").change( function() {
	$("#Deductions17Slider").slider("value", this.value);
	calc1040();
	});		
	$("#Deductions18").change( function() {
	$("#Deductions18Slider").slider("value", this.value);
	calc1040();
	});	
	
	
	$("#OtherTaxes1").change( function() {
	$("#OtherTaxes1Slider").slider("value", this.value);
	calc1040();
	});
	
	$("#OtherTaxes2").change( function() {
	$("#OtherTaxes2Slider").slider("value", this.value);
	calc1040();
	});
	
	$("#OtherTaxes3").change( function() {
	$("#OtherTaxes3Slider").slider("value", this.value);
	calc1040();
	});
		
	$("#OtherTaxes4").change( function() {
	$("#OtherTaxes1Slider").slider("value", this.value);
	calc1040();
	});
			
	$("#OtherTaxes4").change( function() {
	$("#OtherTaxes1Slider").slider("value", this.value);
	calc1040();
	});
	
	
	$("#Credits0").change( function() {
	$("#Credits0Slider").slider("value", this.value);
	calc1040();
	});	

	$("#Credits1").change( function() {
	$("#Credits1Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#Credits2").change( function() {
	$("#Credits2Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#Credits3").change( function() {
	$("#Credits3Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#Credits4").change( function() {
	$("#Credits4Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#Credits5").change( function() {
	$("#Credits5Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#Payments1").change( function() {
	$("#Payments1Slider").slider("value", this.value);
	calc1040();
	});	
		
	$("#Payments2").change( function() {
	$("#Payments2Slider").slider("value", this.value);
	calc1040();
	});	
		
	$("#Payments3").change( function() {
	$("#Payments3Slider").slider("value", this.value);
	calc1040();
	});	
		
	$("#Payments4").change( function() {
	$("#Payments4Slider").slider("value", this.value);
	calc1040();
	});	
		
	$("#Payments5").change( function() {
	$("#Payments5Slider").slider("value", this.value);
	calc1040();
	});	
	
	$("#PaymentsFTHB").change( function() {
	$("#PaymentsFTHBSlider").slider("value", this.value);
	calc1040();
	});	
	
	
	
	

	$("input[name='filingStatus']").click( function(){

			if ($("input[name='filingStatus']").is(":checked"))
				{
					calc1040();
				}
			}	
	);

	$("#ClaimOther").mask("9?9999",{placeholder:" "});

	$("#ClaimTaxpayer, #ClaimSpouse").click( function() {
	calc1040();
	});

	$("#ClaimOther").change( function() {
	calc1040();
	});

	$(".sliderinput").numeric();	


    $("#MakingWorkPayTotal10").change( function() {
	calc1040();
	});
	
	$("#MakingWorkPayTotal11").change( function() {
	calc1040();
	});



});
 
 
 
 
 
 //TOOLTIPS
 //global style
 $.fn.qtip.styles.efile = { // Last part is the name of the style
	width: 300,
	padding: 3,
	background: '#F9F9F9',
	color: 'black',
	textAlign: 'left',
	border: {
		width: 2,
		radius: 5,
		color: '#F9F9F9'
	},
	tip: { // Now an object instead of a string
         corner: 'leftMiddle', // We declare our corner within the object using the corner sub-option
         size: {
            x: 8, // Be careful that the x and y values refer to coordinates on screen, not height or width.
            y : 8 // Depending on which corner your tooltip is at, x and y could mean either height or width!
         }
	},
	name: 'green' // Inherit the rest of the attributes from the preset dark style
}
 
 


//Filing Status and Exemptions

$("#OtherDependents").qtip({
	content: 'Qualifying children or relatives (<a href="/tax-news/taxes-exemptions/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});
 
// Income Tab 

$("#IncomeHeadingTip").qtip({
	content: 'Use the sliders below to choose your income figures for each applicable category, or enter the numbers directly into the boxes at the right.',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

//Deductions
    
    // Persional Deductions


$("#WithdrawlOfSavingsTip").qtip({
	content: 'The amount paid for early withdrawal of funds from an IRA, 401(k), or other qualified retirement or time-deposit savings account ',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});


$("#AlimonyPaidTip").qtip({
	content: 'Does not include child support or property settlements (<a href="/tax-deduction/income-deduction/divorced-tax/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});


$("#RETaxesPaidTip").qtip({
	content: 'The amount of state and local real estate taxes you paid, up to $500 ($1,000 for married filing jointly), may be added to your standard deduction.',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

$("#TaxesPaidTip").qtip({
content: 'On personal property, foreign income, state income tax OR state sales tax<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});
 
 
 
$("#InterestPaidTip").qtip({
content: 'On investments and home mortgage<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

$("#GiftCharityTip").qtip({
content: 'Cash, checks, fair market value of cars and other items (<a href="/tax-deduction/income-deduction/charitable-contributions/" target="_blank">Learn more</a>)<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

$("#MiscDeductTip").qtip({
content: 'Unreimbursed employee expenses, tax preparation fees, gambling losses, casualty and theft losses, and other expenses (<a href="/tax-deduction/income-deduction/miscellaneous-deductions/" target="_blank">Learn more</a>)<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});


    // Family Deductions
$("#HealthSavingsTip").qtip({
	content: 'Contributions to a high-deductible health plan',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

$("#DomesticProduction").qtip({
	content: 'Includes production of tangible property, computer software, sound recordings and certain films, electricity, natural gas, water, and construction and engineering services',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});




$("#MedDentTip").qtip({
content: 'Those which exceed 7.5% of income, including eye care and health insurance premiums (<a href="/tax-deduction/income-deduction/medical-deductions/" target="_blank">Learn more</a>)<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

$("#OtherFamilyDeductions").qtip({
	content: 'Mortgage insurance premiums, uninsured losses, points from home refinancing (<a href="/tax-deduction/income-deduction/home-deductions/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});



    // Work Deductions

$("#EducatorDeductions").qtip({
	content: 'Up to $250 of qualified expenses (<a href="/tax-deduction/employee-expense-deduction/employee-expenses/#educator_expenses" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 

$("#MovingDeductions").qtip({
	content: 'If moving for work-related reasons (<a href="/tax-deduction/employee-expense-deduction/job-search-expenses/#moving" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 


$("#MiscJobTip").qtip({
content: 'Travel expenses, depreciation of equipment, bad business debt, union dues, etc. (<a href="/tax-deduction/employee-expense-deduction/employee-expenses/" target="_blank">Learn more</a>)<br>* See note in lower right',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 

    // Business Deductions
    
    


$("#OtherBusinessDeductions").qtip({
	content: 'Appraisal fees, casualty losses, clerical help, office rent, etc. (<a href="/tax-deduction/employee-expense-deduction/work-expenses/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 




//Credits and Payments

    // Other Taxes
    
$("#SelfEmploymentTaxDeductions").qtip({
	content: 'Self-employment tax: 15.3% of the first $106,800 earned, comprised of Social Security and Medicare taxes.',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});     


    //Tax Credits
    
$("#ChildTaxCreditTip").qtip({
	content: '$1,000 per qualifying dependent (<a href="/tax-credit/child-tax-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 

$("#ChildDependentCareDeductions").qtip({
	content: 'Up to 35% of expenses for care for your children while you work or look for work (<a href="/tax-credit/dependent-care-tax-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 

$("#ForeignTaxDeductions").qtip({
	content: 'Do not take this credit if you deducted foreign taxes as an itemized deduction (<a href="/tax-credit/foreign-tax-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 
 
$("#RetirementSavingsDeduction").qtip({
	content: 'Up to $1,000 ($2,000 if filing jointly) of contributions, minus any distributions',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 

$("#EducationCreditDeduction").qtip({
	content: 'Hope Credit, American Opportunity Credit, Lifetime Learning Credit (<a href="/tax-credit/student-tax/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 
 
 $("#OtherMiscCreditsDeductions").qtip({
	content: 'Adoption Credit, Alternative Motor Vehicle Credit, Residential Energy Efficient Property Credit, Mortgage Interest Credit, Credit for the Elderly or the Disabled (<a href="/tax-planning/how-to-pay-less-taxes/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});
 
 
 
    // Payments
    
 $("#EICDeduction").qtip({
	content: 'If you make less than $48,279, you may qualify for up to $5,657(<a href="/tax-credit/earned-income-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

 $("#AdditionalChildCredit").qtip({
	content: 'A refund you may receive if your Child Tax Credit is greater than the amount of taxes you owe (<a href="/tax-credit/child-tax-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});

 $("#FirstTimeHomeBuyerDeductions").qtip({
	content: 'You are considered a first-time buyer if you have not owned a home in 3 years (<a href="/tax-deduction/mortgage-deduction/first-time-home-buyer-tax-credit/" target="_blank">Learn more</a>)',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});    






 $("#MakeWorkPay1").qtip({
	content: 'You may have received the Recovery Payment if you receive Social Security, SSI, Railroad Retirement Benefits, or Veteran\'s Benefits. If you are not sure if you received a Recovery Payment, <a href="/tax-savings/paycheck-tax-withholding.aspx#recovery">please go here</a>.<br><br> - If you did not receive the payment, enter 0 in the box to the right.<br><br> - If you did receive the payment, enter 250 in the box to the right.<br><br> - If you are married filing jointly and your spouse received the payment but you did not, enter 250 in the box to the right.<br><br> - If you are married filing jointly and both you and your spouse received the payments, enter 500 in the box to the right.',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
}); 






 $("#MakeWorkPay2").qtip({
	content: ' - If you did not receive any such payments, enter 0 in the box to the right.<br><br> - If you received such payments and you received an Economic Recovery Payment, enter 0 in the box to the right.<br><br> - If you received such payments and you did not receive an Economic Recovery Payment, enter 250 in the box to the right.<br><br> - If you are married filing jointly and either you or your spouse received pension or annuity payments but also did not receive a Recovery Payment, enter 250 in the box to the right.<br><br> - If you are married filing jointly and both you and your spouse received pension or annuity payments as well as Economic Recovery Payments, enter 500 in the box to the right.',
	style: 'efile', // The name of the newly created custom style above
	hide: { when: 'mouseout', fixed: true },
	position: {
	   corner: {
		 target: 'rightMiddle',
		 tooltip: 'leftMiddle'
	  }
	}
});









// Show Tab Notes


$("#3tab").click(function() {
$(".DeductionNote").css("display", "");
});


$("#1tab, #2tab, #4tab, #5tab, #6tab").click(function() {
    $(".DeductionNote").css("display", "none");
});
