function selTab(sel_id)
{
	wait('tab_content');
	if(typeof sel_id == 'undefined')
	{ 
		sel_id =1+Math.round(Math.random()*3);
		if(!sel_id)sel_id =1; if(sel_id+1 > tabs.length)sel_id=tabs.length-1
		sel_id = tabs[sel_id]
	}
	$('#main_tabs li').removeClass('active')
	$('#'+sel_id).addClass('active')
	x_show_tab_content(sel_id, show_statica)
	return false;
}


function selMainTab(sel_id)
{
	if(typeof sel_id == 'undefined' || sel_id=='')
	{ 
		sel_id =1+Math.round(Math.random()*3);
		if(!sel_id)sel_id =1; if(sel_id+1 > tabs.length)sel_id=tabs.length-1
		sel_id = tabs[sel_id]
	}	
	
	$('#main_tabs li').removeClass('active')
	$('#'+sel_id).addClass('active')
	$('.main_tab_panel').hide();
	$('#MT'+sel_id).show();
	return false;
}

function cnl_show(tag_id, url, nf)
{
	if (($doc(tag_id).style.display != 'none') && nf) return false;
	advZeroUrl(url);
	$("#slider_cnl .cont").hide();
	$('#'+ tag_id).show();
	return false;
}

function hello_hide(hid)
{
	$(hl_id = '#hello'+ hid).hide();
	$.cookie('#'+ hl_id, true, { expires:100*365 });
//	x_save_set(hl_id, true, show_statica);
	return false;
}

function init_hellow()
{
	if (!$.browser.opera) {
		$(function(){
			$('.hello').each(function(){
				if (!($.cookie('##'+ this.id))) $('#'+ this.id).show();
			})
		});
	}
}
