/*====== ナビ&Tabスクローラー ======*/
$(function() {
	$('.gnavi_list img').balloon({ 
		position: "top",
		tipSize: 6,
		css: {
			boxShadow: '0',
			border: '0',
			backgroundColor: '#7CDC98',
			color: '#fff',
			fontSize: '10px'
		}
	});

	$("#gnavi").droppy({speed: 100});
	$("#sMune").droppy({speed: 100});
	$("#sMuneshop").droppy({speed: 100});

	$('.news').jScrollPane();
});

/*====== Visual ======*/
$(window).load(function() {
/*	seltab('box', 'tab','btn_topics', 2, 1);*/
	$('#slider').nivoSlider();
});

/*====== Tab切替 ======*/
function seltab(bpref, hpref,topics, id_max, selected) {
	if (! document.getElementById) return;
	for (i = 0; i <= id_max; i++) {
		if (! document.getElementById(bpref + i)) continue;
		if (i == selected) {
			document.getElementById(bpref + i).style.visibility = "visible";
			document.getElementById(bpref + i).style.position = "";
			document.getElementById(hpref + i).className = "on";
			document.getElementById(topics + i).style.visibility = "visible";
			document.getElementById(topics + i).style.position = "";
			
		} else {
			document.getElementById(bpref + i).style.visibility = "hidden";
			document.getElementById(bpref + i).style.position = "absolute";
			document.getElementById(hpref + i).className = "off";
			document.getElementById(topics + i).style.visibility = "hidden";
			document.getElementById(topics + i).style.position = "absolute";
		}
	}
}


