// JavaScript Document
Cufon.replace('h1,h2,h3,h4,#demo a,#header_top p,.big_action a',{hover: true,textShadow: '0px 1px #000'});
Cufon.replace('#main_tagline h1,.box_inner a,ul.tabs li a,ul.tabs li.active a,#features h3',{hover: true});
$(document).ready(function(){
$(document).pngFix();
//Slideshow	for header gallery
$('.slideshow').cycle({
       	speed: 1000,
	    fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
     	timeout: 4000,  // milliseconds between slide transitions (0 to disable auto advance)
		next:   '#next',  // selector for element to use as click trigger for next slide
		prev:  '#prev',  // selector for element to use as click trigger for previous slide
		pause:   1,	  // true to enable "pause on hover"
		cleartypeNoBg:   true// set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
});	
//Slideshow for testimonial
$('.testimonial').cycle({
		fx: 'scrollUp', // choose your transition type, ex: fade, scrollUp, scrollLeft etc... 
   		speed: 1000,
		timeout: 4000,  // milliseconds between slide transitions (0 to disable auto advance)
		cleartypeNoBg:   true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
		pause:  1
});
//Fancybox for video
$(".video").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'overlayShow': true,
			'overlayColor': '#000000',
			'overlayOpacity': 0.9,
			'hideOnOverlayClick': true, 
			'transitionIn'		:'elastic',
			'speedIn'			:600,
			'title'			: this.title,
			'width'			: 600,
			'height'		: 400,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true'
			}
		});
		return false;
});
//On Hover animation Event for social, subscribe button
	$('.social li a img,.btn_subscribe').hover(function(){
			$(this).animate({opacity: 0.8}, 300);
		}, function () {
			$(this).animate({opacity: 1}, 300);
		});
}); // close document.ready

