function HomePage(obj) {
        obj.style.behavior='url(#default#homepage)';
        obj.setHomePage('http://www.lerepairedesmotards.com');
}

function Bookmark() {
	title = "Le Repaire des Motards";
	url = "http://www.lerepairedesmotards.com";

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
	window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
	return true; }
}

u = encodeURIComponent(window.location.href);
gog= "http://translate.google.com/translate?u="+u+"&langpair=fr%7Cen&hl=fr&ie=UTF-8&oe=UTF-8&newwindow=1&prev=%2Flanguage_tools";
t = "Une%20page%20%C3%A0%20visiter%20absolument%20sur%20le%20Repaire%20des%20Motards";
b = "Je t'envoie cette page trouvee sur le Repaire des Motards :\r\n";
s = "ca en vaut vraiment la peine";

function mailThisUrl() {
  window.location = "mailto:"+"?subject="+t+"&body="+b+document.title+" "+u+" " +s;
}

function getElementsByClass(searchClass, node, tag) { 
    var classElements = new Array(); 
    if ( node == null ) 
        node = document; 
    if ( tag == null ) 
        tag = '*'; 
    var els = node.getElementsByTagName(tag); 
    var elsLen = els.length; 
    var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); 
    for (i = 0, j = 0; i < elsLen; i++) { 
        if ( pattern.test(els[i].className) ) { 
            classElements[j] = els[i]; 
            j++; 
        } 
    } 
    return classElements; 
} 
  
function tailleFonte(classe, taille) { 
    cibles = getElementsByClass('mod'); 
    for (i=0; i < cibles.length; i++) { 
        cibles[i].style.fontSize = taille; 
        } 
} 

function hide(id) { 
    if (document.getElementById(id).style.display == "none") { 
        document.getElementById(id).style.display = "block"; 
    } else { 
        document.getElementById(id).style.display = "none"; 
    } 
}

var clear="/img/invis.gif" //path to clear.gif

