like a 4shared document Supernatural.Origins.06.de.06.pdf' }).draw('orkut-button'); }); $(document).ready(function() { $(".sharemore").click(function(){ $('.hiddenshare').slideToggle("fast"); $(this).toggleClass("hidemore"); $(this).text($(this).text() == 'Less' ? 'More' : 'Less'); }); }); addingComments = false; function commentsPagerNavigate(start){ var aj = new AjaxHelper(); aj.sendGetTextRequest( "http://www.4shared.com/document/XP_L9tY9/SupernaturalOrigins04de06.html?start="+start+"&showPart=commentList&addCommentDisabled=false&random="+Math.random(), function(txt){ document.getElementById("tdCommentList").innerHTML=txt; } ); } var currentReplyId = null; var formContent; function showMainComment(){ discardCommenting(); document.getElementById("comment0").innerHTML=formContent; document.getElementById("addCommentLink").style.display="none"; var commentForm = getCommentForm(); if(commentForm!=null){ commentForm.replyId.value=""; commentForm.showPart.value="commentList"; commentForm.showComments.value="true"; } if(document.getElementById("replyTo"+currentReplyId)!=null) { document.getElementById("replyTo"+currentReplyId).innerHTML=""; } } function showReplyForm(treeId, commentId){ discardCommenting(); document.getElementById("comment0").innerHTML=""; document.getElementById("replyTo"+commentId).innerHTML=formContent; var commentForm = getCommentForm(); if(commentForm!=null){ commentForm.replyId.value=treeId; commentForm.showPart.value="commentList"; commentForm.showComments.value="true"; } currentReplyId=commentId; } function getCommentForm(){ if(true) return document.getElementById("addCommentForm"); var replyDiv = document.getElementById("replyTo"+currentReplyId); if(replyDiv!=null && replyDiv.getElementsByTagName("form") && replyDiv.getElementsByTagName("form")[0]){ return replyDiv.getElementsByTagName("form")[0]; } var mainCommentDiv = document.getElementById("comment0"); if(mainCommentDiv.getElementsByTagName("form") && mainCommentDiv.getElementsByTagName("form")[0]){ return mainCommentDiv.getElementsByTagName("form")[0]; } } function discardCommenting(){ if(document.getElementById("replyTo"+currentReplyId)!=null) { document.getElementById("replyTo"+currentReplyId).innerHTML=""; } document.getElementById("comment0").innerHTML=""; document.getElementById("addCommentLink").style.display="inline"; var commentForm = getCommentForm(); if(commentForm!=null){ commentForm.replyId.value=""; } } function limitTextAreaComm(input) { var maxlen = 500; var val = input.value.replace(/\r\n/g, '\n'); var left = maxlen - val.length; if(left < 0){ $("#charsLeft").attr("style", "font-weight: bold; color:red;"); $('#submitCommBtn').attr("disabled","disabled"); }else{ $("#charsLeft").attr("style", "font-weight: bold;"); $('#submitCommBtn').attr("disabled",""); } $("#charsLeft").html("" + left); return true; } window.fbAsyncInit = function() { var appId = '156690041046630'; FB.init({appId: appId, status: true, cookie: true, xfbml: true}); FB.Event.subscribe('edge.create', function(href, widget) { if (!Utils.isFunctionExists('addVote')) return; addVote(null, 5); }); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/en_GB/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); $(function() { $('html').show(); });