function comment_embeded_add_comment(A){var B=$j("form#comment_embeded_form textarea#comment");
B.val(B.val()+A+" ")
}function comment_embeded_submit(){$j.ajax({type:"post",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:$j("form#comment_embeded_form").serialize(),dataType:"text",success:function(data){$j("#nocomments").hide();
eval(data)
}})
}function comment_embeded_delete_topic(topicId){$j.ajax({type:"post",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:"action=delete_bookmark_comment&topicId="+topicId,dataType:"text",success:function(data){eval(data)
}})
}function comment_embeded_delete_site_topic(topicId){$j.ajax({type:"post",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:"action=delete_site_comment&topicId="+topicId,dataType:"text",success:function(data){eval(data)
}})
}function comment_embeded_delete_message(messageId){$j.ajax({type:"post",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:"action=delete_save_comment&messageId="+messageId,dataType:"text",success:function(data){eval(data)
}})
}function showComments(B,A){$j.ajax({type:"get",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:"siteId="+B+"&pageOffset="+A,dataType:"text",success:function(C){$j("#comment_embeded").html(C)
}});
return false
}function showCommentsPostSubmit(C,A,B){$j.ajax({type:"get",url:Stylehive.SUNFLOWER_BASE_URL+"/ajax/sunflower/comment/embeded.htm",data:"siteId="+C+"&pageOffset=0",dataType:"text",success:function(E){$j("#comment_embeded").html(E);
$j("textarea#comment").val("");
$j("div#comment_message").html('<span class="info">Your comment has been submitted.  Please allow up to 5 minutes before it shows up permanently above.</span>');
var D=$j("p.text:first").html();
if(D!=B){$j("ul#topics").prepend(A);
$j("li.topic_temp:first").pulsate({speed:200})
}$j("p.text").emoticonize("default")
}});
return false
}function getLastPageOffset(B,A){return(Math.floor((B-1)/A))*A
}$j(document).ready(function(){$j("p.text").emoticonize("default");
$j("#comment").charCounter(550)
});