Add AdSense at the middle of the posts

It's from the ways that makes people click on your AdSense Block.
That method required to add comment in every post to display post. This cannot be done if you have hundreds of posts already up on your blog. So i am posting this method of displaying ads in centre of the post automatically. Now to this method the only thing that changes from the last method is the code.


1- Go to Dashboard >> Layout >> Edit HTML then check on "Expand Widgets Template"
2- Then find the following code:
<data:post.body/>
3- Then Replace it by the following:
<div expr:id='"aim1" +
data:post.id'></div>
<div style="clear:both; margin:10px 0">
<!-- Your AdSense code here -->
</div>
<div expr:id='"aim2" + data:post.id'>
<data:post.body/&gt;
</div>
<script type="text/javascript">
var obj0=document.getElementByIdundefined"aim1<data:post.id/>");
var obj1=document.getElementByIdundefined"aim2<data:post.id/>");
var s=obj1.innerHTML;
var t=s.substrundefined0,s.length/2);
var r=t.lastIndexOfundefined" ");
ifundefinedr>0) {obj0.innerHTML=s.substrundefined0,r);obj1.innerHTML=s.substrundefinedr+1);}
</script>
4- Don't Forget to change the Your AdSense Code with the AdSense code given by Google AdSense