/* Start Drop Down Navigation */
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dd");
		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", ""); }
			}
		}
	}
}
window.onload=startList;
/* End Drop Down Navigation */



var $j = jQuery.noConflict();

$j(document).ready(function(){

// Home Slider
	jQuery("#homeslide").scrollable({ circular: true }).autoscroll({ autoplay: true, autopause: true, interval: 15000 }).navigator({

		// select #flowtabs to be used as navigator
		navi: "#homenavi",

		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',

		// assign "current" class name for the active A tag inside navigator
		activeClass: 'active'
	});
	
// Home Tabs
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$j("ul.hometabs").tabs("div.homepanes > div");
	
// Home Brands
	$j(".brands").scrollable({circular: false});
	
	
	
	function equalHeight(group) {
		var tallest = 0;
		group.each(function() {
			var thisHeight = $j(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}
	
	equalHeight($j(".nav-col"));
});

