function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

$(function(){$(document).pngFix();});
$(function()
{
    var based = $('#base').html();
    // alert(based);
	$('#suburbs').chainSelect('#property_category',based + 'properties/ajax_categories_search',
	{ 
		before:function (target) //before request hide the target combobox and display the loading message
		{ 
			$("#search_loader").css("display","block");
			//$(target).css("display","none");
		},
		after:function (target) //after request show the target combobox and hide the loading message
		{ 
			$("#search_loader").css("display","none");
			//$(target).css("display","inline");
		}
	});

});
