$(document).ready(function(){
	$(".accordion").css({display:"block"});
	$('.accordion').accordion({
	autoHeight: true
	});
	$("#homeProductsRtCol").hover(function(){
		$(this).addClass("over");
		},function(){
		$(this).removeClass("over");
		$(this).addClass("out");
	});
	// Accordion fix for IE6
	$("#accUsa").hover(function(){
		$(this).css({background: "#437104"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrUS.gif) no-repeat -523px top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgUSOn.jpg) no-repeat right bottom"});
		},function(){
		$(this).css({background: "#3c3c3c"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrUS.gif) no-repeat left top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgUSOff.jpg) no-repeat right bottom"});
	});
	$("#accEur").hover(function(){
		$(this).css({background: "#a23f00"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrEur.gif) no-repeat -523px top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgEurOn.jpg) no-repeat right bottom"});
		},function(){
		$(this).css({background: "#3c3c3c"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrEur.gif) no-repeat left top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgEurOff.jpg) no-repeat right bottom"});
	});
	$("#accCan").hover(function(){
		$(this).css({background: "#d28d16"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrCan.gif) no-repeat -523px top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgCanOn.jpg) no-repeat right bottom"});
		},function(){
		$(this).css({background: "#3c3c3c"});
		$(this).find(".hdr").css({background: "url(resources/images/accHdrCan.gif) no-repeat left top"});
		$(this).find(".content").css({background: "#fff url(resources/images/accBgCanOff.jpg) no-repeat right bottom"});
	});
  // equal div heights
  var leftHeight = $("#leftColBody").height();
  var rightHeight = $("#rightColBody").height();
  //alert("left ="+leftHeight+", right ="+rightHeight);
  if(leftHeight>rightHeight){
	  //alert("left is greater and equals"+leftHeight);
	  $("#rightColBody").height(leftHeight);
  }
  var accordionHeight = $("#homeProductsLeftCol").height();
  $("#homeProductsRtCol").height(accordionHeight);

});