// POOF

	poof1 = new Image(64,64); poof1.src = "/images/poof-1.gif";
	poof2 = new Image(64,64); poof2.src = "/images/poof-2.gif";
	poof3 = new Image(64,64); poof3.src = "/images/poof-3.gif";
	poof4 = new Image(64,64); poof4.src = "/images/poof-4.gif";
	poof5 = new Image(64,64); poof5.src = "/images/poof-5.gif";

/*
	poof = new Image(64,64); poof.src = "/images/poof.gif";
	inline_delete = new Image(15,15); inline_delete.src   = "/images/inline_delete_mouseover.gif";

	bb_remove = new Image(); bb_remove.src   = "/images/bbb_remove_over.gif";
	bb_heart = new Image(); bb_heart.src   = "/images/bbb_heart_over.gif";
	bb_restore = new Image(); bb_restore.src   = "/images/bbb_restore_over.gif";

	bb_card = new Image(); bb_card.src   = "/images/bb_card_mouseover.gif";
	bb_letter = new Image(); bb_letter.src   = "/images/bb_letter_mouseover.gif";
	bb_h_00 = new Image(); bb_h_00.src   = "/images/bbb_h_00_over.gif";
	bb_h_01 = new Image(); bb_h_01.src   = "/images/bbb_h_01_over.gif";
	bb_h_10 = new Image(); bb_h_10.src   = "/images/bbb_h_10_over.gif";
	bb_h_11 = new Image(); bb_h_11.src   = "/images/bbb_h_11_over.gif";
	fc_00 = new Image(); fc_00.src   = "/images/fc_00.gif";
	fc_1x = new Image(); fc_1x.src   = "/images/fc_1x.gif";
	fc_removed = new Image(); fc_removed.src   = "/images/fc_removed.gif";
*/	
	var floatercell_height = 220;
	
	function remove_profile(u1, u2){
		startPoof(u2);
		x = new Image(1, 1);
		x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=-1&sid=' + Math.random(); 
	}

	function restore_profile(u1, u2){
		startPoof(u2);
		x = new Image(1, 1);
		x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=0&sid=' + Math.random(); 
	}

	function startPoof(u){
		document.getElementById('p' + u).innerHTML = '<div class="paddingDiv"><div class="floatercell" style="height: ' + floatercell_height + 'px; text-align: center"><img src="/images/spacer.gif" id="poof_image" style="margin-top: 36px"></div></div>';
		poofCount = 0;
		poofTimer = setInterval('animatePoof(\'' + u + '\')', 75);
	}

	function animatePoof(u){
		poofCount++;
		if(poofCount == 6){
			document.images['poof_image'].src = "/images/spacer.gif";
			clearInterval(poofTimer);
			remove_obj('x' + u);
		}else{
			document.images['poof_image'].src = eval("poof"+poofCount+".src");
		}
	}


	function select_profile(u1, u2, t, p){
		x = new Image(1, 1);
		if(t.checked){
		    document.getElementById('p' + u2).setAttribute("class", "selected");
		    document.getElementById('p' + u2).setAttribute("className", "selected");
			x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=1&sid=' + Math.random(); 
		}else{
		    document.getElementById('p' + u2).setAttribute("class", "unselected");
		    document.getElementById('p' + u2).setAttribute("className", "unselected");
			x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=0&sid=' + Math.random(); 
		}
		
		if(p == 1) setTimeout('startPoof(\'' + u2 + '\')', 300);
	}

	function select_profile2(u1, u2, p){
		x = new Image(1, 1);
		if(document.getElementById('h' + u2).value == 0){
		    document.getElementById('p' + u2).setAttribute("class", "selected");
		    document.getElementById('p' + u2).setAttribute("className", "selected");
		    document.getElementById('h' + u2).value = 1;
			x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=1&sid=' + Math.random(); 
		}else{
		    document.getElementById('p' + u2).setAttribute("class", "unselected");
		    document.getElementById('p' + u2).setAttribute("className", "unselected");
		    document.getElementById('h' + u2).value = 0;
			x.src = 'http://tau2.com/inc/t_uu_status.php?u1=' + u1 + '&u2=' + u2 + '&status=0&sid=' + Math.random(); 
		}
		
		if(p == 1) setTimeout('startPoof(\'' + u2 + '\')', 300);
	}
