/*
Jean-Luc MARTIN - Copyright SOFETEC 2003-2009
*/

var nbimage= 30;
var width;
var height;
var url;
var alte;
numimage= Math.round(Math.random()*(nbimage-1)+1);
lnRandom_bandeau= Math.random();
html = '';
annon = '';

/*
Aucun ; dans les tags sinon il faut créer un .js indépendant (voir autodesk ou specific)
*/

/*
Adverline  Normal 
*/
if (numimage >= 0 && numimage <= 10)
{
	annon = 'Adverline';
	html = '<script charset="ISO-8859-1" type="text/javascript" src="http://adnext.fr/richmedia.adv?id=6579&tag=1&s=all"></script>';
} 


/*
Réseau Specific Media megabannière - > .js particulier = 1€
*/

/*if (numimage > 0 && numimage <= 8)
{
	annon = 'Specific';
	html = '<SCRIPT type="text/JavaScript" SRC="http://www.machpro.fr/_pub/specific/_specific_bandeau.js"></SCRIPT>';
}*/


/*
Réseau ValueClick bannière 
*/

/*if (numimage > 100 && numimage <= 5)
{
	annon = 'ValueClick';
  html = '<!-- ValueClick Media 468x60 and 728x90 Banner CODE for Le portail industriel -->';
  html = html + '<script type="text/JavaScript" src="http://media.fastclick.net/w/get.media?sid=29574&m=1&tp=5&d=j&t=n"></script>';
  html = html + '<noscript><a href="http://media.fastclick.net/w/click.here?sid=29574&m=1&c=1" target="_blank">';
  html = html + '<img src="http://media.fastclick.net/w/get.media?sid=29574&m=1&tp=5&d=s&c=1" width=728 height=90 border=1></a></noscript>';
  html = html + '<!-- ValueClick Media 468x60 and 728x90 Banner CODE for Le portail industriel -->';
  
} */

/*
Bandeau Autodesk 
*/

/*if (numimage > 10 && numimage <= 25)
{
  html = '<SCRIPT language="JavaScript1.1" SRC="http://ad-emea.doubleclick.net/adj/N3763.275921.MACHPRO.FR1/B4498525;sz=728x90;ord=[timestamp]?">';
  html = html + '</SCRIPT>';
  html = html + '<NOSCRIPT>';
  html = html + '<A HREF="http://ad-emea.doubleclick.net/jump/N3763.275921.MACHPRO.FR1/B4498525;sz=728x90;ord=[timestamp]?">';
  html = html + '<IMG SRC="http://ad-emea.doubleclick.net/ad/N3763.275921.MACHPRO.FR1/B4498525;sz=728x90;ord=[timestamp]?" BORDER=0 WIDTH=728 HEIGHT=90 ALT="Click Here"></A>';
  html = html + '</NOSCRIPT>';
} */


/*
Bandeau LMT / DMG
*/

if (numimage > 10 && numimage <= 25)
{
	annon = 'LMT France';
	gotosite = "mailto:j.depoilly-lmt@orange.fr";
	width = 728;
	height = 90;
	url = "http://www.machpro.fr/_pub/728x90/lmt_1009_728x90.gif";
	alte = "LMT France";
	html = '<A HREF="' + gotosite + '" target="_new"><IMG SRC="' + url + '" WIDTH=' + width + ' HEIGHT=' + height + ' ALT="' + alte + '" BORDER=0></A><br>';
}   

/*
Bandeau Solidworks
*/
/*if (numimage > 15 && numimage <= 25)
{
	annon = 'Solidworks';
	gotosite = "http://www.solidworks.fr/sw2010_machpro";
	width = 728;
	height = 90;
	url = "http://www.machpro.fr/_pub/728x90/solidworks_0909_728x90.gif";
	alte = "Solidworks";
	html = '<br><A HREF="' + gotosite + '" target="_new"><IMG SRC="' + url + '" WIDTH=' + width + ' HEIGHT=' + height + ' ALT="' + alte + '" BORDER=0></A><br>';
}*/

/*
Bandeau Midest
*/
/*if (numimage > 100 && numimage <= 5)
{
	annon = 'Midest';
	gotosite = "http://www.midest.com";
	width = 728;
	height = 90;
	url = "http://www.machpro.fr/_pub/728x90/Midest_0910_728x90.gif";
	alte = "Midest";
	html = '<br><A HREF="' + gotosite + '" target="_new"><IMG SRC="' + url + '" WIDTH=' + width + ' HEIGHT=' + height + ' ALT="' + alte + '" BORDER=0></A><br>';
}*/


/*
Andrea Media
*/

/*if (numimage > 20 && numimage <= 30)
{
  annon = 'AndreaMedia';
  html = '<script src="http://www.smartadserver.com/call/pubj/7067/43517/655/M/'+lnRandom_bandeau+'/?"></script>';
} */


/*
Bandeau Technomark semaine 11
*/
/*
if (numimage > 25 && numimage <= 30)
{
	annon = 'Technomark';
	gotosite = "http://www.Technomark.fr";
	width = 728;
	height = 90;
	url = "http://www.machpro.fr/_pub/728x90/Technomark_1003_728x90.gif";
	alte = "Technomark";
	html = '<A HREF="' + gotosite + '" target="_new"><IMG SRC="' + url + '" WIDTH=' + width + ' HEIGHT=' + height + ' ALT="' + alte + '" BORDER=0></A><br>';
}*/    

/*
Bandeau Axiome semaine 12-13
*/
/*if (numimage > 15 && numimage <= 25)
{
	annon = 'Axiome';
	gotosite = "http://www.axiome.com";
	width = 728;
	height = 90;
	url = "http://www.machpro.fr/_pub/728x90/axiome_1003_728x90.gif";
	alte = "Axiome";
	html = '<A HREF="' + gotosite + '" target="_new"><IMG SRC="' + url + '" WIDTH=' + width + ' HEIGHT=' + height + ' ALT="' + alte + '" BORDER=0></A><br>';
}*/


/*
Autodesk  Octobre et novembre 2008
*/

/* if (numimage > 15 && numimage <= 30)
{
  annon = 'Autodesk';
  html = '<SCRIPT type="text/JavaScript" SRC="http://www.machpro.fr/_pub/autodesk/_autodesk_bandeau.js"></SCRIPT>';
} */ 

/*
MECATRONIC
*/

/*if (numimage > 20 && numimage <= 30)				
{
	annon = 'Mecatronic';
	html = '<object type="application/x-shockwave-flash" data="http://www.machpro.fr/_pub/468x60/Mecatronic_468x60.swf" width="468" height="60">';
    html = html + '<PARAM NAME=movie VALUE="http://www.machpro.fr/_pub/468x60/Mecatronic_468x60.swf"> ';
   	html = html + '<param name="wmode" value="transparent" />';
   	html = html + '<img src="" alt="MECATRONIC" title="MECATRONIC" />';
   	html = html + '</OBJECT>';
}*/

/*
MachPro  bandeau
*/ 

if (numimage > 25 && numimage <= 30)
{
	annon = 'Machpro';
	html = '<SCRIPT type="text/JavaScript" SRC="http://www.machpro.fr/_pub/machpro/_machpro_728x90.js"></SCRIPT>';
}  


/*html = html + '<font size="1" color="#8ea5bc">' + annon +' ('+ numimage + ')' + '</font>';*/ 

document.write(html);

