function show_metryczka(id){
	
	
	
	
	
	
	$jq('#'+id).show();
	
	
	
	//alert($jq('#boss-type').val());
	
	
}

function hide_metryczka(id){
	
	
	
	
	
	
	$jq('#'+id).hide();
	
	
	
	//alert($jq('#boss-type').val());
	
	
}



function set_boss_type(id){
	
	
	
	
	var t = '';
	if(id == 'wojt'){t = "Wójta";}
	if(id == 'starosta'){t = "Starosty";}
	if(id == 'burmistrz'){t = "Burmistrza";}
	if(id == 'prezydent'){t = "Prezydenta";}
	
	
	
	$jq('#input_boss_imie').attr("title","Imię "+t);
	$jq('#input_boss_nazwisko').attr("title","Nazwisko "+t);
	$jq('#input_boss_telefon').attr("title","telefon "+t);
	$jq('#input_boss_email').attr("title","email "+t);
	$jq('#boss-type').attr("value",id);
	//alert($jq('#boss-type').val());
	
	
}



function displayWindow(url, width, height) {
    var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no');
}


function odkry_odwiedzane(){
	
	
	$jq('#s1').show();
	
	
	
	//alert($jq('#boss-type').val());
	
	
}

function showx(id){
	
	
	
	//alert('pokaz'+id);
	
	if(id == "s1"){
		$jq('#'+id).show();
		$jq('#s2').hide();
		$jq('#s3').hide();
		$jq('#s4').hide();
		
	}else if(id == "s2"){
		
		$jq('#s1').hide();
		$jq('#'+id).show();
		$jq('#s3').hide();
		$jq('#s4').hide();
		
	}else if(id == "s3"){
		
		$jq('#s1').hide();
		$jq('#s2').hide();
		$jq('#'+id).show();
		$jq('#s4').hide();
		
	}else if(id == "s4"){
		
		$jq('#s1').hide();
		$jq('#s2').hide();
		$jq('#s3').hide();
		$jq('#'+id).show();
		
	}
	
	
	$jq('#'+id).show();
	
	
	
	//alert($jq('#boss-type').val());
	
	
}

function showfoto(url,id){
	
	
	
	$jq('#fotka').attr("src",url);
	
	if(id == "foto-1"){
		$jq('#foto-2').attr("class","");
		$jq('#foto-3').attr("class","");
		$jq('#foto-4').attr("class","");
		$jq('#foto-5').attr("class","");
	}else if(id == "foto-2"){
		$jq('#foto-1').attr("class","");
		$jq('#foto-3').attr("class","");
		$jq('#foto-4').attr("class","");
		$jq('#foto-5').attr("class","");
	}else if(id == "foto-3"){
		$jq('#foto-1').attr("class","");
		$jq('#foto-2').attr("class","");
		$jq('#foto-4').attr("class","");
		$jq('#foto-5').attr("class","");
	}else if(id == "foto-4"){
		$jq('#foto-1').attr("class","");
		$jq('#foto-2').attr("class","");
		$jq('#foto-3').attr("class","");
		$jq('#foto-5').attr("class","");
	}else if(id == "foto-5"){
		$jq('#foto-1').attr("class","");
		$jq('#foto-2').attr("class","");
		$jq('#foto-3').attr("class","");
		$jq('#foto-4').attr("class","");
	}
	
	$jq('#'+id).attr("class","selected");

	
	
}


