// PLAY WELL WITH OTHER LIBRARIES


jQuery(document).ready(function () {

/*JQUERY SIFR
	jQuery.sifr ({
		path: 'fonts/',
		textAlign : 'left',
		font: 'din_cond_bold.swf',
		zoom: 1.0
	});
	jQuery('#wrapper h1').sifr( {

	});
	jQuery('#wrapper h2').sifr( {

	});
	jQuery('#sidebar h3').sifr( {
		color: '#900'
	});
	jQuery('#tagline, #phoneNumber').sifr( {
		textAlign: 'right',
		color: '#FFF'
	});
	*/
// CUFON
	Cufon.replace('#wrapper h1, #wrapper h2, #sidebar h3, #tagline, #phoneNumber', {
		fontFamily : 'DINCond-Bold'
	});
	
//CUSTOM DROP MENUS
	jQuery('#nav > li, #nav > li ul').mouseover(function() {
		/*clearTimeout();*/
		jQuery(this).addClass('liHover'); 
	});
	jQuery('#nav > li,#nav > li ul').mouseout(function() {
		setTimeout(function() {jQuery('#nav > li').removeClass('liHover');}, 2000);
	});
	
//ACCORDION
	jQuery('#generalQuestions,#orderingQuestions,#infoQuestions,#customMfgQuestions,#deliveryQuestions').accordion({ 
	    active: false, 
	    alwaysOpen: false,
	    autoheight: false  
	});
	jQuery('#galleryAll').accordion({ 
	    active: false, 
	    alwaysOpen: false,
	    autoheight: false  
	});

//FANCYZOOM
 	jQuery(".gallerySwatches a").fancybox({
		'zoomSpeedIn': 0,
		'zoomSpeedOut': 0,
		'overlayShow': true,
		'overlayOpacity': 0.8 
	});
// *** NOTICE **** Links to iFramed Pages will NOT work while MODx QuickEdit is enabled
	 jQuery(".featuredItem a, a.imageOnly").fancybox({
		'zoomSpeedIn': 0,
		'zoomSpeedOut': 0,
		'frameWidth': 650,
		'overlayShow': true,
		'overlayOpacity': 0.8 
	});

	 jQuery(".fancyZoom").fancybox({
		'zoomSpeedIn': 0,
		'zoomSpeedOut': 0,
		'frameWidth': 800,
		'overlayShow': true,
		'overlayOpacity': 0.8 
	});	
	

		
});//end document ready

