// JavaScript Document
$(function(){

$(".ban").scrollable({size:1,items:".ban ul",loop:true}).autoscroll({ autoplay: true,interval:6000 }).navigator({navi:"dl.tab",naviItem:'dd',activeClass:"hover"});

$(".icb").scrollable({size:4,items:".icb ul",loop:true}).autoscroll({ autoplay: true,interval:6000 }).navigator({navi:"dl.tab1",naviItem:'dd',activeClass:"hover"});

$(".ffl").scrollable({size:6,items:".ffl ul",loop:true}).autoscroll({ autoplay: true,interval:6000 })

$("a.l").click(function(){$("dl.tab1 dd.hover").prev().click();});

$("a.r").click(function(){$("dl.tab1 dd.hover").next().click();});

$(".isl a").hover(function(){
$(this).find("div").stop().animate({top:"95px",height:"27px"},100)
},function(){
$(this).find("div").stop().animate({top:"122px",height:"0"},300)
});

$(function(){
$.fn.ScrollTo = function(speed, callback) {
var top = $(this).offset().top;
if ('BODY' == $(this).attr('tagName')) {// for IE6
top = 0;
}
//	$($.browser.safari ? 'body' : 'html')
$('html, body').animate({scrollTop: top}, speed, 'swing', callback);
};

$(".gtop").click(function(){
var scrolltargetval = $(this).attr('href')			
if (scrolltargetval.length == 1){
var scrolltarget = 'body'
}
else {
var scrolltarget = scrolltargetval
}
$(scrolltarget).ScrollTo(800);
return false;})
});

})
