DANIEL WOOLLSMADRID (AP) â¿¿ On Friday, finance ministers from the 17 countries that use the euro approved the terms of the bailout of Spain's troubled banking sector. Here is a glance at the aid package's main points: â¿¿The EU will provide up to â¿¬100 billion ($122.87 billion) for Spanish banks struggling under a mountain of non-performing loans, foreclosed property and other unwanted assets resulting from the collapse of the country's real estate market. The precise figure will depend on how much each bank needs, and this will be determined after detailed portfolio assessments and stress tests due to be completed in September. Leading Spanish banks, such as Banco Santander SA, are not expected to need any help. â¿¿Money from the bailout will be used to help the banks recapitalize and shore up their balance sheets against the prospect of further shocks in the Spanish economy. Spain is currently in its second recession in three years and saddled with a nearly 25 percent unemployment rate. â¿¿The money will be available until the end of next year, and most recapitalization operations are expected to be completed in June of 2013. â¿¿Funds will initially come from the EU's existing bailout mechanism, known as the EFSF â¿¿ the same one used in the bailouts of Greece, Ireland and Portugal. The goal is for the money eventually to flow from a planned permanent mechanism, the ESM, directly to the needy banks, rather than to the Spanish government as will be the case at the outset. Under both arrangements, when it comes to repaying, the EU's loans will not take precedence over debt owed to other creditors â¿¿ a crucial point for private investors worried that they might not be paid back. â¿¿Toxic assets will be segregated from Spanish banks into an Asset Management Agency, essentially a 'bad bank.' Spain's toxic assets are expected to total about â¿¬200 billion euros.