$("#facebook img").hover(function() {
    $(this).attr('src', 'imgs/icons_social_facebook2.png');
}, function() {
    $(this).attr('src', 'imgs/icons_social_facebook1.png');
});

$("#twitter img").hover(function() {
    $(this).attr('src', 'imgs/icons_social_twitter2.png');
}, function() {
    $(this).attr('src', 'imgs/icons_social_twitter1.png');
});

$("#vcard img").hover(function() {
    $(this).attr('src', 'imgs/vcard_download.png');
}, function() {
    $(this).attr('src', 'imgs/vcard.png');
});

$("#bt_hire img").hover(function() {
    $(this).attr('src', 'imgs/bt_hire2.png');
}, function() {
    $(this).attr('src', 'imgs/bt_hire.png');
});

$("#foto img").hover(function() {
    $(this).attr('src', 'imgs/fotobm2.jpg');
}, function() {
    $(this).attr('src', 'imgs/fotobm.jpg');
});

$("#fowd img").hover(function() {
    $(this).attr('src', '../imgs/bt_fowd2.png');
}, function() {
    $(this).attr('src', '../imgs/bt_fowd.png');
});

// JQuery ToolTip

jQuery(function($) {
var timer;
function mouseoverActiontooltip(event)
{
$("body").append("<p id='tooltip'>"+ this.rel + "</p>");
$("#tooltip").css("left",(event.pageX + 20) + "px");
$("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoutActiontooltip(event)
{
$("#tooltip").remove();
}

function mousemoveActiontooltip(event)
{
$("#tooltip").css("left",(event.pageX + 20) + "px");
$("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoverActiontooltipImage(event)
{
$("body").append("<p id='tooltip'><img src="+ this.rel + "></img></p>");
$("#tooltip").css("left",(event.pageX + 20) + "px");
$("#tooltip").css("top",(event.pageY - 10) + "px");
}

function mouseoutActiontooltipImage(event)
{
$("#tooltip").remove();
}

function mousemoveActiontooltipImage(event)
{
$("#tooltip").css("left",(event.pageX + 20) + "px");
$("#tooltip").css("top",(event.pageY - 10) + "px");
}

$('.tooltip').bind('mouseover', mouseoverActiontooltip);

$('.tooltip').bind('mouseout', mouseoutActiontooltip);

$('.tooltip').bind('mousemove', mousemoveActiontooltip);

$('.tooltipImage').bind('mouseover', mouseoverActiontooltipImage);

$('.tooltipImage').bind('mouseout', mouseoutActiontooltipImage);

$('.tooltipImage').bind('mousemove', mousemoveActiontooltipImage);

});

//* Input Inline label

$(document).ready(function() {
	$('input[title]').each(function() {
		if($(this).val() === '') {
			$(this).val($(this).attr('title'));
		}

		$(this).focus(function() {
			if($(this).val() === $(this).attr('title')) {
				$(this).val('').addClass('focused');
			}
		});

		$(this).blur(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title')).removeClass('focused');
			}
		});
	});
});
