var uttcCommentParent = 0;var uttcCommentAnswer = 0;var uttcCommentAnswerTo = 0;function uttcReportComment(id) { uttcOpenLogin(); }function uttcOpenForm() { uttcOpenLogin(); }function uttcRateComment(id,value) { uttcOpenLogin(); }$("#" + uttcCommentLocation).append("

Zum Kommentieren jetzt anmelden

oder » jetzt registrieren «
 Passwort vergessen?
");function uttcSetParent(id) { uttcCommentParent = id; }function uttcSetAnswer(id) { uttcCommentAnswer = id; }function uttcSetAnswerTo(id) { uttcCommentAnswerTo = id; }function loadComments(amount) { animateCommentLoader('show'); $.ajax({ dataType: 'jsonp', jsonp: 'jsonp_callback', url: "http://user.tt.com/libraries/api/commentGetNeu.php", data: "uttcId="+uttcId+"&start="+uttcCommentSeite+"&uttcType="+uttcType+"&amount="+amount, success: function(data){ $('#' + uttcCommentLocation + ' #uttcCommentsWrap').html(data.html); animateCommentLoader('hide'); //Closed Feld darstellen $('.commentClosed').each(function() { $(this).height( $(this).parent().height() ); $(this).width( $(this).parent().width() ); $("div.text", this).css('margin-top', ($(this).parent().height()/2)-7 ); $(this).click(function() { $(this).fadeOut(); }); }); } }); }function animateCommentLoader(method) { switch(method) { case "show": $("#commentLoader").fadeIn(); $("#commentsWrap").animate({ opacity:0.5 }); break; case "hide": $("#commentLoader").fadeOut(); $("#commentsWrap").animate({ opacity:1 }); break; } }function loadAnswers(id) { oewa_event('kommentar_antwort_nachladen'); animateCommentLoader('show'); $.ajax({ dataType: 'jsonp', jsonp: 'jsonp_callback', url: "http://user.tt.com/libraries/api/commentAnswers.php", data: "id="+id, success: function(data){ $('#answers'+id).html(data.html); animateCommentLoader('hide'); } }); }if(uttcId) { loadComments(0); }