function openBlogWindow(id) {
  document.getElementById('entry1').setAttribute("class", "blogEntryCollapsed");
  document.getElementById('entry2').setAttribute("class", "blogEntryCollapsed");
  document.getElementById('entry3').setAttribute("class", "blogEntryCollapsed");
  document.getElementById(id).setAttribute("class", "blogEntry");
}

$(document).ready(function(){
  $("#productsInBeta").click(function(){
	var $this = $(this);
	if( $this.is('.productsInBetaClose') ) {
    	$("#sneakPreview").animate({ marginLeft: "0px",}, 1000 );
		$("#productsInBeta").removeClass('productsInBetaClose');
		$("#productsInBeta").addClass('productsInBetaOpen');
	} else {
		if( $this.is('.productsInBetaOpen') ) {
	    	$("#sneakPreview").animate({ marginLeft: "-304px",}, 1000 );
			$("#productsInBeta").removeClass('productsInBetaOpen');
			$("#productsInBeta").addClass('productsInBetaClose');
		}		
	}
	return false;
  });
});