var $j=jQuery.noConflict();var email;$j(window).bind("load",function(){email=new CatalogEmail();});function CatalogEmail()
{this.panel=$j('#email-panel');this.background=$j('#email-background');this.form=$j('#email-form');this.background.fadeTo("slow",0.0);this.form.fadeOut("slow");$j('#item-email-option').bind('click',function(){email.show();});$j('#email-button-close').bind('click',function(){email.hide();});$j('#email-button-send').bind('click',function(){email.send();});}
CatalogEmail.prototype.show=function()
{this.panel.show();this.background.fadeTo("slow",0.90);this.form.fadeIn("slow");}
CatalogEmail.prototype.hide=function()
{this.background.fadeTo("slow",0.0);this.form.fadeOut("slow",function(){email.panel.hide();});}
CatalogEmail.prototype.send=function()
{var data={};data.senderName=$j('input[name="sender_name"]').val();data.senderEmail=$j('input[name="sender_email"]').val();data.recipientName=$j('input[name="recipient_name"]').val();data.recipientEmail=$j('input[name="recipient_email"]').val();data.message=$j('textarea[name="message"]').val();$j.get("/catalog/item_email.htm",data,function(data)
{console.log(data);});}