// JavaScript Document
$(document).ready(function(){  

	
	  // Simple tabContent for product details  
	
  showhide = function(containerId) {
  
    var index = -1;
    var current = 0;
    var effectDuration = 600;

		var container = $(containerId);

    $('h3',container).each(function() 
		{      
      index++;  
		
      $(this)
        .attr('tabIndex', index)
				.css({cursor:'pointer'})
        .click(function(event) 
				{
          //event.preventDefault();
          newIndex = $(this).attr('tabIndex');
	
					if(newIndex == current) return;
          
          $('div.answer:eq('+current+')', container).animate({ height: 'hide', opacity: 'hide'}, effectDuration, 
					  function(){
							$('div.answer:eq('+newIndex+')', container).animate({ height: 'show', opacity: 'show'}, effectDuration);					});
          current = newIndex;
        })
    });
		if(index > 0)
		{
      $('div.answer', container).hide();
		}
  };


	if(location.href.indexOf('faq.html') != -1)
	{
		if(jQuery.browser.msie && (jQuery.browser.version.substr(0,3)=="6.0"))
		{
	
		}
		else
		{
			new showhide('#rhs');
			
		}
	}
  
	$('#nutritional TD').css({borderBottom:'1px solid #000000'})
	$('#nutritional TR:lt(2) TD').css({borderBottom:'2px solid #000000'})
	
	
	$('#mymap').html( '<iframe name="myiframe" width="430" height="280" src="pop-up-map.php" frameBorder="0" scrolling="no">' );
	
});