function preloadImages( imageRoot ){
 if (document.images) {  

    preloadPics(imageRoot,
        'logo-jetstyle', 'logo-jetstyle-'
         );

	/*
    preloadPics(imageRoot+'meta/',
        'home', 'home-',
        'mail', 'mail-',
        'map', 'map-'
         );
*/
  }

  preloadFlag = true;
}

if (jQuery)
{
    jQuery(document).ready(function(){
        $(":text[default_value]").focus(function(){
            if (this.value == this.getAttribute('default_value'))
            {
                this.value = '';
                $(this).removeClass('grey');
            }
        }).blur(function(){
            if (this.value == '')
            {
                this.value = this.getAttribute('default_value');
                $(this).addClass('grey');
            }
        });
		
		$(".b-check-order fieldset input").each( function(i){
			var $input = $(this);
			var $label = $("label[for='" + this.id + "']");
			$input.focus( function(e) {
				$label.hide();
			});
			$input.blur( function(e) {
				if (this.value == "") {
					$label.show();
				}
			});
		})
    });
}
