function logObject(object,mode)
{
	var end_line = "\n";
	switch(arguments.length)
	{
		case 0:
			throw({message: "logObject function needs one argument at least"});
			break;
		case 2:
			if("html" == mode)
			{
				end_line = "<br />";
			}
			break;
	}
	var wProp = new Array();
	var acc = "";
	for (var props in object)
	{
		wProp.push(props);
	}
	wProp.sort();
	for (var i = 0; i < wProp.length; i++)
	{
		acc += wProp[i] + end_line;
	}
	return acc;
}

$(document).ready(retour_haut);
$(window).resize(retour_haut);
$(window).scroll(retour_haut);

function retour_haut()
{
	if($('html')[0].scrollHeight != $('html')[0].offsetHeight)
	{
		$('.bottom_item_actions .back_to_top').css('display','inline');
	}
	else
	{
		$('.bottom_item_actions .back_to_top').css('display','none');
	}
}

$('.action a.close').live('click',tb_remove);
