var mc;
/*
function maxwidthcorrect()
 {
   var RealWidthBody = document.getElementById('body').clientWidth;
   if (navigator.appName=="Microsoft Internet Explorer")
     {
       if (RealWidthBody>1259) document.getElementById('Mbody').style.width = '1259px';
       else
         if (RealWidthBody<=900) document.getElementById('Mbody').style.width = '900px';
           else document.getElementById('Mbody').style.width = '100%';
     }
   if (navigator.appName=="Opera")
     {
       if (RealWidthBody>1255) document.getElementById('Mbody').style.width = '1255px';
       //if (RealWidthBody>1417) document.getElementById('Mbody').style.width = '1417px';
       else
         if (RealWidthBody<=900) document.getElementById('Mbody').style.width = '900px';
           else document.getElementById('Mbody').style.width = '100%';
     }
   if (navigator.appName=="Netscape")
     {
       if (RealWidthBody>1263) document.getElementById('Mbody').style.width = '1263px';
       else
         if (RealWidthBody<=900) document.getElementById('Mbody').style.width = '900px';
           else document.getElementById('Mbody').style.width = '100%';
     }
   clearTimeout(mc);
   mc=setTimeout("maxwidthcorrect()", 100);
 }
 */
 
 
 
function maxwidthcorrect()
 {
   var RealWidthBody = document.getElementById('body').clientWidth;
   if (navigator.appName=="Microsoft Internet Explorer" || 1==1)
     {
       
       var new_krugi_height = document.getElementById('new-krugi').clientHeight;
        var new_ruki_height = new_krugi_height+20;
       var new_krugi_height = new_krugi_height+0;

           
       if(document.getElementById('krugibottom'))
         document.getElementById('krugibottom').style.backgroundPosition = 'right -'+new_krugi_height+'px';

        mp = 1260-RealWidthBody;
        if(mp<=0) mp = 0;

        if(document.getElementById('ruki'))    document.getElementById('ruki').style.backgroundPosition = '-'+mp+'px -20px';
        if(document.getElementById('rukitop')) document.getElementById('rukitop').style.backgroundPosition = '-'+mp+'px 0px';
        
        
       if(document.getElementById('rukibottom'))
         document.getElementById('rukibottom').style.backgroundPosition  = '-'+mp+'px -'+new_ruki_height+'px';
        
     }
     /*
   if (navigator.appName=="Opera")
     {
       if (RealWidthBody>1255) document.getElementById('Mbody').style.width = '1255px';
       //if (RealWidthBody>1417) document.getElementById('Mbody').style.width = '1417px';
       else
         if (RealWidthBody<=900) document.getElementById('Mbody').style.width = '900px';
           else document.getElementById('Mbody').style.width = '100%';
     }
   if (navigator.appName=="Netscape")
     {
       if (RealWidthBody>1263) document.getElementById('Mbody').style.width = '1263px';
       else
         if (RealWidthBody<=900) document.getElementById('Mbody').style.width = '900px';
           else document.getElementById('Mbody').style.width = '100%';
     }
     */
   clearTimeout(mc);
   mc=setTimeout("maxwidthcorrect()", 1);
 }
onload=function(){maxwidthcorrect();}