$(function(){
	$('.target').bt({
	  padding: 20,
	  width: 200,
	  spikeLength: 10,
	  closeWhenOthersOpen: true,
	  spikeGirth: 10,
 	 hoverIntentOpts:  {                          // options for hoverIntent (if installed)
                      interval: 1,           // http://cherne.net/brian/resources/jquery.hoverIntent.html
                      timeout: 1
                    },
	  cornerRadius: 10,
	  fill: 'rgba(0, 0, 0, .8)',
	  strokeWidth: 3,
	  strokeStyle: '#4ebcea',
	  cssStyles: {color: '#FFF', fontWeight: 'bold', lineHeight: '1.5em', fontSize:'12px'}
	
	});
});





$(document).ready(function(){


						   
  function filterPath(string) {
  return string
 .replace(/^\//,'')
 .replace(/(index|default).[a-zA-Z]{3,4}$/,'')
 .replace(/\/$/,'');
  }
  var locationPath = filterPath(location.pathname);
  $('a[href*=#]').each(function() {
 var thisPath = filterPath(this.pathname) || locationPath;
 if (  locationPath == thisPath
 && (location.hostname == this.hostname || !this.hostname)
 && this.hash.replace(/#/,'') ) {
   var $target = $(this.hash), target = this.hash;
   if (target) {
  var targetOffset = $target.offset().top;
  $(this).click(function(event) {
    event.preventDefault();
    $('html, body').animate({scrollTop: targetOffset}, 400, function() {
   location.hash = target;
    });
  });
   }
 }
  });
						   
	  $('a[rel*=facebox]').facebox({
								   
		loading_image : '/libs/facebox/loading.gif',
		close_image   : '/libs/facebox/closelabel.gif'
	  }) 
						   
	if($("#list").length > 0)
	{
		$('#list').makeacolumnlists({cols:2,colWidth:270,equalHeight:false,startN:1});
	}
	
	if($("#list2").length > 0)
	{
		$('#list2').makeacolumnlists({cols:3,colWidth:110,equalHeight:false,startN:1});
	}
	
	if($("#connexions").length > 0)
	{
		$('#connexions').makeacolumnlists({cols:3,colWidth:300,equalHeight:false,startN:1});
	}
	
	if($(".ajax2").length > 0)
	{
		 $('.ajax2').ajaxContent({  
			loader:'true',
			loaderType:'img',  
			loadingMsg:'loading.gif',  
			currentClass:"current"
		 });  
	}

	if($("#news").length > 0)
		$("#news").newsTicker();
});




