$(function() {
	$("#scroller").scrollable({circular: true}).autoscroll({ autoplay: false });
});

$(function() {
	$('li#userLogin:not(.usermenuProcessed)').addClass('userloginProcessed').each(function(){
		var th = $(this);
		var thLogin = $('#user-login-form');
		th.hover(function(){
			thLogin.fadeIn('fast').addClass('open');
		})
    $('body').click(function(e){
			if(!$(e.target).is('li#userLogin *')){
        thLogin.hide().removeClass('open');				
			}    
    });		
	})
});

$(function() {
  $("[name=search_type]").sb({
    fixedWidth: true
  });
});
