$(document).ready (function () {

	// Take margin off last nav link
	
	$('#header ul li a:last').css('margin', '0');

	// add styles to text inputs ONLY
	$('input[type="text"], textarea').addClass('text-input');	
	
	// first time you click the original value is erased
	$('input[type="text"]').one('click', function() {
		$(this).val('');
	});
	
	// maintain harder colour after focus
	$('input[type="text"]').focus (function () {
		$(this).css('color', '#333');
	});
	
	// adds class to the link in the navigation which refers to the current page
	$(function(){
       $("a").each(function(){
               if ($(this).attr('href') == window.location.pathname){
                       $(this).addClass('open-page');
               }
    });
	
	// differentiate links that go to external domains
	//$("a[href*=http://]").addClass('external-link').attr('target', '_blank');
	   
});
$('#prodets1').show();

});

function swapdets(divid){
   $('.proddets').hide();
   $('#'+divid).show();
}
