$(function(){
	$('.inner').corner({tl: { radius: 5 },tr: { radius: 5 },bl: { radius: 5 },br: { radius: 5 }});
	$('.c').corner();
});

$(document).ready(function(){

	Shadowbox.init();
	// check for what is/isn't already checked and match it on the fake ones
	$("input:checkbox").each( function() {
		(this.checked) ? $("#fake"+this.id).addClass('fakechecked') : $("#fake"+this.id).removeClass('fakechecked');
	});
	// function to 'check' the fake ones and their matching checkboxes
	$(".fakecheck").click(function(){
		($(this).hasClass('fakechecked')) ? $(this).removeClass('fakechecked') : $(this).addClass('fakechecked');
		$(this.hash).trigger("click");
		return false;
	});

	//function to replace default value of search field with empty value
	$("#szukaj").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	//...and vice versa
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
});