loginFormArray = new Array('action_login_form', 'action_login_choose','action_login_register', 'action_login_rappel');

sectionArray = new Array('ce-que-nous-proposons', 'instituer-le-changement', 'question-de-genres');

function loginShow(showDiv) {

	showOne(loginFormArray,showDiv);
}

/*
$('#discover_slide').before('<ul id="choose_discover">').cycle({ 
    fx:     'scrollHorz', 
    timeout: 3000,
    pager:  '#choose_discover', 
	pause:1,


    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) { 
        return '<a href="#">&nbsp;</a>'; 
    } 

});*/

function sendSearch(section)
{
	var isInArray = false;
	
	for (i = 0; i < sectionArray.length; i++)
	{
		if (section == sectionArray[i]) {
			isInArray = true;
			break;
		}
	}


	//alert('/section/'+ section +'/search/' + document.getElementById('input_search').value);
	if (empty(section) || isInArray == false) {
		window.location.href = '/accueil/recherche/' + document.getElementById('input_search').value;
	} else {
		window.location.href = '/'+ section +'/recherche/' + document.getElementById('input_search').value;
	}

}