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_46758701"><div class="adspot_head">Sponsored post</div>';var adspot_cgif='';var header_text='Sponsored post';var any='any';adspot_pos(1,Array(Array(any,Array(Array('801000015528',Array(10000,'211000015525','<div class="adspot_ad_large_adverpost"><span class="adspot_adhead">Highly Recommended Free Webinar:</span><div class="adspot_img_large_adverpost"><a href="http://st.blogads.com/801000015528/211000015525/click?d=http%3A%2F%2Ftinyurl.com%2F6nr4enb&c=ce1455ebd1a03bcf36a8134c63dd3b13" class="adspot_adurl" ><img src="http://i.blogads.com/211000015525/img.jpg?guid=4084a099ceaaf28f0ec8d31471ce2340" alt="" title="" longdesc="" height="400" width="400" /></a></div> <span class="adspot_adtext">If you\'ve never been on a webinar before, they\'re great because you get to learn from the comfort of your own home.<br /><br />The presenter of this groundbreaking webinar, Mike Dillard, is a 34 year old native of Austin Texas. A recent husband and father, he went from waiting tables to Millionaire by the age of 26. Over the past five years he has founded two publishing companies, producing $20,000,000 in combined revenue, and over 1,000,000 entrepreneurs from 65 countries have subscribed to his online newsletter. Four months ago, he walked away from everything in order to share the urgent message and mission of <a href="http://st.blogads.com/801000015528/211000015525/click?d=http%3A%2F%2Ftheelevationgroup.net%2Fpresentation%2Fregister.php%3Fa_aid%3D6d02c368%26a_bid%3De6b01db8%26chan%3Dcode1&c=4f011c2630caa080c45e9c9fe55de19e" class="adspot_adurl">The Elevation Group</a>, you\'ll find on this page<br /><br />When you <a href="http://st.blogads.com/801000015528/211000015525/click?d=http%3A%2F%2Ftheelevationgroup.net%2Fpresentation%2Fregister.php%3Fa_aid%3D6d02c368%26a_bid%3De6b01db8%26chan%3Dcode1&c=4f011c2630caa080c45e9c9fe55de19e" class="adspot_adurl">register</a> you\'ll also be given immediate access to Mike Dillard\'s cutting-edge video "How to Predict the Financial Future"<br /><br /><a href="http://st.blogads.com/801000015528/211000015525/click?d=http%3A%2F%2Ftheelevationgroup.net%2Fpresentation%2Fregister.php%3Fa_aid%3D6d02c368%26a_bid%3De6b01db8%26chan%3Dcode1&c=4f011c2630caa080c45e9c9fe55de19e" class="adspot_adurl">Reserve your spot</a> for free now, and discover the secret black box investment strategies of the rich. Isn\'t it time you armed yourself with the knowledge that you need to protect your future and that of your family?</span><div class="adspot_adurl"><a href="http://st.blogads.com/801000015528/211000015525/click?d=http%3A%2F%2Ftinyurl.com%2F6nr4enb&c=ce1455ebd1a03bcf36a8134c63dd3b13" class="adspot_adurl">Read more...</a></div></div>'))))),0);var blog_id = '862738762';
    
    var adspot_46758701_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 adverpost','link_name_imp_ad_size_round20120208','link_name_clicks_ad_size_round20120208','&link_name_ad_size_round20120208'],['advertise on Flopping Aces','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 Flopping Aces readers like you for 56.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'],['','link_name_imp_control_round20120208','link_name_clicks_control_round20120208','&link_name_control_round20120208'],['reach Flopping Aces readers like you','link_name_imp_like_you_round20120208','link_name_clicks_like_you_round20120208','&link_name_like_you_round20120208']];
    adspot_html+='<img style="position:absolute;" src="http://st.blogads.com/46758701/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);
