    $(document).ready(function(){                        
               $("#buttonHide").toggle(
                       function(){ $("#notifyList").css({display:"block"}); },function(){ $("#notifyList").css({display:"none"}); }
           
               );
           }
       )    
function setEntriesUrl(entriesId){
	
	var current_url = document.location;
	var stringUrl = new String(current_url);
	
	
	var temp = stringUrl.indexOf('#');
	
	var url_array = stringUrl.split('_');
	var arrayLenght = url_array.length;
	var stringUrlLenght = stringUrl.length;
	var currentEntriesId = url_array[arrayLenght-1];
	var idLenght = currentEntriesId.length;
	
	var newStringUrl = stringUrl.substr(0,temp);	
	newStringUrl = newStringUrl.substr(0,stringUrlLenght);	
	
	if(stringUrl.indexOf('wpis') > 0){
		
		if(entriesId == -1 && stringUrl.indexOf('#') > 0 && stringUrl.indexOf('formularz') < 0 && stringUrl.indexOf('comments') < 0){
			
			preloader('content');
			
			var newEntryId = stringUrl.substr(temp+1,stringUrlLenght);	
			xajax_entriesContent(newEntryId,'','0');
			document.location = newStringUrl+'#'+newEntryId;
	
		} else if(entriesId != -1) {				
			document.location = newStringUrl+'#'+entriesId;
		}
	}
		
}
function preloader( id ){

	var el = document.getElementById( id );

	if (el) {
		el.innerHTML = '<span>Ładuje dane ...</span>';
	}	
}
function preloaderPoll( id ){

	var el = document.getElementById( id );

		if (el) {
			el.style.display = 'block';
			el.innerHTML = '<img src="/public/gfx/ajax_loader_bulb.gif" />';
		}
}

function tabSwitch(id){
	
	var selected = document.getElementById(id);
	
	for(i=1;i<=4;i++){
		
		var elId = 't'+i;
		
		var el = document.getElementById( elId );		
		el.className = 'test';
	}
	
	selected.className = 'active';
	
}

function getElsz(id) {

	return document.getElementById(id);

}

function szukaj_w() {

	if (getElsz('wordsz').value == '') {
		getElsz('wordsz').value = 'wpisz słowo lub frazę';
	}
	getElsz('formSzukajsz').action = getElsz('formSzukajsz').action + getElsz('wordsz').value;
}


function getEl(id) {

	return document.getElementById(id);

}

function szukaj_w_blogu() {

	if (getEl('word').value == '') {
		getEl('word').value = 'wpisz słowo lub frazę';
	}
	getEl('formSzukaj').action = getEl('formSzukaj').action + getEl('word').value;
}

function getElsz(id) {

	return document.getElementById(id);

}

function szukaj_w() {

	if (getElsz('wordsz').value == '') {
		getElsz('wordsz').value = 'wpisz słowo lub frazę';
	}
	getElsz('formSzukajsz').action = getElsz('formSzukajsz').action + getElsz('wordsz').value;
}


function getEl(id) {

	return document.getElementById(id);

}

function szukaj_w_blogu() {

	if (getEl('word').value == '') {
		getEl('word').value = 'wpisz słowo lub frazę';
	}
	getEl('formSzukaj').action = getEl('formSzukaj').action + getEl('word').value;
}

function getEl2(id) {

	return document.getElementById(id);

}

function szukaj_w_blogu2() {

	if (getEl2('word2').value == '') {
		getEl2('word2').value = 'wpisz słowo lub frazę';
	}

	getEl2('formSzukaj2').action = getEl2('formSzukaj2').action + getEl2('word2').value;
}


function ajax_progres_bulb(obj) {
	
	obj.className = 'ajax_progress_bulb';
	
}