///////////////////////////////////// HomePage Component Object/////////////////////////////////function HomePageComponent() {    // Private Attributes.    this.allImages = new Array();    this.onPageImages = 4;    this.countImages = 14;    this.loadedImages = 0;    this.currentImages = 0;    this.name;    this.flashversion;    // Public Attributes.    // Private Methods.    // Public Methods.    this.init = HomePageComponent_init;    this.swapImages = HomePageComponent_swapImages;    this.checkLoaded = HomePageComponent_checkLoaded;    this.swapSingleImage = HomePageComponent_swapSingleImage;    this.save = HomePageComponent_save;} function HomePageComponent_init() {	if (!( this.flashversion >= 6 )){		for (var i = 0; i < this.countImages; i++ )		{			this.allImages[i] = new Image();			this.allImages[i].src = "" + ROOT_BASE_URL + "/images/components/accueil/noflash/nf_" + i + ".jpg";		}		setTimeout("" + this.name + ".swapImages()", 1000);	}	else		return;}function HomePageComponent_swapImages() {	if ( this.loadedImages == 0 )		this.loadedImages = this.checkLoaded();	if ( this.loadedImages == 0 )	{		//images are not loaded, we call back the function 		setTimeout("" + this.name + ".swapImages()", 200);	}	else	{		//swap images		for (var i=0; i< this.onPageImages; i++)			setTimeout("" + this.name + ".swapSingleImage(" + i + ")", i*400);			// we call back the function lately		setTimeout("" + this.name + ".swapImages()", 3000);	}}function HomePageComponent_checkLoaded() {	var cmptr=0;	for ( var i=0; i< this.countImages; i++)	{		if ( this.allImages[i].complete )			cmptr++;	}	if ( cmptr == this.countImages)		return 1;	else		return 0;}function HomePageComponent_swapSingleImage( idx ){	document.getElementById("img" + idx +"").src = this.allImages[this.currentImages].src;	this.currentImages++;	if ( this.currentImages == this.countImages )		this.currentImages = 0;}function HomePageComponent_save(sender) {    // TO DO}