
//there is a bug in jQuery 1.3.2 - method TOOGLE() does not work with IE8
//FIXME
ayeoToogle = function( object )
{
	if( elem = object[0] )
	{
		if(elem.style.display == 'none') object.show();
		else object.hide();
	}
}

$(document).ready(function()
{
	$(".channelsDetailedList").hide();

	$(".showDetailedChannelsList").click(function(e)
	{
		e.stopPropagation();
		
		ayeoToogle( $(this).parents(".offerBox").find("tr.channelsDetailedList:first") );
		
		ayeoToogle( $(this).parents(".transactionBox").find("tr.channelsDetailedList:first") );
		if( $(this).parents(".transactionBox") ) return;


		ayeoToogle( $(this).parents(".boxWrapper").find("tr.channelsDetailedList:first") );
		if( $(this).parents(".boxWrapper") ) return;

		ayeoToogle( $(this).parents(".topofferBox").find("tr.channelsDetailedList:first") );

		
		
	});
});



$(document).ready(function()
{
	$(".channelsDetailedList_offer").hide();

	$(".showDetailedChannelsList_offer").click(function(e)
	{
		ayeoToogle( $(this).parents(".boxWrapper").find("tr.channelsDetailedList_offer:first") );
	});
});






$(document).ready(function()
{
	$(".contactBox").each(function()
	{
		if( !$(this).hasClass("doNotHide") )
		{
			$(this).hide();
		}
	});
	$(".contactData").click(function()
	{
		ayeoToogle( $(this).parent().next("ol") );
	});
});
