var Combo= new Class({
			options:{
				visor:'',// string selector CSS
				navegador:'',// string selector CSS
				posNav:Class.empty//elemento detrás del cual se colocará el navegador si es creado durante la ejecución
			},
			initialize: function(options){
				this.setOptions(options);
				this.visor= new Visor({
					slides:this.options.visor
				});
				
				this.navegador= new Navegador({
					elms: this.options.navegador,
					visor: this.visor
				});
				
				/*if(this.options.navegador==''){
					alert('vacio');
					this.creaNavegador();
				}else{
					alert('no');
					this.navegador= new Navegador({
						elms:this.options.navegador,
						visor:this.visor
					});
				};*/
				
				this.navegador.visor=this.visor;
				this.visor.addEvent('onShow', function(){this.navegador.actuMarca(this.visor.now)}.bind(this));
			},
			creaNavegador: function(){
				alert(this.visor.slides.length);
				var thumbs=[];
				var cont= new Element('ul');
				cont.className='navegador';
				this.visor.slides.each(function(sld){
					var thumb= new Element('li');
					thumb.appendText(this.visor.slides.indexOf(sld));
					thumb.injectInside(cont);
					thumbs.push(thumb);
				},this)
				cont.injectAfter($(this.options.posNav));
				this.navegador=new Navegador('.navegador li');
				//this.navegador.addElms(thumbs);
				//return thumbs;
			}
		})
		
		Combo.implement(new Options, new Events)// JavaScript Document
