Cufon.replace('small, .btn, #services h2, #showcase_text h1, #services h1, #homewidget h1, #launch a, #post_showcase h1, #homewidget label, .cat_desc h1, .screen-reader-text, #sidebar h2, #post h1, #portfolio_header h1,  .comment_author, #respond h3, #footer ul, #footer h2, #scroller a, #scroller h2',{ hover: true});

$(document).ready(function() {

    $('#banner_items').cycle({
		fx: 'fade',
		pager:'#holder',
		pause: 1
	});
	
	 $('#post_items').cycle({
		fx: 'scrollHorz',
		next: ".right_btn",
		prev: ".left_btn",
		timeout: 0
	});
	 
	/* $('.portfolio_item img[title]').qtip({
		   position: { target: 'mouse' },
		   style: { 
				 	 lineHeight: '24px',
					 fontSize: '0.8em',
					 tip: 'topLeft'
				  }

	});*/

	/* $('ul.sf-menu').superfish({autoArrows: false});*/
	 
});

$(function(){
	$('#cnt_name, #cnt_email, #cnt_message').click(function(){
			$(this).attr("style", "background: #ebebeb;");
		});
		$('#cnt_name, #cnt_email, #cnt_message').blur(function(){
			if($(this).val() != ''){ }
			else{
				$(this).attr("style", "");
			}
	});
	$(window).scroll(function(){
	$('#scroller').stop(0,0).animate({top: $(document).scrollTop() + 200 + "px" }, 300);
	});
});

$(function(){
	$("#posts-block .post-desc").css({opacity: "0"});
	$(".post").hover(function(){
		$(this).find('.post-desc').stop(0,0).animate({opacity :"1"}, 300);
	}, function(){
		$(this).find('.post-desc').stop(0,0).animate({opacity :"0"}, 300);
	});
})

$(function(){
	$(".latest-post .desc, .latest-heading").css({opacity: "0"});
	$(".latest-post").hover(function(){
		$(this).find('.desc, .latest-heading').stop(0,0).animate({opacity :"1"}, 300);
	}, function(){
		$(this).find('.desc, .latest-heading').stop(0,0).animate({opacity :"0"}, 300);
	});
})



$(function(){
	$(".tabs-container").find('.tab-content:first').css({display: "block", opacity: "1"}).siblings().css({display: "none", opacity:"0"});
	
	$('.tabs').each(function(){
        $(this).find('a:first').addClass("active");
        $(this).find('a:first').siblings().addClass("inactive");
    });
    $('.tabs a').click(function(){
        $(this).removeClass("inactive").addClass("active");
        $(this).siblings().removeClass("active").addClass("inactive");
        var target = $(this).attr('href');  
        $(target).css({display:"block"}).stop(0,0).animate({opacity:"1"});
        $(target).siblings().stop(0,0).animate({opacity:"0"});
        return false;
    });
});

$(function(){
	$("label[for='mc_mv_EMAIL']").text("Email*");
	$("label[for='mc_mv_FNAME']").text("Name");
});

$(function(){
	$(".under-search > li > ul").css({opacity: "0"});
	$(".under-search > li").hover(function(){
			$(this).find("ul").css({display: "block"}).animate({opacity: "1"}, 300);
		
		},
		 function(){
	 	$(this).find("ul").animate({opacity: "0"}, 300).css({display: "none"});
		 	
	 });
});

