var volet_width   =  450;
var volet_height  =  320;
var teaser_width  =   45;
var teaser_height =   15;
var time          = 7000;
var image_source  = "../images/annonce.jpg";
var src_img_teaser_open  = "../images/teaser_open4.gif";
var src_img_teaser_close = "../images/teaser_close4.gif";

document.write('<div id="creative64712" style="position:relative;display:'+((typeof(lea_prelab_after) == 'function')?'none':'inline')+';text-align:left;">');
// Emplacement de l'image
document.write('<div id="voletID64712Box" style="position:absolute;top:0px;left:-1px;width:'+volet_width+'px;height:'+volet_height+'px;z-index:100;display:none;">');
// Dimension de la fenętre 
document.write('<div style="position:absolute;top:0px;left:0px;width:'+volet_width+'px;height:'+volet_height+'px;overflow:hidden;">');
document.write('<div id="voletID64712Content" style="position:absolute;top:0px;left:0px;width:'+volet_width+'px;height:'+volet_height+'px;" onmouseover="document.ID64712.reset();">');
document.write('<div id="position1" style="position:relative;">');
document.write('<div id="div_250x250_gif" style="position:relative;width:'+volet_width+'px;height:'+volet_height+'px;z-index:1000;">');
// Chargement de l'image dans le document et mise en place du lien
document.write('<a href="http://www.lavillaandrea.com/contact_us.html"><img src="'+image_source+'" width="'+volet_width+'" height="'+volet_height+'" border="0"/></a>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('<div id="voletID64712Command" style="position:absolute;top:-14px;left:203px;z-index:101;"><a href="javascript:document.ID64712.activate();"><img id="voletID64712Image" src="'+src_img_teaser_open+'" width="'+teaser_width+'" height="'+teaser_height+'" border="0"/></a></div>');
document.write('</div>');
document.ID64712 = {
	opening:true,
	init:function() {
		if(document.getElementById('globalcontainer') != null) {
			this.box = document.getElementById('voletID64712Box');
			this.content = document.getElementById('voletID64712Content');
			this.command = document.getElementById('voletID64712Command');
			this.image = document.getElementById('voletID64712Image');
			this.body = (document.documentElement && document.compatMode == 'CSS1Compat')?document.documentElement:document.body;
			
			document.getElementById('globalcontainer').appendChild(document.ID64712.box);
			
			this.box.style.display = 'inline';
			this.content.style.top = volet_height+'px';

			if(window.attachEvent) {
				window.attachEvent('onscroll',this.position);
				window.attachEvent('onresize',this.position);
			}
			else if(window.addEventListener) {
				window.addEventListener('scroll',this.position,false);
				window.addEventListener('resize',this.position,false);
			}
			else { setInterval(this.position,100); }

			this.position();
			this.show();
		}
	},
	// Dimension d'ouverture (correspond ŕ la fenętre)
	position:function() {
		var top = document.ID64712.body.scrollTop?document.ID64712.body.scrollTop:document.body.scrollTop;
		document.ID64712.box.style.top = ((document.ID64712.body[document.ID64712.body.clientHeight?'clientHeight':'offsetHeight']-volet_height)+top)+'px';
		document.ID64712.box.style.left = (parseInt((document.ID64712.body[document.ID64712.body.clientWidth?'clientWidth':'offsetWidth']-767)/2)+(633-60))+'px';
	},
	activate:function() {
		if(this.activity == -2) {
			clearTimeout(this.timeout);
			this.show();
		}
		else if(this.activity == 2) {
			clearTimeout(this.timeout);
			this.box.style.display = 'none';
		}
	},
	reset:function() {
		if(this.activity == 2) {
			clearTimeout(this.timeout);
			this.timeout = setTimeout('document.ID64712.hide()',time);
		}
	},
	show:function() {
		this.activity = 1;
		if(parseInt(this.content.style.top) > 0) {
			this.content.style.top = (parseInt(this.content.style.top)-10)+'px';
			this.command.style.top = (parseInt(this.content.style.top)-14)+'px';
			this.timeout = setTimeout('document.ID64712.show()',50);
		}
		else {
			this.activity = 2;
			this.image.src = src_img_teaser_close;
			this.timeout = setTimeout('document.ID64712.hide()',time);
		}
	},
	// Fermeture de la fenëtre
	hide:function() {
		this.activity = -1;
		if(parseInt(this.content.style.top) < volet_height) {
			this.content.style.top = (parseInt(this.content.style.top)+10)+'px';
			this.command.style.top = (parseInt(this.content.style.top)-14)+'px';
			this.timeout = setTimeout('document.ID64712.hide()',50);
		}
		else {
			this.activity = -2;
			this.image.src = src_img_teaser_open;
		}
	}
}
var ID64712_temp = window.onload||function(){};
window.onload = function() { ID64712_temp(); document.ID64712.init(); }
document.write('</div>');
if(typeof(lea_prelab_after) == 'function') { lea_prelab_after(64712,17); }
