//alert("Loading ... default.js")';
function onAClick(ob){
	$("div#"+ob.attr("rel")).fadeTo(150, 0.5,function() {
		$(this).addClass("ajax_loading");
	});
	
	$("div#"+ob.attr("rel")).load(Url.decode(ob.attr("href")), function(){
		$(this).fadeTo(70, 1,function() {
			$(this).removeClass("ajax_loading");
		});
	if (debug_mode == 1) {	
		alert("You clicked a link with the href:"+ob.attr("href"));
		$("div#_debug").load("?zone=_debug");
	//	alert("Debug mode");
	 } else {
	//	alert ("No debug mode");
	 }
	});
	ob.blur();
	return false;
                 
}

function loadZoneByAjax(ur,zn,focus_zone){
	$("div#"+zn).fadeTo(50, 0.5,function() {
		$(this).addClass("ajax_loading");
	});
	alert(ur);
	$("div#"+zn).load(ur, function(){
		$(this).fadeTo(50, 1,function() {
			$(this).removeClass("ajax_loading");
		});
		if (debug_mode == 1){
			$("div#_debug").load("?zone=_debug");
		//	alert ("Debug mode");
		} else {
		//	alert ("No debug mode");
		}
		if (focus_zone == 1){
			
			$(this).focus();
		}
	});
}

function onAClickSimp(el){
	//alert(el.href);
	loadZoneByAjax(el.href,el.rel);
	el.blur();
	//alert(el.href+"SSS");
	return 0;
}


jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}