/* <![CDATA[ */
 Cufon.replace('#header .logo h2,#content h1', {
  fontFamily: 'ChopinScript',
	color: '-linear-gradient(#FFFDE2,#FFFDE2,#EEE7C9,#DCD0AE,#BCA77E)',
  textShadow: '2px 2px 2px #000,1px 0px 2px #BCA77E'
});
 Cufon.replace('#content h1,#content .midcontent .productbox h2', {
  fontFamily: 'ChopinScript',
	color: '-linear-gradient(#FFFDE2,#FFFDE2,#EEE7C9,#DCD0AE,#BCA77E)',
  textShadow: '1px 1px 1px #000'
});


 Cufon.replace('#header .logo h2 .slogan,#header #navi li a,#header .headercontact,#sidebar .sidebarcontent h2,#sidebar .sidebarcontent .addressbox1 h3,#sidebar .sidebarcontent .addressbox2 h3,#sidebar .sidebarcontent .sidecontactbox  .half p span,#footer .footernavi li a', {
  fontFamily: 'TrajanPro',
  textShadow: '0px 0px 2px #fff,1px 1px 2px #000',
  hover:{
  color:'#8A5641'
  }
});

 Cufon.replace('#sidebar .specialbox h2,#sidebar .specialbox p,#content .bottomcontent h2', {
  fontFamily: 'TrajanPro'
  }); 
  Cufon.replace('#footer .copyright', {
  color: '-linear-gradient(#FFFDE2,#FFFDE2,#EEE7C9,#DCD0AE,#BCA77E)',
  textShadow: '2px 2px 2px #000,1px 0px 2px #BCA77E',
  fontFamily: 'TrajanPro'
  });
 

	$(document).ready(function (){
		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"
    }
	});
  
  
  
  			$("#content .midcontent .productbox  .productlink li").hover(function() {
		$(this).css({'z-index' : '10'});
		$(this).find('img').addClass("hover").stop()
			.animate({
				opacity:'0.5'
			}, 500);
		
		} , function() {
		$(this).css({'z-index' : '0'});
		$(this).find('img').removeClass("hover").stop()
			.animate({
				opacity:'1'
			}, 300);
	});
  
        $("a[rel=gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over'
        });
      $(".popup").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
          });
  */
  
    
			});
/* ]]> */