/* MCF Plugins */

$(document).ready(function(){
   	
	Cufon.replace('#main .article h2', { 
		fontFamily: 'Nimbus Sans',
		color: '-linear-gradient(#999999, #000000)',
		textShadow: '0 -1px #333333' 
	});
	
	Cufon.replace('.article .meta', { 
		fontFamily: 'Metroscript',
		textShadow: '0 -1px #333333'
	});
	
	Cufon.replace('#main h2', { 
		fontFamily: 'Helvetica Neue',
		textShadow: '0 1px #FFFFFF' 
	});
	
	// Home & Interior Page Scroller
   	$('#slideshow, #gallery').cycle({ 
		fx:     	'fade', 
		speed:   	1000, 
		timeout: 	5000,
		delay: 		-3000,
		pause: 		1,
		pager: 		'#nav-slide'
	});

	// Search focus remove
	$("#search-site").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	// Colorbox
	$('#gallery a').colorbox({
		maxWidth: "85%", 
		maxHeight: "85%",
		opacity: 0.75
	});

}); // end doc ready
