$(document).ready(function(){
	
	/*startList = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace (" over", "");
                        }
                  }
            }
      }
}
	*/
	
	
	
	
	$('#scroll').jScrollPane({showArrows:true, scrollbarWidth: 19});
	//startList();

     // добавить обработчик события hover
    // $('.topmenu ul li').hover(
	 $('#nav li').hover(
         function() {
             $(this).find('ul:first').slideDown(2);
         },
         function() {
             $(this).find('ul:first').slideUp(2);
         }
     );

	 
	 	$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
		return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
		});
	 
	
	
});
