function startMenu(){
  if (document.getElementById){
    nav=document.getElementById('menu');
    var offsetLeft;
    //console.debug(nav);
    if(!nav) return;
    for(i=0;i<nav.childNodes.length;i++){
      node=nav.childNodes[i];
      if (node.nodeName == 'LI'){
        node.onmouseover=function(){
          this.className='over';
          offsetLeft = this.offsetLeft;
        }
        node.onmouseout=function() {
          this.className='';
        }
      }
      collection = nav.getElementsByTagName('li');
      if(!collection) return;
      for (j=0;j<collection.length;j++) {
      	  if (collection[j].className == 'hassub') {
      	  	collection[j].onmouseover=function(){
          		if (offsetLeft+351>window.innerWidth)
          		  this.className='over_sub_last';
          		else this.className='over_sub';
		}
		collection[j].onmouseout=function() {
          		this.className='hassub';
        	}
        }
      }
    }
  }
}