// JavaScript Document$(function(){
$(document).ready(function() {	
 href=window.location.href;
            
            hrefs=href.split('/');
            
            if(hrefs.length>0)
            {
                href=href.split('/')[hrefs.length-1];
            }
            
            $(".nav li").each(function(){
               if($(this).find("a").attr("href").substr(0,4).toUpperCase()==href.substr(0,4).toUpperCase())
               {               
                  $(this).find("a").addClass("hover");
               }
            });

$("a.prev,a.next").click(function(){return false});
$(".src4 .src5").scrollable({size:1,items:".src4 .src5 ul",loop:true,prev:".prev",next:".next"}).autoscroll({ autoplay: true,interval:4000 });
$(".src").scrollable({size:1,items:".src ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv",naviItem:"dd",activeClass:"current"});
$(".src1").scrollable({size:3,items:".src1 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv1",naviItem:"dd",activeClass:"current"});
$(".src3").scrollable({size:1,items:".src3 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv2",naviItem:"dd",activeClass:"current"});
$(".img_detail").scrollable({size:1,items:".img_detail ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv3",naviItem:"dd",activeClass:"current"});
if($(".demo ul li").size()>0)
{
$(".demo ul").tabs(".demo > div", {effect: 'fade',loop:true,fadeOutSpeed: "fast",rotate: true}).slideshow({autoplay:true,interval: 3000});
}

if($("ul.show_menu li").size()>0)
{
$("ul.show_menu").tabs(".case > div", {effect: 'fade',loop:true,fadeOutSpeed: "fast",rotate: true}).slideshow({autoplay:true,interval: 3000});
}


$("ul.smll").tabs(".big > div", {effect: 'fade',loop:true,fadeOutSpeed: "fast",rotate: true}).slideshow({autoplay:true,interval: 3000});
$("#nav li").hover(function(){
$(this).find(".sp").addClass("wp");
},function(){
$("#nav li .sp").removeClass("wp")
});
});

