/*
   * This function is used to retrieve the value in the search box on the page
   */function afc_search(a,b,c,d,e,f){toggle_ad_test(e),google_ad_client=b,google_ad_channel=c,google_ad_output="js",google_max_num_ads=a,google_ad_type=f,google_safe="high",google_image_size="300x250";var g=parseInt(d);g>0&&(google_skip=g*a),google_adtest=e,document.write('<script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>')}function afs_search(a,b,c,d,e,f,g){toggle_ad_test(f),google_afs_query=a,google_afs_ad=b,google_afs_client=c,google_afs_channel=d,google_afs_qry_lnk=g,google_afs_oe="utf8",google_afs_adsafe="high",google_afs_adtest=f;var h=parseInt(e);h>0&&(google_afs_adpage=h+1),document.write('<script language="JavaScript" src="http://www.google.com/afsonline/show_afs_ads.js"></script>')}function google_ad_request_done(a){var b;if(a.length!=0){google_num_ads+=a.length,google_last_ad_type=a[0].type;var c=[],d=[],e=[];if(a[0].type=="image")e.push('<a href="'+a[0].url+'" target="_top" title="go to '+a[0].visible_url+'"><img border="0" src="'+a[0].image_url+'"width="'+a[0].image_width+'"height="'+a[0].image_height+'"></a>');else if(a[0].type=="flash")c.push('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'"><PARAM NAME="movie" VALUE="'+google_ad.image_url+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="AllowScriptAccess" VALUE="never"><EMBED src="'+google_ad.image_url+'" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'" TYPE="application/x-shockwave-flash" AllowScriptAccess="never"  PLUGINSPAGE="http://www.macromedia.com/go/ getflashplayer"></EMBED></OBJECT>');else if(a[0].type=="html")c.push(a[0].snippet);else if(a[0].type=="text")for(var f=0;f<a.length;f++)c.push('<a class="ad_title" href="'+a[f].url+'" >'+a[f].line1+'</a><br /><span class="ad_text">'+a[f].line2+"<br />"+a[f].line3+'</span><br /><a class="ad_url" href="'+a[f].url+'" >'+a[f].visible_url+"</a><br><br>"),d.push('<a class="ad_title" href="'+a[f].url+'" >'+a[f].line1+'</a><br /><span class="ad_text">'+a[f].line2+" "+a[f].line3+'</span><br /><a class="ad_url" href="'+a[f].url+'" >'+a[f].visible_url+"</a><br><br>");var g,h,i,j,k;for(var l=0;l<ad_modules.length;l++){i=ad_modules[l].id,k=ad_modules[l].count,j=ad_modules[l].type,h="";for(var f=0;f<k;f++)j=="wide"||j=="narrow"?c.length>0&&(j=="wide"?(h+=d.shift(),c.shift()):(d.shift(),h+=c.shift())):e.length>0&&(h+=e.shift());if(h!=""){ad_modules[l].embed?(g=document.getElementById("end_of_paid_listings"),g||(g=document.getElementById("afs_ad_unit_"+i))):g=document.getElementById("afs_ad_unit_"+i);var m="ad-content";ad_test&&(m="ad-content-test"),g&&h!=""&&(g.innerHTML='<div class="ad_box '+j+"_ads "+m+'"><div class="ad_header '+j+'_header"><a class="ad_attribution" href="'+google_info.feedback_url+'">Sponsored Links</a></div>'+h+"</div>")}}return}}function ads_push(a,b,c,d){ad_modules.push({id:a,type:b,count:c,embed:d})}function google_afs_request_done(a){var b="",c="";for(k=0;k<a.length;k++){var d=a[k].type=="text/narrow";adRendering='<a class="ad_title" href="'+a[k].url+'" >'+a[k].line1+'</a><br><span class="ad_text">'+a[k].line2+"<br>"+(d?a[k].line3+"<br>":"")+'<a class="ad_url" href="'+a[k].url+'" >'+a[k].visible_url+"</a><br><br>",d?afs_ads_narrow.push(adRendering):afs_ads_wide.push(adRendering)}var e,f,g,h,i;for(var j=0;j<ad_modules.length;j++){g=ad_modules[j].id,h=ad_modules[j].type,i=ad_modules[j].count,f="";for(var k=0;k<i;k++)h=="wide"?afs_ads_wide.length>0&&(f+=afs_ads_wide.shift()):afs_ads_narrow.length>0&&(f+=afs_ads_narrow.shift());ad_modules[j].embed?(e=document.getElementById("end_of_paid_listings"),e||(e=document.getElementById("afs_ad_unit_"+g))):e=document.getElementById("afs_ad_unit_"+g);var l="ad-search";ad_test&&(l="ad-search-test"),e&&f!=""&&(e.innerHTML='<div class="ad_box '+h+"_ads "+l+'"><div class="ad_header '+h+'_header">Sponsored Links</div>'+f+"</div>")}}function toggle_ad_test(a){a=="on"?ad_test=!0:ad_test=!1}function GetParam(a){var b=(new RegExp("[?&]"+a+"=([^&]+)","i")).exec(location.search);return b==null?null:decodeURIComponent(b[1]).replace(/\+/g," ")}var ad_test=!0,afs_ads_wide=[],afs_ads_narrow=[],ad_modules=[],google_num_ads=0,google_last_ad_type="",google_afs_query