/*pngfix=function(){var els=document.getElementsByTagName('*');var ip=/\.png/i;var i=els.length;while(i-- >0){var el=els[i];var es=el.style;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"',sizingMethod='crop')";el.src=clear;}else{var elb=el.currentStyle.backgroundImage;if(elb.match(ip)){var path=elb.split('"');var rep=(el.currentStyle.backgroundRepeat=='no-repeat')?'crop':'scale';es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';var elkids=el.getElementsByTagName('*');if (elkids){var j=elkids.length;if(el.currentStyle.position!="absolute")es.position='static';while (j-- >0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}}

//window.attachEvent('onload',pngfix);
*/
	/************************************************************************************************************
	(C) www.dhtmlgoodies.com, October 2005
	
	Version 1.2: Updated, November 12th. 2005
	
	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
	
	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.
	
	Thank you!
	
	www.dhtmlgoodies.com
	Alf Magne Kalleland
	
	************************************************************************************************************/		
	var panelWidth = 100;	// Width of help panel	
	var slideSpeed = 15;		// Higher = quicker slide
	var slideTimer = 10;	// Lower = quicker slide
	var slideActive = true;	// Slide active ?
	var initBodyMargin = 0;	// Left or top margin of your <body> tag (left if panel is at the left, top if panel is on the top)
	var pushMainContentOnSlide = false;	// Push your main content to the right when sliding
	
	/*	Don't change these values */
	var slideLeftPanelObj=false;
	var slideInProgress = false;	
	var startScrollPos = false;
	var panelVisible = true;
	
	function initSlideTopPanel(expandOnly) 	{
		if(slideInProgress)return;
		if(!slideLeftPanelObj){
			if(document.getElementById('TopPanel')){	// Object exists in HTML code?
				slideLeftPanelObj = document.getElementById('TopPanel');
				slideLeftPanelObj.style.width = '100%';
			}else{	// Object doesn't exist -> Create <div> dynamically
				slideLeftPanelObj = document.createElement('div');
				slideLeftPanelObj.id = 'TopPanel';
				slideLeftPanelObj.style.display='none';
				document.body.appendChild(slideLeftPanelObj);
			}			
				slideLeftPanelObj.style.top = "-" + panelWidth + 'px';
				slideLeftPanelObj.style.left = '0px';	
				slideLeftPanelObj.style.height = panelWidth + 'px';			
			
			if(!document.all || navigator.userAgent.indexOf('Opera')>=0)slideLeftPanelObj.style.position = 'fixed';;
		}	
		
			if(document.documentElement.clientWidth){
				slideLeftPanelObj.style.width = document.documentElement.clientWidth + 'px';
			}else if(document.body.clientHeight){
				slideLeftPanelObj.style.width = document.body.clientWidth + 'px';
			}
			var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;			
		slideLeftPanelObj.style.display='block';
		startScrollPos = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
		if(leftPos<(0+startScrollPos)){
			if(slideActive){
				slideLeftPanel(slideSpeed);	
			}else{
				document.body.style.marginLeft = panelWidth + 'px';
				slideLeftPanelObj.style.left = '0px';
			}
		}else{
			if(expandOnly)return;
			if(slideActive){		
				slideLeftPanel(slideSpeed*-1);
			}else{
		
					//if(pushMainContentOnSlide)document.body.style.marginTop =  initBodyMargin + 'px';
					slideLeftPanelObj.style.top = (panelWidth*-1) + 'px';						
		
			}
		}	
		
		if(navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('Opera')<0){
			window.onscroll = repositionHelpDiv;
			repositionHelpDiv();
		}
		window.onresize = resizeLeftPanel;
	}
	
	function resizeLeftPanel()	{
			if(document.documentElement.clientWidth){
				slideLeftPanelObj.style.width = document.documentElement.clientWidth + 'px';
			}else if(document.body.clientWidth){
				slideLeftPanelObj.style.width = document.body.clientWidth + 'px';
			}	
	}
	
	function slideLeftPanel(slideSpeed){
		slideInProgress =true;
		var scrollValue = 0;
		var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;
		leftPos+=slideSpeed;
		okToSlide = true;
		if(slideSpeed<0){
			if(leftPos < ((panelWidth*-1) + startScrollPos)){
				leftPos = (panelWidth*-1) + startScrollPos;	
				okToSlide=false;
			}
		}
		if(slideSpeed>0){
			if(leftPos > (0 + startScrollPos)){
				leftPos = 0 + startScrollPos;
				okToSlide = false;
			}			
		}
			slideLeftPanelObj.style.top = leftPos + 'px';
			//if(pushMainContentOnSlide)document.body.style.marginTop = leftPos - startScrollPos + panelWidth + 'px';			
		if(okToSlide)setTimeout('slideLeftPanel(' + slideSpeed + ')',slideTimer); else {
			slideInProgress = false;
			if(slideSpeed>0)panelVisible=true; else panelVisible = false;
		}
	}
	
	function repositionHelpDiv() {
			var maxValue = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
			slideLeftPanelObj.style.left = maxValue;	
			var maxTop = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
			if(!slideInProgress)slideLeftPanelObj.style.top = (maxTop - (panelVisible?0:panelWidth)) + 'px'; 		
	}
	
	function cancelEvent() {
		return false;
	}
	
	function keyboardShowLeftPanel() {
			initSlideLeftPanel();
			return false;	
	
	}
	
	function leftPanelKeyboardEvent(e) 	{
		if(document.all)return;
		
		if(e.keyCode==112){
			initSlideLeftPanel();
			return false;
		}		
	}
	
function Onglet(SystemTab,MyTabContent,MyTab) {
	AllTabs = document.getElementById(SystemTab) ;
	var AllTags = AllTabs.getElementsByTagName("*");
	for (var a = 0; a < AllTags.length; a++) {
		if (AllTags[a].className.indexOf('tabcontent') != -1) {
            AllTags[a].style.display = 'none' ;
        }
	}
	TabsUL = MyTab.parentNode.parentNode.getElementsByTagName("*") ;
	for (var a = 0; a < TabsUL.length; a++) {
		if (TabsUL[a].tagName=="LI") TabsUL[a].className = '' ;
	}
	MyTab.parentNode.className = 'tabactiv' ;
	document.getElementById(MyTabContent).style.display = 'block' ;
}