
var ab_num_variants=1;var sticky_sessions=0;var afs_ad_template='';var afs_ad_header='<div class="ad_branding">Sponsored Links</div>';var afs_ad_footer='';var afc_ad_template='';var afc_ad_header='<div class="ad_branding"><a href="::feedback_url::">Gesponsorde links van Google</a></div>';var afc_ad_footer='';var ad_int=0;function ab_variate(){if(ab_num_variants==1){ad_int=0;}
if(ab_num_variants>1){ad_int=Math.floor(Math.random()*ab_num_variants);if(typeof(ad_pattern)=='object'){var r=Math.floor(Math.random()*ad_pattern.length);ad_int=ad_pattern[r];}}
if(sticky_sessions==1&&ab_num_variants>1){var re=new RegExp(/_ad_variant=(\d)/);var m=re.exec(document.cookie+"");if(m!=null){s=parseInt(m[1]);if(s>=0&&s<ab_num_variants){ad_int=s;}else{ab_setcookie('_ad_variant',ad_int,30);}}else{ab_setcookie('_ad_variant',ad_int,30);}}
ad_chooser(ad_int);}
function ab_setcookie(c_name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var c_value=escape(value)+((exdays==null)?"":"; expires="+exdate.toUTCString());document.cookie=c_name+"="+c_value;}
function afs_debug(target){var s="debug:<b>AFS</b>, "+"num_variants:<b>"+ab_num_variants+"</b>, "+"variant:<b>"+ad_int+"</b>, "+"google_afs_query:<b>"+google_afs_query+"</b> "+"google_afs_client:<b>"+google_afs_client+"</b>, "+"google_afs_channel:<b>"+google_afs_channel+"</b>, "+"google_afs_ad:<b>"+google_afs_ad+"</b>, "+"google_afs_adtest:<b>"+google_afs_adtest+"</b> "+"<br />";if(typeof(target)=='string'){document.getElementById(target).innerHTML=s;}else{afs_ad_footer+=s;}}
function afc_debug(target){var s="debug:<b>AFC</b>, "+"num_variants:<b>"+ab_num_variants+"</b>, "+"variant:<b>"+ad_int+"</b>, "+"google_ad_client:<b>"+google_ad_client+"</b>, "+"google_ad_channel:<b>"+google_ad_channel+"</b>, "+"google_max_num_ads:<b>"+google_max_num_ads+"</b>, "+"google_adtest:<b>"+google_adtest+"</b> "+"<br />";if(typeof(target)=='string'){document.getElementById(target).innerHTML=s;}else{afc_ad_footer+=s;}}
function afs_render(ads,target){var s=afs_ad_header;if(ads.length<=0){return;}
for(i=0;i<ads.length;i++){var cad=afs_ad_template;cad=cad.replace(/::line1::/g,ads[i].line1);cad=cad.replace(/::line2::/g,ads[i].line2);if(typeof(ads[i].line3)!='undefined'){cad=cad.replace(/::line3::/g,ads[i].line3);}
cad=cad.replace(/::url::/g,ads[i].url);cad=cad.replace(/::visible_url::/g,ads[i].visible_url);cad=cad.replace(/::title::/g,ads[i].line1);cad=cad.replace(/::escaped_url::/g,escape(ads[i].visible_url));cad=cad.replace(/::type::/g,ads[i].type);cad=cad.replace(/::n::/g,ads[i].n);if(i<ads.length-1){cad+='<div class="ad_distance"></div>';}
s+=cad;}
s+=afs_ad_footer;document.getElementById(target).innerHTML=s;return;}
function afc_render(ads,target){var s=afc_ad_header;if(ads.length<=0){return;}
if(ads[0].type=="text"){for(i=0;i<ads.length;i++){var cad=afc_ad_template;cad=cad.replace(/::line1::/g,ads[i].line1);cad=cad.replace(/::line2::/g,ads[i].line2);cad=cad.replace(/::line3::/g,ads[i].line3);cad=cad.replace(/::url::/g,ads[i].url);cad=cad.replace(/::visible_url::/g,ads[i].visible_url);cad=cad.replace(/::title::/g,ads[i].line1);cad=cad.replace(/::escaped_url::/g,escape(ads[i].visible_url));cad=cad.replace(/::type::/g,ads[i].type);cad=cad.replace(/::n::/g,ads[i].n);cad=cad.replace(/::mouseovers::/g,'onmouseout="window.status=\'\';return true;" onmouseover="window.status=\'go to '+ads[i].visible_url+'\';return true;"');if(i<ads.length-1){cad+='<div class="ad_distance"></div>';}
s+=cad;}}
s+=afc_ad_footer;s=s.replace(/::feedback_url::/g,google_info.feedback_url);document.getElementById(target).innerHTML=s;return;}
function ss(w){window.status=w;return true;}
function cs(){window.status='';}
function urlparam(name){var match=new RegExp('[\?&]'+name+"=([^&]+)","i").exec(location.search);if(match==null)return null;else return decodeURIComponent(match[1]).replace(/\+/g,' ');}
