/*!======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.0.4
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

vB_XHTML_Ready.subscribe(init_ThreadBits);

function init_ThreadBits()
{
	var threadbits = YAHOO.util.Dom.getElementsByClassName("threadbit", "li", "threadlist");

	for (var i = 0; i < threadbits.length; i++)
	{
		new ThreadBit(threadbits[i]);
	}
}

function ThreadBit(threadbit)
{
	this.threadbit = YAHOO.util.Dom.get(threadbit);
	
	this.handle_description();
}

ThreadBit.prototype.handle_description = function()
{
	var descriptionElements = YAHOO.util.Dom.getElementsByClassName("threaddesc", "p", this.threadbit);
	
	if (descriptionElements && descriptionElements[0] && descriptionElements[0].firstChild)
	{
		this.description = descriptionElements[0].firstChild.nodeValue;
		YAHOO.util.Dom.getElementsByClassName("threadinfo", "div", this.threadbit)[0].title = this.description;
	}
}

/*======================================================================*\
|| ####################################################################
|| # NulleD By - FintMax
|| # CVS: $RCSfile$ - $Revision: 26385 $
|| ####################################################################
\*======================================================================*/