function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
					}
	}
}





function pokaz() {
showdiv('baner');

}
function schowaj() {
hidediv('baner');
hidediv('adres');
}

function pokaz2()
{
showdiv('baner');
showdiv ('adres')

}

function schowaj2() {
showdiv('baner');
hidediv('adres');

}




function sprawdz(){

if (document.getElementById('v1').checked == true)
{schowaj();}
else if (document.getElementById('v2').checked == true)
{pokaz2();}
else if (document.getElementById('v3').checked == true)
{
schowaj();
pokaz();}
}

function _delete(e,a) {
    if(window.confirm('Napewno chcesz usunac?'))
        window.location=a.parentNode.href;
    return false;
}


$(document).ready(function() {
		$(".topMenuAction").click( function() {
			if ($("#openCloseIdentifier").is(":hidden")) {     $("#slider").animate({ marginLeft: "-330px"}, 500 );
				$("#topMenuImage").html('<img src="images/arrowP.png" alt="close" />');
				$("#openCloseIdentifier").show();
        	} else {
					$("#slider").animate({                    
					marginLeft: "0px"
					}, 500 );
				$("#openCloseIdentifier").hide();
        $("#topMenuImage").html('<img src="images/arrowL.png" alt="open" />');
				
			}
		});
    
    $(document).ready(function() {
		$(".topMenuAction2").click( function() {
			if ($("#openCloseIdentifier2").is(":hidden")) {     $("#slider2").animate({ marginLeft: "-212px"}, 500 );
				$("#openCloseIdentifier2").show();
        	} else {
					$("#slider2").animate({                    
					marginLeft: "0px"
					}, 500 );
				$("#openCloseIdentifier2").hide();

				
			}
		});  
	});    
      
	});    
