function preloadImages( imageRoot ){
 if (document.images) {

    preloadPics(imageRoot,
        'logo-jetstyle', 'logo-jetstyle-'
         );

    preloadPics(imageRoot+'meta/',
        'home', 'home-',
        'mail', 'mail-',
        'map', 'map-'
         );

  }

  preloadFlag = true;
}

//function checkResolution(){
//  if (self.innerHeight) // all except Explorer
// {
//   x = self.innerWidth-20;
// }
// else if (document.documentElement && document.documentElement.clientHeight)
//   // Explorer 6 Strict Mode
// {
//   x = document.documentElement.clientWidth;
// }
// else if (document.body) // other Explorers
// {
//   x = document.body.clientWidth;
// }
// if (x>=1260){
//   className='resBig';
// } else if(x>996){
//   className='resAvg';
// } else {
//   className='resSmall';
// }
// document.body.className=className;
//}

// lucky: 2010-02-18: это вызывает проблемы в ie6
//jQuery(document).ready(function () {
//  if(jQuery.browser.msie && jQuery.browser.version < 7){
//    checkResolution();
//    jQuery(window).bind('resize', function(){checkResolution();});
//  }
//});
