﻿        jQuery(function($) {
            $('input[type="text"], input[type="password"]')
    .bind('focus', function() { $(this).stop().animate({ 'backgroundColor': '#F1EFA5' }, { queue: false, duration: 500 }); })
    .bind('blur', function() { $(this).stop().animate({ 'backgroundColor': '#fff' }, { queue: false, duration: 250 }); });

            var toggle = function(selector, text) {
                $(selector).val(text);
                $(selector)
      .bind('focus', function() { if ($(this).val() == text) { $(this).val(''); } })
      .bind('blur', function() { if ($(this).val() == '') { $(this).val(text); } });
            };
            toggle('.SearchInput', 'Řecko');
        });

    var lastColor;

    function ic(control) {
        lastColor = control.style.backgroundColor;
        control.style.backgroundColor = "#EEEEEE";
        //control.style.cursor = "pointer";
    }
    function oc(control) {
        control.style.backgroundColor = lastColor;
    }
 

