$(document).ready(
	function(){
		$('#newser').innerfade({
		speed: 'slow',
		timeout: 4000,
		type: 'sequence',
		containerheight: '11px'
	});
});

function fave(type, id)
{
	$.post('/2008/script/faves.script.php', { a : type, i : id }, 
		function(html) {
			updatefave(html, id, type);
	});
}

function updatefave(html, id, type)
{
	(type == 1) ? $('#sfave-' + id).css({background : '#0c0'}) : $('#sfave-' + id).css({background : '#666'});
	$('#fave-' + id).html(html);
}

function remember_me()
{
	var email = $('input#email').val();

	$.post('/2008/script/remem.script.php', { e : email }, 
		function(html) {
			$('.form_profile_results').html(html);
	});
}