//Script.js

$(function() {
	// initialize scrollable with mousewheel support
	$(function() {
		if($('.scrollable-text').length > 0) {
			$(".scrollable-text").scrollable({
				vertical : true,
				circular : true,
				rotate : true,
				mousewheel : true,
				speed:500
			});

			var api = $(".scrollable-text").data("scrollable");

			setInterval(function() {
				api.prev();
			}, 4000);
		}
	});
});
$(function() {
	// initialize scrollable with mousewheel support
	$(function() {
		if($(".scrollable").length > 0) {
			$(".scrollable").scrollable({
				vertical : true,
				circular : true,
				rotate : true,
				mousewheel : true
			});

			var api = $(".scrollable").data("scrollable");

			setInterval(function() {
				api.prev();
			}, 3000);
		}
	});
});


//----------------------------------------------- tabs-holder
function tabs() {
   $('.tabs-holder .service-box').hide();
   $('.tabs-holder h4').click(
   function() {
  if($(this).hasClass('current')){
  $(this).removeClass('current');
   $(this).next().slideUp();
   
  }
  else {
            $(this).addClass('current');
  $(this).next().slideDown('normal');
  }


 })
 }
 
$(document).ready(function() {
	$('#footer ul li:last-child').addClass('li-last');
	tabs();
	$('a.take-a-look').click(function(){
			$('#suppliers.simple_overlay').show();
		});
	$('a.close').click(function(){
			$('#suppliers.simple_overlay').hide();
		});
});
