function swapFrameLang( frameIndex, English, Francais ) {	// swap English and French in frame[frameIndex], if either is found	if ( parent.frames[frameIndex].location.href.search( English ) != -1) {	// if English is found in frame[frameIndex], replace it with Francais		parent.frames[frameIndex].location.href = parent.frames[frameIndex].location.href.replace( English, Francais );	} else { if ( parent.frames[frameIndex].location.href.search( Francais ) != -1) {	// if Francais is found in frame[frameIndex], replace it with English		parent.frames[frameIndex].location.href = parent.frames[frameIndex].location.href.replace( Francais, English );	}} }function switchLang() {	// Switches between the english and french versions of the page	// This assumes that the pages are in an /en/,/fr/ set of directories	// or the page names end in En.html,Fr.html to designate language	// Note: this will not work properly in an href where both are true:	//       /en/testEn.html will NOT give you /fr/testFr.html	swapFrameLang( 0, "En\.html", "Fr\.html");	swapFrameLang( 1, "En\.html", "Fr\.html");	//swapFrameLang( 0, '\/en\/', '\/fr\/');	//swapFrameLang( 1, '\/en\/', '\/fr\/');	parent.location.reload();}
