function animationCenter(h){
	if(document.body.clientHeight>h){
		document.getElementById('animation').style.marginTop = (document.body.clientHeight-h)/2 + 'px';
		//alert('h: ' + h + ' - fenetre ' + document.body.clientHeight);
	}
}

function animationLauncher(src,h,w)
{
	var animation = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">';
	animation += '<param name="movie" value="'+src+'">';
	animation += '<param name="quality" value="high">';
	animation += '<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>';
	animation += '</object>';
	document.getElementById('animation').innerHTML = animation;
}

function anima(id){
	//document.getElementById(id).style.backgroundImage = 'http://servart/crampon/img/background-0.jpg';
	//alert(document.getElementById(id).style.backgroundImage);
}

/*function glisse(sens){
	var quoi = document.getElementById('top');
	var origine = quoi.offsetHeight+1;
	var haut = sens>0? 0 : origine;
	glisser(haut, origine, sens);
}
function glisser(haut, origine, sens){
	var quoi = document.getElementById('top');
	haut += sens;
	if(haut>0 && haut<origine){
		quoi.style.marginTop = -haut+'px';
		setTimeout('glisser('+haut+','+origine+','+sens+')',1);
	}
}*/

function antispam(name,domain,ext){
	return document.write('<a href=\"mailto:'+name+'@'+domain+'.'+ext+'\">'+name+'@'+domain+'.'+ext+'</a>');
}


/*function menuOver(x,y)
{
	if(x>0)
	{
		document.getElementById("scm"+x).style.display="block";
	}
	for(i=1;i<y+1;i++)
	{
		if(i!=x)
		{
			document.getElementById("scm"+i).style.display="none";
		}
	}
}

function develop(x)
{
	var todev=document.getElementById(x);
	todev.style.display=(todev.style.display=="block")?"none":"block";
}

function imgFrame(x)
{
	var decor_photo='';
	decor_photo ='<table width="100" border="0" cellpadding="0" cellspacing="0">';
	decor_photo+='<tr><td colspan="2"><img src="../img/frame-top.gif" /></td><td rowspan="2"><img src="../img/frame-right.gif" /></td></tr>';
    decor_photo+='<tr><td rowspan="2" valign="bottom" style="vertical-align:bottom"><img src="../img/frame-left.gif" /></td><td><img src="'+x+'" class="photo" /></td></tr>';
	decor_photo+='<tr><td colspan="2" align="right"><img src="../img/frame-bottom.gif" /></td></tr>';
	decor_photo+='</table>';
	document.write(decor_photo);
}*/