$(document).ready(function(){
	$('#content .portfolio .item img').bind('mouseover', function(e){
        var image2 = $(this).attr('alt');
        if (image2 && !$(this).hasClass('overed')) {
            $(this).addClass('overed');
            $(this).attr('alt', $(this).attr('src'));
            $(this).attr('src', image2);
        }
    });
    $('#content .portfolio .item img').bind('mouseout', function(e){
        var image2 = $(this).attr('alt');
        if (image2 && $(this).hasClass('overed')) {
            $(this).removeClass('overed');
            $(this).attr('alt', $(this).attr('src'));
            $(this).attr('src', image2);
        }
    });
	
	$('img.avatar').bind('mouseover', function(e){
        var image2 = $(this).attr('alt');
        if (image2 && !$(this).hasClass('overed')) {
            $(this).addClass('overed');
            $(this).attr('alt', $(this).attr('src'));
            $(this).attr('src', image2);
        }
    });
    $('img.avatar').bind('mouseout', function(e){
        var image2 = $(this).attr('alt');
        if (image2 && $(this).hasClass('overed')) {
            $(this).removeClass('overed');
            $(this).attr('alt', $(this).attr('src'));
            $(this).attr('src', image2);
        }
    });
});

function doClear(theText)
{
	if (theText.value == theText.defaultValue) {
		theText.value = "" 
	}
}
	
function doDefault(theText)
{
	if (theText.value == "")
	{
		theText.value = theText.defaultValue
	}
}
