
// chosen
$(function() {
	$(".chzn-select").chosen({
		no_results_text: "No results matched"
	}).change(function() {
		
	});
	$(".chzn-select-deselect").chosen({
		allow_single_deselect: true
	});
});

// change select box
function change_select(el, page)
{
	var value = parseInt(el.value);
	if(value > 0)
	{
		parent.location.href = path + "/" + page + "?" + $(el).attr('name') + "=" + value;
	}
}

// artist menu
function showMenu(componentID)
{
	$('#link_ctrl_popup_'+componentID).css('visibility', 'visible');
	$('#link_ctrl_'+componentID).addClass('mouseOver');
	$('#link_ctrl_popup_'+componentID).css('display', 'block');
	sIFR.replace(arial,{selector:'h2.replaceH2SideBar',css:{'.sIFR-root':{'color':c1,'font-size':'12px'}}});
}
function hideMenu(componentID)
{
	$('#link_ctrl_'+componentID).removeClass('mouseOver');
	$('#link_ctrl_popup_'+componentID).css('visibility', 'hidden');
	$('#link_ctrl_popup_'+componentID).css('display', 'none');
}

// onload
$(function() {
	// hide menu
	var nodes = $('.category-list-item-content');
	for(var i = 0; i < nodes.length; i++)
	{
		$(nodes[i]).hide();
	}

	// fancybox
	$("a[class=smoothbox]").fancybox({
		titlePosition: 'inside'
	});

	// scrollable
	$(".scrollable").scrollable({
		circular: false,
		mousewheel: true,
		keyboard: false
	});
});
