/* Start Misc Function */
	
	var bName = navigator.appName;
	var bVer = navigator.appVersion;
	if(bVer.indexOf('MSIE 6.0') > 0) var ver = "ie6";

	function clearDefault(el){
		if(el.defaultValue==el.value)el.value = "";
	}
	function makeDefault(el){
		if(el.value=="")el.value = el.defaultValue;
	}	
	
	function showAjaxLoading(divToShow){
		$(divToShow).html("<div id='ajaxLoading'><img src='img/default/ajaxLoader.gif' /></div>");
	}	
	
	function detailPropertyView(idProperty){
		$('html').scrollTo( {top:'0px', left:'0px'}, 750, { onAfter: function(){
			$('#idPropertyDetail').val(idProperty);
			$('#detailPropertyForm').submit();
		} } );
	}
	
	function zIndexFixing(){
		if($.browser.msie){
			$('div').each(function(i) {
				if($(this).css('position')!='absolute') $(this).css('zIndex', 1000 - (i * 10));
			});
		}
	}
	
/* Start Misc Function */

	$(window).bind('load', function(){
		/* $(document).pngFix(); */
		$('#imageProminent').toggle(
			  function () { $(this).fadeOut('slow', function(){ $(this).removeAttr('src').attr('src', 'img/default/linkDetail.jpg').fadeIn('slow');}) },
			  function () { $(this).fadeOut('slow', function(){ $(this).removeAttr('src').attr('src', 'img/default/destacado_prueba.jpg').fadeIn('slow');}) }
		);
	});
