$(function(){	
    var display_timeout = 0;
    $("#HotelDetailNavMenu dl:has(dd)").mouseover(function(){    			
        if (display_timeout != 0) {
            clearTimeout(display_timeout);
        }
        $(this).find("dt a").css("color","#B5A46E");
    	$(this).find("dd").css("display","block");
    });
	
	$("#HotelDetailNavMenu dl:has(dd)").mouseout(function(){		
        if (display_timeout != 0) {
            clearTimeout(display_timeout);
        }
		var this_element = this;
		display_timeout = setTimeout(function(){
	        $(this_element).find("dt a").css("color","#4F4D45");
	        $(this_element).find("dd").css("display","none");
		 }, 500);  
    });     
    
   // add a "rel" attrib if Opera 7+  
   if(window.opera) {  
       if ($("a.jqbookmark").attr("rel") != ""){ // don't overwrite the rel attrib if already set  
           $("a.jqbookmark").attr("rel","sidebar");  
       }  
    }  
      
	$("a.jqbookmark").click(function(event){  
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link  
		var url 	= location.href;
		var title 	= document.title;
		//var url = this.href;  
		//var title = this.title;  
	
		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) { // Opera 7+  
			return false; // do nothing - the rel="sidebar" should do the trick  
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)  
			alert('Unfortunately, this browser does not support the requested action,'  
			+ ' please bookmark this page manually.');  
		}    
	});  
  
});


