/*
 * Defilement des pubs
 */
var nbimage=1500;
var width;
var height;
var url;
var alte;
var targ;
var gadzeo;
function banniere()
{
	numimage= Math.round(Math.random()*(nbimage-1)+1);
	if (numimage <= 300)
	{
		gotosite = "http://www.fondam.org/Dons/Accueil";
		width = 468;
		height = 60;
		url = "images/bando/pub-fondam-1.gif";
		script = "";
		alte = "Fondation Arts et M&eacute;tiers";
		targ = 'target="_blank"';
	}
	if ((numimage > 300) && (numimage <= 600))
	{
		gotosite = "https://www.gadz.org/";
		width = 468;
		height = 60;
		url = "images/bando/tgo2008_after.gif";
		script = "";
		alte = "After TGO";
		targ = ''
	}
	if ((numimage > 600) && (numimage <= 900))
	{
		gotosite = "http://thailande.gadz.org/Accueil/WE-Arts-et-Metiers-Asie-2009";
		width = 468;
		height = 60;
		url = "images/bando/we-am-asie-2009.gif";
		script = "";
		alte = "Week-End Gadz'Arts &agrave; Ho Chi Minh City";
		targ = '';
	}
	if ((numimage > 900) && (numimage <= 1200))
	{
		gotosite = "http://info.gadz.org/TGO2009";
		width = 468;
		height = 60;
		url = "images/bando/baniere-tgo-2009.gif";
		script = "";
		alte = "TGO 2009";
		targ = '';
	}
	if ((numimage > 1200) && (numimage <= 1500))
	{
		gotosite = "";
		width = 468;
		height = 60;
		url = "images/bando/gg_cl_2001.png";
		script = "";
		alte = "Grand Gala de Cuny 2010";
		targ= '';
	}
	
	if(gotosite != "") {
		document.write ('<a href="' + gotosite + '"' + targ + '>');	
	}
	if(url != "") {	
		if(url.substr(-3,3) != 'swf') {

			document.write('<img src="' + url + '" width="' + width + '" height="' + height + '" alt="' + alte + '" style="border:none;"><br/>')
		} else {

			document.write('<object type="application/x-shockwave-flash" data="' + url + '" width="' + width + '" height="' + height + '"><param name="src" value="' + url + '"></object><br />')
		}
	}	
	if(script != "") {	
		document.write(script)
	}
	if(gotosite != "") {
		document.write('</a>')
	}
}

