$.preload([
			'fondPACA', 
			'fondChampagneArdenne', 
			'fondPicardie', 
			'fondNordPasDeCalais', 
			'fondHauteNormandie', 
			'fondBasseNormandie', 
			'fondLorraine', 
			'fondIleDeFrance', 
			'fondAlsace', 
			'fondBretagne', 
			'fondPaysDeLaLoire', 
			'fondCentre', 
			'fondBourgogne', 
			'fondAuvergne', 
			'fondRhoneAlpes', 
			'fondPoitouCharentes', 
			'fondLimousin', 
			'fondAquitaine', 
			'fondMidiPyrenees', 
			'fondLanguedocRoussillon', 
			'fondFrancheComte', 
			'fondCorse'
		  ],
		  {
			base:'./carteFrance/images/carteFrance/',
 			ext:'.jpg'  
		  });

$(document).ready(function()
{
	var dirIMG = './carteFrance/images/carteFrance/';
	var dirDpt = 'http://www.meteociel.fr/region/';
	
   $("#paca1_, #paca2_, #paca3_").click(function()
   {
	 window.location = dirDpt + 'paca/';
   });
   $("#paca1_, #paca2_, #paca3_").mouseenter(function()
   {
	 $('#textArea').html('P.A.C.A');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondPACA.jpg\')');
   });
   
   $("#champagneArdenne1_, #champagneArdenne2_, #champagneArdenne3_").click(function()
   {
	 window.location = dirDpt + 'champagneArdenne/';
   });
   $("#champagneArdenne1_, #champagneArdenne2_, #champagneArdenne3_").mouseenter(function()
   {
	 $('#textArea').html('Champage Ardenne');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondChampagneArdenne.jpg\')');
   });
   
   $("#picardie1_").click(function()
   {
	 window.location = dirDpt + 'picardie/';
   });
   $("#picardie1_").mouseenter(function()
   {
	 $('#textArea').html('Picardie');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondPicardie.jpg\')');
   });
   
   $("#nordPasDeCalais1_").click(function()
   {
	 window.location = dirDpt + 'nordPasDeCalais/';
   });
   $("#nordPasDeCalais1_").mouseenter(function()
   {
	 $('#textArea').html('Nord Pas De Calais');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondNordPasDeCalais.jpg\')');
   });
   
   $("#hauteNormandie1_").click(function()
   {
	 window.location = dirDpt + 'hauteNormandie/';
   });
   $("#hauteNormandie1_").mouseenter(function()
   {
	 $('#textArea').html('Haute Normandie');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondHauteNormandie.jpg\')');
   });
   
   $("#basseNormandie1_, #basseNormandie2_").click(function()
   {
	 window.location = dirDpt + 'basseNormandie/';
   });
   $("#basseNormandie1_, #basseNormandie2_").mouseenter(function()
   {
	 $('#textArea').html('Basse Normandie');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondBasseNormandie.jpg\')');
   });
   
   $("#lorraine1_, #lorraine2_").click(function()
   {
	 window.location = dirDpt + 'lorraine/';
   });
   $("#lorraine1_, #lorraine2_").mouseenter(function()
   {
	 $('#textArea').html('Lorraine');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondLorraine.jpg\')');
   });
   
   $("#ileDeFrance1_").click(function()
   {
	 window.location = dirDpt + 'ileDeFrance/';
   });
   $("#ileDeFrance1_").mouseenter(function()
   {
	 $('#textArea').html('Ile de France');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondIleDeFrance.jpg\')');
   });
  
   $("#alsace1_").click(function()
   {
	 window.location =  dirDpt + 'alsace/';
   });
   $("#alsace1_").mouseenter(function()
   {
	 $('#textArea').html('Alsace');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondAlsace.jpg\')');
   });
   
   $("#bretagne1_").click(function()
   {
	 window.location = dirDpt + 'bretagne/';
   });
   $("#bretagne1_").mouseenter(function()
   {
	 $('#textArea').html('Bretagne');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondBretagne.jpg\')');
   });
   
   $("#paysDeLaLoire1_, #paysDeLaLoire2_, #paysDeLaLoire3_, #paysDeLaLoire4_").click(function()
   {
	 window.location = dirDpt + 'paysDeLaLoire/';
   });
   $("#paysDeLaLoire1_, #paysDeLaLoire2_, #paysDeLaLoire3_, #paysDeLaLoire4_").mouseenter(function()
   {
	 $('#textArea').html('Pays De La Loire');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondPaysDeLaLoire.jpg\')');
   });
   
   $("#centre1_, #centre2_, #centre3_, #centre4_").click(function()
   {
	 window.location = dirDpt + 'centre/';
   });
   $("#centre1_, #centre2_, #centre3_, #centre4_").mouseenter(function()
   {
	 $('#textArea').html('Centre');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondCentre.jpg\')');
   });
   
   $("#bourgogne_").click(function()
   {
	 window.location = dirDpt + 'bourgogne/';
   });
   $("#bourgogne_").mouseenter(function()
   {
	 $('#textArea').html('Bourgogne');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondBourgogne.jpg\')');
   });
   
   $("#auvergne1_").click(function()
   {
	 window.location = dirDpt + 'auvergne/';
   });
   $("#auvergne1_").mouseenter(function()
   {
	 $('#textArea').html('Auvergne');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondAuvergne.jpg\')');
   });
   
   $("#rhoneAlpes1_, #rhoneAlpes2_, #rhoneAlpes3_").click(function()
   {
	 window.location = dirDpt + 'rhoneAlpes/';
   });
   $("#rhoneAlpes1_, #rhoneAlpes2_, #rhoneAlpes3_").mouseenter(function()
   {
	 $('#textArea').html('Rhone Alpes');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondRhoneAlpes.jpg\')');
   });
   
   $("#poitouCharentes1_, #poitouCharentes2_").click(function()
   {
	 window.location = dirDpt + 'poitouCharentes/';
   });
   $("#poitouCharentes1_, #poitouCharentes2_").mouseenter(function()
   {
	 $('#textArea').html('Poitou Charentes');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondPoitouCharentes.jpg\')');
   });
   
   $("#limousin1_, limousin2_").click(function()
   {
	 window.location = dirDpt + 'limousin/';
   });
   $("#limousin1_, limousin2_").mouseenter(function()
   {
	 $('#textArea').html('Limousin');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondLimousin.jpg\')');
   });
   
   $("#aquitaine1_, #aquitaine2_").click(function()
   {
	 window.location = dirDpt + 'aquitaine/';
   });
   $("#aquitaine1_, #aquitaine2_").mouseenter(function()
   {
	 $('#textArea').html('Aquitaine');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondAquitaine.jpg\')');
   });
   
   $("#midiPyrenees1_, #midiPyrenees2_").click(function()
   {
	 window.location = dirDpt + 'midiPyrenees/';
   });
   $("#midiPyrenees1_, #midiPyrenees2_").mouseenter(function()
   {
	 $('#textArea').html('Midi Pyrenees');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondMidiPyrenees.jpg\')');
   });
   
   $("#languedocRoussillon1_, #languedocRoussillon2_, #languedocRoussillon3_").click(function()
   {
	 window.location = dirDpt + 'languedocRoussillon/';
   });
   $("#languedocRoussillon1_, #languedocRoussillon2_, #languedocRoussillon3_").mouseenter(function()
   {
	 $('#textArea').html('Languedoc Roussillon');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondLanguedocRoussillon.jpg\')');
   });
   
   $("#francheComte1_").click(function()
   {
	 window.location = dirDpt + 'francheComte/';
   });
   $("#francheComte1_").mouseenter(function()
   {
	 $('#textArea').html('Franche Compte');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondFrancheComte.jpg\')');
   });
   
   $("#corse1_, #corse2_").click(function()
   {
	 window.location = dirDpt + 'corse/';
   });
   $("#corse1_, #corse2_").mouseenter(function()
   {
	 $('#textArea').html('Corse');
     $("#Table_01").css('background-image', 'url(\'' + dirIMG + 'fondCorse.jpg\')');
   });
   
   $("#paca1_, #paca2_, #paca3_, #champagneArdenne1_, #champagneArdenne2_, #champagneArdenne3_, #picardie1_, #nordPasDeCalais1_, #hauteNormandie1_, #basseNormandie1_, #basseNormandie2_, #lorraine1_, #lorraine2_, #ileDeFrance1_, #alsace1_, #bretagne1_, #paysDeLaLoire1_, #paysDeLaLoire2_, #paysDeLaLoire3_, #paysDeLaLoire4_, #centre1_, #centre2_, #centre3_, #centre4_, #bourgogne_, #auvergne1_, #rhoneAlpes1_, #rhoneAlpes2_, #rhoneAlpes3_, #poitouCharentes1_, #poitouCharentes2_, #limousin1_, limousin2_, #aquitaine1_, #aquitaine2_, #midiPyrenees1_, #midiPyrenees2_, #languedocRoussillon1_, #languedocRoussillon2_, #languedocRoussillon3_, #francheComte1_, #corse1_, #corse2_").mouseleave(function()
   {
	 $('#textArea').html('');
     $("#Table_01").css('background-image', 'none');
   });
});
