image_small = new Array();
image_small[0]= 'imgs/vala-bleu_small.gif';         

image_big = new Array();
image_big[0]= 'imgs/vala-bleu_big.gif';        

GoTo = new Array();
GoTo[0]= 'http://spartamcity.com/index.php?mod=espace_membre&ac=enregistrer'; 


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

var nr = Math.round((anzahl -1) * Math.random());

var Link = GoTo[nr];
var Image1 = image_small[nr];
var Image2 = image_big[nr];

var valapeel = new Object();

valapeel.ad_url = escape(Link);

valapeel.small_path = 'small.swf'; 
valapeel.small_image = escape(Image1);
valapeel.small_width = '100';
valapeel.small_height = '100';
valapeel.small_params = 'ico=' + valapeel.small_image;

valapeel.big_path = 'big.swf'; 
valapeel.big_image = escape(Image2);
valapeel.big_width = '650';
valapeel.big_height = '650';
valapeel.big_params = 'big=' + valapeel.big_image + '&ad_url=' + valapeel.ad_url;

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

function sizedown987(){
	document.getElementById("valacSmall").style.top = "0px";
	document.getElementById("valacBig").style.top = "-1000px";
}

valapeel.putObjects = function () {
// <Small>
document.write('<div id="valacSmall" style="position:absolute;width:'+ valapeel.small_width +'px;height:'+ valapeel.small_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="valacSmallObject" width="'+valapeel.small_width+'" height="'+valapeel.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ valapeel.small_path +'?'+ valapeel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+valapeel.small_params+'"/>');
// embed
document.write('<embed src="'+ valapeel.small_path + '?' + valapeel.small_params +'" name="valacSmallObject" wmode="transparent" quality="high" width="'+ valapeel.small_width +'" height="'+ valapeel.small_height +'" flashvars="'+ valapeel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </Small>
// <Big>
document.write('<div id="valacBig" style="position:absolute;width:'+ valapeel.big_width +'px;height:'+ valapeel.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="valacBigObject" width="'+ valapeel.big_width +'" height="'+ valapeel.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ valapeel.big_path +'?'+ valapeel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ valapeel.big_params +'"/>');
// embed
document.write('<embed src="'+ valapeel.big_path + '?' + valapeel.big_params +'" id="valacBigEmbed" name="valacBigObject" wmode="transparent" quality="high" width="'+ valapeel.big_width +'" height="'+ valapeel.big_height +'" flashvars="'+ valapeel.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("valacBig").style.top = "-1000px";',1000);
}
valapeel.putObjects();
