// Method -- Toggle the block content and make an AJAX request
WindowEffects.prototype.ToggleDisplay = function()
{
	var toggle_this = this.id.split(".");
	var toggle_this_switch_on = document.getElementById(toggle_this[0] + ".inline");
	var toggle_this_switch_off = document.getElementById(toggle_this[0] + ".none");
	var toggle_this_content = document.getElementById(toggle_this[0]);
			
	var match_inline = /inline/;
	var replace_inline = "inline";
	
	var match_none = /none/;
	var replace_none = "none";
	
	
	if(this.rel == "table-row")
	{
		var match_block = "table-row";
		var replace_block = "table-row";
	}
	else
	{
		var match_block = "block";
		var replace_block = "block";
	}
	

	if(toggle_this_switch_on.className.match("inline"))
	{
		toggle_this_switch_on.className = toggle_this_switch_on.className.replace(match_inline, replace_none);
		toggle_this_switch_off.className = toggle_this_switch_off.className.replace(match_none, replace_inline);
		toggle_this_content.className = toggle_this_content.className.replace(match_block, replace_none);
		block_status = 'closed';
	}
	else
	{
		toggle_this_switch_on.className = toggle_this_switch_on.className.replace(match_none, replace_inline);
		toggle_this_switch_off.className = toggle_this_switch_off.className.replace(match_inline, replace_none);
		toggle_this_content.className = toggle_this_content.className.replace(match_none, replace_block);
		block_status = 'open';
	}

	if(window.ajax_flag != undefined) 
	{
		ob_ajax.method = "GET";
		ob_ajax.url = "/my_account/_track_block_status.php";
		ob_ajax.query = "block=" + toggle_this[0] + "&status=" + block_status;
		ob_ajax.callback = "";
		ob_ajax.AjaxRequest();
	}

	return false;
}