//alert($("#article p").size()-$("#bcv p").size());
//alert($("#article p").size());

if($("#article p").size()-$("#bcv p").size()>4){

var myadv = new Array ();
myadv[0] = "<div style=\"color:#336699; float:right; margin: 20px 0px 20px 20px; width:140px; border: 1px solid silver; padding:10px;\"><a href=\"http://www.amazon.com/gp/product/1441408045?ie=UTF8&tag=aboutbiblepro-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1441408045\" target=_blank><img src=\"images/op1.jpg\" height=\"210\" width=\"140\" border=\"0\" alt=\"100 Prophecies by George Konig and Ray Konig\"></a><br><br><a href=\"http://www.amazon.com/gp/product/1441408045?ie=UTF8&tag=aboutbiblepro-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1441408045\" target=_blank><b>100 Prophecies,</b> explains how Bible prophecies have been fulfilled in history. Click for more information.</a></div>";
myadv[1] = "<div style=\"color:#336699; float:right; margin: 20px 0px 20px 20px; width:140px; border: 1px solid orange; padding:10px;\"><b>Bible quote:</b><br><br>For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.</span><br><span class=ba>(John 3:16, KJV)</div>";

//if($("#article p:nth(2)")){alert($("#article p:nth-child(2)").size());}
if($("#article p:nth-child(2)").size()>1){
$("#article p:nth(0)").append(myadv[0]);
} else {
$("#article p:nth-child(2)").append(myadv[0]);
}
}


