/* 

	Created by Bluewire Media

	

	Project ID: AZ001

	

	Client: Sydney Yachts 

	

	Account/Project Manager: Toby Jenkins

	Designer: David Atkinson

	Developer: Callam Porch

 

*/





//

// IE6 "li:hover" Fix | http://www.alistapart.com/articles/horizdropdowns/

//

startList = function() {

	if (document.all&&document.getElementById) {

		navRoot = document.getElementById("mainlist");

		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {	

				if(node.className == "sub" || node.className == "sub-top"){

					node.onmouseover=function() {

						this.className+=" sub-over";

					 }

					node.onmouseout=function() {

						this.className=this.className.replace(" sub-over", "");

					}

				}else{

					node.onmouseover=function() {

						this.className+=" over";

					 }

					node.onmouseout=function() {

						this.className=this.className.replace(" over", "");	

					}

				}

  			}

  		}

 	}

}



window.onload=startList;
