// rr_moveTo = function (obj, goal, step, time,value_callback, finish_callback) {
//     goOn=false;
//     if (obj.currTopPos>goal) {
//         obj.currTopPos-=step;
//         if(obj.currTopPos<=goal) {
//              obj.currTopPos=goal;
//         } else {
//              goOn=true;
//         }
//     } else if (obj.currTopPos<goal) {
//         obj.currTopPos+=step;
//         if(obj.currTopPos>=goal) {
//              obj.currTopPos=goal;
//         } else {
//              goOn=true;
//         }
//     }
//
//     value_callback(obj.currTopPos, goOn);
//
//     if (goOn)
//          obj.rr_MoveTimeout=window.setTimeout(function(){rr_moveTo(obj, goal, step, time, value_callback, finish_callback);},time);
//     else {
// //         if(obj.currTopPos<=0 && hideOnZero) obj.style.display="none";
//         if(typeof finish_callback == "function") finish_callback();
//         // rr_DC_moving = false;
//         // if (rr_DC_scrollBuffer) rr_DC_documentScrolled();
//     }
//
// }
//
// findPos = function(obj) {
//         var pos=new Object();
//             pos.x=0;
//             pos.y=0;
//         if (obj.offsetParent) {
//                 do {
//                         pos.x += obj.offsetLeft;
//                         pos.y += obj.offsetTop;
//                 } while (obj = obj.offsetParent);
//         }
//         return pos;
// }
//
// menuPointMouseOver = function(event) {
// //     var el=$(Event.findElement(event, "a[mainmenu=\"2\"]"));
// //     if(typeof el != "undefined")
// //       el.style.backgroundColor="#FFFFFF";
//
//
//     var el1=$(Event.findElement(event, "li[mainmenu=\"2\"]"));
//     if(typeof el1 != "undefined")  {
//         el1=el1.getElementsByTagName("DIV");
//         if(el1.length>0) {
// // el1[0].style.position="static";
// el1[0].style.display="block";
// // $(el1[0]).setOpacity(100);
//               el1[0].style.height="auto";
//           //el.parentLI = $(Event.findElement(event, "li"));
// //                el1[0].style.left=($(Element.ancestors(el1[0])[0]).cumulativeOffset()[0]+Element.ancestors(el1[0])[0].offsetWidth)+"px";
// //                el1[0].style.top=(Element.ancestors(el1[0])[0]).cumulativeOffset()[0]+"px";
// //  el1[0].style.left=Element.ancestors(el1[0])[0].offsetWidth+"px";
//  el1[0].style.left="100px";
//  el1[0].style.top="0px";
//
// //               el1[0].style.border="15px solid black";
// //               $("content_center").innerHTML=el1[0].style.top;
// //               Event.stopObserving($(el1[0]), "mouseover", menuPointMouseOver);
// //               Event.observe($(el1[0]), "mouseover", menuPointMouseOver);
// //               el1[0].style.zIndex=100;
// //               window.clearTimeout(el1[0].rr_MoveTimeout);
// //               if(typeof el1[0].currTopPos == "undefined") {
// //                   Element.setOpacity(el1[0],0);
// //                   el1[0].currTopPos=0;
// //               }
// //               el1[0].style.display="block";
//               //rr_moveTo(el1[0], 0.95, 0.1, 100, function (rr_value) {Element.setOpacity(el1[0],rr_value)});
//         }
// //         return;
//     }
//
//     var el=$(Event.findElement(event, "li[mainmenu=\"1\"]"));
//     if(typeof el != "undefined")  {
//         el=el.getElementsByTagName("DIV");
//         if(el.length>0) {
//           //el.parentLI = $(Event.findElement(event, "li"));
//               Event.stopObserving($(el[0]), "mouseover", menuPointMouseOver);
//               Event.observe($(el[0]), "mouseover", menuPointMouseOver);
//               el[0].style.zIndex=100;
//               el[0].style.height="auto";
//               //if(el[0].rr_MoveTimeout)
//               window.clearTimeout(el[0].rr_MoveTimeout);
//               if(typeof el[0].currTopPos == "undefined") {
//                   Element.setOpacity(el[0],0);
//                   el[0].currTopPos=0;
//               }
//               el[0].style.display="block";
//               rr_moveTo(el[0], 0.95, 0.3, 100, function (rr_value) {
//                   Element.setOpacity(el[0],rr_value);
//               });
//         }
//     }
//
//
// }
//
// menuPointMouseOut = function(event) {
//
// //     var el=$(Event.findElement(event, "a[mainmenu=\"2\"]"));
// //     if(typeof el != "undefined")
// //       el.style.backgroundColor="#EEEEEE";
//
//     var el1=$(Event.findElement(event, "li[mainmenu=\"2\"]"));
//     if(typeof el1 != "undefined")  {
//         el1=el1.getElementsByTagName("DIV");
//         if(el1.length>0) {
// el1[0].style.display="none";
// // $(el1[0]).setOpacity(100);
//
//           //el.parentLI = $(Event.findElement(event, "li"));
// //                el1[0].style.left=($(Element.ancestors(el1[0])[0]).cumulativeOffset()[0]+Element.ancestors(el1[0])[0].offsetWidth)+"px";
// //                el1[0].style.top=(Element.ancestors(el1[0])[0]).cumulativeOffset()[0]+"px";
// //  el1[0].style.left=Element.ancestors(el1[0])[0].offsetWidth+"px";
//  el1[0].style.left="100px";
//  el1[0].style.top="0px";
//
// //           window.clearTimeout(el1[0].rr_MoveTimeout);
// //           rr_moveTo(el1[0], 0, 0.3, 100, function (rr_value) {Element.setOpacity(el1[0],rr_value);}, function () {el1[0].style.display="none";});
//         }
//     }
//
//     var el=$(Event.findElement(event, "li[mainmenu=\"1\"]"));
//     if(typeof el != "undefined")  {
//         el=el.getElementsByTagName("DIV");
//         if(el.length>0) {
//           window.clearTimeout(el[0].rr_MoveTimeout);
//           rr_moveTo(el[0], 0, 0.3, 100, function (rr_value) {Element.setOpacity(el[0],rr_value);}, function () {el[0].style.display="none";});
//         }
//     }
//
//
//
//
// }
//
// function observeCompleteElement(obj) {
//            Event.observe($(obj), "mouseover", menuPointMouseOver);
//            Event.observe($(obj), "mouseout", menuPointMouseOut);
//            var children=$(obj).childElements();
//            for(var i=0; i<children.length;i++) {
//               if(children[i].tagName=="DIV" && $(children[i]).hasClassName("clearer")) {
// //                   Event.observe(children[i], "mouseover", menuPointMouseOver);
// //                   Event.observe(children[i], "mouseout", menuPointMouseOut);
//                      initMainmenu(children[i]);
//               }
//            }
// }
//
// function initMainmenu(el) {
//
// // alert($($(el).firstChild).tagName);// return;
// // alert($($(el).firstChild));
//      if(typeof $(el).childElements()[0] == "undefined") return;
//     var mainPoints=$($(el).childElements()[0]).childElements();
//     for(var i=0; i<mainPoints.length; i++) {
//         if(mainPoints[i].tagName=="LI")
//             observeCompleteElement(mainPoints[i]);
//     }
// }
//
// // Event.observe($(window), "load", function() {initMainmenu($("menubar"));});
