// JavaScript Document

var objid;
var Allbody;
var href = window.location.href;
var showId;
function getBodyId() {
Allbody = document.getElementsByTagName("body");
for (var i=0; i<Allbody.length; i++) {
	objid = href.substring(href.indexOf('id=')+3,href.length);
	showId = Allbody[i].getAttribute('id');
	}
}

function construct_head() {
var head="";
head+="<object type=\"application/x-shockwave-flash\" data=\"/flash/head.swf\" width=\"958\" height=\"88\">\n";
head+="<param name=\"movie\" value=\"/flash/head.swf?Pressed="+showId+"\">\n";
head+="<param name=\"wmode\" value=\"transparent\"/>\n";
head+="</object>\n";
document.write(head);
}

function construct_home_intro() {
var intro="";
intro+="<object type=\"application/x-shockwave-flash\" data=\"/flash/home_intro.swf\" width=\"958\" height=\"300\">\n";
intro+="<param name=\"movie\" value=\"/flash/home_intro.swf\"/>\n";
intro+="<param name=\"wmode\" value=\"transparent\"/>\n";
intro+="</object>\n";
document.write(intro);
}

function envoi_mail_adn() {
var a, s, n;
function Crypt(s) {r='';for(i=0;i<s.length;i++){n=s.charCodeAt(i); if (n>=8364) {n = 128;} r += String.fromCharCode( n - 3 ); }return r;}
a ="pdlowr=";
m='&#64;';d=unescape(m);
var nom = "adn";
var domaine = "adnsa.fr";
var aro = nom + d + domaine;
document.write('<a href='+Crypt(a) + aro + '>');
document.write(aro + '</a>');
}

function construct_mult_flash_exemple() {
var pop_flash="";
OpenWindow=window.open("", "newwin", "height=507,width=676, toolbar=no, scrollbars=no, menubar=no");
pop_flash+="<HTML>";
pop_flash+="<head><TITLE>Advanced Data Network : Exemple de r&eacute;alisation Flash</TITLE>";
pop_flash+="<script>self.moveTo(screen.width/2-338,screen.height/2-253);</script></head>";
pop_flash+="<BODY style='margin: 0px'>";
pop_flash+="<object type='application/x-shockwave-flash' data='http://www.danfoss-socla.com/site/flash/danfoss_promo_cd3d_8.swf' width='676' height='507'>";
pop_flash+="<param name='movie' value='http://www.danfoss-socla.com/site/flash/danfoss_promo_cd3d_8.swf'/>";
pop_flash+="</object>";
pop_flash+="</BODY>";
pop_flash+="</HTML>";
OpenWindow.document.write(pop_flash);
return false;
}



function construct_mult_creation_exemple() {
var pop_creation1="";
OpenWindow=window.open("", "newwin", "height=450,width=800, toolbar=no, scrollbars=no, menubar=no");
pop_creation1+="<HTML>";
pop_creation1+="<head><TITLE>Quelques logotypes</TITLE>";
pop_creation1+="<script>self.moveTo(screen.width/2-400,screen.height/2-225);</script></head>";
pop_creation1+="<BODY style='margin: 0px'>";
pop_creation1+="<img src='/images/mult_creation_exemple.jpg' alt='ic&ocirc;nes pour le logiciel Sinaptic.'/>";
pop_creation1+="</BODY>";
pop_creation1+="</HTML>";
OpenWindow.document.write(pop_creation1);
return false;
}

function construct_mult_creation_exemple2() {
var pop_creation2="";
OpenWindow=window.open("", "newwin", "height=267,width=287, toolbar=no, scrollbars=no, menubar=no");
pop_creation2+="<HTML>";
pop_creation2+="<head><TITLE>Quelques ic&ocirc;nes</TITLE>";
pop_creation2+="<script>self.moveTo(screen.width/2-143,screen.height/2-133);</script></head>";
pop_creation2+="<BODY style='margin: 0px'>";
pop_creation2+="<img src='/images/mult_creation_exemple2.jpg' alt='logotypes pour Th&eacute;tis, le groupe SNAAM, gps-shop et Sinaptic'/>";
pop_creation2+="</BODY>";
pop_creation2+="</HTML>";
OpenWindow.document.write(pop_creation2);
return false;
}

function construct_mult_creation_exemple3() {
var pop_creation3="";
OpenWindow=window.open("", "newwin", "height=450,width=800, toolbar=no, scrollbars=no, menubar=no");
pop_creation3+="<HTML>";
pop_creation3+="<head><TITLE>Quelques illustrations</TITLE>";
pop_creation3+="<script>self.moveTo(screen.width/2-400,screen.height/2-225);</script></head>";
pop_creation3+="<BODY style='margin: 0px'>";
pop_creation3+="<object type='application/x-shockwave-flash' data='/flash/mult_creation_exemple3.swf' width='800' height='450'>";
pop_creation3+="<param name='movie' value='/flash/mult_creation_exemple3.swf'/>";
pop_creation3+="</object>";
pop_creation3+="</BODY>";
pop_creation3+="</HTML>";
OpenWindow.document.write(pop_creation3);
return false;
}

function construct_legales() {
var pop_legales="";
OpenWindow=window.open("", "newwin", "height=410,width=676, toolbar=no, scrollbars=no, menubar=no");
pop_legales+="<HTML>";
pop_legales+="<head><TITLE>Advanced Data Network : Mentions légales</TITLE>";
pop_legales+="<script>self.moveTo(screen.width/2-338,screen.height/2-253);</script>";
pop_legales+="<style>body{background: #cedce0 url(/images/legales_bg.jpg) bottom right no-repeat;}p{font: 12px Verdana, Arial, Helvetica, sans-serif;color: #000000;}</style></head>";
pop_legales+="<BODY style='margin: 10px'>";
pop_legales+="<p><strong>Le contenu de ce site N'EST PAS LIBRE DE DROIT.</strong></p>";
pop_legales+="<p>Conformément aux dispositions de la Loi sur les droits d'auteur, il est interdit de modifier, de reproduire, d'enregistrer ou de diffuser les présents documents sous quelque forme et par quelque moyen que ce soit  (procédé électronique ou mécanique, microfilm, photocopie, enregistrement ou autre ...)  sans avoir obtenu au préalable l'autorisation écrite des auteurs. Tous droits de reproduction ou de représentation de ceux-ci sont réservés pour tous pays.</p>";
pop_legales+="<p><strong>Responsable éditorial :</strong> Jean-Christian Garnier</p>";
pop_legales+="<p>Advanced Data Network - Siège social : 5bis rue du Fort St Irénéé - F-69005 Lyon<br />Tél 33 (0)4 78 15 96 91 - RCS LYON B 353 476 252 -SARL au capital de 7 622,45 euros</p>";
pop_legales+="</BODY>";
pop_legales+="</HTML>";
OpenWindow.document.write(pop_legales);
return false;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
