function login_form()
{
	$('#login_links').css({display:'none'});
	$('#login_form').css({display:'block'});
	$('#login_form').find('input[name=email]').focus();
}

var Slider = {
	slider: null,
	
	next: function(ob)
	{
		this.init(ob);
		this.show(false, this.slider[0]._current_slide + 1);
	},
	
	back: function(ob)
	{
		this.init(ob);
		this.show(false, this.slider[0]._current_slide - 1);
	},
	
	show: function(ob, index)
	{
		this.init(ob);
		
		if (index < 0 || index >= this.slider[0]._total_slides) return;
		
		$(this.slider.find('div.slide').hide().get(index)).show();
		this.slider.find('span.slider_point').removeClass('selected')[index].className += ' selected';		
		this.slider[0]._current_slide = index;
	},
	
	init: function(ob)
	{	
		if ( ! ob) return;
		this.slider = $(ob).parents('div.slider');
		if ( ! this.slider[0]._total_slides)
		{
			this.slider[0]._current_slide = 0;
			this.slider[0]._total_slides  = this.slider.find('div.slider_content div.slide').length;
		}
	}
}