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", "");

				}

			}

		}

	}

}



$("#home").ready(function() {

	

	$("#slider").cycle( {

		fx:     'fade',

        speed:  '3000',

        timeout: 10000,

        pause: 1, 

        pager:  '.nav', 

        pagerAnchorBuilder: function(idx, slide) { 

            // return selector string for existing anchor 

            return '.nav li:eq(' + idx + ') a'; 

        } 

	});

	

});

$("#home").ready(function() {

	

	$("#slider-products").cycle( {

		fx:     'fade',

        speed:  '3000',

        timeout: 10000,

        pause: 1, 

        pager:  '.nav-products', 

        pagerAnchorBuilder: function(idx, slide) { 

            // return selector string for existing anchor 

            return '.nav-products li:eq(' + idx + ') a'; 

        } 

	});

	

});



$(document).ready(function() {

	startList();

});
