function newFeatures () {
	for ( i=1 ; i<=5 ; i++ ) {
		$( '.boat_preview_link' + i ).bind ( "mouseenter", function( e ) {
			var id = $( this ).attr ( 'rel' ) ;
			$( '#boat_preview' + id ).css ( 'display' , 'block' ) ;
			boat_preview = id ;
		} ) ;
		$( '.boat_preview_link' + i ).bind ( "mouseleave", function( e ) {
			var id = $( this ).attr ( 'rel' ) ;
			window.setTimeout("hide_preview(" + id + ")", 100);
			boat_preview = null ;
		} ) ;
		$( '#boat_preview' + i ).bind ( "mouseenter", function( e ) {
			var id = $( this ).attr ( 'id' ).substring ( $( this ).attr ( 'id' ).length-1 , $( this ).attr ( 'id' ).length ) ;
			boat_preview = id ;
		} ) ;
		$( '#boat_preview' + i ).bind ( "mouseleave", function( e ) {
			var id = $( this ).attr ( 'id' ).substring ( $( this ).attr ( 'id' ).length-1 , $( this ).attr ( 'id' ).length ) ;
			window.setTimeout("hide_preview(" + id + ")", 100);
			boat_preview = null ;
		} ) ;
	}
    
}

function hide_preview ( elementId ) {
	if ( boat_preview != elementId ) {
		$( '#boat_preview' + elementId ).css ( 'display' , 'none' ) ;
		boat_preview = null ;
	}
}
