//	enables the drop down menus in IE6
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("buynav");
		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;

// Commit rollovers in jQuery
$j(document).ready(function() {
	
	// start off with sq as initally selected
	$j("#sq a").css("background-position","0 -34px");
		
	$j("#sq a").hover(
		//over
		function() { 
			$j("#shape_view").attr("src","/images/brochure/commit/shapes_sq.png");
			$j(this).css("background-position", "0px -34px");
			$j("#av a").css("background-position", "80px 34px");
		},
		//out
		function() {
			$j("#shape_view").attr("src","/images/brochure/commit/shapes_sq.png");
		}
	);
	
	$j("#av a").hover(
		//over
		function() { 
			$j("#shape_view").attr("src","/images/brochure/commit/shapes_av.png");
			$j(this).css("background-position", "-80px -34px");
			$j("#sq a").css("background-position", "0px 34px");
		},
		//out
		function() {
			$j("#shape_view").attr("src","/images/brochure/commit/shapes_av.png");
		}
	);
	
	$j("#sq a").click(function() { return false; });
	$j("#av a").click(function() { return false; });
	
});

