$(document).ready(function() {
    //$(".box").prepend('<div class="boxtop"><span></span></div>');
    //$(".box").append('<div class="boxbottom"><span></span></div>');
    });
var swap_text_boxes = [];
function init_swap_text_boxes(){
    //Store the default value for each box
    $('input[type=text][value].swaptextbox').each(function() {
        swap_text_boxes[$(this).attr('id')] = $(this).attr('value');
    });
    //Add focus and blur events to set or clear the value
    $('input[type=text][value].swaptextbox').bind('focus', function() {
        if($(this).val() == swap_text_boxes[$(this).attr('id')]) {
            $(this).val('');
        }
    });
    $('input[type=text][value].swaptextbox').bind('blur', function() {
        if($(this).val() == '') {
            $(this).val(swap_text_boxes[$(this).attr('id')]);
        }
    });
}

$(document).ready(function(){
    init_swap_text_boxes();
});


var scrollto = function (where, speed) {
    var speed = (speed) ? speed : 1200;
    destination = $('' + where).offset().top;
    $("html:not(:animated),body:not(:animated)").animate({
        scrollTop: destination
    }, {
        duration: 1200,
        specialEasing: {
            bottom: 'linear'
        }
    });
}

//$('#trimite').mouseover(function () {$("#data_nastere").val($("#birthyear").val() + '-' + $("#birthmonth").val() + '-' + $("#birthday").val() );});

