var cat_name;
var $jQuery = jQuery.noConflict();
$jQuery(document).ready(function() {
		
		$jQuery('#popular_search_box_div').mouseover(function () {
				$jQuery('#popular_search_box_div').addClass('active_box');										  
			}).mouseout(function(){
				$jQuery('#popular_search_box_div').removeClass('active_box');	
				});
		$jQuery('#about_us_box_div').mouseover(function () {
				$jQuery('#about_us_box_div').addClass('active_box');										  
			}).mouseout(function(){
				$jQuery('#about_us_box_div').removeClass('active_box');	
				});
		$jQuery('#help_in_order_box_div').mouseover(function () {
				$jQuery('#help_in_order_box_div').addClass('active_box');										  
			}).mouseout(function(){
				$jQuery('#help_in_order_box_div').removeClass('active_box');	
				});
		$jQuery('#shopping_tips_box_div').mouseover(function () {
				$jQuery('#shopping_tips_box_div').addClass('active_box');										  
			}).mouseout(function(){
				$jQuery('#shopping_tips_box_div').removeClass('active_box');	
				});
		
	
	function mycarousel_initCallback(carousel)
		{
			// Disable autoscrolling if the user clicks the prev or next button.s
			carousel.buttonNext.bind('click', function() {
				carousel.startAuto(0);
				//carousel.buttonPrev.hide();
			});
		
			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();
			});
		};


	$jQuery('#gv_carousel').jcarousel({
	   // auto:2,
		//animation: "slow",
		gv_featured_product: 'last',
		initCallback: mycarousel_initCallback
	
		
	});
	
	$jQuery('#talisman_carousel').jcarousel({
	   // auto:2,
		//animation: "slow",
		talisman_featured_product: 'last',
		initCallback: mycarousel_initCallback
	
		
	});
								 
  //  $jQuery('#mycarousel').jcarousel();
	/*if($jQuery('#state_view')){
			var html_data=$jQuery('#state_view').html();
			
			$jQuery('#'+cat_name).html(html_data);
		
			
			$jQuery('#state_view').html('');
			if($jQuery.trim(html_data) != '' && $jQuery.trim($jQuery('#refine_content').html()) !=''){
				$jQuery('#refine_div').slideToggle("slow");
			}
		
		}*/
});
function showRefine(){
	if($jQuery.trim($jQuery('#refine_content').html()) !=''){
		$jQuery('#refine_div').slideToggle("slow");
		}
	}
