<!--
function popImage(url,windowTitle,windowName,closeOnClick,width,height,t){
	closeOnClick=true;
	if(!url)return
	function readSize(){if(t.complete)showPopup(t.width,t.height);else setTimeout(readSize,1e2)}
	function showPopup(w,h){with(window.open('',windowName||'','width='+(width||w)+',height='+(height||h)).document){open();write('<html><head><title>'+(windowTitle||'')+'</title></head><body onBlur="self.close()" style="margin:0;padding:0"><img src="'+url+'" style="display:block'+(closeOnClick?';cursor: pointer" onclick="self.close()" title="Zamknij okno"':'"')+'></body></html>');close()}}
	if(!width||!height)t=new Image(),t.src=url,readSize()
	else showPopup(width,height)
}

function popup(mylink) 
{
	if (!window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, 'Popup', 'width=636,height=400,scrollbars=yes');
	return false;
}

/*
Form2Pop Script- By Peter Bailey (http://www.peterbailey.net)
Featured on JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
*/

function createTarget(sTarget,sWhat,sOptions){
	window.open(sWhat, sTarget, sOptions);
	return false;
}

function clearInput(hInputName)
{
	if($("input[@name="+hInputName+"]").val() == 'Wypełnij pole!'){
		$("input[@name="+hInputName+"]").val('');
		$("input[@name="+hInputName+"]").css("color","#A8A8A8");
	}
}

function clearTextarea(hTextareaName)
{
	if($("textarea[@name="+hTextareaName+"]").val() == 'Wypełnij pole!'){
		$("textarea[@name="+hTextareaName+"]").val('');
		$("textarea[@name="+hTextareaName+"]").css("color","#A8A8A8");
	}
}

function initializeFancyBoxImages()
{
	jQuery("a.fancyBoxImage").fancybox({
		'zoomSpeedIn':	500,
		'zoomSpeedOut':	300,
		'overlayShow':	true,
		'hideOnContentClick': true
	});
}

function initializeInputFocusEffect(sInputName, sText)
{
	jQuery("input[name='"+sInputName+"']").attr('value', sText);
	jQuery("input[name='"+sInputName+"']").focus(function()
		{
			jQuery("input[name='"+sInputName+"']").attr('value','');
		}
	)
	jQuery("input[name='"+sInputName+"']").blur(function()
		{
			if (!jQuery("input[name='"+sInputName+"']").attr('value')) {
				jQuery("input[name='"+sInputName+"']").attr('value', sText);
			}
		}
	)
}

function initializeChangeInformationLanguage(){
	//jQuery("#pl").hide();
	
	jQuery(".flagLink").click(
		function()
		{
			var sId = jQuery(this).attr("id");
			jQuery(".langDiv").hide();
			jQuery("#div" + sId).fadeIn();
			jQuery(".langTitle").hide();
			jQuery("#title" + sId).fadeIn();
			jQuery(".flagLink").fadeIn();
			jQuery(this).hide();
		}
	);
	
}

function FAQ()
{
	jQuery(".question a").click(
		function() {
			jQuery(this).parent().children(".answer").toggle(200);
			if (jQuery(this).css("color") == "rgb(0, 0, 0)") {
				jQuery(this).css("color", "#AD0D47");
			} else {
				jQuery(this).css("color", "#000");
			}
			return false;
		}
	)
}

function certyficates()
{
	jQuery("a.certyficatesImage").click(
		function() {
			jQuery("#bigCertyficate").attr('src', jQuery(this).attr('href'));
			iCertyficatesCounter = jQuery(this).attr("id");
			return false;
		}
	);
	jQuery("#bigCertyficate").mouseover(
		function()
		{
			clearInterval(hCertyficatesInterval);
		}
	);
	jQuery("#bigCertyficate").mouseout(
		function()
		{
			hCertyficatesInterval = setInterval("autoChangeCertyficate();", 5000);
		}
	);
}

function autoChangeCertyficate()
{
	if (iCertyficatesCounter < iAllCertyficates) {
		iCertyficatesCounter++;
	} else {
		iCertyficatesCounter = 1;
	}
	jQuery("#bigCertyficate").attr('src', jQuery("#"+iCertyficatesCounter).attr('href'));
}


/*** JQUERY ***/

var iCertyficatesCounter = 1;
var iAllCertyficates = 10;
var hCertyficatesInterval = null;

jQuery.noConflict();

jQuery(document).ready(function() {
//	externalLinks();
	/*** FANCY BOX ***/
	initializeFancyBoxImages();
	
	initializeInputFocusEffect("newsletter", "Wpisz swój adres e-mail");
	initializeChangeInformationLanguage();
	
	externalLinks();
	certyficates();	
	hCertyficatesInterval = setInterval("autoChangeCertyficate();", 5000);
	
	
	FAQ();
	
		
});

-->