// JavaScript Document

$.easing.custom = function (x, t, b, c, d) {
	var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
$(document).ready(function() {

$("#chained").scrollable({size:5,items:"#chained ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv",naviItem:"dd",activeClass:"active"});
$("#chained1").scrollable({size:5,items:"#chained1 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv1",naviItem:"dd",activeClass:"active"});
$("#chained2").scrollable({size:5,items:"#chained2 ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv2",naviItem:"dd",activeClass:"active"});

$(".sm .smdemo .scrollbale .item").tabs("#big > div", {effect: 'fade', fadeOutSpeed: 400});

$(".right_con .srcro .ruball .items").tabs("#bigdemo > div");

$("#bigdemo").tabs("#bigdemo > div", {rotate: true}).slideshow({autoplay:true});

$(".right_con .wedd .smtwo ul").tabs("#bigtwo > div", {effect: 'fade', fadeOutSpeed: 400});

$(".right_con .map .smallmap ul").tabs("#bigmap > div", {effect: 'fade', fadeOutSpeed: 400});

$(".right_con_2 .news .newsul ul").tabs("#newsbg > div", {effect: 'fade', fadeOutSpeed: 400});

$("#bsm").scrollable({size:5,items:"#bsm ul",loop:true,prev:".nt",next:".tt"}).autoscroll({ autoplay: true,interval:4000 });

$("#browsable").scrollable({size:1,loop:true}).autoscroll({autoplay:true,interval:4000}).navigator();	

});
$(document).ready(function(){
  $(".center .right .right_con .showcase ul li ").hover(function(){
    $(this).find("b").addClass("ap");
  },function(){
    $(".center .right .right_con .showcase ul li .kp").removeClass("ap")
  });
  $(".center .right .right_con .showcase ul li ").hover(function(){
    $(this).find("i").addClass("op");
  },function(){
    $(".center .right .right_con .showcase ul li").removeClass("op")
  });
  
  $(".center .right .right_con .wedd .smtwo ul li a").hover(function(){
    $("#bigtwo").find("img").addClass("hb");
  },function(){
     $("#bigtwo").find("img").removeClass("hb");
  });
   
   $(".center .right .right_con .servicelist .listone").hover(function(){
    $(this).find("p").addClass("pps");
  },function(){
     $(this).find("p").removeClass("pps");
  });
   
   $(".center .right .right_con_2 .newslist ul li").hover(function(){
																	$(this).find("b").css("color","#0b167c");			  
																				  },function(){
																	 $(this).find("b").css("color","#494949");				  
																	});
   
    $(".small ul li").hover(function(){
																	$(this).find("b").css("color","#3f4688");			  
																				  },function(){
																	 $(this).find("b").css("color","#aaaaaa");				  
																	});
   
   $(function(){

$("a.pre").click(function(){						   
$(".center .right .right_con .srcro .ruball .items li a.current").parent().prev("li").find("a").click();
});	  


$("a.next").click(function(){						   
$(".center .right .right_con .srcro .ruball .items li a.current").parent().next("li").find("a").click();
});	  
		  
});

 
});
function menuFix() { 
var sfEls = document.getElementById("nav").getElementsByTagName("li"); 
for (var i=0; i<sfEls.length; i++) { 
sfEls[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
} 
window.onload=menuFix; 
//--><!]]>

$(function(){
   $(".bottom .one dd").each(function(i){
      if($(this).text()=="")
      {
         $(this).hide();
      }
   });
})

