var SessId = function( moreSites ){ var sites = { "Accueil EFISOL": ["http://www.efisol.com/"], "Accueil Eternit": ["http://www.eternit.fr/"], "Accueil Knauf bâtiment": ["http://www.knauf-batiment.fr/"], "Accueil Opstalan": ["http://www.opstalan.nl/"], "Accueil Rockwool": ["http://www.rockwool.fr/"], "Accueil Teknipan": ["http://www.teknipan.fr/"], "Accueil Unidek": ["http://www.unidek.nl/"], "Accueil Unilin Panneaux": ["http://www.unilin-systems.com/fr/index.aspx"], "Efisol Contact Particulier": ["http://www.efisol.com/contacts/contacts_particulier.htm"], "Efisol Contact Pro": ["http://www.efisol.com/contacts/contacts_professionnel.php"], "Efisol Efigreen A": ["http://www.efisol.com/produits/efigreen_a.htm"], "Efisol Efigreen Acier": ["http://www.efisol.com/produits/efigreen_acier.htm"], "Efisol Efigreen Alu": ["http://www.efisol.com/produits/efigreen_alu.htm"], "Efisol Efigreen duo": ["http://www.efisol.com/produits/efigreen_duo.htm"], "Efisol efilatte NL": ["http://www.efisol.com/produits/efilatte_nl.htm"], "Efisol Efipan": ["http://www.efisol.com/produits/efipan.htm"], "Efisol Efitec": ["http://www.efisol.com/produits/efitec.htm"], "Efisol Pannotec": ["http://www.efisol.com/produits/pannotec.htm"], "Efisol produits": ["http://www.efisol.com/page_produits.htm"], "Efisol Sarking Efitoit": ["http://www.efisol.com/produits/efitoit.htm"], "Efisol Sarking TMS GS": ["http://www.efisol.com/produits/tms_toitures.htm"], "Eternit Contact": ["http://www.eternit.fr/site/contacts/contacts.php?rb=9"], "Eternit contact commerciaux": ["http://www.eternit.fr/site/contacts/commerciaux.php?rb=9"], "Eternit Soutuisol": ["http://www.eternit.fr/site/produits/produits_pre.php?rb=2&id_produit=25&id_gamme=&id_destination="], "Knauf contacts": ["http://www.knauf-batiment.fr/default.aspx?docId=D3xWWgPM2Wk%3d"], "Knauf espace PRO": ["http://www.knauf-batiment.fr/default.aspx?docId=Acr%2fOzJFoWg%3d"], "Knauf Fibratec Chevron Evolution Lambris / Planche": ["http://www.knauf-batiment.fr/default.aspx?docId=JtLJrDYycxk%3d"], "Knauf Fibratec Chevron Evolution Plâtre M1": ["http://www.knauf-batiment.fr/default.aspx?docId=1XxBzTNV7Bs%3d"], "Knauf Fibratec Évolution / FM Évolution Plâtre M1": ["http://www.knauf-batiment.fr/default.aspx?docId=76BBrcGzmlw%3d"], "Knauf Fibratec Evolution Acoustique": ["http://www.knauf-batiment.fr/default.aspx?docId=7EZ8uk8t2pk%3d"], "Knauf Fibratec Evolution Lambris / Planche sandwich": ["http://www.knauf-batiment.fr/default.aspx?docId=IXSS3haeoXQ%3d"], "Knauf Fibratec Evolution Particules": ["http://www.knauf-batiment.fr/default.aspx?docId=WU8a3N8P9ng%3d"], "Knauf Fibratec Evolution Vinyl M1": ["http://www.knauf-batiment.fr/default.aspx?docId=j6lFZ%2bQl2o4%3d"], "Knauf FIBRATOP ERP": ["http://www.knauf-batiment.fr/default.aspx?docId=PYNic5Wyf7Y%3d"], "Knauf Fibratop Silver Acoustique": ["http://www.knauf-batiment.fr/default.aspx?docId=cRZmooHTUOQ%3d"], "Knauf Fibratop Silver Lambris/planche": ["http://www.knauf-batiment.fr/default.aspx?docId=FtyXcE4Qs4U%3d"], "Knauf FIBRATOP Silver Particules": ["http://www.knauf-batiment.fr/default.aspx?docId=EvfY7jsNSbQ%3d"], "Knauf FIBRATOP Silver Plâtre M1": ["http://www.knauf-batiment.fr/default.aspx?docId=l7dkCQrw5kw%3d"], "Knauf la Boks": ["http://www.knauf-batiment.fr/default.aspx?docId=Pw9M8aaB74E%3d"], "Knauf Polyfoam D350A": ["http://www.knauf-batiment.fr/default.aspx?docId=0LjQQ6mgp%2fE%3d"], "Knauf Thane Sarking": ["http://www.knauf-batiment.fr/default.aspx?docId=XP0MrqMWp7w%3d"], "Knauf toiture inclinée": ["http://www.knauf-batiment.fr/default.aspx?docId=gxEVH1Ftjmw%3d"], "Rockwool Rockciel Sarking": ["http://guide-solutions.rockwool.fr/produits--systemes/toiture-comble-mur-cloison-plancher-sol--cheminee/rockciel.aspx"], "Rockwool Rockciel System": ["http://guide-solutions.rockwool.fr/produits--systemes/toiture-comble-mur-cloison-plancher-sol--cheminee/rockciel-system.aspx"], "Rockwool Toiture combles": ["http://www.rockwool.fr/produits+-c12-+syst%C3%A8mes/toiture+comble+mur+cloison+sol+plancher+-c12-+chemin%C3%A9e"], "Rockwool Toiture terrasse et Bardage": ["http://www.rockwool.fr/produits+-c12-+syst%C3%A8mes/toiture-terrasse+-c12-+bardage"], "Teknipan Caisson moussé": ["http://www.teknipan.fr/down/fiche_teknipan.pdf"], "Teknipan Contact": ["http://www.teknipan.fr/contact.php3"], "Teknipan Teknisand": ["http://www.teknipan.fr/down/fiche_teknisand.pdf"], "Teknipan Tekniwool": ["http://www.teknipan.fr/down/fiche_tekniwool.pdf"], "Unilin contact": ["http://www.unilin-systems.com/fr/demandeinfo.aspx"], "Unilin gamme Rexolatte": ["http://www.unilin-systems.com/fr/overzicht_rxl.aspx"], "Unilin gamme Rexotoit": ["http://www.unilin-systems.com/fr/overzicht_tri_dec.aspx"], "Unilin gamme trilatte": ["http://www.unilin-systems.com/fr/overzicht_tri.aspx"], "Unilin gamme trilatte": ["http://www.unilin-systems.com/fr/overzicht_tri_dec.aspx"] }; for( var site in moreSites ) { // If we don't have the site, create the URL list. if( typeof( sites[site] ) == "undefined" ) sites[site] = []; // If the value is string, just push that onto the URL list. if( typeof( moreSites[site] ) == "string" ) sites[site].push( moreSites[site] ); else sites[site] = sites[site].concat( moreSites[site] ); } var visited = {}; function getStyle(el, scopeDoc,styleProp) { if (el.currentStyle) var y = el.currentStyle[styleProp]; else if (window.getComputedStyle) var y = scopeDoc.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp); return y; } function remove( el ) { el.parentNode.removeChild( el ); } // Code inspired by: // bindzus.wordpress.com/2007/12/24/adding-dynamic-contents-to-iframes function createIframe() { var iframe = document.createElement("iframe"); iframe.style.position = "absolute"; iframe.style.visibility = "hidden"; document.body.appendChild(iframe); // Firefox, Opera if(iframe.contentDocument) iframe.doc = iframe.contentDocument; // Internet Explorer else if(iframe.contentWindow) iframe.doc = iframe.contentWindow.document; // Magic: Force creation of the body (which is null by default in IE). // Also force the styles of visited/not-visted links. iframe.doc.open(); iframe.doc.write(''); iframe.doc.close(); // Return the iframe: iframe.doc contains the iframe. return iframe; } var iframe = createIframe(); function embedLinkInIframe( href, text ) { var a = iframe.doc.createElement("a"); a.href = href; a.innerHTML = site; iframe.doc.body.appendChild( a ); } for( var site in sites ) { var urls = sites[site]; for( var i=0; i