window.addEvent('domready',function(){
	
	if(typeof(SqueezeBox) == "undefined"){
		new MoosIFR('#nav2 h5',{
			'textcolor':'FFFFFF',
			'flashsrc':'css/dauphin.swf',
			'paddingright':20,
			'wmode':'transparent'
		});
		
		new MoosIFR('#cont4 .title',{
			'textcolor':'B4AE21',
			'flashsrc':'css/arial.swf',
			'wmode':'transparent'
		});
	}else{
			SqueezeBox.initialize({
		        size: {x: 970, y: 490}
		    });
		 	
			SqueezeBox.open('index2.html'); // handler defaults to "ajax" for urls
			
			setTimeout("SqueezeBox.close()",45000);
	}
			 
				
			 
		
			
	var search_box = $('search');
	var search = function(){
		var text = search_box.getFirst().value.clean().toLowerCase();
		text = text.replace(/[^a-zA-Z0-9Ã¡Ã©Ã­Ã³ÃºÃ±Ã?Ã‰Ã?Ã“ÃšÃ‘ ]/g,'');
		text = text.replace(/ +/g,'+');
		window.location = lng+'/'+url_search+text;
		//window.location = '/test/aromaterapia/'+lng+'/'+url_search+text;
	}
	search_box.getFirst().addEvent('keyup',function(event){var event=new Event(event);if(event.key=='enter')search()});
	search_box.getLast().addEvent('click',function(){search();});
	/*/sifr
	if($type(sIFR)=='function'){
		//nav2 titles
		$$('#nav2 h5').each(function(el){el.setStyle('font-size',window.ie?10:15)});
		sIFR.replaceElement("#nav2 h5", "css/dauphin.swf", "#FFFFFF", "#FFFFFF", "#FFFFFF", "#FFFFFF", 0, 0, 0, 20, null, null, 'transparent');
		//content titles
		//$$('#cont4 .title').each(function(el){el.setStyle('font-size',18)});
		sIFR.replaceElement("#cont4 .title", "css/arial.swf", "#b4ae21", "#FFFFFF", "#FFFFFF", "#FFFFFF", 0, 0, 0, 0, null, 'upper', 'transparent');
	};//*/
	//$$('#nav2 h5').each(function(el){el.setStyle('font-size',15)});
	
	/**/

});