var google_ads_datas_default={client:"pub-3196120498181971",channel:"",max:1,skip:0,page:1,id:"",classe:"",test:false,mode:"line",width:"100%",search:"",fontSize:12,insertion:function(content){document.write(content)}};function setSatus(text){window.status=text}
google_ads_display=function(datas,ads){var nbElems=ads.length-datas.skip;if(!nbElems)return;var id=datas.id;var skip=datas.skip;var channel=datas.channel;var mode=nbElems<2?"line":datas.mode;var nbCols=mode=="line"?1:nbElems;var fontSize=datas.fontSize;var width=datas.width;var feedback=google_info.feedback_url?google_info.feedback_url:false;var classe=jQuery.trim("googleAds "+mode+" ads_"+channel+" count"+nbElems+" "+datas.classe);ads.splice(0,skip);var content="";content+='<div style="clear:both;font-size:0;height:0;overflow:hidden"></div>';
content+='<div id="'+id+'" class="'+classe+'" style="width:'+width+'">';content+='\t<div class="googleAds_header">';if(feedback)content+='<a href="'+feedback+'">Annonces <span>Google</span></a>';else content+="Annonces <span>Google</span>";content+="\t</div>";content+='\t<div class="googleAds_list" style="font-size:'+fontSize+'px">';content+='\t\t<table cellspacing="0" cellpadding="0">';content+="\t\t\t<tr>";$.each(ads,function(i,e){if(i&&mode=="line")content+="</tr></tr>";position=$.trim((!i?"first":
"")+" "+(i==nbElems-1?"last":""));content+='<td class="googleAds_item '+position+'" style="width:'+parseInt(100/nbCols)+'%">';content+="\t<div>";content+='\t\t<a class="googleAds_itemTitle" href="'+this.url+'" onmouseover="setSatus(\''+this.visible_url+"')\" onmouseoout=\"setSatus('')\">";content+="\t\t\t"+this.line1;content+="\t\t</a>";content+="\t</div>";content+='\t<p class="googleAds_itemContent">';content+="\t\t"+this.line2+" "+(this.line3?this.line3:"");content+="\t</p>";content+='\t<a class="googleAds_itemLink" href="'+
this.url+'" onmouseover="setSatus(\''+this.visible_url+"')\" onmouseoout=\"setSatus('')\">";content+="\t\t"+this.visible_url;content+="\t</a>";content+="</td>";if(this.bidtype=="CPC")google_ads_datas_default.skip++});content+="\t\t\t</tr>";content+="\t\t</table>";content+="\t</div>";content+="</div>";datas.insertion(content)};google_ads_datas_stack=[];google_info={};google_ad_request_done=function(ads){var datas=google_ads_datas_stack.pop();google_ads_display(datas,ads)};
google_afs_request_done=function(ads){var datas=google_ads_datas_stack.pop();google_ads_display(datas,ads)};
$.google_ads_content=function(datas){datas=$.extend({},google_ads_datas_default,datas);google_ad_client=datas.client;google_ad_channel=datas.channel;google_max_num_ads=datas.max;google_hints=datas.search;google_skip=datas.skip;google_adtest=datas.test?"on":"off";google_feedback=datas.test?"off":"on";google_ad_output="js";google_ad_type="text";google_encoding="utf8";datas.skip=0;google_ads_datas_stack.push(datas);document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>')};
GoogleAdsSearch=function(){GoogleAdsSearch.params.pubId=google_ads_datas_default.client;for(var i=0;i<arguments.length;i++)this.add(arguments[i]);this.load()};GoogleAdsSearch.debug=false;GoogleAdsSearch.params={pubId:"",query:"",channel:"",adtest:"off",hl:"fr"};GoogleAdsSearch.options={container:false,number:2,lines:3,width:"auto",fontFamily:"arial",fontSizeTitle:12,fontSizeDescription:12,fontSizeDomainLink:12,colorTitleLink:false,colorText:false,colorDomainLink:false,colorBackground:false,colorBorder:false};
GoogleAdsSearch.prototype={groups:[],add:function(g){var p=$.extend({},GoogleAdsSearch.params);var o=$.extend({},GoogleAdsSearch.options);for(var i in g)if(typeof p[i]!="undefined")p[i]=g[i];else o[i]=g[i];this.groups.push([p,o]);return this},load:function(){if(typeof google=="undefined"||typeof google.load=="undefined"){this.loadGoogleApi();return this}if(typeof google.ads=="undefined"||typeof google.ads.search=="undefined"){this.loadGoogleAdsSearchModule();return this}for(var i in this.groups){if(GoogleAdsSearch.debug){console.info("Annonce pour #"+
this.groups[i][1]["container"]);console.log("Paramêtres de la page : ",this.groups[i][0]);console.log("Paramêtres de l'annonce : ",this.groups[i][1])}this.groups[i][0].callback=function(a,b){console.log("test");if(b)$("#"+a+" iframe").attr("allowtransparency","yes");else $("#"+a).remove()};new google.ads.search.Ads(this.groups[i][0],this.groups[i][1])}return this},loadGoogleApi:function(){var othis=this;$.getScript("http://www.google.com/jsapi",function(){othis.load()});return this},loadGoogleAdsSearchModule:function(){var othis=
this;google.load("ads.search","2",{callback:function(){othis.load()}});return this}};$.google_ads_search=function(datas){};

