function switchLang(langID) {
	currentURL = window.location.href;
	currentURL = currentURL.replace("?option=sendemail","");
	if (langID == 4105) { 
		location.href=currentURL.replace("_f.", "_e.");
	} else {
		location.href=currentURL.replace("_e.", "_f.");
	}
}


var temoignages_en = [
	{
		text:'"<i>David is a highly professional and knowledgeable expert in the SEO/SEM field. He was able to effectively structure our SEO/SEM strategy in order for us to increase our exposure on the Internet in a very short timeframe. He understands our requirements and he set’s measurable objectives to continuously evaluate our progression. Finally, he’s a great individual and I would surely recommend him.</i>"',
		by:'<span class="red"><b>Anthony Lacopo</b></span>, President, Utopia Image'
	},
	{
		text:'"<i>David is a great person to work with. He always listens to his customers needs and provides best fit solution and with the best results possible. I am very happy with what we achieved in the SEO campaign conducted by David</i>"',
		by:'<span class="red"><b>Sergei Kulikov</b></span>, Web Developper, CAE'
	},
	{
		text:'"<i>DNCOM Marketing helped us realize the importance of increasing our exposure on the international market. David’s recommendations will more than pay off the investment we made. The improved traffic resulted in overseas contracts. We were extremely satisfied with the results in the analysis and we strongly recommend David who is highly competent and committed to the success of his clients. Thanks for your assistance in this most important part of our business</i>"',
		by:'<span class="red"><b>Lucia Marguglio </b></span>, Owner, Comunicatus'
	}
];

var temoignages = [
	{
		text:'"<i>David a effectué tout un travail pour nous. Le référencement Internet dans les engins de recherche est une priorité de notre plan marketing. Après avoir analysé à fond notre problématique marketing, David a émis plusieurs recommandations.. Nous les avons suivies à la lettre et les résultats sont spectaculaires. Les visites sur Acquizition.biz en provenance de Google, par exemple, ont augmenté de 30% en 10 jours. Merci David !</i>"',
		by:'<span class="red"><b>Éric Lussier</b></span>, Directeur Général, Acquizition.biz'
	},
	{
		text:'"<i>David est professionnel, gentil, patient, généreux avec son temps, très centré sur mes préoccupations, compétent, avec une excellente écoute. Il a fait le suivi avec professionnalisme. David m&lsquo;a semblé totalement orienté vers les résultats souhaités. Et c&lsquo;est ce qui compte le plus pour un entrepreneur qui veut réussir. Merci David. J&lsquo;ai recommandé les services de David à d&lsquo;autres entrepreneurs</i>"',
		by:'<span class="red"><b>Michel C. Lavoie</b></span>, Président, Coaching MCL'
	},
	{
		text:'"<i>David est une personne très professionnelle. Il écoute et comprend les besoins de ses clients, et recommande la meilleure solution adaptée à leurs objectifs, tout en assurant des résultats mesurables. Je suis très satisfait des résultats obtenus par David lors de notre campagne de marketing et référencement Internet.</i>"',
		by:'<span class="red"><b>Sergei Kulikov</b></span>, Intégrateur Web, CAE'
	},
	{
		text:'"<i>C&lsquo;est avec grand plaisir que j&lsquo;ai travaillé en partenariat avec David pour le compte de l&lsquo;un de nos clients. Professionnel et toujours prêt pour nous aider, il nous a été d&lsquo;un grand soutien. Il est en mesure de bien vulgariser les différentes avenues que nous offre le référencement internet</i>"',
		by:'<span class="red"><b>Mathieu Bélanger</b></span>, Président, K3 Média'
	},
	{
		text:'"<i>We worked with David and I must say the work was on-target and well prepared. The solutions he brought to the table were directly in line with our requirements</i>"',
		by:'<span class="red"><b>Alexandre Gravel</b></span>, Président, Toast Studio'
	},
	{
		text:'"<i>DavidC&lsquo;s work is very thorough. He provides lots of details so that we can make informed decisions about a websiteC&lsquo;s search engine optimisation. He also stays up to date in a field thatC&lsquo;s constantly changing</i>"',
		by:'<span class="red"><b>Brad Muncs</b></span>, Président, Symetris'
	},
	{
		text:'"<i>David est un expert et un professionnel reconnu dans l’industrie du référencement. Il fut capable de structurer notre stratégie Web/SEO afin d’augmenter notre visibilité naturelle, et ce dans un court délai. Il a très bien compris nos besoins et objectifs, et mis en place des outils de mesures afin de bien quantifier les résultats. Également il est une très bonne personne, et je le recommande sans hésiter.</i>"',
		by:'<span class="red"><b>Anthony Lacopo</b></span>, Président, Utopia Image'
	}
];
var currentTemoignage = 0;

