function adspot_pos(cap,ads,column_number){ var atw=Math.floor(Math.random()*10000); var filled = 0; var ordered_ads = Array(); var real_ads = Array(); for (var i=0;i<ads.length;i++){ for (var j=0;j<ads[i].length;j++){ if ((window.console!=undefined) && (pos!=any)){ console.log(ads[i][j]); } if (j==0) var pos = ads[i][j]; else{ if ((ads[i][j].length>1) && (pos!=any)){ while (ads[i][j].length>0){ var adid=Math.floor(Math.random()*ads[i][j].length); if (ads[i][j][adid]!=undefined){ ads[i][j][adid].push(pos); real_ads.push(ads[i][j][adid]); ads[i][j].splice(adid,1); } } } else{ for (var k=0;k<ads[i][j].length;k++){ ads[i][j][k].push(pos); real_ads.push(ads[i][j][k]); } } } } } var i = 0; while(real_ads.length>0){ if (real_ads[i][2]!=any){ var revid=0; for(revid=1;revid<real_ads[i].length;revid++){ if (typeof(real_ads[i][revid])=='object'){ atw-=real_ads[i][revid][0]; if(atw<=0)break; } } if((real_ads[i][revid] == undefined) || (typeof(real_ads[i][revid]) != 'object')){ real_ads.splice(i,1); continue; } ordered_ads.push([real_ads[i][0],real_ads[i][revid][1],real_ads[i][revid][2]]); real_ads.splice(i,1); atw=Math.floor(Math.random()*10000); } else{ break; } } ads = real_ads; var atw=Math.floor(Math.random()*10000); while((ads.length>0)&&((cap==null)||(filled<cap))) { var adid=Math.floor(Math.random()*ads.length); var revid=0; for(revid=1;revid<ads[adid].length;revid++){ if (typeof(ads[adid][revid])=='object'){ atw-=ads[adid][revid][0]; if(atw<=0)break; } } if((ads[adid][revid] == undefined) || (typeof(ads[adid][revid]) != 'object')){ ads.splice(adid,1); continue; } ordered_ads.push([ads[adid][0],ads[adid][revid][1],ads[adid][revid][2]]); if(window.console!=undefined){ console.log('ad#'+adid+':'+revid); }; ads.splice(adid,1); filled++; atw=Math.floor(Math.random()*10000); } if ((column_number!=undefined) && (column_number>1)){ var filled = 0; adspot_html = adspot_html.replace('--==HEADER_MARKER==--', header_text); for (var c=0;c<column_number;c++) { var tags_per_column = parseInt(ordered_ads.length-filled/column_number); if (tags_per_column*column_number<ordered_ads.length){ tags_per_column = tags_per_column+1; } var diff = 0; adspot_html+='<div class="column_container">'; for (var i=0;i<tags_per_column;i++) { if(window.console!=undefined){ console.log('column#'+c+'diff#'+i*diff); }; if (ordered_ads[c+i*diff]!=undefined){ adspot_html = adspot_html.replace('--==HEADER_MARKER==--', header_text); adspot_html+=ordered_ads[c+i*diff][2]; adspot_cgif+=(adspot_cgif.length==0?'?':'&')+ordered_ads[c+i*diff][0]+'='+ordered_ads[c+i*diff][1]; filled++; } diff = column_number; } adspot_html+='</div>'; } } else{ for (var i=0;i<ordered_ads.length;i++) { adspot_html = adspot_html.replace('--==HEADER_MARKER==--', header_text); adspot_html+=ordered_ads[i][2]; adspot_cgif+=(adspot_cgif.length==0?'?':'&')+ordered_ads[i][0]+'='+ordered_ads[i][1]; } } adspot_html = adspot_html.replace('--==HEADER_MARKER==--', '' ); }var adspot_html='<div class="adspot" id="adspot_262735806"><div class="adspot_head"></div><div class="adspot_content"><ul>';var adspot_cgif='';var header_text='';var any='any';adspot_pos(6,Array(Array(any,Array(Array('681000011847',Array(3334,'111000011848','<li><span class="adspot_adhead">NYT Bestseller John Locke</span><a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl" ><img src="http://i.blogads.com/111000011848/img.gif?guid=c3550c91fa7a29d686123a1b23b53648" alt="" title="" longdesc="" height="200" width="150" /></a> <span class="adspot_adtext"><b>What price would you pay for your impossible <a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">wishes</a> to come true? Buddy Pancake never imagined it would cost this much to be this happy. </b><br /><br /><b>Buy now at <a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.amazon.com%2FWish-List-John-Locke%2Fdp%2F1937656004%2Fref%3Dsr_1_1%3Fs%3Dbooks%26ie%3DUTF8%26qid%3D1327122490%26sr%3D1-1&c=9023b8764d7f5c1b2b38e776d580b925" class="adspot_adurl">Amazon</a>, <a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.barnesandnoble.com%2Fw%2Fwish-list-john-locke%2F1025750839%3Fean%3D9781937656003%26format%3Dpaperback%26itm%3D2%26usri%3Dwish%2Blist&c=07d25c87e052d9cb44ba4ca01dbb4720" class="adspot_adurl">BN</a>, <a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.walmart.com%2Fip%2F17796883&c=e6dd616cc8ebbc4795a1d0c78c4f3dc0" class="adspot_adurl">Walmart</a> or <a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.indiebound.org%2Fbook%2F9781937656003&c=0e2910bf38bdcf7cde3a1dbb2ad576cb" class="adspot_adurl">Indie store</a>. Paperback special just $4.99</b> <br /><br /><b>Another Donovan Creed Caper. Half rocket ship, half </b><a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">roller coaster</a><b>. All page-turner.</b></span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/681000011847_tweet_button/111000011848_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3DI%2520think%2520this%2520is%2520cool%253A%2520http%253A%2F%2Fbit.ly%2FzNbZib%2520%2521&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div><div class="adspot_adurl"><a href="http://st.blogads.com/681000011847/111000011848/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">Read more...</a></div></li>'),Array(3334,'791000011849','<li><span class="adspot_adhead">NYT Bestseller John Locke</span><a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl" ><img src="http://i.blogads.com/791000011849/img.gif?guid=f50f2b1eaa5bc4b2fff84c0fc2517292" alt="" title="" longdesc="" height="200" width="150" /></a> <span class="adspot_adtext"><b>What price would you pay for your impossible <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">wishes</a> to come true? Buddy Pancake never imagined it would cost this much to be this happy. </b><br /><br /><b>Buy now at <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.amazon.com%2FWish-List-John-Locke%2Fdp%2F1937656004%2Fref%3Dsr_1_1%3Fs%3Dbooks%26ie%3DUTF8%26qid%3D1327122490%26sr%3D1-1&c=9023b8764d7f5c1b2b38e776d580b925" class="adspot_adurl">Amazon</a>, <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.barnesandnoble.com%2Fw%2Fwish-list-john-locke%2F1025750839%3Fean%3D9781937656003%26format%3Dpaperback%26itm%3D2%26usri%3Dwish%2Blist&c=07d25c87e052d9cb44ba4ca01dbb4720" class="adspot_adurl">BN</a>, <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.walmart.com%2Fip%2F17796883&c=e6dd616cc8ebbc4795a1d0c78c4f3dc0" class="adspot_adurl">Walmart</a> or <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.indiebound.org%2Fbook%2F9781937656003&c=0e2910bf38bdcf7cde3a1dbb2ad576cb" class="adspot_adurl">Indie store</a>. Paperback special just $4.99</b> <br /><br /><b>Another Donovan Creed Caper. <a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvqAxUUvWMVg&c=9ad795ac2c1d24aeb984b7d42bffe60a" class="adspot_adurl">Watch the video here</a>!						</b></span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/681000011847_tweet_button/791000011849_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3DI%2520think%2520this%2520is%2520cool%253A%2520http%253A%2F%2Fbit.ly%2FzNbZib%2520%2521&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div><div class="adspot_adurl"><a href="http://st.blogads.com/681000011847/791000011849/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">Read more...</a></div></li>'),Array(3334,'651000011846','<li><span class="adspot_adhead">NYT Bestseller John Locke</span><a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl" ><img src="http://i.blogads.com/651000011846/img.gif?guid=44e71ee1011f06cd5d7b0b4421865db2" alt="" title="" longdesc="" height="200" width="150" /></a> <span class="adspot_adtext"><b>What price would you pay for your impossible <a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">wishes</a> to come true? Buddy Pancake never imagined it would cost this much to be this happy. </b><br /><br /><b>Buy now at <a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.amazon.com%2FWish-List-John-Locke%2Fdp%2F1937656004%2Fref%3Dsr_1_1%3Fs%3Dbooks%26ie%3DUTF8%26qid%3D1327122490%26sr%3D1-1&c=9023b8764d7f5c1b2b38e776d580b925" class="adspot_adurl">Amazon</a>, <a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.barnesandnoble.com%2Fw%2Fwish-list-john-locke%2F1025750839%3Fean%3D9781937656003%26format%3Dpaperback%26itm%3D2%26usri%3Dwish%2Blist&c=07d25c87e052d9cb44ba4ca01dbb4720" class="adspot_adurl">BN</a>, <a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.walmart.com%2Fip%2F17796883&c=e6dd616cc8ebbc4795a1d0c78c4f3dc0" class="adspot_adurl">Walmart</a> or <a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.indiebound.org%2Fbook%2F9781937656003&c=0e2910bf38bdcf7cde3a1dbb2ad576cb" class="adspot_adurl">Indie store</a>. Paperback special just $4.99</b> <br /><br /><b>Another Donovan Creed Caper. Half rocket ship, half </b><a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">roller coaster</a><b>. All page-turner.</b></span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/681000011847_tweet_button/651000011846_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3DI%2520think%2520this%2520is%2520cool%253A%2520http%253A%2F%2Fbit.ly%2FzNbZib%2520%2521&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div><div class="adspot_adurl"><a href="http://st.blogads.com/681000011847/651000011846/click?d=http%3A%2F%2Fwww.savingrachel.com%2F&c=ffae50bab8de72d50793da3ec579072c" class="adspot_adurl">Read more...</a></div></li>')),Array('871000011511',Array(10000,'121000011510','<li><span class="adspot_adhead"></span><a href="http://st.blogads.com/871000011511/121000011510/click?d=http%3A%2F%2Fteen-readme.com%2Fdaisywhitney%3Futm_source%3DBlogAds.com%26utm_medium%3DBanner%252Bad%26utm_campaign%3DThe%252BRivals%252BBlog%252BAd&c=dcf1d193987036da58303069bf58ebb3" class="adspot_adurl" ><img src="http://i.blogads.com/121000011510/img.jpg?guid=a6bb4e8e572fa28aee95063f80b7cbb6" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">The Rivals <br />New from Daisy Whitney  <br />Alex Patrick is head of the Mockingbirds, a secret society of students who police and protect the student body. But when fellow Mockingbirds are implicated in a prescription drug ring Alex is torn between her duties and hurting the people closest to her.</span><div class="adspot_adurl"><a href="http://st.blogads.com/871000011511/121000011510/click?d=http%3A%2F%2Fteen-readme.com%2Fdaisywhitney%3Futm_source%3DBlogAds.com%26utm_medium%3DBanner%252Bad%26utm_campaign%3DThe%252BRivals%252BBlog%252BAd&c=dcf1d193987036da58303069bf58ebb3" class="adspot_adurl">Read more...</a></div></li>')),Array('601000014781',Array(10000,'591000014779','<li><span class="adspot_adhead"></span><a href="http://st.blogads.com/601000014781/591000014779/click?d=http%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fid465034728&c=40356095c9e515a536195d1155bb58e8" class="adspot_adurl" ><img src="http://i.blogads.com/591000014779/img.jpg?guid=156425a57c6a419e70777901c259db81" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext"><a href="http://st.blogads.com/601000014781/591000014779/click?d=http%3A%2F%2Fwww.frequency.com&c=c4350e16b851748640b20f4a74f0d15b" class="adspot_adurl">Frequency</a> is a smart catalog of all web video.&nbsp; With over 1,000 channels and personalized Facebook and Twitter video streams, it is your one stop-shop for the universe of video on the internet.&nbsp; Check out our newly released <a href="http://st.blogads.com/601000014781/591000014779/click?d=http%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fid465034728&c=40356095c9e515a536195d1155bb58e8" class="adspot_adurl">iPad app</a> in the iTunes store. <br /></span><div class="adspot_adurl"><a href="http://st.blogads.com/601000014781/591000014779/click?d=http%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fid465034728&c=40356095c9e515a536195d1155bb58e8" class="adspot_adurl">Read more...</a></div></li>')),Array('741000015295',Array(10000,'751000015294','<li><span class="adspot_adhead">HolisticWisdom.com</span><a href="http://st.blogads.com/741000015295/751000015294/click?d=http%3A%2F%2Fwww.holisticwisdom.com%2F&c=5eee1629582d0cbb3daa4e0b652340ef" class="adspot_adurl" ><img src="http://i.blogads.com/751000015294/img.jpg?guid=2bd98006ecc8c970950d1f5ca024bba7" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">Romantic Treats for You &amp; Someone Special<br />Perfect for Valentine\'s Day! Enjoy healthy, nontoxic passionate products, free health information, and romantic tips. Enjoy excellent customer service, quick, discreet delivery.</span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/741000015295_tweet_button/751000015294_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3DHealthy%2520%2526%2520fun%2520romantic%2520products%2520and%2520gifts%253A%2520http%253A%2F%2Fwww.holisticwisdom.com%2F&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div><div class="adspot_adurl"><a href="http://st.blogads.com/741000015295/751000015294/click?d=http%3A%2F%2Fwww.holisticwisdom.com%2F&c=5eee1629582d0cbb3daa4e0b652340ef" class="adspot_adurl">Read more...</a></div></li>'))))),0);var blog_id = '700404036';
    
    var adspot_262735806_advertise_here_link_variables = [['advertise here','link_name_imp_advertise_here_round20120208','link_name_clicks_advertise_here_round20120208','&link_name_advertise_here'],['your ad here','link_name_imp_your_ad_here_round20120208','link_name_clicks_your_ad_here_round20120208','&link_name_your_here_round20120208'],['buy a blogad','link_name_imp_ad_size_round20120208','link_name_clicks_ad_size_round20120208','&link_name_ad_size_round20120208'],['advertise on TrailerAddict','link_name_imp_advertise_on_blog_round20120208','link_name_clicks_advertise_on_blog_round20120208','&link_name_advertise_on_blog_round20120208'],['reach your audience','link_name_imp_reach_audience_round20120208','link_name_clicks_reach_audience_round20120208','&link_name_reach_audience_round20120208'],['click here to advertise','link_name_imp_click_here_round20120208','link_name_clicks_click_here_round20120208','&link_name_click_here_round20120208'],['create your ad in 4 clicks','link_name_imp_4_clicks_round20120208','link_name_clicks_4_clicks_round20120208','&link_name_4_clicks_round20120208'],['advertising made easy','link_name_imp_advertising_easy_round20120208','link_name_clicks_advertising_easy_round20120208','&link_name_advertising_easy_round20120208'],['blogads','link_name_imp_blogads_round20120208','link_name_clicks_blogads_round20120208','&link_name_blogads_round20120208'],['snag this space','link_name_imp_snag_space_round20120208','link_name_clicks_snag_space_round20120208','&link_name_snag_space_round20120208'],['reach TrailerAddict readers like you for 280.0/week','link_name_imp_price_round20120208','link_name_clicks_price_round20120208','&link_name_price_round20120208'],['variable','link_name_imp_variable_round20120208','link_name_clicks_variable_round20120208','&link_name_variable_round20120208'],['Buy a Blogad!','link_name_imp_control_round20120208','link_name_clicks_control_round20120208','&link_name_control_round20120208'],['reach TrailerAddict readers like you','link_name_imp_like_you_round20120208','link_name_clicks_like_you_round20120208','&link_name_like_you_round20120208']];
    adspot_html+=unescape('%3ciframe class%3d%22scribol%22 height%3d%22476%22 width%3d%22142%22 id%3d%22scribol_145958%22 scrolling%3d%22no%22 frameborder%3d%220%22%3e%3c/iframe%3e%0d%0a%3cscript%3e%0d%0avar Scribol%3b%0d%0aif%28typeof Scribol%3d%3d%27undefined%27%29%7bScribol%3d%7b%7d%3b  Scribol.frames%3d%5b%5d%3bScribol.site%3d%27http%3a//scribol.com/%27%3b%7d%0d%0aScribol.frames.push%28%27145958%27%29%3b%3c/script%3e%0d%0a%3cscript async%3d%22async%22 defer%3d%22defer%22 src%3d%22http%3a//scribol.com/txwidget1.2.js%22%3e%3c/script%3e');adspot_html+='</ul></div><'+'script language="javascript">document.write(\'<div class="adspot_link"><a id="adspot_link_262735806" href="http://web.blogads.com/advertising/traileraddict/right-side-bar-outer-all-pages/adspotsfolder/ba_adspotsfolder_revision_create_shortcut?persistent_uid=2d2fef1cbdaebfa1514ba9eaefd12a35&persistent_ref=" class="adspot_link" target="_blank">Buy a Blogad!</a></div>\');</'+'script><img style="position:absolute;" src="http://st.blogads.com/262735806/c.gif'+adspot_cgif+'" height="1" width="1" alt=""/></div>';adspot_html+='<'+'script type="text/javascript" src="http://i.blogads.com/static/js/bucket_test_cookie_setter_newround.min.js?v='+Math.floor(Math.random()*10000)+'"><'+'/script>';document.write(adspot_html);
