// javascript for mics things 
;

var default_email = 'Ваш е-мэйл';
var default_password = 'password';

$(document).ready(function (){
    $('form.login :input').focus(function(){
        $(this).css('color', '#000');
        if( $(this).attr('name') == 'email' )
            if ($(this).attr('value') == default_email)
                $(this).attr('value', '');
        if( $(this).attr('name') == 'password' )
            if ($(this).attr('value') == default_password)
                $(this).attr('value', '');
    });

    $('form.login :input').blur(function(){
        $(this).css('color', '#AFAFAF');
        if( $(this).attr('name') == 'email' )
            if ($(this).attr('value') == '')
                $(this).attr('value', default_email);
        if( $(this).attr('name') == 'password' )
            if ($(this).attr('value') == '')
                $(this).attr('value', default_password);
    });

    /*** top menu and carousel ***/
    $('#mycarousel').jcarousel({
        scroll: 5
    });


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

//    $('#masterdiv > div > ul').treeview();
});

