jQuery.noConflict();
(function($){
$(document).ready(function(){
    $.reject({
        reject: { msie5:true, msie6:false, firefox1:true, firefox2:true, konqueror1:true, opera7:true, opera8:true, safari2:true, chrome1:true }, // Reject all renderers for dem
        browserInfo: {
            msie: {
                text: 'Internet Explorer 8+',
                url: 'http://www.microsoft.com/rus/windows/internet-explorer'
            },
            safari: {
                text: 'Safari 4+',
                url: 'http://www.apple.com/ru/safari/'
            },
            opera: {
                text: 'Opera 10+',
                url: 'http://www.opera.ru/download/'
            },
            chrome: {
                text: 'Google Chrome 4+',
                url: 'http://www.google.ru/chrome/'
            },
            gcf: {
                text: 'Google Chrome Frame',
                url: 'http://code.google.com/intl/ru/chrome/chromeframe/',
                allow: {all: false, msie: true}
            }
        },
        imagePath: 'http://static.sia-r.ru/images/',
        header: 'Your browser is not supported here', // Header Text
        paragraph1: 'You are currently using an unsupported browser', // Paragraph 1
        paragraph2: 'Please install one of the many optional browsers below to proceed', // Paragraph 2
        closeMessage: 'Close this window at your own demise!', // Message below close window link
        closeLink: 'Close this window',
        closeURL: 'http://sia-r.ru'
    }); // Customized Text

$('#wlpeUserRegisterEmail').blur(function(){
    var l = jQuery(this).val()
    l = l.split("@")
    $('#wlpeUserRegisterUserName').val(l[0])
})

$('#wlpePasswordText,#wlpeNewPasswordText, #wlpeNewPasswordConfirmText').livequery("focus",function(){
    $('#'+$(this).attr('id').replace('Text','')).removeClass("hidden").focus().css({'color':'#000000','text-align':'left'})
     $(this).hide()
})
$('#wlpePassword,#wlpeNewPassword,#wlpeNewPasswordConfirm').livequery("blur",function(){
    if ($(this).val() == ''){ $('#'+$(this).attr('id') + 'Text').show(); $(this).addClass("hidden"); }
})
$('#ajaxSearch_input, #wlpeUsername, #wlpeActivationPassword').livequery("focus",function(){
     if ($(this).val() == $(this).attr('defaultValue')){  $(this).css({'color':'#000000','text-align':'left'}); $(this).val(''); }
})
.livequery("blur",function(){
     if ($(this).val() == ''){  $(this).css({'color':'#807e7e','text-align':'center'}); $(this).val($(this).attr('defaultValue')); }
})

})
})(jQuery);
