var AutoCompletion = {
		Author: 'The Rubik\'s Man',
		
		Version: '1.0',
		
		Libraries: ['prototype', 'effects', 'autoCompleteur_lib'],
		
		include: function (library) {
			document.write('<script type="text/javascript" src="'+this.basePath+'required/'+library+'"></script>');
		},
		
		loader: function () {
			for(var i=0;i<this.Libraries.length;i++) this.include(this.Libraries[i]+'.js');
		},
		
		librariesController: function () {
			if  (typeof Prototype == 'undefined') {
				alert('Librairie " prototype " introuvable dans le dossier " '+this.basePath+'required/" ');
				return false;
			}
			else if ((parseFloat(Prototype.Version.split(".")[0]+"."+Prototype.Version.split(".")[1])<1.4)) {
				alert('La version '+Prototype.Version+' de la librairie " prototype " est trop ancienne ( version minimum : 1.4 )');
				return false;
			}
			
			if (typeof Effect == 'undefined') {
				alert('Librairie " effects " introuvable dans le dossier " '+this.basePath+'required/" ');
				return false;
			}
			
			return true;
		},
		
		starter: function () {
			var Scripts = document.getElementsByTagName('script');
			for(var i=0;i<Scripts.length;i++) {
				if ( Scripts[i].getAttribute('src') && Scripts[i].getAttribute('src').match(/autoCompleteur.js/) ) {
					this.basePath = Scripts[i].getAttribute('src').replace(/autoCompleteur.js/,'');
					break;
				}
			}
			this.loader();
		}
}
AutoCompletion.starter();

//
//	Librairie by The Rubik's Man
//		 © 2005-2006
//