
		var browserName = navigator.appName;
		var browserVer = parseInt(navigator.appVersion);
		var version = "";
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
		
	function email(user,domain,label,link) {
		var address = user+'@'+domain;
		var toWrite = '';
		if (link > 0) {toWrite += '<a href="mailto:'+address+'">';}
		if (label != '') {toWrite += label;} else {toWrite += address;}
		if (link > 0) {toWrite += '</a>';}
		document.write(toWrite);
	}$(document).ready(function() {    var theTable = $('table.tablesorter');

    theTable.find("tbody > tr").find("td:eq(1)").mousedown(function(){
            $(this).prev().find(":checkbox").click();
    });

    $("#eco-input-search").keyup(function() {
            $.uiTableFilter( theTable, this.value );

            // Reaffect the proper zebra style
            $("table").trigger("sorton",[0,0]);
            return false;
    })

    $('#eco-form-search').submit(function(){
            theTable.find("tbody > tr:visible > td:eq(1)").mousedown();
            return false;
    }).focus(); //Give focus to input field
    $('div.expandable').expander({
    expandText: '[lire plus]', // default is 'read more...' [en savoir plus]
    userCollapseText: '[^]'  // default is '[collapse expanded text]'
    });});

