<!--
function Popup(page,nom,largeur,hauteur,scroll,menu,status,resize,dir,tool,loc) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open('"'+page+'","'+nom+'","top='+top+',left='+left+',width='+largeur+',height='+hauteur+',directories='+dir+',toolbar='+tool+',location='+loc+',resizable='+resize+',scrollbars='+scroll+',menubar='+menu+',status='+status+'"');
}


// tab des pub, durée en secondes
tab_pub = [
	{lien:"http://www.f-onekites.com", visuel:"pub/banner_baston.gif", type:"img", onclick:"", duree:25},
	{lien:"http://www.flysurf.com", visuel:"pub/rhino09_fs.swf", type:"swf", onclick:"", duree:29},
	{lien:"http://www.f-onekites.com", visuel:"pub/banner_baston.gif", type:"img", onclick:"", duree:25},
	{lien:"http://www.bastonv2.com/gagner-du-matos.php", visuel:"pub/gagner-du-matos.gif", onclick:"", type:"img", duree:25},
	{lien:"http://www.flysurf.com", visuel:"pub/rhino09_fs.swf", type:"swf", onclick:"", duree:29},
	{lien:"http://www.naishsurfing.com/en/news/index.php", visuel:"pub/bandeau_naish.gif", type:"img", onclick:"pageTracker._trackPageview('/skyscraper/naish.fr');", duree:29},
	{lien:"http://www.carbonartwindsurf.com", visuel:"pub/carbonat2.gif", type:"img", onclick:"pageTracker._trackPageview('/skyscraper/carbonart');", duree:29}
];

// tab des pub, durée en secondes pour le bandeau du bas
tab_pub_bandeau = [

	{lien:"mailto:wup@baston.fr", visuel:"pub/votre_pub.jpg", type:"img", duree:22}
];


//script pour les 4 pubs ========================================================================================
num_pub = 0;
timer = [];


function affPub(num) {

	// contenu de la pub
	txt = tab_pub[num_pub];

	// pub suivante ...
	num_pub = (num_pub == (tab_pub.length-1)) ? 0 : num_pub+1;

	if (txt.type == "img"){
		var contenu = "<a href=\"" + txt.lien + "\" target=\"_blank\" onclick=\"" + txt.onclick + "\"><img src=\"" + txt.visuel + "\" width='103' height='238' border='0'></a>";
	}

	if (txt.type == "swf"){
		var contenu ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='103' height='238'><param name='movie' value='" + txt.visuel + "'><param name='quality' value='high'><embed src='" + txt.visuel + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='103' height='238'></embed></object>"
	}

	if (document.getElementById){
		document.getElementById("pub"+num).innerHTML = contenu;
	}
	else if (document.all){
		document.all["pub"+num].innerHTML = contenu;
	}

	clearInterval(timer[num]);
	timer[num] = setInterval("affPub"+num+"();", txt.duree*1000);

}


function affTout() {

	for (i=0;i<tab_pub.length;i++){
		tab_pub[i].tri = Math.random();
	}

	tab_pub.sort(function(x,y){return (x.tri < y.tri) ? -1 : 1;});

	// aff des éléments
	affPub(1);
	affPub(2);
	affPub(3);
	affPub(4);

}



function affPub1() {
	affPub(1);
}

function affPub2() {
	affPub(2);
}

function affPub3() {
	affPub(3);
}

function affPub4() {
	affPub(4);
}
// fin du script pour les 4 pubs ========================================================================================