function btnTopscroll() {
	$(window).scroll(function() {
		if($(this).scrollTop() != 0) {
			$('#btn-top').fadeIn();	
		} else {
			$('#btn-top').fadeOut();
		}
	});
 
	$('#btn-top').click(function() {
		$('body,html').animate({scrollTop:0},"fast");
	});	
} // end function

function tsrShare() {
$("*[id^=l-tsr-]").hover( 
    function() { $(this).children(".l-tsr-share").fadeIn(); }, 
		function () { $(this).children(".l-tsr-share").fadeOut(); } 
); 
} // end function

$(function() {
	$(".hoverswap").hover(
		function () {	$(this).attr("src", $(this).attr("src").replace(/.png/, "-hover.png"));	},
		function () {	$(this).attr("src", $(this).attr("src").replace(/-hover.png/, ".png"));	}
	);
});

$(document).ready(function() {

    $(".default-input").focus(function(srcc) {
        if ($(this).val() == $(this)[0].title) {
            $(this).removeClass("default-input-active");
            $(this).val("");
        }
    });
    
    $(".default-input").blur(function() {
        if ($(this).val() == "") {
            $(this).addClass("default-input-active");
            $(this).val($(this)[0].title);
        }
    });
    $(".default-input").focus();
    $(".default-input").blur();
		
		$("form:has(.default-input)").submit(function(){
			$('.default-input-active', this).val('');
 		});         
});

