<!--//--><![CDATA[//><!--
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("mainNavul1");
		if (navRoot) {
		    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", "");
				    }
			    }
		    }
		}
	}
}
function init() {
  startList();
  fixSafari();
}

fixSafari = function() {
  version=0
  if (navigator.appVersion.indexOf("WebKit")!=-1){
      //temp=navigator.appVersion.split("MSIE");
      //version=parseFloat(temp[1]);
      //alert('WebKit');

		navRoot = document.getElementById("mainNavul1");
		if (navRoot) {
		    for (i=0; i<navRoot.childNodes.length; i++) {
			    node = navRoot.childNodes[i];
			    if (node.nodeName=="LI") {
				    node.onmouseover=function() {

                      for(var n=0;n<this.childNodes.length;n++) {
                        subEl = this.childNodes[n];
      		                if (subEl.nodeName=="UL") {
                          subEl.style.display='block';
                          //subEl.style.zIndex='10000';
                          //alert(subEl);
                          for (m=0;m<subEl.childNodes.length;m++) {
                            subSub = subEl.childNodes[m];
                            if (subSub.nodeName=='LI') {
                              subSub.style.display='block';
                              //subSub.style.zIndex='11000';
                              subSub.style.cursor='auto';
                              for (l=0;l<subSub.childNodes.length;l++) {
                                subLink = subSub.childNodes[l];
                                if (subLink.nodeName=='A') {
                                  //alert('boo1');
                                  subLink.style.position='relative';
                                  subLink.onmouseover=function() {
                                    this.className+=' over';
                                    this.style.cursor='auto';
                                    this.style.display='block';
                                    this.style.position='relative';
                                    this.style.zIndex='12000';
                                    this.style.color='#ffcc00';
                                  }
                                }
                              }
                            }
                          }
                        }
                      }

				    }
				    node.onmouseout=function() {
                      for(var n=0;n<this.childNodes.length;n++) {
                        subEl = this.childNodes[n];
      		                if (subEl.nodeName=="UL") {
                          //alert(subEl);
                          for (m=0;m<subEl.childNodes.length;m++) {
                            subSub = subEl.childNodes[m];
                            if (subSub.nodeName=='LI') {
                              subSub.style.display='none';
                              for (l=0;l<subSub.childNodes.length;l++) {
                                subLink = subSub.childNodes[l];
                                if (subLink.nodeName=='A') {
                                  subLink.style.position='relative';
                                  subLink.onmouseout=function() {
                                    this.className=this.className.replace(" over","");
                                    this.style.display='block';
                                    this.style.position='relative';
                                    this.style.zIndex='12000';
                                    this.style.color='#ff0000';
                                  }
                                }
                              }
                            }
                          }
                          subEl.style.display='none';
                        }
                      }
				    }
			    }

		    }
        }

  }
}
window.onload=init;

//--><!]]>
