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_326076375"><div class="adspot_head"></div><div class="adspot_content"><ul>';var adspot_cgif='';var header_text='';var any='any';adspot_pos(null,Array(Array(any,Array(Array('501000000086',Array(1000,'951000000072','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/951000000072/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/951000000072/img.jpg?guid=ad91ee5cffcab09ac458c6e70e78fa36" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/951000000072/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'831000000076','<li><span class="adspot_adhead">NAKED by Dylan Rosser</span><a href="http://st.blogads.com/501000000086/831000000076/click?d=http%3A%2F%2Fwww.themaleform.net%2FDylanRosser%2Fnaked.html&c=6a70826dc55f716b69088eac9138301e" class="adspot_adurl" ><img src="http://i.blogads.com/831000000076/img.jpg?guid=6a63196335fb4f254c244542078c4bfe" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">The latest photo book by photographer, Dylan Rosser. Lots of beautiful models, and all of them... well, NAKED</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/831000000076/click?d=http%3A%2F%2Fwww.themaleform.net%2FDylanRosser%2Fnaked.html&c=6a70826dc55f716b69088eac9138301e" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'531000000073','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/531000000073/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/531000000073/img.jpg?guid=073cfe4c300dd0ea1c4d3ac2b9e4b769" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/531000000073/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'441000000075','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/441000000075/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/441000000075/img.jpg?guid=78181d3708f247444f8ab79dc1af55e8" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/441000000075/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'621000000084','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/621000000084/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/621000000084/img.jpg?guid=d57e685ca348a8852c290734eb9b344a" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/621000000084/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'791000000074','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/791000000074/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/791000000074/img.jpg?guid=0b3db456955df50c38763d3db87e4e0f" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/791000000074/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'671000000083','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/671000000083/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/671000000083/img.jpg?guid=9abbb9cf41b4534860b2f5991b5a5d36" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/671000000083/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'351000000071','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/351000000071/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/351000000071/img.jpg?guid=adc5413373158db3e177b610bffd2850" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/351000000071/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'181000000082','<li><span class="adspot_adhead">Male Nude Photography</span><a href="http://st.blogads.com/501000000086/181000000082/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl" ><img src="http://i.blogads.com/181000000082/img.jpg?guid=bf95cfe885bddd56954ae34cea4685c7" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">100\'s of models, 1000\'s of images, all in one beautifully presented site.</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/181000000082/click?d=http%3A%2F%2Fwww.themaleform.net%2Fhome.html&c=7a61bee1e6e40a13c1241c10c57bcde5" class="adspot_adurl">Find out more ...</a></div></li>'),Array(1000,'941000000077','<li><span class="adspot_adhead">NEW DIGITAL MAGAZINE</span><a href="http://st.blogads.com/501000000086/941000000077/click?d=http%3A%2F%2Fwww.tmfmagazine.com&c=ae775b02441b175262589c0b61a03271" class="adspot_adurl" ><img src="http://i.blogads.com/941000000077/img.jpg?guid=7222b2965cd3ef12773c363d876fc04d" alt="" title="" longdesc="" height="200" width="160" /></a> <span class="adspot_adtext">A new online magazine showcasing the work of&nbsp;photographers and models without the usual focus on Fashion. In fact the entire issue has zero clothing.&nbsp;</span><div class="adspot_adurl"><a href="http://st.blogads.com/501000000086/941000000077/click?d=http%3A%2F%2Fwww.tmfmagazine.com&c=ae775b02441b175262589c0b61a03271" class="adspot_adurl">Find out more ...</a></div></li>')),Array('131000005124',Array(10000,'791000005121','<li><span class="adspot_adhead">INNdulge Palm Springs</span><a href="http://st.blogads.com/131000005124/791000005121/click?d=http%3A%2F%2Fwww.inndulge.com&c=e3c70e7617b7267d50759f73e3bf47a1" class="adspot_adurl" ><img src="http://i.blogads.com/791000005121/img.jpg?guid=743367414413bf89093026be10268a77" alt="" title="" longdesc="" height="100" width="150" /></a> <span class="adspot_adtext"><b><i>Morning Sausage?<br /></i></b><br />Legendary, Award Winning Resort<br /><br /><i><b>Naked Men in the Desert</b></i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><div class="adspot_adurl"><a href="http://st.blogads.com/131000005124/791000005121/click?d=http%3A%2F%2Fwww.inndulge.com&c=e3c70e7617b7267d50759f73e3bf47a1" class="adspot_adurl">Find out more ...</a></div></li>'))))),0);var blog_id = '316196517';
    
    var adspot_326076375_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 AKA William','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 AKA William readers like you for 10.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'],['Advertise here','link_name_imp_control_round20120208','link_name_clicks_control_round20120208','&link_name_control_round20120208'],['reach AKA William 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_326076375" href="http://web.blogads.com/advertising/aka-william/top-of-left-column/adspotsfolder/ba_adspotsfolder_revision_create_shortcut?persistent_uid=103c967936fdb9572c9ff12324639f25&persistent_ref=" class="adspot_link" target="_blank">Advertise here</a></div><img style="position:absolute;" src="http://st.blogads.com/326076375/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);
