// onComplete:function(request, json){Element.hide('indicator_models');}, onLoading:function(request, json){Element.show('indicator_models')

var current = new Array();

function rotateSideblogEntry(aside_category, content_ID){


	if(current[aside_category]==null){
		current[aside_category] = 1;
	}

	element_ID = 'sideblog_content_'+aside_category;

	new Ajax.Updater(
		{success: element_ID},
		'/fetch-next.php?post='+content_ID+'&category='+aside_category+'&i='+current[aside_category]++,
		{asynchronous:true, evalScripts:false, onLoading: function(request, json){Effect.Fade(element_ID, {to:0.1});},onComplete: function(request, json){Effect.Appear(element_ID);}}
	);

	return false;
}



function subscribe(email){

    if(email == ''){
        alert('Hibás e-mail cím!');
        return false;
    }
	element_ID = 'subscribe';

	new Ajax.Updater(
		{success: element_ID},
		'/subscribe.php?email='+email,
		{asynchronous:true, evalScripts:false, onLoading: function(request, json){Effect.Fade(element_ID, {to:0.1});},onComplete: function(request, json){Effect.Appear(element_ID);}}
	);

	return false;

}

