// PROMO
image_small = new Array();
image_small[0]= '/home/design/75x75.jpg';         

image_big = new Array();
image_big[0]= '/home/design/500x500.jpg';        

GoTo = new Array();
GoTo[0]= 'http://blog.volubill.com'; 


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 promotion = new Object();

promotion.ad_url = escape(Link);
promotion.target = escape('_blank');
promotion.alpha = escape('50');
promotion.auto_rederict = escape('0');

promotion.small_path = '/home/flash/promo/small.swf'; 
promotion.small_image = escape(Image1);
promotion.small_width = '100';
promotion.small_height = '100';
// promotion.small_params = 'ico=' + promotion.small_image+'&alpha='+promotion.alpha;
promotion.small_params = 'ico=' + promotion.small_image;


promotion.big_path = '/home/flash/promo/big.swf'; 
promotion.big_image = escape(Image2);
promotion.big_width = '650';
promotion.big_height = '650';
promotion.big_params = 'big=' + promotion.big_image + '&ad_url=' + promotion.ad_url + '&linkTarget=_self';
promotion.big_params = 'big=' + promotion.big_image + '&ad_url=' + promotion.ad_url + '&target='+promotion.target+'&alpha='+promotion.alpha+'&auto_rederict='+promotion.auto_rederict;

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

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

promotion.putObjects = function () {
// <Small>
document.write('<div id="promocSmall" style="position:absolute;width:'+ promotion.small_width +'px;height:'+ promotion.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="promocSmallObject" width="'+promotion.small_width+'" height="'+promotion.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ promotion.small_path +'?'+ promotion.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+promotion.small_params+'"/>');
// embed
document.write('<embed src="'+ promotion.small_path + '?' + promotion.small_params +'" name="promocSmallObject" wmode="transparent" quality="high" width="'+ promotion.small_width +'" height="'+ promotion.small_height +'" flashvars="'+ promotion.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="promocBig" style="position:absolute;width:'+ promotion.big_width +'px;height:'+ promotion.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="promocBigObject" width="'+ promotion.big_width +'" height="'+ promotion.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ promotion.big_path +'?'+ promotion.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ promotion.big_params +'"/>');
// embed
document.write('<embed src="'+ promotion.big_path + '?' + promotion.big_params +'" id="promocBigEmbed" name="promocBigObject" wmode="transparent" quality="high" width="'+ promotion.big_width +'" height="'+ promotion.big_height +'" flashvars="'+ promotion.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("promocBig").style.top = "-1000px";',1000);
}
promotion.putObjects();