Cufon.replace('h1', {fontFamily: 'Gill Sans Light'});
Cufon.replace('.leftCol h1', {fontFamily: 'Gill Sans Light'});
Cufon.replace('h2', {fontFamily: 'Gill Sans Light'});
Cufon.replace('h4', {fontFamily: 'Gill Sans Light'});
Cufon.replace('p.agechecker', {fontFamily: 'Gill Sans Light'});
Cufon.replace('p.agechecker strong', {fontFamily: 'Gill Sans MT'});
Cufon.replace('#brownBtn .bg a', {fontFamily: 'Georgia', hover: true});
Cufon.replace('.breadcrumbs ul li', {fontFamily: 'Georgia', hover: true});
Cufon.replace('#focusArea p.intro', {fontFamily: 'Georgia'});
Cufon.replace('blockquote', {fontFamily: 'Georgia'});
Cufon.replace('.rightCol .italic', {fontFamily: 'Georgia'});
Cufon.replace('.wineDesc .em', {fontFamily: 'Georgia'});
Cufon.replace('#nav li a', {fontFamily: 'Gill Sans Light', hover: true});
Cufon.replace('.footer a:link', {fontFamily: 'Georgia', hover: true});

// Navigation Sub Menu
$('#nav li').hover(
		function () {
			//show its submenu
			$('ul', this).fadeIn(100);

		}, 
		function () {
			//hide its submenu
			$('ul', this).fadeOut(100);			
		}
	);
	
  // age checker
  $('#day').focusin(function(){
    if($(this).val() == 'DD')
    {
      $(this).val("");
    }
  });
  $('#day').focusout(function(){
    if($(this).val() == "")
    {
      $(this).val("DD");
    }
  });
  $('#day').keyup(function(event) {
    if($(this).val().length == 2)
    {
      if((event.which > 47 && event.which < 58) || (event.which > 95 && event.which < 106))
      {
	$('#month').get(0).focus();
      }
    }
  });
  $('#month').focusin(function(){
    if($(this).val() == 'MM')
    {
      $(this).val("");
    }
  });
  $('#month').focusout(function(){
    if($(this).val() == "")
    {
      $(this).val("MM");
    }
  });
  $('#month').keyup(function(event) {
    if($(this).val().length == 2)
    {
       if((event.which > 47 && event.which < 58) || (event.which > 95 && event.which < 106))
       {
         $('#year').get(0).focus();
       }
    }
  });  
  $('#year').focusin(function(){
    if($(this).val() == 'YYYY')
    {
      $(this).val("");
    }
  });
  $('#year').focusout(function(){
    if(($(this).val() == "19") || ($(this).val() == ""))
    {
      $(this).val("YYYY");
    }
  });
  $('#year').keyup(function(event) {
    if($(this).val().length == 4)
    {
      if((event.which > 47 && event.which < 58) || (event.which > 95 && event.which < 106))
      {
        $('#day').get(0).focus();
      }
    }
  });

// Where to Buy - toggle

//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("h3.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
		return false; 
	});


// Add a class to first TR of each TD for Agents Table
$('#agents td:first-child').addClass("first");

//Region Drop Down List
$('div.topBlock').click(function () {
		$('ul.dropList').slideToggle(400);
   });
	$('ul.dropList').click(function () {
		$('ul.dropList').slideToggle(400);
   });
	$('.dropList li a').click(function(){ //select value from list
			var val = $(this).text();
			$('.topBlock').text(val);
		});

