//menu.js
// Browser detect code

var ie4=document.all;
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;

function showPortfolio() {
	inHTM =         "|&nbsp;<A HREF='testimonials.htm' style='font-size:7pt'>TESTIMONIALS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='case_studies.htm' style='font-size:7pt'>CASE STUDIES&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='clients.htm' style='font-size:7pt'>CLIENTS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='partnerships.htm' style='font-size:7pt'>PARTNERSHIPS&nbsp;&nbsp;&nbsp;</A>|";
//	document.all.cell1.style.width=260;
//	document.all.portfolio.innerHTML=inHTM;
	if (ie4){
		document.all.cell1.style.width=269;
		document.all.portfolio.innerHTML=inHTM;
	}
	else if (ns6)
	{
	document.getElementById('cell1').style.width=269;
	document.getElementById('portfolio').innerHTML=inHTM;
	}

}
function showServices() {
	inHTM =         "|&nbsp;<A HREF='custom_design.htm' style='font-size:7pt'>IN-HOUSE PROGRAMS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='consulting.htm' style='font-size:7pt'>CONSULTING SERVICES&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='services.htm#seminar' style='font-size:7pt'>PUBLIC SEMINARS&nbsp;&nbsp;&nbsp;</A>|";
	if (ie4)
	{document.all.cell1.style.width=192;
	document.all.portfolio.innerHTML=inHTM;
	}
	else if (ns6)
	{
	document.getElementById('cell1').style.width=192;
	document.getElementById('portfolio').innerHTML=inHTM;
	}

}
function showPortfolioFR() {
	inHTM = "|&nbsp;<A HREF='testimonialsFR.htm' style='font-size:7pt'>TÉMOIGNAGES&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='case_studiesFR.htm' style='font-size:7pt'>ÉTUDES DE CAS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='clientsFR.htm' style='font-size:7pt'>CLIENTS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='partnershipsFR.htm' style='font-size:7pt'>PARTENARIAT&nbsp;&nbsp;&nbsp;</A>|";
//	document.all.cell1.style.width=260;
//	document.all.portfolio.innerHTML=inHTM;
	if (ie4)
	{document.all.cell1.style.width=260;
	document.all.portfolio.innerHTML=inHTM;
	}
	else if (ns6)
	{
	document.getElementById('cell1').style.width=260;
	document.getElementById('portfolio').innerHTML=inHTM;
	}

}
function showServicesFR() {
	inHTM = "|&nbsp;<A HREF='custom_designFR.htm' style='font-size:7pt'>PROGRAMMES PERSONNALISÉS&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='consultingFR.htm' style='font-size:7pt'>SERVICES DE CONSULTATION&nbsp;&nbsp;&nbsp;</A>";
	inHTM = inHTM + "|&nbsp;<A HREF='servicesFR.htm#seminar' style='font-size:7pt'>SÉMINAIRES PUBLICS&nbsp;&nbsp;&nbsp;</A>|";
	if (ie4)
	{document.all.cell1.style.width=184;
	document.all.portfolio.innerHTML=inHTM;
	}
	else if (ns6)
	{
	document.getElementById('cell1').style.width=184;
	document.getElementById('portfolio').innerHTML=inHTM;
	}

}
function showNought() {
	if (ie4)
	{document.all.portfolio.innerHTML='&nbsp;';
	}
	else if (ns6)
	{document.getElementById('portfolio').innerHTML='&nbsp;';
	}
	
}
function doChange (selSelectObject) {
   if (selSelectObject.options[selSelectObject.selectedIndex].value != "")
   { 
     gotopage = selSelectObject.options[selSelectObject.selectedIndex].value;
	if (ie4)
	{document.all.newsL.src=gotopage;
	}
	else if (ns6)
	{document.getElementById('newsL').src=gotopage;
	}
     //alert("Selection = " + gotopage);
     //location.href=selSelectObject.options[selSelectObject.selectedIndex].value;
   }
}

function doChangeit (selSelectObject) {
	var sel,str,pos1,pos2;

	sel=selSelectObject.options[selSelectObject.selectedIndex].value;

	if (sel != "") { 
		pos1 = sel.substr(1,2);
		pos2 = sel.substr(0,1);
		if (pos1 == "FR" ){
			str = "newsletterFR.asp?num="+sel;
		} else {
			str = "newsletter.asp?num="+sel;
		}
		return str;
	}
}
