/* <![CDATA[ */
 Cufon.replace('#header .logocontainer .logo,#header .slogan2', {
  fontFamily: 'BasicClassA156a',
	color: '-linear-gradient(#FFFFB7,#FCE49F,#FBD28F,#FACB89)',
  textShadow: '-2px -1px 2px #000'
});

 Cufon.replace('#header .logocontainer .url,#header .logocontainer .phone', {
  fontFamily: 'TimesNewRoman',
	color: '-linear-gradient(#FFFFB7,#FCE49F,#FBD28F,#FACB89)',
  textShadow: '-2px -1px 1px #4B2406'
});

 Cufon.replace('#footer .copyright span', {
  fontFamily: 'BasicClassA156a',
	color: '-linear-gradient(#FFFFB7,#FCE49F,#FBD28F,#FACB89)'
});

 



	$(document).ready(function (){
  
  $("#lsidebar .sidenavi li").hover(function() {
		$(this).css({'z-index' : '10'});
		$(this).find('a').addClass("hover").stop()
			.animate({
        opacity: '0.8'
        
			}, 200);
		
		} , function() {
		$(this).css({'z-index' : '0'});
		$(this).find('a').removeClass("hover").stop()
			.animate({
        opacity: '1'
			}, 300);
	});
  
        	jQuery.validator.addMethod("phoneUS", function(phone_number, element) {
    phone_number = phone_number.replace(/\s+/g, ""); 
	return this.optional(element) || phone_number.length > 9 &&
		phone_number.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
}, "Please specify a valid phone number");
			
   $("#Contact_Form").validate({
    rules: {
			NameTxt: "required",
			EmailTxt: {
				required: true,
				email: true
			},
		AddressTxt: "required",
		CityTxt: "required",
		StateTxt: "required",
		ZipTxt: "required",
		CountryLst: "required",
		MessageTxt: "required",

    PhoneNum: {
				required: true,
				phoneUS: true
			},
      SubjectTxt: "required"
    }
	});
 $("a[rel=weddingcake]").fancybox({
    'transitionIn'		: 'elastic',
    'transitionOut'		: 'elastic',
    'titlePosition' 	: 'over'
    });
  $("a[rel=groomscakes]").fancybox({
    'transitionIn'		: 'elastic',
    'transitionOut'		: 'elastic',
    'titlePosition' 	: 'over'
    });
  $("a[rel=anniversarycake]").fancybox({
    'transitionIn'		: 'elastic',
    'transitionOut'		: 'elastic',
    'titlePosition' 	: 'over'
    });
  
  /*$('.date').datepick({
  minDate: new Date(1950, 12-1, 25),
  dateFormat: 'MM dd ,yy'
  });
  
  		$('#gallery').galleryView({
            gallery_width: 500,
            gallery_height: 375,
            frame_width: 80,
            frame_height: 80,
            pause_on_hover: true,
            fade_panels: true,
            nav_theme: 'dark',
            easing: 'easeOutElastic',
            transition_speed: 1700,
            transition_interval: 12000
          });
  */
  
    
			});
/* ]]> */