
/*	ページトップスクロール
----------------------------------------------------*/


$(function () {
						$('#pagetop').css("cursor","pointer"); 

    if (! $.browser.safari) {
        $('#pagetop').click(function () {
            $(this).blur();

            $('html,body').animate({ scrollTop: 0 }, 'normal');

            return false;
        });
    }
});


/*	プレビュー
----------------------------------------------------*/
/*
 $(function(){
$('ul.detail-main-thum a').imgPreview({
    containerID: 'imgPreviewWithStyles',
    imgCSS: {
        height: 250
    },
    onShow: function(link){
        $(link).stop().animate({opacity:0.4,});
        $('img', this).css({opacity:0});
    },
    onLoad: function(){
        $(this).animate({opacity:1}, 300);
    },
    onHide: function(link){
        $(link).stop().animate({opacity:1});
    }
});

 });
*/

/*	lightbox
----------------------------------------------------*/

 $(function() {
$("ul.talent-img > li > a").click(function(){
		var src = $(this).attr("href");
		$("#talent-main-photo").fadeOut("normal",function() {
			$(this).attr("src",src);
			$(this).fadeIn();
		});
		return false;
	});
});

/*	top
----------------------------------------------------*/


$(document).ready(
    function(){
       $('li.features01').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});
	
$(document).ready(
    function(){
       $('li.features02').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	
	
	
$(document).ready(
    function(){
       $('li.features03').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features04').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features05').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features06').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features07').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features08').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});	

$(document).ready(
    function(){
       $('li.features09').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});		
	
$(document).ready(
    function(){
       $('li.features10').innerfade({
          speed: 1000,
          timeout: 5000,
          type: 'random',
          containerheight: '76px'
       });
});		
	

