$(document).ready(function(){
        $('#logo').ifixpng();
        if(navigator.appName == 'Microsoft Internet Explorer'){
        $('div.fuckingFormLeft').css('background-image','url(/components/sheader/images/fuckingFormLeft.gif)')
        $('div.fuckingFormRight').css('background-image','url(/components/sheader/images/fuckingFormRight.gif)')
        $('div.fuckingFormRight form').css('background-image','url(/components/sheader/images/fuckingForm.gif)')
        $.preloadImages('/components/catalog/images/wait.gif');
    }
    //var t = $("#right").text();
    if($("#right").text() == '') {
        $("#right").hide();
        $("#left").css("width","100%");
    }
    if (!$.browser.webkit) {

		$('INPUT[placeholder], TEXTAREA[placeholder]').blur(function(){

			if ($(this).val()=='') {
				$(this).val($(this).attr('placeholder'));
				$(this).addClass('m-placeholder');
			}

		}).focus(function(){

			$(this).removeClass('m-placeholder');
			if ($(this).val()==$(this).attr('placeholder'))
				$(this).val('');

		}).each(function(){

			if ( ($(this).val()=='') || ($(this).val()==$(this).attr('placeholder')) ) {
				$(this).val( $(this).attr('placeholder') );
				$(this).addClass('m-placeholder');
			}

			var form = $(this).closest('FORM');
			if (form.length)
				form.submit(function(){
					if ($(this).val()==$(this).attr('placeholder'))
						$(this).val('');
				});

		});

	}
});


