
$(document).ready(function() {
	$('.hd_roll').hover(
		function() { $('.bg_roll',this).each(function() { $(this).background('url(img/'+$(this).id()+'.gif)'); }); }
	,	function() { $('.bg_roll',this).each(function() { $(this).background('url(img/'+$(this).id()+'_2.gif)'); }); }
	);
});

function add_favorites( url, title ) {
	if( document.all ) {
		window.external.AddFavorite( url, title );
	} else {
		alert( 'Cliquez sur Ok, puis tapez Ctrl-D pour ajouter '+title+' à vos favoris' );
	}
}

function set_homepage( o, url ) {
	if( document.all ) {
		o.style.behavior = 'url(#default#homepage)';
		o.setHomePage( url );
	} else {
		alert( 'Fonction uniquement disponible pour Internet Explorer' );
	}
}

function form_telephone( couleur, extra ) {
	document.write( '<form action="http://adatto.fr/common/tel.php" method="post">' );
	document.write( '<table width="464" height="66" border="0" cellpadding="0" cellspacing="0">' );
	document.write( '<tr>' );
	document.write( '<td width="27">&nbsp;</td>' );
	document.write( '<td width="201" valign="bottom"><div align="center"><span class="laisseznous'+couleur+'">Laissez-nous votre num&eacute;ro de t&eacute;l&eacute;phone</span><br>' );
	document.write( '<span class="unconseiller'+couleur+'">un conseiller vous rappelle</span></div></td>' );
	document.write( '<td width="176" valign="bottom"><label>' );
	document.write( '<div align="center">' );
	document.write( '<input name="numero_tel" type="text" value="Entrez ici votre numéro" onclick="if(this.value==\'Entrez ici votre numéro\'){this.value=\'\';}" size="20">' );
	document.write( '</div>' );
	document.write( '</label></td>' );
	document.write( '<td width="60" valign="bottom"><input type="image" src="img/fleche_2_anim.gif" width="28" height="29"></td>' );
	document.write( '</tr>' );
	document.write( '<tr>' );
	document.write( '<td height="18" colspan="4"></td>' );
	document.write( '</tr>' );
	document.write( '</table>' );
	document.write( '<input type="hidden" name="extra" value="'+extra+'" />' );
	document.write( '</form>' );
}

