    <!-- start : Cufon Replacement JS -->
    Cufon.replace('h1.main-content',{
    });
    Cufon.replace('h1.logotext',{
        textShadow: '1px 3px #111',
        color: '-linear-gradient(0.4=#fff, #eee, #ccc, 0.6=#ddd)'
    });
    
	<!-- Edit the values below for the countdown start and end dates -->
	var startYear  = parseInt(2010);
	var startMonth = parseInt(1);
	var startDay   = parseInt(1);
	var startHour  = parseInt(0);
	var startMin   = parseInt(0);
	var startSec   = parseInt(0);
	
	var endYear  = parseInt(2012);
	var endMonth = parseInt(1);
	var endDay   = parseInt(1);
	var endHour  = parseInt(0);
	var endMin   = parseInt(0);
	var endSec   = parseInt(0);
	
	var startDate = new Date(startYear,startMonth-1,startDay,startHour,startMin,startSec);
	var startTime = startDate.getTime();
	
	var endDate = new Date(endYear,endMonth-1,endDay,endHour,endMin,endSec);
	var endTime = endDate.getTime();  
    	$(function () {
    				$('#countdown').countdown({until: endDate,
    					layout: '{dn} {dl}, {hn} {hl}, {mn} {ml}, {sn} {sl}'});
    			});

	var auto_refresh = setInterval(
		function()
		{
			var current = new Date();
			var currentTime = current.getTime();
			var timeDiff = (endTime - startTime);
			var time_elapsed = (currentTime - startTime);

			var percentDiff = (time_elapsed * 100) / timeDiff;
			var percent = percentDiff.toFixed(0);
			if (currentTime > endTime) percent=100;

			$(function(){
				$("#progress").progression({ 
					Current: percent,
					Easing: 'easeOutBounce',
					aBackgroundImg: 'images/progress.png'
				});
			});
		}
	, 1000);

	<!-- start : Progress Bar JS -->
	jQuery.fn.progression.defaults.Current = 0 
	jQuery.fn.progression.defaults.Background = '';
	jQuery.fn.progression.defaults.aBackground = ''; 
	jQuery.fn.progression.defaults.TextColor = ''; 
	jQuery.fn.progression.defaults.aTextColor = ''; 
		
    <!-- Start Coin Slider CSS and JS -->
	$(document).ready(function() {
		$('#coinSlider').coinslider({ hoverPause: true });
	});
    	
    <!-- Start Tabs Functions JS -->
    $(document).ready(function() {
    
        //Default Action
        $(".tab_content").hide(); //Hide all content
        $("ul.tabs li:first").addClass("active").show(); //Activate first tab
        $(".tab_content:first").show(); //Show first tab content
        
        //On Click Event
        $("ul.tabs li").click(function() {
            $("ul.tabs li").removeClass("active"); //Remove any "active" class
            $(this).addClass("active"); //Add "active" class to selected tab
            $(".tab_content").hide(); //Hide all tab content
            var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
            $(activeTab).fadeIn(); //Fade in the active content
            return false;
        });
    
    });

    <!-- Start Twitter JS -->
	$(document).ready(function(){
		$(".tweet").tweet({
			username: "BuckyOLeary",
			join_text: "auto",
			avatar_size: 0,
			count: 2,
			auto_join_text_default: "",
			auto_join_text_ed: "",
			auto_join_text_ing: "",
			auto_join_text_reply: "",
			auto_join_text_url: "",
			loading_text: "Loading Tweets...Please Wait..!"
		});
	});
	
	<!-- Start AJAX Subscriber Form JS -->
	$(document).ready(function() { 
	var options = { 
	target:  '#warning'
	}; 
	$('#newsletter-form').ajaxForm(options); 
	}); 
	
	<!-- Subscribers Form AJAX Loader Image -->
	$(document).ready(function(){
	
		$(".loader").hide();
		
		$('form#newsletter-form').bind('submit', function(e){
			$(".loader").show();
					var mail = $('input#email').val();
			e.preventDefault();
			
			$.ajax({
				type: 'POST',
				url: 'subscriber.php',
				data: '',
				success: function(theResponse){
					$(".loader").hide();
				},
				error: function(){
					$(".loader").hide();
				}		
			});
		});
	
	});
  
<!-- Start AJAX Contact Form JS -->
$(document).ready(function() { 
var options = { 
target : '#alert'
}; 
$('#contactForm').ajaxForm(options); 
}); 

<!-- Contact Form AJAX Loader Image -->
$(document).ready(function(){

	$(".process").hide();
	
	$('form#contactForm').bind('submit', function(e){
		$(".process").show();
				var name = $('input#name').val();
				var mail = $('input#mail').val();
				var subject = $('input#subject').val();
				var message = $('textarea#message').val();
		e.preventDefault();
		
		$.ajax({
			type: 'POST',
			url: 'sendmail.php',
			data: '',
			success: function(theResponse){
				$(".process").hide();
			},
			error: function(){
				$(".process").hide();
			}		
		});
	});
			
});

<!-- Clear Form after Submit -->
$.fn.clearForm = function() {
  return this.each(function() {
	var type = this.type, tag = this.tagName.toLowerCase();
	if (tag == 'form')
	  return $(':input',this).clearForm();
	if (type == 'text' || type == 'password' || tag == 'textarea')
	  this.value = '';
	else if (type == 'checkbox' || type == 'radio')
	  this.checked = false;
	else if (tag == 'select')
	  this.selectedIndex = -1;
  });
};

<!-- Refresh Captcha Code -->
function refreshCaptcha()
{
	var img = document.images['captchaimg'];
	img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}

