  jQuery().ready(function(){
		jQuery("#pic").accordion({ 
		header: 'div.but2', 
		alwaysOpen: false, 
		autoHeight: false 
		});
  });
  
  function setMenu(){
var	k1=1,n=0; h=36,h1=36,k=0;
  if (document.getElementById("nav")) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
			
			k=(n%3)*160;
			if(n!=0 && (n%3)==0) h=h1*(++k1);
			n++;
			if(node.hasChildNodes()){
				for (j=0; j<node.childNodes.length; j++) {
			      node1 = node.childNodes[j];
					  if (node1.nodeName=="UL" && node1.className=='level2') {
					  node1.style.left=k+20+'px';
					  node1.style.top=h-10+'px';
					
					if(document.all&&document.getElementById){
					
						node.onmouseover=function() {
							this.className+=" over";
			   			}
						node.onmouseout=function() {
							this.className=this.className.replace(" over", "");
				   		}
					}
					  
				  }
				}
			}
		}
    }
  }
}

 window.onload=function(){
 	setMenu();

 }
