$(document).ready(function() {
    $("#searchtext").focus(function () {
		$(this).addClass("focus");
	});
    $("#searchtext").blur(function () {
		$(this).removeClass("focus");
	});

	$('a.bt-linguas').click(function() {
		if ( $(this).hasClass('active') ) {
			$('#linguas ul').slideUp('fast');
			$(this).removeClass('active');
		}
		else {
			$(this).addClass('active');
			$('#linguas ul').slideDown('slow');
		}
		return false;
	});


//	$('#scrollbar1').tinyscrollbar({ axis: 'y', size: 100 });

	var oScroll2 = $('#scrollbar');
	if(oScroll2.length > 0){
		oScroll2.tinyscrollbar({ 
			axis: 'x', // vertical or horizontal scrollbar? ( x || y ).
			wheel: 46,  //how many pixels must the mouswheel scroll at a time.
			scroll: true, //enable or disable the mousewheel;
			size: '918', //set the size of the scrollbar to auto or a fixed number.
			sizethumb: '184' //set the size of the thumb to auto or a fixed number.
		});
	}

});
