function affichePub(div,para) {
  document.getElementById(div).innerHTML=para;
}
 
function post_shop(url_shop,prod_name,marque,price,cours,page_type,colonne,pays,ligne_type) {
  document.getElementById("url_shop").value=url_shop;
  document.getElementById("country_post").value=pays;
  document.getElementById("prod").value=prod_name;
  document.getElementById("brand").value=marque;
  document.getElementById("prix").value=price;
  document.getElementById("cours_devise").value=cours;
  document.getElementById("type_page").value=page_type;
  document.getElementById("column").value=colonne;
  document.getElementById("type_ligne").value=ligne_type;
  document.getElementById("TLH_SOL").value=location.hostname;
  document.getElementById("shop").submit();
}
 
function demarreSol(partner_name) {
 if (cible_pub.toLowerCase()=="home") baseURL_pub="/";
 else if (cible_pub.toLowerCase()=="rps") baseURL_pub="http://87.98.167.182/";
 var fo = new SWFObject(baseURL_pub+"shopping/sol.swf","sol", "1", "1", "8", "#FFFFFF"); // baseURL est définie plus bas en dehors de la fonction
 fo.addVariable("partner", partner_pub);
 fo.addVariable("brand", brand_pub );
 fo.addVariable("product", product_pub );
// fo.addVariable("internal", initial_pub );
 fo.addVariable("byebye", bye_bye_pub );
 fo.addVariable("coun", country_pub );
 fo.addVariable("country_ip", country_ip_pub );
 fo.addVariable("cible_domaine", cible_pub );
 fo.addVariable("diploCat", diploCat_pub );
 fo.addVariable("TLH", location.hostname);
// fo.addVariable("dejaCat", (cat_kelkoo_pub=="-1" ? 0 : 1) );
 fo.addParam ("allowScriptAccess","always");
 fo.addParam ("wmode","opaque");
 fo.write("sol_flash");
}

document.write('<form id="shop" action="/shopping/redirect_shop.php" method="POST" target="_blank"><input type="hidden" name="prod" id="prod" value="empty" /> <input type="hidden" name="url_shop" id="url_shop" value="empty" />  <input type="hidden" name="prix" id="prix" value="empty" />  <input type="hidden" name="brand" id="brand" value="empty" />  <input type="hidden" name="cours_devise" id="cours_devise" value="1" /> <input type="hidden" name="type_page" id="type_page" value="empty" /><input type="hidden" name="column" id="column" value="empty" /><input type="hidden" name="country_post" id="country_post" value="empty" /><input type="hidden" name="type_ligne" id="type_ligne" value="empty" /><input type="hidden" name="TLH_SOL" id="TLH_SOL" value="empty" /></form><div id="divProduitsPub" align="center"><img src="/shopping/data_loaded.gif"></div><div id="sol_flash" align="center"></div>');
setTimeout("demarreSol()",150);
