﻿var t = n = 0, count = 0;
$(document).ready(function() {
    
    $('#mycarousel').jcarousel({
        auto: 3,
        scroll: 1,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
    
});

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

function GoSearch()
	{    
	  var keyword=document.getElementById("txtKeyword");
	  if(event.keyCode==13)
	  {
	    if(keyword.value==""||keyword.value=="检索")
        {
         alert("请填写搜素关键词");
         return false;
        } 
       // window.location.href("/search/Default.aspx?txtKeyword=" + escape(keyword.value.Trim()));
      } 
	}
	function GoSearch2()
	{    
	    var keyword=document.getElementById("txtKeyword");
	    if(keyword.value==""||keyword.value=="检索")
        {
         alert("请填写搜素关键词");
         return false;
        } 
       //window.location.href("/search/Default.aspx?txtKeyword=" + escape(keyword.value.Trim()));    
	}
