jQuery(document).ready(
function() {
jQuery('#sub').innerfade({
speed: 2000,
timeout: 5000,
type: 'sequence',
containerheight: '220px'
});

jQuery('#seihin').cycle({ 
fx:     'fade',
speed:   5000, 
timeout: 2000,
delay:  0
});
jQuery('#blog-top').cycle({ 
fx:     'fade',
speed:   5000, 
timeout: 2000,
delay:  0
});
jQuery('.adbox').cycle({ 
fx:     'scrollDown',
speed:   5000, 
timeout: 1000,
delay:  -500
});
jQuery('.adbox5').cycle({ 
fx:     'scrollDown',
speed:   5000, 
timeout: 1000,
delay:  500
});jQuery('.adbox10').cycle({ 
fx:     'scrollDown',
speed:   5000, 
timeout: 1000,
delay:  1500
});

jQuery('#topics').cycle({ 
fx:     'fade',
speed:   4000, 
timeout: 3000,
delay:  0
});

jQuery("a[href^=#]").click(function() {  
    var hash = this.hash;  
    if(!hash || hash == "#")  
        return false;  
    jQuery(jQuery.browser.safari ? 'body' : 'html')  
        .animate({scrollTop: jQuery(hash).offset().top}, 800, "swing");  
    return false;  
});

jQuery( '#sitemap' ).scrollFollow( {
speed: 600,
offset: 60
} );

});

