// JavaScript Document
Cufon.replace('h1,#header_top p,#offer_bottom a',{hover: true,textShadow: '0px 1px #000'});
Cufon.replace('h2,h3,h4,.button1 a,.button2 a,#details h2',{hover: true});
$(function () {
	jQuery('#defaultCountdown').countdown({
	until: new Date(2011, 6 - 1, 26, 0, 0, 0), 
	format: 'DHMS',
	layout: '<div id="vals">'+
				                '<div id="d_name" class="numbers">*Offer ends in</div>'+
								'<div id="d" class="numbers">{dnn}</div>'+
								'<div id="h_name" class="numbers">days </div>'+
								'<div id="h" class="numbers">{hnn}</div>'+
								'<div id="h_name" class="numbers">hours </div>'+
								'<div id="m" class="numbers">{mnn}</div>'+
								'<div id="m_name" class="numbers">minutes and</div>'+
								'<div id="s" class="numbers">{snn}</div>'+
								'<div id="s_name" class="numbers">seconds</div>'+
							    '</div>'
});
	Cufon.replace('#defaultCountdown', { fontFamily: 'PT Sans',textShadow: '0px 1px #000' });   // this will replace everything in the defaultCountdown div with your font	
});
$(document).ready(function(){
//fancybox
$(".various").fancybox({
			'hideOnOverlayClick': true, 
			'transitionIn'		:'elastic',
			'overlayShow'		:false,
			'speedIn'			:600,
			'titleShow':false,
			'overlayShow': true,
			'overlayOpacity': 0.8,
			'overlayColor': '#000000'
		});
//Fancybox for image gallery
$("a.simple_image").fancybox({
		'opacity'		: true,
		'overlayShow'	       : true,
		'overlayColor': '#000000',
		'overlayOpacity'     : 0.9,
		'titleShow':true,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
});
//slideshow	for header gallery
	$('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:   1000,
		timeout: 4000,  // milliseconds between slide transitions (0 to disable auto advance)
		pager:   '#pager',  // selector for element to use as pager container            
		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)
	});	
//On Hover animation Event for social, subscribe button
$('.social li a img,.btn_subscribe,.contactForm .submit').hover(function(){
			$(this).animate({opacity: 0.8}, 300);
		}, function () {
			$(this).animate({opacity: 1}, 300);
		});
//Gallery - On Hover Event 
	$('#gallery li a').mouseenter(function(e) {
            $(this).children('img').animate(300);
            $(this).children('span').fadeIn(400);
        }).mouseleave(function(e) {
            $(this).children('img').animate(300);
            $(this).children('span').fadeOut(400);
});
}); // close document.ready
<!--
	getTwitters('twitter', {
        id: 'envato', 
        count: 3, 
        enableLinks: true, 
        ignoreReplies: false,
        template: '<span class="twitterPrefix"><span class="twitterStatus">%text%</span> <span class="username"><a href="http://twitter.com/%user_screen_name%"><br/>- Follow %user_screen_name%</a></span>',
        newwindow: true
});
-->
