// Replaces getElementById
function get_obj(id)
{
	return document.getElementById(id);
}

function showBox(section,box,boxes)
{
	for(i=0;i<=boxes;i++)
	{
		if(document.getElementById('box_'+section+'_'+i))
			document.getElementById('box_'+section+'_'+i).style.display="none";
	}
	if(document.getElementById('box_'+section+'_'+box))
			document.getElementById('box_'+section+'_'+box).style.display="block";
}

var songz=new Array();
function AccordionInit() 
{
	var tab = $$('.tab');
	var tabbed = $$('.tabbed');
	var accordion = new Accordion(tab, tabbed, {show: 0, duration: 800, transition: Fx.Transitions.Quint.easeInOut});
}	

function TooltipInit() 
{
	/*
	var as = [];
	$$('.news a, .topTable a, .list a, .listVideo .left a, .images-last a, .partners a, .cartimg a').each(function(a){
		if (a.getAttribute('title')) as.push(a);
	});

	new Tips(as, {
		maxTitleChars: 80,
		onShow: function(tip){ tip.setStyle('opacity', '0.85'); },
		onHide: function(tip){ tip.setStyle('visibility', 'hidden'); },
		offsets: {'x': -20, 'y': 25},
		timeOut: 10
	});
	*/
}	
window.addEvent('domready', function() {
	AccordionInit();
	TooltipInit();
});