image_small = new Array();
posTop = new Array();
posLeft = new Array();

image_small[0]= 'http://wantapro.net/flash/child.swf';         
image_small[1]= 'http://wantapro.net/flash/baby.swf';         
image_small[2]= 'http://wantapro.net/flash/oups.swf';         
image_small[3]= 'http://wantapro.net/flash/vert.swf';   
image_small[4]= 'http://wantapro.net/flash/wanta.swf';   

posTop[0]= 300;         
posTop[1]= 150;         
posTop[2]= 150;         

posLeft[0]= 10;         
posLeft[1]= 10;         
posLeft[2]= 10;         
/*image_big = new Array();
image_big[0]= 'flip/big.gif';        

GoTo = new Array();
GoTo[0]= 'http://www.softsevenart.com'; 
*/

var anzahl = 5   //Ici le nombre des enregistrés indiquer

var nr = Math.round((anzahl -1) * Math.random());
var Image1 = image_small[nr];

var post=posTop[nr];
var posl=posLeft[nr];

//document.getElementById("form").style.top=post+"px";
//document.getElementById("form").style.left=posl+"px";

/*var Link = GoTo[nr];
var Image2 = image_big[nr];
*/
var ssa = new Object();
/*
ssa.ad_url = escape(Link);

ssa.small_image = escape(Image1);
*/
ssa.small_path = Image1; 

ssa.small_width = '800';
ssa.small_height = '553';
//ssa.small_params = 'ico=' + ssa.small_image;

/*ssa.big_path = 'flip/big.swf'; 
ssa.big_image = escape(Image2);
ssa.big_width = '650';
ssa.big_height = '650';
ssa.big_params = 'big=' + ssa.big_image + '&ad_url=' + ssa.ad_url;

function sizeup987(){
	document.getElementById('SSABig').style.top = '0px';
	document.getElementById('SSASmall').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("SSASmall").style.top = "0px";
	document.getElementById("SSABig").style.top = "-1000px";
}
*/
ssa.putObjects = function () {
// <Small>
//document.write('<div id="SSASmall" style="z-index:0;position:relative; top:0px;width:'+ ssa.small_width +'px;height:'+ ssa.small_height +'px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="SSASmallObject" width="'+ssa.small_width+'" height="'+ssa.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ ssa.small_path +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
//document.write(' <param name="FlashVars" value="'+ssa.small_params+'"/>');
// embed
document.write('<embed src="'+ ssa.small_path +'" name="SSASmallObject" wmode="transparent" quality="high" width="'+ ssa.small_width +'" height="'+ ssa.small_height +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object>');
/*document.write('</script>');
// </Small>
// <Big>
document.write('<div id="SSABig" style="position:absolute;width:'+ ssa.big_width +'px;height:'+ ssa.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="SSABigObject" width="'+ ssa.big_width +'" height="'+ ssa.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ ssa.big_path +'?'+ ssa.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ ssa.big_params +'"/>');
// embed
document.write('<embed src="'+ ssa.big_path + '?' + ssa.big_params +'" id="SSABigEmbed" name="SSABigObject" wmode="transparent" quality="high" width="'+ ssa.big_width +'" height="'+ ssa.big_height +'" flashvars="'+ ssa.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </Big>
setTimeout('document.getElementById("SSABig").style.top = "-1000px";',1000);*/
}
ssa.putObjects();
