
function showInfo(id){
	$(".center_info").hide();
	$(id).show();

}


$(document).ready( function(){

/* This is going to have to be changed on the next jquery upgrade, it's going to use http://docs.jquery.com/Utilities/jQuery.support */

	$("#toc ul li a").each( function(){

		$(this).hover( function(){

			showInfo("#" + $(this).attr("id") + "_box");
		      },
			function () {
			return;
		      })
		 .click( function(){

		 	return false;
		 });

	});

	// Dialog
	$('#dialog').dialog({
		autoOpen: false,
		width: 500,
		height: 400,
		bgiframe: true,
		modal: true,
		buttons: {
			"I understand and agree": function() {
				$(this).dialog("close");
			}
			}

	});

	// Dialog Link
	$("#showTerms").click(function(){
		$('#dialog').dialog('open');
		return false;
	});

	$(".product_image, .product_link").click( function(){
		popitup($(this).attr("href"), "Product View");
		return false;

	});

});
