Spin Dependent Transport in Magnetic Nanostructures