<b:if cond="data:blog.pageType == "index"">
<script type="text/javascript">
//<![CDATA[
// Broken Navbar Search fix hack
// MS-potilas 2011. See http://yabtb.blogspot.com
var qPos = window.location.href.indexOf(\'/search?q=\'); // length 10
if(window.location.href.indexOf(\'&\') == -1 && qPos != -1)
{
searchPhrase = decodeURIComponent(window.location.href.substring(qPos+10));
if(customSearchControl != null) customSearchControl.execute(searchPhrase); // IE works this way
var d = document.getElementById(\'blog-pager-newer-link\');
if(d) d.parentNode.removeChild(d);
if(numPosts < 20) { // always 20 (url has no &)
d = document.getElementById(\'blog-pager-older-link\');
if(d) d.parentNode.removeChild(d);
}
d = document.getElementsByClassName(\'status-msg-wrap\');
if(d && d.length == 1) {
d = d[0];
if(d && !numPosts) d.parentNode.removeChild(d);
// if(numPosts) {
// d = document.getElementsByClassName(\'status-msg-body\');
// if(d && d.length == 1) {
// d = d[0].firstChild;
// while(d && (d.nodeType != 1 || d.nodeName.toLowerCase() != \'a\' || d.href.indexOf(\'/search?q=\') < 0))
// d = d.nextSibling;
// if(d) d.parentNode.removeChild(d);
// }
// }
}
}
//]]>
</script>
</b:if>