$(window).load(function () {
	 $(".fade").fadeOut(300);
	 $(".fade").fadeIn(500);
});


$(function() {
		   
	
	/* DRAGGABLE ITEMS */
	$("#draggable_clock").draggable();
	$("#draggable_ball").draggable();
	/* END DRAGGABLE ITEMS */
	
	
	/* BOTTOM MENU */
	$('.ajaxsubs').click(  function()
		{
			var img = document.createElement("img");
			img.src= "/images/loader.gif";
			img.id = 'subImg';
			
			$('#loading').html(img);
			
			_path = this.href;
			$.get(_path,{external:1,itpl:'default/subcontent.tpl.html'}, function(data){$('#subcnt').html(data);})
			$('.ajaxsubs').removeClass('botmenu_act');
			$(this).addClass('botmenu_act');
			
			return false;
		});
	
	$('.ajaxsubs:first').trigger("click");
	/* END BOTTOM MENU */
	
	
		var m = $("#triggers")   
			
		if(m.length)
		{   
			$("#triggers a").overlay({
			target: '#gallery',
			expose: '#f1f1f1'
			}).gallery({speed: 800});
		}	
});
function reloadCaptcha(path)
{
	$("#captImage").attr('src','/kcaptcha/index.php?chk='+Math.random(150000));
}