var counts = [], linkUrls = [], targets = [], ids = [];IDHasLoaded = true;counts[0] = 'Comments (0)';linkUrls[0] = 'javascript:loadCommentsForPost(\'1874\', \'Yacht Concept Super-S\', \'http://searching4.co.nz/blog/yacht-concept-super-s/\', document.getElementById(\'IDShowCommentLink1874\'));';targets[0] = '';ids[0] = 'IDShowCommentLink1874';var theCount = 0; var idLinksToReplace = Array(); var spans = document.getElementsByTagName("span"); for ( var i = 0, sp_lng = spans.length; i < sp_lng; i++ ) { if ( spans[i].className == "IDCommentsReplace" ) { idLinksToReplace[idLinksToReplace.length] = spans[i].parentNode; theCount++; } } for ( var i = 0, repl_lng = idLinksToReplace.length; i < repl_lng; i++ ) { if ( !linkUrls[i] ) break; idLinksToReplace[i].href = linkUrls[i]; idLinksToReplace[i].id = ids[i]; idLinksToReplace[i].target = targets[i]; idLinksToReplace[i].innerHTML = counts[i]; }if ( !idcomments_container_id ) var idcomments_container_id = 'idc-container-parent'; var idcContainerParentName = idcomments_container_id; function loadCommentsForPost( postid, posttitle, posturl, obj ) { if ( !document.getElementById( idcContainerParentName ) ) { var theDiv = document.createElement("div"); theDiv.id=idcContainerParentName; var innerDiv = document.createElement("div"); innerDiv.id = "idc-container"; innerDiv.className += "idc-inline"; theDiv.appendChild(innerDiv); } else { var theDiv = document.getElementById(idcContainerParentName); theDiv.firstChild.innerHTML = ""; theDiv.style.display="block"; } if ( !document.getElementById( 'IDLoadingDivImage' ) ) { var loadingDiv = document.createElement('div'); loadingDiv.id='IDLoadingDivImage'; loadingDiv.innerHTML= "Loading... "; } else { loadingDiv = document.getElementById('IDLoadingDivImage'); } if ( !document.getElementById( 'IDHideCommentLink' + postid ) ) { var hideCommentsLink = document.createElement('a'); hideCommentsLink.innerHTML = "Hide Comments"; hideCommentsLink.href = "javascript: hideComments('"+postid+"');"; hideCommentsLink.id = 'IDHideCommentLink' + postid; obj.parentNode.insertBefore(hideCommentsLink, obj); } else { var hideCommentsLink = document.getElementById( 'IDHideCommentLink' + postid ); } obj.style.display = "none"; hideCommentsLink.style.display = "inline"; obj.parentNode.appendChild(loadingDiv); loadingDiv.style.display='block'; theDiv.style.display = "none"; theDiv.className = "idc-inline"; obj.parentNode.appendChild(theDiv); var commentScriptWrapper = document.createElement("script"); commentScriptWrapper.type = "text/javascript"; commentScriptWrapper.src = "http://intensedebate.com/js/wordpressTemplateCommentWrapper2.php?acct=a6ec71023955ebd7d4d01b8d87d19b0d&postid=" + postid + "&title=" + escape(posttitle) + "&url=" + posturl; document.getElementsByTagName("head")[0].appendChild(commentScriptWrapper); } function hideComments( postid ) { if ( document.getElementById( idcContainerParentName ) ) document.getElementById(idcContainerParentName).style.display = "none"; else document.getElementById('idc-container').style.display = "none"; document.getElementById( 'IDShowCommentLink' + postid ).style.display = "inline"; document.getElementById( 'IDHideCommentLink' + postid ).style.display = "none"; }if(typeof(IDCounted)=="undefined") { var IDCounted; if (window.addEventListener) { window.addEventListener("load", IDcountIT, false); } else if (window.attachEvent) { window.attachEvent('onload', IDcountIT); } } function IDcountIT() {}