function unhideEmail(a,sx,dm,nm,ihtml){
	document.getElementById(a).href='mai' + 'lto:' + nm + String.fromCharCode(64) + dm  + String.fromCharCode(46) + sx;
	if (ihtml){
		document.getElementById(a).innerHTML=nm + String.fromCharCode(64) + dm  + String.fromCharCode(46) + sx;
	}
}
function hideEmail(a,ihtml){
	document.getElementById(a).href='javascript:;';
	if (ihtml)
		document.getElementById(a).innerHTML=ihtml;
}

function sponsors_carousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

$(function() {
	$('#sponsors-carousel').jcarousel({
			auto: 2,
/*			rtl: true,*/
			visible: 5,
			scroll: 1,
			animation: 1800,
			wrap: 'circular',
			initCallback: sponsors_carousel_initCallback
	});

	$.smoothAnchors("normal", "swing", true);
});

