jQuery(document).ready(function(){
				  	$('.yui-gf').hoverIntent(function(){
				  	   $(this).css('cursor','pointer');
					   $(this).animate({
					       backgroundColor:'#fdb'
					   },'fast');
					}, function(){
					   $(this).css('cursor','default');
					   $(this).animate({
					   	   backgroundColor:'#fed'
					   },'fast');
					}).click(function(){
						document.location = $('a', this).attr('href');
					});
			    ;
    
		$('#menu_propiedades').click(function(e){
			$('.window').show();
			return false;			
		});
		
		$('body').click(function(e){
			if ((($(e.target).parent().parent().attr('class') || $(e.srcElement).parent().parent().attr('class')) != 'lavaLamp') &&
				(($(e.target).parent().parent().attr('class') || $(e.srcElement).parent().parent().attr('class')) != 'tipos')){
				$('.window').hide();
				$('.current').not('#menu_propiedades').trigger('mouseover');
				setTimeout("$('.current').not('#menu_propiedades').trigger('click')",500);
			}
		});
    	    	    	    	
    ;
$('#nav').find("a").filter(function() { 
	hr = this.href;
 	return (hr == location.href); 
}).parent('li').addClass("current");
//alert($('.lavaLamp .current').length);
if(!$('.lavaLamp .current').length){ $('#menu_propiedades').addClass('current'); }
//alert($('.lavaLamp .current').length);
$(function() { $(".lavaLamp").not('.tipos').lavaLamp({ fx: "easeinout", speed: 500 })});

;
 })
