
var actualProductImage = 0;


function ScalenaChangeJob(url)
{
	window.location = url;
}
    
function ScalenaInitSearch()
{
	
	
    $('#edit-search-theme-form-1').click(function () {
    	if ( $(this).val() == 'Recherche...' ) {
    		$(this).val('');
    	}
    });
    
    $('#edit-search-theme-form-1').blur(function () {
    	if ( $(this).val() == '' ) {
    		$(this).val('Recherche...');
    	}
    });


}
    
function ScalenaScrollList(listId, type)
{
    
    //var list = $('#' + listId);
	var list = document.getElementById(listId);
    var increment = 50;
    
    if ( type == 'down' ) {
        list.scrollLeft = list.scrollLeft + increment;
    } else {
        list.scrollLeft = list.scrollLeft - increment;
    }
    
}

function ScalenaNextView(total)
{
	/*
	var i;
	
	if ( actualProductImage < (total-1) ) {
		actualProductImage++;
	}
	
	for ( i = 0 ; i <= (total - 1) ; i++ ) {
		
		if ( i == actualProductImage ) {
			//alert('show image-' + i);
			$('#image-' + i).show();
		} else {
			//alert('hide image-' + i);
			$('#image-' + i).hide();
		}
	}
	*/

	
	
	$('#image-0').hide();
	//$('#image-1').hide();
	
	
}


$(document).ready(function() {
	ScalenaInitSearch();
});

