$(document).ready(function() {
	if ($('#quiz').length) {
	$("#quiz").click(function() {
							  //alert("inside the jquery");
		$.fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	600,
			'speedOut'		:	600,
			'easingIn'		:	'swing',
			'easingOut'		:	'swing',
			'overlayColor'	:	'#000000',
			'overlayOpacity':	.7,
			'padding'		: 0,
			'autoScale'		: false,
			'title'			: this.title,
			'width'			: 720,
			'height'		: 540,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

		return false;
	});
	}
	
	if ($('#tracking').length) {
		swfobject.registerObject("tracking", "9.0.0");
	}


	if ($('#faq').length) {
	$('#faq dt').live('click',function(){
			var dd = $(this).next();

			// If the title is clicked and the dd is not currently animated,
			// start an animation with the slideToggle() method.

			if(!dd.is(':animated')){
				dd.slideToggle();
				$(this).toggleClass('opened');
			}

	});
	}

	if ($('#comments').length) {
	$('#comments').cycle({ 
    	fx:     'scrollUp', 
    	timeout: 8000, 
    	delay:  -2000,
		pause: 1
	});
	}

});
Cufon.replace('.content h1, .content h2, .content h3, .content h4', { fontFamily: "Univers67", color: '-linear-gradient(#555555, #1e1e1e)', letterSpacing:'-1px', fontSize:'28px' });
Cufon.replace('#faq h4', { fontFamily: "Vegur" });
Cufon.replace('.acc_trigger', { fontFamily: "Vegur" });
Cufon.replace('#featured_right p', { fontFamily: "Neue" });
Cufon.replace('#stop', { fontFamily: "Univers67", color: '-linear-gradient(#ef0000, #a60000)', letterSpacing:'-1px', fontSize:'28px' });

