	$(document).ready(function () {
		$('#q-top').bind('focus', function() 
			{ 
				if (this.value == "Rechercher parmi les articles, defiles, createurs, marques...")
					this.value = ''; 
			}
		);
		
		$('#q-top').bind('blur', function() 
			{ 
				if (this.value == '')
					this.value = "Rechercher parmi les articles, defiles, createurs, marques...";
			}
		);
	});
	
	$(document).ready(function () {
		$('#q-people').bind('focus', function() 
			{ 
				if (this.value == "Cherche..")
					this.value = ''; 
			}
		);
		
		$('#q-people').bind('blur', function() 
			{ 
				if (this.value == '')
					this.value = "Cherche..";
			}
		);
		
		$('#q-sante').bind('focus', function() 
			{ 
				if (this.value == "Cherche..")
					this.value = ''; 
			}
		);
		
		$('#q-sante').bind('blur', function() 
			{ 
				if (this.value == '')
					this.value = "Cherche..";
			}
		);
		
	});
	
	function doSearch(elemId, type)
	{
		q = document.getElementById(elemId).value;
		
		if (type == 'people')
		{
			prefix = "people/";
			sufix = "";
		} else if (type == 'musique') {
			prefix = "top-shopping-musique/";
			sufix = "";
		} else if (type == 'livre') {
			prefix = "top-shopping-livres/";
			sufix = "";
		} else if (type == 'film') {
			prefix = "top-shopping-films/";
			sufix = "-DVD";
		} else {
			prefix = "sante/";
			sufix = "";
		}
		
		q = q.replace(/[\s\+]/g, "-").replace(/[^a-zA-Z0-9\-]/, "");
		
		href = encodeURI("/" + prefix + q + sufix + ".html");
		document.location = encodeURI(href);
		return false;
	}
	
