

function reposition(nHeight)
{
	nHeight += "px";
	document.getElementById("flashcontent").style.height = nHeight;
	document.getElementById("timerimeSWF").style.height = nHeight;
}

function showTimeline(i_timelineId)
{
	$('flashcontent').goHome(i_timelineId);
	showTimelineElement(i_timelineId);
}


function showTimelineItem(i_itemId)
{
	showTimelineElement(i_itemId);

}



function showTimelineElement(i_itemId,i_timelineId,i_childId)
{
	if(typeof($('flashcontent').selectItem) == 'function' && i_timelineId != undefined)
	{
		$('flashcontent').selectItem(i_timelineId,i_itemId);
	}
	var s_url = '/element/'+i_itemId + '/' + i_childId;
	new Ajax(s_url, {method: 'get',update: $('textDiv'),evalScripts: true}).request();

}

function getSelectedTimeline()
{
	i_selectedTimelineKey = $('WNHLines').selectedIndex;
	showTimeline($('WNHLines')[i_selectedTimelineKey].value);
}

function showTabContent(s_tab)
{
	$$('.tabContent').each(function(o_elt)
					{
						if(o_elt.id == s_tab + 'Content')
						{
							o_elt.setStyle('display','');

						}
						else
						{
							o_elt.setStyle('display','none');
						}
	
					});

}
