$(function() {
	$("#globalnavi").droppy();
});

$(function() {
	$('#sidenavi a').stop().animate({'marginLeft':'0px'},500);

	$('#sidenavi > li').hover(
		function () {
			$('a',$(this)).stop().animate({'marginLeft':'83px'},200);
		},
		function () {
			$('a',$(this)).stop().animate({'marginLeft':'0px'},200);
		}
	);
});

$(function() {
    $('#twTicker').twTicker({
        // some options...
        query:'from%3Auni_bi_news',
        length: 3
    });
});

$(window).load(function() {   
    $('#slider').nivoSlider({   
    effect:'fade',   
    animSpeed:500,   
    pauseTime:5000,   
    startSlide:0,   
    beforeChange: function(){},   
    afterChange: function(){},   
    slideshowEnd: function(){}    
    });   
});   

(function(d, s, id){
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) {
        return;
    }
    js = d.createElement(s);
    js.id = id;
    js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
