﻿function twAller(_url,_cadre,_target) {
if(_url=="nosite"){
	alert("site bientôt en ligne");
	return false;
}

if (_cadre) {
parent._cadre.location.href = _url;
} else if (_target) {
_target = window.open(_url,_target);
} else {
window.location.href = _url;
}
}
function roll_off(){
document.images['activites'].src = '../images/FR/home-04.gif';
document.images['quisommesnous'].src = '../images/FR/home-02.gif';
document.images['structure'].src = '../images/FR/home-03.gif';
document.images['microfinance'].src = '../images/FR/home-06.gif';
document.images['partenaires'].src = '../images/FR/home-05.gif';
}
function roll_off_home(){
document.images['activites'].src = 'images/FR/home-04.gif';
document.images['quisommesnous'].src = 'images/FR/home-02.gif';
document.images['structure'].src = 'images/FR/home-03.gif';
document.images['microfinance'].src = 'images/FR/home-06.gif';
document.images['partenaires'].src = 'images/FR/home-05.gif';
}
function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth+",left=0,top=0";
window.open(strURL, 'newWin', strOptions);
}
function LoadPopUp(listing,numb) {
var selecter;
if (numb == 1)
{  selecter = listing.global.options[listing.global.selectedIndex].value;  }
else if (numb == 2)
{  selecter = listing.maroc.options[listing.maroc.selectedIndex].value;  }
else if (numb == 3)
{  selecter = listing.japan.options[listing.japan.selectedIndex].value;  }
else if (numb == 4)
{  selecter = listing.microvision.options[listing.microvision.selectedIndex].value;  }
else if (numb == 5)
{  selecter = listing.pauvrete.options[listing.pauvrete.selectedIndex].value;  }
else if (numb == 6)
{  selecter = listing.technic.options[listing.technic.selectedIndex].value;  }
else if (numb == 7)
{  selecter = listing.partners.options[listing.partners.selectedIndex].value;  }
else
{  selecter = listing.global.options[listing.global.selectedIndex].value;  }
if (selecter != "")
{  popUp(selecter,'elastic',540,780);  }
}

function startList() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("dmenu");
		for (i=0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function Acheter(FID, FQTE){
	document.formpanier.ID.value = FID;
	document.formpanier.QTE.value = FQTE;
	document.formpanier.submit();
}

