// THIS FILE CONTAINS ALL THE SETTINGS FOR THE JQUERY PLUGINS USED
// PLAY WELL WITH OTHER LIBRARIES


jQuery(document).ready(function () {

//FANCYZOOM
 	jQuery(".floorplanTable a, #floorplans table a").fancybox({
		'hideOnContentClick' 	: false,
		'imageScale'			: false,
		'centerOnScroll'		: false,
		'autoScale'				: false,
		'hideOnContentClick'	: true,
		'hideOnOverlayClick'	: true
	});
	
	jQuery("#resident-links a.commCal, #resident-links a.commNews").fancybox({
		'hideOnContentClick' 	: false,
		'autoScale'			: true,
		'centerOnScroll'		: false,
		'frameWidth'			: 800,
		'frameHeight'			: 600
	});

// COLORBOX FANCY ZOOM
/*	jQuery(".floorplanTable a, #floorplans table a").colorbox({
		overlayClose: true,
		scalePhotos: false,
		transition: 'elastic',
		initialWidth: 300,
		opacity: .5
	});
*/
// CYCLE PLUGIN
	jQuery('#billboard div').removeClass('cycleContainer');
	jQuery('#billboard div').cycle({
		fx			: 'fade',
		speed		: 1200,
		timeout		: 10000
	});
	
// SUCKERFISH
	jQuery.fn.hoverClass = function(c) {
		return this.each(function(){
			jQuery(this).hover( 
				function() { $(this).addClass(c);  },
				function() { $(this).removeClass(c); }
			);
		});
	};    


	jQuery("#nav1657 li").hover(
        function(){ jQuery("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
        jQuery("#nav1657 li").hoverClass ("sfHover");
// TABS
	jQuery("#tabsFountains").tabs("#panesFountains > div").history();

// CUFON STERLING
	Cufon.replace('#contentCol h1', {
		fontFamily 	: 'MyriadProCond',
		fontSize	: 25
	});
	Cufon.replace('#contentCol h2', {
		fontFamily 	: 'MyriadProCond',
		fontSize	: 19
	});
		Cufon.replace('.contactOfficeBox h3, .contactCorporateFloater h3, .contactLeasing2 h3', {
		fontFamily 	: 'MyriadProCond',
		fontSize	: 19
	});
	// CUFON MILLENNIUM
		Cufon.replace('#bodyContent h1', {
		fontFamily 	: 'ScalaSansPro-Regular',
		fontSize	: 25
	});
		Cufon.replace('#bodyContent h2', {
		fontFamily 	: 'ScalaSansPro-Regular',
		fontSize	: 19
	});
	
	// CUFON DINERSTEIN CORP
	Cufon.replace('#contentContainer h1, #homeNews h2', {
		fontFamily 	: 'Optima'
	});


	// CUFON FOUNTAINS
	/*Cufon.replace('#tpl158 h1,#tpl158 h2,#tpl157 h1, #tpl157 h2', {
		fontFamily 	: 'Gill Sans'
	});
	Cufon.replace('#nav1856 a', {
		fontFamily 	: 'Gill Sans Bold'
	});*/

});//end document ready
