

function init() {
MM_preloadImages('../images/3mitps_f2.gif','../images/boutiq_f2.gif','../images/avis_f2.gif'); 
sondage();
regenerate2();
}  


/*
Cross browser marquee script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


//Specify the marquee's width (in pixels)
var marqueewidth=300
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=13
//Specify the marquee's scroll speed (larger is faster)

	if (navigator.userAgent.indexOf("Win") >=0 ) var cpu = "pc";  //PC
	else var cpu = "mac";


	if (cpu == "pc") {
	var speed=2;
	var Intervalle=100;
	var HauteurSondage=230;
	}

	if (cpu == "mac") {	
	var speed=1; 
	var Intervalle=400;
	var HauteurSondage=270;
	}



function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",Intervalle)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}



function sondage() {
	if (IdSondage > 0) {
	toto = window.open('/sondage/sondage.asp?Id='+IdSondage, 'Sondage', 'scrollbars=0,toolbar=0,menubar=no,resizable=0,height='+ HauteurSondage +',width=330');
	toto.moveTo(24, 200);
	toto.focus();
	}
}
