
//    $("div span:first-child")

//pks_execute.js
$('#btn_previous').click(function() {
//  $("#springButton").animate(cssHiddenBSprite, {
//  	specialEasing: {
//	      width: 'linear',
//	      height: 'easeOutBounce'
//	}
//   });
  if (i_wmd == cc_cats || i_wmd < 0) {
   i_wmd = ar_categoryList.length-1;
  }
  $(this).itemListChange({i_wmd: i_wmd, cc_total: cc_cats});
  trigger_content(ar_categoryList[i_wmd]);
  i_wmd--;
});

$('#btn_next').click(function() {
  
//  $("#springButton").animate(cssHiddenBSprite, {
//  	specialEasing: {
//	      width: 'linear',
//	      height: 'easeOutBounce'
//	}
//   });
//  $("#springButton").click(function()  {
//    window.location='category.php?id='+ar_categoryList[i_wmd];
//   });
   
  if (i_wmd >= cc_cats ) {
   i_wmd = 0;
  }
  $(this).itemListChange({i_wmd: i_wmd, cc_total: cc_cats});

  trigger_content(ar_categoryList[i_wmd]);
  i_wmd++;  
//  $("#springButton").show();

});

$(function() {
  // FEATURED product sections.... 
   trigger_content(1);
   $(this).itemListChange({i_wmd: 0, cc_total: cc_cats});
});

$('.jvt_product_ul li a').click( function() {
  $(".jvt_product_ul li a").removeClass('cssSelected_item');  
  $(this).addClass('cssSelected_item');
});

$(document).ready(function(){
	$("#newsbody").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 3,
		auto:500,
		speed:1000
	});   
   
   $.getJSON("./javascript/lime.channel.js", function(json) { 
	$GN_text = 	$('.inner_flow_text');
	$GN_title = 	$('.curisva');
        jJSON["title"] = (function() {
            response = {
                values: [],
                count: 0
            };
            $.each(json.channel.items,function(i,item) {
                if (item.title != "undefined") {
                    response.count++;
                    response.values[i] = item.title;
                }
            });
            return response;
        })();
        jJSON["contents"] = (function() {
            response = {
                values: [],
                count: 0
            };
            $.each(json.channel.items,function(i,item) {
                if (item.title != "undefined") {
                    response.count++;
                    response.values[i] = item.contents;
                }
            });
            return response;
        })();
   	var kart =  jJSON.getValues("title",1);
   	//alert(kart);
	var art =  jJSON.getValues("contents",1);
	$GN_text.html(""+art+""); 
	$GN_title.html(""+kart+""); 
    });
    
});
	
 