// rollOvers
window.addEvent('domready', function() {
	//preload images
	var aPreLoad = new Array();
	var aPreLoadi = 0;
	
	//do rollover
	$$('img.roll', 'input.roll').each(function(el){
		//let's preload
		aPreLoad[aPreLoadi] = new Image();
		aPreLoad[aPreLoadi].src = el.src.replace(el.src.replace('_off.', '_on.'));
		aPreLoadi++;
	
		el.addEvent('mouseover',function(){
			this.setAttribute('src',this.src.replace('_off.', '_on.'));
		});
	
		el.addEvent('mouseout',function(){
			this.setAttribute('src',this.src.replace('_on.','_off.'));
		});
	});
	
	// FR
	// si il y a un navigation pour les temoignages, gerer celle ci
	if ($('temoignage-precedent')) {
		$('temoignage-precedent').addEvent('click',function() {
			currentTemoignage = currentTemoignage == 0 ? temoignages.length-1: --currentTemoignage;
			displayTemoignage();
		});
		$('temoignage-suivant').addEvent('click',function() {
			currentTemoignage = currentTemoignage == temoignages.length-1 ? 0: ++currentTemoignage;
			displayTemoignage();
		});
	
		function displayTemoignage() {
			var p = $('temoignages').getElements('p');
		
			p[0].fade('out');
			p[1].fade('out');
			(function(){
				p[0].set('html', temoignages[currentTemoignage].text);
				p[1].set('html', temoignages[currentTemoignage].by);
			}).delay(400);
			(function(){
				p[0].fade('in');
				p[1].fade('in');
			}).delay(800);
		}
	}
	
	// EN
	// si il y a un navigation pour les temoignages, gerer celle ci
	if ($('temoignage-precedent-en')) {
		$('temoignage-precedent-en').addEvent('click',function() {
			currentTemoignage = currentTemoignage == 0 ? temoignages_en.length-1: --currentTemoignage;
			displayTemoignageEn();
		});
		$('temoignage-suivant-en').addEvent('click',function() {
			currentTemoignage = currentTemoignage == temoignages_en.length-1 ? 0: ++currentTemoignage;
			displayTemoignageEn();
		});
	
		function displayTemoignageEn() {
			var p = $('temoignages_en').getElements('p');
		
			p[0].fade('out');
			p[1].fade('out');
			(function(){
				p[0].set('html', temoignages_en[currentTemoignage].text);
				p[1].set('html', temoignages_en[currentTemoignage].by);
			}).delay(400);
			(function(){
				p[0].fade('in');
				p[1].fade('in');
			}).delay(800);
		}
	}	
	
	// EN
	// remplir la page temoignage avec les temoignages javascript ;)
	if ($('all-temoignages-en')) {
		var html = '';
		
		for (var i=0; i< temoignages_en.length; i++)
			html += '<p>'+temoignages_en[i].text+'</p><p>'+temoignages_en[i].by+'</p><div style="background:#fff url(../../_images/bg_dots_horizontal_repeat.gif) repeat-x scroll 0 50%;">&nbsp;</div>';
			
		$('all-temoignages-en').set('html', html);
	}
	
	// FR
	// remplir la page temoignage avec les temoignages javascript ;)
	if ($('all-temoignages')) {
		var html = '';
		
		for (var i=0; i< temoignages.length; i++)
			html += '<p>'+temoignages[i].text+'</p><p>'+temoignages[i].by+'</p><div style="background:#fff url(../_images/bg_dots_horizontal_repeat.gif) repeat-x scroll 0 50%;">&nbsp;</div>';
			
		$('all-temoignages').set('html', html);
	}	
	
});