// This contains all base javascript (e.g. siFR, swfobject calls, etc)

//  base.js
//  
//  Created by Matt Dills on 2010-04-02.
//  Copyright 2010 Scully Group. All rights reserved.
// 

$(document).ready(function() {
  
  /////////////////////////////////////////////////////////////// cufon
  
  // Clarendon
  Cufon.set('fontFamily', 'Prestige Elite Std');
  Cufon.replace('#home-envelope p');
  Cufon.replace('#home-features a.more', {hover: true});
  Cufon.replace('#interior-content h1');
  Cufon.replace('#footer-home p', {hover:true });
  Cufon.replace('#footer-home a', {hover:true });
  Cufon.replace('#footer-interior #copyright p', {hover:true});
  Cufon.replace('#footer-interior a', {hover:true, textShadow: '#000000 1px 1px'});

  Cufon.set('fontFamily', 'Bickham Script Pro');  
  Cufon.replace('#home-features h1 a.nav', {hover: true});
  Cufon.replace('#subnav-repeat a', {hover: true});
  Cufon.replace('#content-nav a', {hover: true});  


  $(".gallery a").fancybox({
  		'titleShow'		: true,
  		'transitionIn'	: 'elastic',
  		'transitionOut'	: 'elastic',
  		'titlePosition' : 'over',
  		'overlayOpacity': 0.5,
  		'overlayColor'  : '#000',
  		'margin'        : 0,
  		'padding'       : 0
  });

  
  /////////////////////////////////////////////////////////////// swf call
  var flashvars = {
    xmlpath:"/filmstrip"
  };
  
  var params = {
    menu: "false",
    wmode: "transparent"
  };
  
  var attributes = {};
  swfobject.embedSWF("/swf/bucket-slideshow.swf", "home-flash-embed", "965", "158","9.0.0", "", flashvars, params, attributes);
    
}); //end document.ready
