function bgheight() {
	$("#background").css("height",1+"px");
	var height=$(document).height();
	$("#background").css("height",height+"px");
}
$(window).load(bgheight);
$(window).resize(bgheight);

function newsheight() {
	var item=$('#home-item');
	if (!item) return;
	var height=item.height();
	$('#page').css("min-height",(height-30)+"px");
}
$(window).load(newsheight);
//--

$(window).load(function() {
	$('a[rel*=lightbox]').lightBox();
});

var timer_hide_the_others=null;
function hide_the_others() {
	if (timer_hide_the_others) clearTimeout(timer_hide_the_others);
	timer_hide_the_others=setTimeout("timed_hide_the_others()",1000);
}
function timed_hide_the_others() {
	if (!window.once_show_the_others) return;
	window.once_show_the_others=false;
	$("#the-others").toggle('slide');
}
function show_the_others() {
	if (window.once_show_the_others) return;
	window.once_show_the_others=true;
	$("#the-others").toggle('slide');
}
$(window).load(hide_the_others);
