
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();
    });
};

$(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 4,
        wrap: 'last',
		scroll: 1,
        initCallback: mycarousel_initCallback
    });
});

$(document).ready(function(){
        $('a[href*=#]').click(function() {
          if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
          && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target
            || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
              var targetOffset = $target.offset().top;
              $('html,body')
              .animate({scrollTop: targetOffset}, 1000);
             return false;
            }
          }
        });
      });

$(document).ready(function(){

	$("div.related_product").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});

});

$(document).ready(function(){

	$(".jcarousel-item").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});

});


 $(document).ready(function() {
	 
$("span#downloads").click(function(){
	  $('#download_list').toggle('slow'); return false;
	});
 });

$(document).ready(function(){
    $("#bulk_price_list li:even").addClass("green");
  });

//JK Popup Window Script (version 3.0)- By JavaScript Kit (http://www.javascriptkit.com)
//Visit JavaScriptKit.com for free JavaScripts
//This notice must stay intact for legal use

function openpopup(popurl){
var winpops=window.open(popurl,"","width=600,height=600")
}
