function token(){
	var now = new Date();
	return now.getDate() + now.getMonth() + now.getFullYear() + now.getHours() + now.getSeconds();
}

function dialog( text , closer ){
	$('body').css('overflow','hidden');
	if(closer) $('body').append("<table id='js_dialog_handler' align='center' onclick='closeDialog()'><tr><td align='center'></td></tr></table>");
	else $('body').append("<table id='js_dialog_handler' align='center'><tr><td align='center'></td></tr></table>");
	$('#js_dialog_handler td').html( text );
	$('#js_dialog_handler td').append("<div class='closer' onclick='closeDialog()'>Kliknij by zamknąć okno</div>");
	$('#js_dialog_handler').fadeIn('slow');
}

function closeDialog(){
	$('body').css('overflow','auto');
	RemoveElement('js_dialog_handler');
}
function decodeForIE( string ){
	var farray = new Array(/ą/g,/Ą/g,/ę/g,/Ę/g,/ć/g,/Ć'/g,/ł/g,/Ł/g,/ó/g,/Ó/g,/ń/g,/Ń/g,/ś/g,/Ś/g,/ż/g,/Ż/g,/ź/g,/Ź/g);
	var sarray = new Array('[[a1]]','[[a2]]','[[e1]]','[[e2]]','[[c1]]','[[c2]]','[[l1]]','[[l2]]','[[o1]]','[[o2]]','[[n1]]','[[n2]]','[[s1]]','[[s2]]','[[z1]]','[[z2]]','[[z3]]','[[z4]]');
	for (var i=0; i<farray.length; i++) {
		string = string.replace(farray[i], sarray[i]);
	}
	
		return string;
}
function confirmation(link,info){if(confirm(info)){window.location=link;}}
function RemoveElement( id ){$('#'+id).remove();}	
$(function(){$('.block').hover(function(){$(this).css('background','url(img/white_transparent.png)');},function(){$(this).css('background','');});});
