/* init/init_genus
 
@author Jacob at Goby
 @version 02/07/12
@svn goby_-150
*/

function GenusPage()
{objects.push(this);}
GenusPage.prototype={evokeDescription:function(node)
{if(node!=null)
this.description=new Description(node);},insertAnalytics:function()
{$(".ribbon a").click(function()
{if($(this).hasClass("facet_url"))
trackEvent(["cluster","cluster-source"]);else
trackEvent(["cluster","cluster-product"]);});$("#widget-categoryTree a").click(function()
{var label="categoryTree-"+$(this).text();trackEvent(["cluster",label]);});}}
Goby.set("page",new GenusPage());$(document).ready(function()
{if(Goby.has("page"))
{var page=Goby.get("page");page.evokeDescription($("#description").get(0));page.insertAnalytics();}});
