jQuery.ajaxSetup({
	// Disable caching of AJAX responses 
	cache: false
});

jQuery(document).ready(function(){
	jQuery('.img_container').hover(
	function(){
		jQuery('.arrow-link', this).show();
		jQuery('.link', this).addClass('hover');
	},
	function() {
		jQuery('.arrow-link', this).hide();
		jQuery('.link', this).removeClass('hover');
	});

	jQuery("#catablog :input").change(function() {
		jQuery("#catablog").submit();
	});


	jQuery('#tabs').tabs();

	/*
	jQuery(".lbp-inline-link").click(function(e) {
		e.preventDefault();
		alert('test');
	});
	*/
	//colorbox({width:"50%", height:"50%", inline:true, href:"#lbp-inline-href-1"});

	//jQuery("a[rel^='prettyPhoto']").prettyPhoto();

	//alert(jQuery('.smooth_sliderc_nav').length);
	
//	var slide = randomXToY(1, jQuery('.smooth_sliderc_nav').length);
//	alert(jQuery('#sldr'+slide).attr('href'));
//	jQuery('#sldr'+slide).trigger('click');
//	stepcarousel.stepTo('smooth_sliderc', 2);
	//jQuery("#board_carusel_nav a").removeClass("selected");
	//jQuery("#board_carusel_nav #board_carusel_nav_"+(slide+1)+" a").addClass("selected");
});

//function to get random number upto m
function randomXToY(minVal,maxVal,floatVal)
{
  var randVal = minVal+(Math.random()*(maxVal-minVal));
  return typeof floatVal=='undefined'?Math.round(randVal):randVal.toFixed(floatVal);
}

function colorBoxOnOpen() {
	//console.log('On Open: ' + jQuery('#colorbox').height());
}

function colorBoxOnLoad() {
	//console.log('On load: ' + jQuery('#colorbox').height());
}

function colorBoxOnComplete() {
	//alert('test');
	//console.log('On complete: ' + jQuery('#colorbox').height());
	jQuery('#tabs').tabs();
	jQuery('#ingredients').show();
}
