$(document).ready(function() {

// function to handle arrow nav on the tabbed boxes in product info

	$('#products .product-nav a').click(function() {
		var linkRef = $(this).attr("href");											 
		var $tabs = $('#product-tabs-ul').tabs(); 
	
	switch (linkRef)
		{
		case "#intro-box":
			$tabs.tabs('select', 0);
			break;
		case "#product-box":
			$tabs.tabs('select', 1);
			break;
		case "#use-box":
			$tabs.tabs('select', 2);
			break;
		case "#ordering-box":
			$tabs.tabs('select', 3);
			break;
		default:
			$tabs.tabs('select', 0);
		}
	return false;
		
	});

if($("#latest-news").length > 0){
	$("#latest-news ul").newsTicker(5000);
	parseSamples();
}

});

function slideText(){
	
	// function for the text overlay sliding boxes
	$(document).ready(function() {
		$(".feature-text").css("top","90px");
		//var myPos = $(".feature-text").css("top");
	
	$(".feature-text").hover(
      function () {
        $(this).animate({ 
        top: "30px"
      }, 300 );
      }, 
      function () {
        $(this).animate({ 
        top: "90px"
      }, 300 );
      }
    );
	
	});
}

