/*<![CDATA[*/
var vg="";
var vd="";
var hb="";
var c1="";
var c2="";
var c3="";

function bannieres(verticalG,verticalD,horizontalB,carre1,carre2,carre3){ // réactualise les bannières pubs
    vg=verticalG;
	loadiframe("vg"); // iframe pour tout gérer : javascript flash ou autre, etc ...
    vd=verticalD;
    loadiframe("vd");
    hb=horizontalB;
    loadiframe("hb");
    c1=carre1;
    c2=carre2;
    c3=carre3;
    loadiframe("c1");
    loadiframe("c2");
    loadiframe("c3");
}
function loadiframe(type){
    if (type=="c1" || type=="c2" || type=="c3") {
		var banDiv='ban_c';
    }else{
        var banDiv='ban_'+type;
    }
	if((eval(type)!="" && (type=="vg" ||type=="vd" ||type=="hb"))||((c1!="" || c2!="" || c3!="") && (type=="c1" || type=="c2" || type=="c3"))){
		if(document.getElementById){
			document.getElementById(banDiv).style.visibility='visible';
	        var iframe = document.getElementById('iframe'+type).src='pubiframe.php?type='+type;
	    } else if (document.all){
	        document.all[banDiv].style.visibility='visible';
	        var iframe = document.all['iframe'+type].src='pubiframe.php?type='+type;
	    }
	}else{
		if(document.getElementById){
			document.getElementById(banDiv).style.visibility='hidden';
	        //var iframe = document.getElementById('iframe'+type).src='pubiframe.php?type='+type;
	    } else if (document.all){
	        document.all[banDiv].style.visibility='hidden';
	       // var iframe = document.all['iframe'+type].src='pubiframe.php?type='+type;
	    }
	}
}
/*]]>*/