function xt_med(type,section,page,x1,x2,x3,x4,x5)
{xt_img = new Image();
xtdate = new Date();
xts = screen;
xt_ajout = (type=='F') ? '' : (type=='M') ? '&a='+x1+'&m1='+x2+'&m2='+x3+'&m3='+x4+'&m4='+x5 : '&clic='+x1;
Xt_im = 'http://logc8.xiti.com/hit.xiti?s=66379&s2='+section;
Xt_im += '&p='+page+xt_ajout+'&hl=' + xtdate.getHours() + 'x' + xtdate.getMinutes() + 'x' + xtdate.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xt_im += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth;}
xt_img.src = Xt_im;
if ((x2 != null)&&(x2!=undefined)&&(type=='C'))
{ if ((x3=='')||(x3==null)) { document.location = x2} else {xfen = window.open(x2,'xfen',''); xfen.focus();}}
else
{return;}}


function banniere1(){
		xt_med('C','2','HPart_carrousel_carte_twilight','N','http://www.ca-centreouest.fr/particuliers/credit-a-la-consommation/pret-etudiant.html');
}

function banniere2(){
	xt_med('C','2','HPart_carrousel_tutorial_demo_bam_v5_C','N','http://www.ca-centreouest.fr/Vitrine/ObjCommun/Fic/CentreOuest/BAMV4/visionneuses/alertes/sms/index.html','_blank');
}

function banniere3(){
	xt_med('C','2','HPart_carrousel_pac_confort','N','http://www.ca-centreouest.fr/pret_consommer_confort_actifs.html');
}

function banniere4(){
		xt_med('C','2','HPart_carrousel_expansia2','N','http://www.ca-centreouest.fr/particuliers/moyens-de-paiement/carte-paiement-mozaic-m6.html');
}

function banniere5(){
	xt_med('C','2','HPart_carrousel_diplomes_2010','N','http://www.ca-centreouest.fr/gav_assur_scolaire.html');
}

function banniere6(){
	xt_med('C','2','HPart_carrousel_acces_bam','N','');
	bamv3_validation();
}

function epargne(type){
	switch(type){
		case "livret":
			xt_med('C','2','HPart_Epargne_Livrets','N','http://www.ca-centreouest.fr/simulateur-livrets');
			break;
		case "pel":
			xt_med('C','2','HPart_Epargne_PEL','N','http://www.ca-centreouest.fr/simulateur-pel');
			break;
		case "cel":
			xt_med('C','2','HPart_Epargne_CEL','N','http://www.ca-centreouest.fr/simulateur-cel');
			break;
		default:
			;
	}
}

function assurance(type){
	switch(type){
		case "auto":
			xt_med('C','2','HPart_Assurance_Auto','N','https://portail-e-iard.assurances-dommages.pacifica.credit-agricole.fr/pacifica/entreeBam?P_RESCOM=CA&NUMCR=89500&P_LNAPPO=&P_SITTRAV=SIMAUTO','_blank');
			break;
		case "2roues":
			xt_med('C','2','HPart_Assurance_2roues','N','http://www.ca-centreouest.fr/particuliers/assurance-deux-roues.html');
			break;
		case "sante":
			xt_med('C','2','HPart_Assurance_Sante','N','https://portail-e-iard.assurances-dommages.pacifica.credit-agricole.fr/pacifica/entreeBam?P_RESCOM=CA&NUMCR=89500&P_LNAPPO=&P_SITTRAV=SIMSANTE','_blank');
			break;
		case "habitation":
			xt_med('C','2','HPart_Assurance_Habitation','N','https://portail-e-iard.assurances-dommages.pacifica.credit-agricole.fr/pacifica/entreeBam?P_RESCOM=CA&NUMCR=89500&P_LNAPPO=&P_SITTRAV=SIMHABI','_blank');
			break;
		case "pj":
			xt_med('C','2','HPart_Assurance_PJ','N','https://portail-e-iard.assurances-dommages.pacifica.credit-agricole.fr/pacifica/entreeBam?P_RESCOM=CA&NUMCR=89500&P_LNAPPO=&P_SITTRAV=SIMPJ','_blank');
			break;
		case "gav":
			xt_med('C','2','HPart_Assurance_GAV','N','https://portail-e-iard.assurances-dommages.pacifica.credit-agricole.fr/pacifica/entreeBam?P_RESCOM=CA&NUMCR=89500&P_LNAPPO=&P_SITTRAV=SIMGAV','_blank');
			break;
		default:
			;
	}
}

function credit(type){
	switch(type){
		case "auto":
			xt_med('C','2','HPart_Credit_Auto','N','https://consoventeppa.credit-agricole.fr/rcar/controller/car?q6=895I01&p1=TEMA');
			break;
		case "2roues":
			xt_med('C','2','HPart_Credit_2roues','N','https://consoventeppa.credit-agricole.fr/rcar/controller/car?q6=895I01&p1=2ROUES');
			break;
		case "mozaic":
			xt_med('C','2','HPart_Credit_permis_mozaic','N','https://consoventeppa.credit-agricole.fr/rcar/controller/car?q6=895I01&p1=MOZAIC_PERMIS');
			break;
		case "habitation":
			xt_med('C','2','HPart_Credit_Habitation','N','https://immobilier.credit-agricole.fr/creditimmo/ca/immo.php?pagevoulue=projet&code=S5VTV2&page=simulation');
			break;
		case "travaux":
			xt_med('C','2','HPart_Credit_Travaux','N','https://consoventeppa.credit-agricole.fr/rcar/controller/car?q6=895I01&p1=BUDGET');
			break;
		case "confort":
			xt_med('C','2','HPart_Credit_Confort','N','https://consoventeppa.credit-agricole.fr/rcar/controller/car?q6=895I01&p1=MAISON');
			 
			break;
		default:
			;
	}
}
