var timeout = 8000;
var $u = jQuery.noConflict();
var timer; $u(document).ready(function() {
$u(".JQueryBanner_Load").remove(); 
$u(".HeaderControl").show();
$u(".HeaderControl li").hide();
$u(".HeaderControl li img").hide();
$u(".HeaderControl li:eq(0)").show();
$u(".HeaderControl li:eq(0) img").show();
$u(".HeaderControl li:eq(0) .Title").show();
$u(".HeaderControl li:eq(0) .SubTitle").show();
$u(".HeaderControl li:eq(0) .Content").show()
});
function fade(b) {
    $u(".HeaderControl" + b + " li").hide();
    $u(".HeaderControl" + b + " li img").hide();
    $u(".HeaderControl" + b + " li .Title").hide();
    $u(".HeaderControl" + b + " li .SubTitle").hide();
    $u(".HeaderControl" + b + " li .Content").hide();
    $u(".HeaderControl" + b + " li:eq(0)").appendTo(".HeaderControl" + b + " ul");
    $u(".HeaderControl" + b + " li:eq(0)").fadeIn("slow", function() {
    $u(".HeaderControl" + b + " li:eq(0) img").fadeIn("slow")
});
$u(".HeaderControl" + b + " li:eq(0) .Title").show();
$u(".HeaderControl" + b + " li:eq(0) .SubTitle").show(); 
      $u(".HeaderControl" + b + " li:eq(0) .Content").show()
  } function SlideToLeft(c) {
  $u(".HeaderControl" + c + " li img").hide();
  $u(".HeaderControl" + c + " li").hide();
  $u(".HeaderControl" + c + " li .Title").hide();
  $u(".HeaderControl" + c + " li .SubTitle").hide();
  $u(".HeaderControl" + c + " li .Content").hide();
  var d = 0; if ($u(".HeaderControl" + c).height()) { d = $u(".HeaderControl" + c).height() }
  $u(".HeaderControl" + c + " li:eq(0)").show().css("zIndex", "1");
  $u(".HeaderControl" + c + " li:eq(1)").show().css("marginTop", "-" + d + "px").css("zIndex", "0");
  $u(".HeaderControl" + c + " li:first").css("color", "#cccccc").show().hide("slide", { direction: "left" }, "slow", function() {
  $u(".HeaderControl" + c + " li:eq(0)").appendTo(".HeaderControl" + c + " ul");
  $u(".HeaderControl" + c + " li:eq(0)").css("marginTop", "0px").css("zIndex", "1").show();
  $u(".HeaderControl" + c + " li:eq(0) img").show(); $u(".HeaderControl" + c + " li:eq(0) .Title").show();
  $u(".HeaderControl" + c + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + c + " li:eq(0) .Content").show()
})
} function SlideToRight(c) {
$u(".HeaderControl" + c + " li").hide(); $u(".HeaderControl" + c + " li .Title").hide();
$u(".HeaderControl" + c + " li .SubTitle").hide();
$u(".HeaderControl" + c + " li .Content").hide();
var d = 0; if ($u(".HeaderControl" + c).height()) { d = $u(".HeaderControl" + c).height() }
      $u(".HeaderControl" + c + " li:eq(0)").show().css("zIndex", "1"); $u(".HeaderControl" + c + " li:eq(1)").show().css("marginTop", "-" + d + "px").css("zIndex", "0");
      $u(".HeaderControl" + c + " li:first").css("color", "#cccccc").show().hide("slide", { direction: "right" }, "slow", function() {
          $u(".HeaderControl" + c + " li:eq(0)").appendTo(".HeaderControl" + c + " ul"); $u(".HeaderControl" + c + " li:eq(0)").css("marginTop", "0px").css("zIndex", "1").show();
          $u(".HeaderControl" + c + " li:eq(0) img").show(); $u(".HeaderControl" + c + " li:eq(0) .Title").show();
          $u(".HeaderControl" + c + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + c + " li:eq(0) .Content").show()
      })
  }
  function SlideUp(b) {
      $u(".HeaderControl" + b + " li").hide(); $u(".HeaderControl" + b + " li .Title").hide(); $u(".HeaderControl" + b + " li .SubTitle").hide();
      $u(".HeaderControl" + b + " li .Content").hide(); $u(".HeaderControl" + b + " li img").hide(); $u(".HeaderControl" + b + " li:eq(0)").show(); 
      $u(".HeaderControl" + b + " li:eq(1)").show();
      $u(".HeaderControl" + b + " li:eq(0)").slideUp("slow", function() {
          $u(".HeaderControl" + b + " li img").show();
          $u(this).appendTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li:eq(0) .Title").show();
          $u(".HeaderControl" + b + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + b + " li:eq(0) .Content").show()
      })
  }
  function SlideDown(b) {
      $u(".HeaderControl" + b + " li").hide();
      $u(".HeaderControl" + b + " li .Title").hide(); 
      $u(".HeaderControl" + b + " li .SubTitle").hide();
      $u(".HeaderControl" + b + " li .Content").hide();
      $u(".HeaderControl" + b + " li:eq(1)").prependTo(".HeaderControl" + b + " ul");
      $u(".HeaderControl" + b + " li:eq(0)").hide(); $u(".HeaderControl" + b + " li:eq(1)").show();
      $u(".HeaderControl" + b + " li:eq(0)").slideDown("slow", function() {
      $u(".HeaderControl" + b + " li img").show(); $u(".HeaderControl" + b + " li:eq(1)").hide().appendTo(".HeaderControl" + b + " ul");
      $u(".HeaderControl" + b + " li:eq(0) .Title").show(); $u(".HeaderControl" + b + " li:eq(0) .SubTitle").show();
      $u(".HeaderControl" + b + " li:eq(0) .Content").show()
  })
} function fadePrev(b) {
    $u(".HeaderControl" + b + " li").hide(); 
           $u(".HeaderControl" + b + " li img").hide(); $u(".HeaderControl" + b + " li .Title").hide(); $u(".HeaderControl" + b + " li .SubTitle").hide(); $u(".HeaderControl" + b + " li .Content").hide(); $u(".HeaderControl" + b + " li img").show(); $u(".HeaderControl" + b + " li:last").prependTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li:eq(0)").fadeIn("slow", function() { $u(".HeaderControl" + b + " li:eq(0) img").fadeIn("slow") }); $u(".HeaderControl" + b + " li:eq(0) .Title").show(); $u(".HeaderControl" + b + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + b + " li:eq(0) .Content").show() } function SlideToLeftPrev(c) { var d = 0; if ($u(".HeaderControl").height()) { d = $u(".HeaderControl").height() } $u(".HeaderControl" + c + " li img").hide(); $u(".HeaderControl" + c + " li .Title").hide(); $u(".HeaderControl" + c + " li .SubTitle").hide(); $u(".HeaderControl" + c + " li .Content").hide(); $u(".HeaderControl" + c + " li:last").prependTo(".HeaderControl" + c + " ul"); $u(".HeaderControl" + c + " li:eq(0)").hide().css("zIndex", "1"); $u(".HeaderControl" + c + " li:eq(1)").show().css("marginTop", "-" + d + "px").css("zIndex", "0"); $u(".HeaderControl" + c + " li:eq(0)").css("color", "#cccccc").hide().show("slide", { direction: "left" }, "slow", function() { $u(".HeaderControl" + c + " li:eq(1)").hide().css("marginTop", "0px").css("zIndex", "1").show(); $u(".HeaderControl" + c + " li:eq(0)").css("marginTop", "0px").css("zIndex", "1").show(); $u(".HeaderControl" + c + " li:eq(0) img").show(); $u(".HeaderControl" + c + " li:eq(0) .Title").show(); $u(".HeaderControl" + c + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + c + " li:eq(0) .Content").show() }) } function SlideToRightPrev(c) { var d = 0; if ($u(".HeaderControl").height()) { d = $u(".HeaderControl").height() } $u(".HeaderControl" + c + " li").hide(); $u(".HeaderControl" + c + " li img").hide(); $u(".HeaderControl" + c + " li .Title").hide(); $u(".HeaderControl" + c + " li .SubTitle").hide(); $u(".HeaderControl" + c + " li .Content").hide(); $u(".HeaderControl" + c + " li:last").prependTo(".HeaderControl" + c + " ul"); $u(".HeaderControl" + c + " li:eq(0)").hide().css("zIndex", "1"); $u(".HeaderControl" + c + " li:eq(1)").show().css("marginTop", "-" + d + "px").css("zIndex", "0"); $u(".HeaderControl" + c + " li:eq(0)").css("color", "#FFFFFF").hide().show("slide", { direction: "right" }, "slow", function() { $u(".HeaderControl" + c + " li:eq(1)").hide().css("marginTop", "0px").css("zIndex", "1").show(); $u(".HeaderControl" + c + " li:eq(0)").css("marginTop", "0px").css("zIndex", "1").show(); $u(".HeaderControl" + c + " li:eq(0) img").show(); $u(".HeaderControl" + c + " li:eq(0) .Title").show(); $u(".HeaderControl" + c + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + c + " li:eq(0) .Content").show() }) } function SlideDownPrev(b) { $u(".HeaderControl" + b + " li").hide(); $u(".HeaderControl" + b + " li .Title").hide(); $u(".HeaderControl" + b + " li .SubTitle").hide(); $u(".HeaderControl" + b + " li .Content").hide(); $u(".HeaderControl" + b + " li:last").prependTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li:eq(1)").prependTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li:eq(0)").show(); $u(".HeaderControl" + b + " li:eq(1)").show(); $u(".HeaderControl" + b + " li:eq(0)").slideUp("slow", function() { $u(".HeaderControl" + b + " li:eq(1)").prependTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li img").show(); $u(".HeaderControl" + b + " li:eq(0) .Title").show(); $u(".HeaderControl" + b + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + b + " li:eq(0) .Content").show() }) } function SlideUpPrev(b) { $u(".HeaderControl" + b + " li").hide(); $u(".HeaderControl" + b + " li .Title").hide(); $u(".HeaderControl" + b + " li .SubTitle").hide(); $u(".HeaderControl" + b + " li .Content").hide(); $u(".HeaderControl" + b + " li img").hide(); $u(".HeaderControl" + b + " li:last").prependTo(".HeaderControl" + b + " ul"); $u(".HeaderControl" + b + " li:eq(0)").hide(); $u(".HeaderControl" + b + " li:eq(1)").show(); $u(".HeaderControl" + b + " li:eq(0) img").show("slow"); $u(".HeaderControl" + b + " li:eq(0)").slideDown("slow", function() { $u(".HeaderControl" + b + " li:eq(1)").hide(); $u(".HeaderControl" + b + " li:eq(0) .Title").show(); $u(".HeaderControl" + b + " li:eq(0) .SubTitle").show(); $u(".HeaderControl" + b + " li:eq(0) .Content").show() }) } function animate(j, h) {
    var f = function() {
    if ($u(".HeaderControl" + h + " .btns").html()) {

        $u(".HeaderControl" + h + " .btns .number").css("background", "#FFF").css("color", "#000")
            var b = 0; var c = g + 1, a = 0; while (c >= 0) {
                if ($u(".HeaderControl" + h + " li:eq(1)").is("#m" + h + "item" + c)) {
                    $u(".HeaderControl" + h + " .btns .pag" + c).css("background", "#000").css("color", "#FFF")

                } else { $u(".HeaderControl" + h + " .btns .pag" + c).css("background", "transparent").css("color", "#000") } c--
            }
        } if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect1")) { fade(h) }
        else {
            if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect2")) { SlideToLeft(h) }
            else {
                if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect3")) { SlideToRight(h) }
                else {
                    if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect4")) { SlideUp(h) } 
                    else {
                        if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect5")) { SlideDown(h) } 
                    } 
                } 
            } 
        }
                      clearTimeout(timer); timer = setTimeout(f, timeout)
                  }; 
    var i = function() {
    if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect1")) { fadePrev(h) }
    else {
        if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect2")) { SlideToLeftPrev(h) } else {
        if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect3")) { SlideToRightPrev(h) } else {
        if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect4")) { SlideUpPrev(h) } else {
        if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect5")) { SlideDownPrev(h) } 
    } 
} 
} 
}
clearTimeout(timer); timer = setTimeout(f, timeout)
}; if (j > 0) { timeout = j } 
        if ($u(".HeaderControl" + h + " li:eq(1)").html()) {
            $u(".HeaderControl" + h + " .number:eq(0)").css("background", "#000").css("color", "#fff");
            var g = $u(".HeaderControl" + h + " li").size(); 
            $u(".HeaderControl" + h + " .Next").click(function() { f() });
            $u(".HeaderControl" + h + " .Next2").click(function() { f() });
            $u(".HeaderControl" + h + " .Prev").click(function() { i() });
            $u(".HeaderControl" + h + " .Prev2").click(function() { i() }); 
            $u(".HeaderControl" + h + " .number").click(function() {
    
    var b = 0; var c = g, a = 0; while (c > 0) {
        if ($u(this).is(".pag" + c)) { a = c; b = "#m" + h + "item" + c }
         $u(".HeaderControl" + h + " .btns .pag" + c).css("background", "transparent").css("color", "#000"); c-- }
         $u(this).css("background", "#000").css("color", "#fff");
         while (!$u(".HeaderControl" + h + " li:eq(1)").is(b))
         { $u(".HeaderControl" + h + " li:eq(0)").appendTo(".HeaderControl ul") }
         if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect1")) { fade(h) }
         else {
             if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect2")) { SlideToLeft(h) }
             else {
                 if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect3")) { SlideToRight(h) }
                  else {
                 if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect4")) { SlideUp(h) } 
                 else {
                     if ($u(".HeaderControl" + h + " li:eq(1)").is(".effect5")) { SlideDown(h) } 
                 } 
             } 
         } 
     }
          clearTimeout(timer); timer = setTimeout(f, timeout)
      });
     clearTimeout(timer); timer = setTimeout(f, timeout)
} else {
$u(".HeaderControl" + h + " .Prev").hide();
$u(".HeaderControl" + h + " .Next").hide();
$u(".HeaderControl" + h + " .Prev2").hide();
$u(".HeaderControl" + h + " .Next2").hide();
$u(".HeaderControl" + h + " .number").hide();
$u(".HeaderControl"+h+" .numberBg").hide()}};
