Deductions & credits

Are relocation expenses deductible on which state's income tax: the state you're moving from or the state you're moving to?  Similarly, which state is the source of such lump sum relocation payment?