function swapStyle(elt, className) {
    elt.className = className;
}

function swapImage(elt, img) {
    elt.src = img;
}

var searchPath = '/fr/search/';

function searchFor(){
    var kw = document.getElementById('search').value;
    if(kw == '') {
        return;
    }
    document.location.href = searchPath + kw + '.aspx';
}
var iCounter = 6;
var iMax = 6;


function highlightSearchBox(){
    if(iCounter >= iMax) {
        document.location.href='#searchbox';
        iCounter = 0;
    }
    
    if(document.getElementById('search').className == 'inputSearchEx') {
        document.getElementById('search').className = 'inputSearch';
    } else {
        document.getElementById('search').className = 'inputSearchEx';
    }
    
    if(++iCounter < iMax) {
       setTimeout("highlightSearchBox()", 300);
    } else {
        document.getElementById('search').focus();
    }
}