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_585507102"><div class="adspot_head">Visit our sponsors:</div><div class="adspot_content"><ul>';var adspot_cgif='';var header_text='Visit our sponsors:';var any='any';adspot_pos(null,Array(Array(2,Array(Array('931000014276',Array(10000,'781000014264','<li><span class="adspot_adhead">2012 Best New Series</span><a href="http://st.blogads.com/931000014276/781000014264/click?d=http%3A%2F%2Fwww.amazon.com%2FImmaculate-Resurrections-Book-Antichrist-ebook%2Fdp%2FB006WS3O70%2Fref%3Dsr_1_1%3Fs%3Ddigital-text%26ie%3DUTF8%26qid%3D1328190767%26sr%3D1-1&c=440923ab6ac44b9ba72ea32d0cbf4ab1" class="adspot_adurl" ><img src="http://i.blogads.com/781000014264/img.jpg?guid=83101e532fa94ef95be00fa47da548c6" alt="" title="" longdesc="" height="199" width="133" /></a> <span class="adspot_adtext">Welcome to college, Felix. By the way, you\'re the Second Coming. And the Antichrist, well, he lives on the other side of town...If your destiny is to prevent the Apocalypse, should you be more worried that you cheated on the SAT, or that the Antichrist wants you dead? Only .99 for a limited time.</span><div class="adspot_adurl"><a href="http://st.blogads.com/931000014276/781000014264/click?d=http%3A%2F%2Fwww.amazon.com%2FImmaculate-Resurrections-Book-Antichrist-ebook%2Fdp%2FB006WS3O70%2Fref%3Dsr_1_1%3Fs%3Ddigital-text%26ie%3DUTF8%26qid%3D1328190767%26sr%3D1-1&c=440923ab6ac44b9ba72ea32d0cbf4ab1" class="adspot_adurl">Read more...</a></div></li>')))),Array(5,Array(Array('111000005489',Array(2000,'151000005499','<li><span class="adspot_adhead"></span><a href="http://st.blogads.com/111000005489/151000005499/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl" ><img src="http://i.blogads.com/151000005499/img.jpg?guid=e64e19993580a8854e232fe9b1b18130" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext"><b><u><a href="http://st.blogads.com/111000005489/151000005499/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">				3D printing could help bring jobs back to America</a></u></b><br />Manufacturing jobs are coming back to America. China\'s cost advantage isn\'t as great as it was, and anyway companies are learning that cost isn&#8217;t the only thing that matters. New technology could change the picture still further, and create employment-- even if</span><div class="adspot_adurl"><a href="http://st.blogads.com/111000005489/151000005499/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">Read more...</a></div></li>'),Array(2000,'961000005501','<li><span class="adspot_adhead"></span><a href="http://st.blogads.com/111000005489/961000005501/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl" ><img src="http://i.blogads.com/961000005501/img.jpg?guid=e5e83fdf5ab15469846f3e680ecf3f8a" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext"><b><u><a href="http://st.blogads.com/111000005489/961000005501/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">				3D printing could help bring jobs back to America</a></u></b><br />Manufacturing jobs are coming back to America. China\'s cost advantage isn\'t as great as it was, and anyway companies are learning that cost isn&#8217;t the only thing that matters. New technology could change the picture still further, and create&nbsp;<b><i><a href="http://st.blogads.com/111000005489/961000005501/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">read more...						</a></i></b></span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/111000005489_tweet_button/961000005501_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3D3D%2520printing%2520could%2520help%2520bring%2520jobs%2520back%2520to%2520America%2520http%253A%2F%2Fbit.ly%2FxF7urx%2520%2520%2520%2520%2520&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div></li>'),Array(2000,'411000005498','<li><span class="adspot_adhead"></span><span class="adspot_adtext"><b><u><a href="http://st.blogads.com/111000005489/411000005498/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">				3D printing could help bring jobs back to America</a></u></b><br />Manufacturing jobs are coming back to America. China\'s cost advantage isn\'t as great as it was, and anyway companies are learning that cost isn&#8217;t the only thing that matters. New technology could change the picture still further, and create employment-- even if</span><div class="adspot_adurl"><a href="http://st.blogads.com/111000005489/411000005498/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">Read more...</a></div></li>'),Array(2000,'811000005483','<li><span class="adspot_adhead">3D Printing Could Help...</span><a href="http://st.blogads.com/111000005489/811000005483/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl" ><img src="http://i.blogads.com/811000005483/img.jpg?guid=e8c2a624dfa3262c62d4ce30cd5821e4" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext"><b><u><a href="http://st.blogads.com/111000005489/811000005483/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">				...bring jobs back to America</a></u></b><br />Manufacturing jobs are coming back to America. China\'s cost advantage isn\'t as great as it was, and anyway companies are learning that cost isn&#8217;t the only thing that matters. New technology could change the picture still further, and create employment-- even if</span><div class="adspot_adurl"><a href="http://st.blogads.com/111000005489/811000005483/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">Read more...</a></div></li>'),Array(2000,'821000005500','<li><span class="adspot_adhead">3D Printing Could Help...</span><a href="http://st.blogads.com/111000005489/821000005500/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl" ><img src="http://i.blogads.com/821000005500/img.jpg?guid=bc3104809183eef378aff9cf83d3f585" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext"><b><u><a href="http://st.blogads.com/111000005489/821000005500/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">				...bring jobs back to America</a></u></b><br />Manufacturing jobs are coming back to America. China\'s cost advantage isn\'t as great as it was, and anyway companies are learning that cost isn&#8217;t the only thing that matters. New technology could change the picture still further, and create&nbsp;<b><i><a href="http://st.blogads.com/111000005489/821000005500/click?d=http%3A%2F%2Fwww.amanet.org%2Fshift%2Findex.php%2F2012%2F02%2F08%2F3d-printing-could-help-bring-jobs-back-to-america%2F&c=886caa1c9e45ddf9f28eee3022381bea" class="adspot_adurl">read more...						</a></i></b></span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/111000005489_tweet_button/821000005500_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3D3%2520big%2520drivers%2520for%2520bringing%2520jobs%2520back%2520to%2520the%2520U.S.%2520http%253A%2F%2Fbit.ly%2FxF7urx%2520&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div></li>')))),Array(6,Array(Array('781000006882',Array(10000,'721000006881','<li><span class="adspot_adhead">Read. Discourse. Drink. </span><a href="http://st.blogads.com/781000006882/721000006881/click?d=http%3A%2F%2Fthebrooklyninstitute.com%2Fclasses%2F&c=a50c8ce9a5f7643e2ec41957eec2ae56" class="adspot_adurl" ><img src="http://i.blogads.com/721000006881/img.jpg?guid=e3bda2703d994fc07ce3bb7ae8196d10" alt="" title="" longdesc="" height="199" width="150" /></a> <span class="adspot_adtext"><b>The Brooklyn Institute for Social Research</b> expands liberal arts studies and research beyond the university, connecting communities of intellectually curious readers and scholars through <a href="http://st.blogads.com/781000006882/721000006881/click?d=http%3A%2F%2Fthebrooklyninstitute.com%2Fclasses%2F&c=a50c8ce9a5f7643e2ec41957eec2ae56" class="adspot_adurl">seminars</a>, lectures, <a href="http://st.blogads.com/781000006882/721000006881/click?d=http%3A%2F%2Fthebrooklyninstitute.com%2Fzeitung-bisr-blog%2F&c=edd09e829a3b49bdf42b8eaadaad658d" class="adspot_adurl">blogs</a>,&nbsp;<a href="http://st.blogads.com/781000006882/721000006881/click?d=http%3A%2F%2Fthebrooklyninstitute.com%2Fthe-podcast-for-social-research%2F&c=4a0f2398800a8b6453983b9bc203d481" class="adspot_adurl">podcasts</a>&nbsp;and more... all in the warmth of one of Brooklyn\'s finest bars.&nbsp;</span><div class=\'tweet_button_container\'><br><input type=\'button\' value=\'Tweet this!\' onclick="window.open(\'http://st.blogads.com/781000006882_tweet_button/721000006881_tweet_button/click?d=http%3A%2F%2Ftwitter.com%3Fstatus%3DI%2520think%2520%2540BklynInstitute%2520is%2520amazing%2521%253A%2520http%253A%2F%2Fbit.ly%2FxJ05C9%2520%2523BrooklynInstitute&c=e0e6737bc5ac02cf2a9ca6cf24b56cfa\',\'_blank\')"><br><br></div><div class="adspot_adurl"><a href="http://st.blogads.com/781000006882/721000006881/click?d=http%3A%2F%2Fthebrooklyninstitute.com%2Fclasses%2F&c=a50c8ce9a5f7643e2ec41957eec2ae56" class="adspot_adurl">Read more...</a></div></li>'))))),0);var blog_id = '749405124';
    
    var adspot_585507102_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 3 Quarks Daily','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 3 Quarks Daily readers like you for 40.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 3 Quarks Daily readers like you','link_name_imp_like_you_round20120208','link_name_clicks_like_you_round20120208','&link_name_like_you_round20120208']];
    adspot_html+='</ul></div><div class="adspot_link"><a id="adspot_link_585507102" href="http://web.blogads.com/advertising/3-quarks-daily/top-ads-right-column/adspotsfolder/ba_adspotsfolder_revision_create_shortcut?persistent_uid=fce767db660110a2fe69bb05c34416e0&persistent_ref=" class="adspot_link" target="_blank">Buy a Blogad!</a></div><img style="position:absolute;" src="http://st.blogads.com/585507102/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);
