sm_t = window.setTimeout('',1);sm = window.setTimeout('',1);function globalLeft(eElement){   if (!eElement && this)                    // if argument is invalid   {                                         // (not specified, is null or is 0)      eElement = this;                       // and function is a method   }                                         // identify the element as the method owner   var DL_bIE = document.all ? true : false; // initialize var to identify IE   var nLeftPos = eElement.offsetLeft;       // initialize var to store calculations   var eParElement = eElement.offsetParent;  // identify first offset parent element   while (eParElement != null)   {                                         // move up through element hierarchy      if(DL_bIE)                             // if browser is IE, then...      {         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )         {                                   // if parent is not a table or the body, then...            nLeftPos += eParElement.clientLeft; // append cell border width to calcs         }      }      else                                   // if browser is Gecko, then...      {         if(eParElement.tagName == "TABLE")  // if parent is a table, then...         {                                   // get its border as a number            var nParBorder = parseInt(eParElement.border);            if(isNaN(nParBorder))            // if no valid border attribute, then...            {                                // check the table's frame attribute               var nParFrame = eParElement.getAttribute('frame');               if(nParFrame != null)         // if frame has ANY value, then...               {                  nLeftPos += 1;             // append one pixel to counter               }            }            else if(nParBorder > 0)          // if a border width is specified, then...            {               nLeftPos += nParBorder;       // append the border width to counter            }         }      }      nLeftPos += eParElement.offsetLeft;    // append left offset of parent      eParElement = eParElement.offsetParent; // and move up the element hierarchy   }                                         // until no more offset parents exist   return nLeftPos;                          // return the number calculated}/******************************************************************************/function globalTop(eElement){      if (!eElement && this)                    // if argument is invalid   {                                         // (not specified, is null or is 0)      eElement = this;                       // and function is a method   }                                         // identify the element as the method owner   var DL_bIE = document.all ? true : false; // initialize var to identify IE         var nTopPos = eElement.offsetTop;         // initialize var to store calculations   var eParElement = eElement.offsetParent;  // identify first offset parent element   while (eParElement != null)   {                                         // move up through element hierarchy      if(DL_bIE)                             // if browser is IE, then...      {         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )         {                                   // if parent a table cell, then...            nTopPos += eParElement.clientTop; // append cell border width to calcs         }      }      else                                   // if browser is Gecko, then...      {         if(eParElement.tagName == "TABLE")  // if parent is a table, then...         {                                   // get its border as a number            var nParBorder = parseInt(eParElement.border);            if(isNaN(nParBorder))            // if no valid border attribute, then...            {                                // check the table's frame attribute               var nParFrame = eParElement.getAttribute('frame');               if(nParFrame != null)         // if frame has ANY value, then...               {                  nTopPos += 1;              // append one pixel to counter               }            }            else if(nParBorder > 0)          // if a border width is specified, then...            {               nTopPos += nParBorder;        // append the border width to counter            }         }      }      nTopPos += eParElement.offsetTop;      // append top offset of parent            eParElement = eParElement.offsetParent; // and move up the element hierarchy   }                                         // until no more offset parents exist   return nTopPos;                           // return the number calculated}function hideSub(event,parent){    return sm_t = window.setTimeout(        function (){            if(!parent) return 0;            var pid = parent.id;            parent.className = "link";            var root = $("subMenu");            var sub_menu = document.getElementsByClassName(pid, root);            if(sub_menu[0])                sub_menu[0].style.display = "none";            }, 50);}function showSub (event,e) {    clearTimeout(sm_t);    return sm = window.setTimeout(        function (){           if(!e) return 0;            var pid = e.id;            var root = $("subMenu");            $A($(window.document.body).getElementsByClassName('subm', root)).each(function(e){                e.style.display = "none";            });            $A($(window.document.body).getElementsByClassName('act', $("menu"))).each(function(e){                e.className = "link";            });                          var sub_menu = document.getElementsByClassName(pid, root);            if(sub_menu[0]){                    re = /act/i;                    r = e.className.search(re);                    if(r < 0)                    e.className = e.className+" act";                sub_menu[0].style.left = globalLeft(e)+e.offsetWidth+"px";                sub_menu[0].style.top = globalTop(e)-10+"px";                                            sub_menu[0].style.display = "block";                }            }, 50);    }function hSub(event,e){    return sm_t = window.setTimeout(        function (){            if(!e) return 0;            e.style.display = "none";            $A($(window.document.body).getElementsByClassName('act', $("menu"))).each(function(e){                e.className = "link";            });             }, 50);}function sSub (event,e) {    clearTimeout(sm_t);    }        document.menuLoad = function(){        var _this = this;           $A($(window.document.body).getElementsByClassName('link', $('menu'))).each(function(e){            if(e.id)                Event.observe(e, 'mouseover', showSub.bindAsEventListener(document,e));            if(e.id)                Event.observe(e, 'mouseout', hideSub.bindAsEventListener(document,e));        });        $A($(window.document.body).getElementsByClassName('subm', $('subMenu'))).each(function(e){                Event.observe(e, 'mouseover', sSub.bindAsEventListener(document,e));                Event.observe(e, 'mouseout', hSub.bindAsEventListener(document,e));        });    }function alertSize() {  var myWidth = 0, myHeight = 0;  if( typeof( window.innerWidth ) == 'number' ) {    //Non-IE    myWidth = window.innerWidth;    myHeight = window.innerHeight;  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    //IE 6+ in 'standards compliant mode'    myWidth = document.documentElement.clientWidth;    myHeight = document.documentElement.clientHeight;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    //IE 4 compatible    myWidth = document.body.clientWidth;    myHeight = document.body.clientHeight;  }  return myHeight;}function posBottom(){    var left = document.getElementById("left");    var center = document.getElementById("content");    var bottom = document.getElementById("bottom");    var lbg = document.getElementById("lbg");	    var wh = alertSize();    var bh = bottom.offsetHeight;	    if(left)        lH = left.offsetHeight + globalTop(left)+bh;    else        lH = 0;    cH = center.offsetHeight + globalTop(center)+bh;	    height = Math.max(lH, cH);    if(wh > height)        height = wh - bh;    bottom.style.top = height-22+"px";    lbg.style.height = height+40+"px";     	    //\u0414\u043E\u043F\u0438\u0441\u0430\u043D\u043E \u0434\u043B\u044F \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438 \u0431\u043B\u043E\u043A\u0430 id_bottomMenu    if($("id_bottomMenu") != null)    		$("id_bottomMenu").style.top = height - 40 + "px";	if(screen.width == 800)		$("id_head").style.width = "1010px";	//\u0414\u043E\u043F\u0438\u0441\u0430\u043D\u043E \u0434\u043B\u044F \u0440\u0430\u0437\u043C\u0435\u0449\u0435\u043D\u0438\u044F \u0431\u0430\u043D\u043D\u0435\u0440\u043E\u0432 \u0441\u043F\u0440\u0430\u0432\u0430 	if($("id_right_banners") != null)    	{    		if (screen.width == 800)    		{    			center.style.width = "500px";    						//\u0414\u043E\u043F\u0438\u0441\u0430\u043D\u043E \u0434\u043B\u044F \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438 \u043C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u043C \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0438,    			//\u0434\u043B\u044F IE    			if(navigator.appName == "Microsoft Internet Explorer")    				center.style.marginTop = "-510px";    		}    		else if(screen.width == 1024)	    		{    			center.style.width = (document.body.clientWidth - 490) + "px";    		}    		else	    		{    			center.style.width = (document.body.clientWidth - 590) + "px";    		}    			    		$("id_right_banners").style.top = "150px";	    		$("id_right_banners").style.left = (center.offsetWidth + 300) + "px";    	}}    