function showTermsPopup(url)
{
	window.open(url,'popupterms', 'menubar=no, status=no, scrollbars=yes, width=380, height=400');
}
function fixed_bottom(select,offS)
{
	return Number(-offS+document.documentElement.clientHeight-select.offsetHeight+document.documentElement.scrollTop+document.body.scrollTop)+'px';
}
if(typeof sIFR == "function"){
	sIFR.replaceElement(named({sSelector:"#title", sFlashSrc:"/common/swf/searchguide_usa_sifr.swf", sColor:"#FFFFFF", sLinkColor:"#FFFFFF", sBgColor:"#000000", sHoverColor:"#FFFFFF"}));
	sIFR.replaceElement(named({sSelector:"#footer_nav1 li", sFlashSrc:"/common/swf/searchguide_usa_sifr.swf", sColor:"#FFFFFF", sLinkColor:"#FFFFFF", sBgColor:"#000000", sHoverColor:"#FFFFFF"}));	
};
window.addEvent('domready', function() {
	var myAccordion = new Accordion($('more'), 'h2.more_toggler', 'div.more_element', {
		opacity: false,
		display: -1,
		alwaysHide: true,
		onActive: function(toggler, element){
			toggler.setStyle('background-image', 'url(/common/img/searchguide_usa_arrow2.png)');
		},
		onBackground: function(toggler, element){
			if(typeof(ae) != 'undefined'){
				toggler.setStyle('background-image', 'url(/common/img/arrow1_ae.png)');
			}
			else {
				toggler.setStyle('background-image', 'url(/common/img/searchguide_usa_arrow1.png)');				
			}
		}
	});
	$('logo_clickable').addEvent('click',function(){
		window.location.href = "http://www.piaget.fr";
	})
});