function pokaz_regulamin(src){   window.open(src,"name","HEIGHT=600,WIDTH=670,scrollbars=1,resizable=0,toolbar=0,menubar=0,directories=0");}

function pokaz_dodawanie_dokumentow(rodzaj_lokaty)
{
	if(rodzaj_lokaty == 3)
		document.getElementById('porady_on_line_dokumenty').style.display = 'block';
	else
		document.getElementById('porady_on_line_dokumenty').style.display = 'none';
}

function pokaz_pole_dane_do_faktury()
{
	var stan = document.getElementById('porady_on_line_faktura_vat').checked;
	if(stan == true)
		document.getElementById('porady_on_line_wyswietl_pole_dane_do_faktury').style.display = 'block';
	else
		document.getElementById('porady_on_line_wyswietl_pole_dane_do_faktury').style.display = 'none';
}

$(function() {
 $("#click").click(function(){location.href = language_contact_link });
 $('.picture a').lightBox({fixedNavigation:true});
 
 var col = '#1C578B';
 var col_hover = '#a9cae8';  
 
 $(".picture").hover(function () {
      $(this).css({'border-bottom-color' : col, 'border-left-color' : col, 'border-top-color' : col, 'border-right-color' : col });
    }, function () {
      var cssObj = {
        'border-bottom-color' : col_hover, 'border-left-color' : col_hover, 'border-top-color' : col_hover, 'border-right-color' : col_hover
      }
      $(this).css(cssObj);
    });
 
 
  $(".product-picture").hover(function () {
      $(this).css({'border-bottom-color' : col, 'border-left-color' : col, 'border-top-color' : col, 'border-right-color' : col });
    }, function () {
      var cssObj = {
        'border-bottom-color' : col_hover, 'border-left-color' : col_hover, 'border-top-color' : col_hover, 'border-right-color' : col_hover
      }
      $(this).css(cssObj);
    });
  
  
 $(".zdjecie").hover(function () {
      $(this).css({'border-bottom-color' : col, 'border-left-color' : col, 'border-top-color' : col, 'border-right-color' : col });
    }, function () {
      var cssObj = {
        'border-bottom-color' : col_hover, 'border-left-color' : col_hover, 'border-top-color' : col_hover, 'border-right-color' : col_hover
      }
      $(this).css(cssObj);
    });
 
 $('.picture_galeria a').lightBox({fixedNavigation:true});
});

$(document).ready(function($)
{
  $('a[rel*=facebox]').facebox();
  
  $("body").append("<div id='opaque' style='display: none;'></div>");
  
  $(document).bind('loading.facebox', function() {
	$("#opaque").show();
  });
  $(document).bind('close.facebox', function() {
	$("#opaque").hide();
  });
  $(document).bind('afterReveal.facebox', function() {
	$("#opaque").height($(document).height());
  });
})

var dWindow=null;
function make_email(before)
{
	var eMail=before+"@"+'doradcy-prawni.com';
	
	if((dWindow==null)||(dWindow.closed)) {
		dWindow=window.open("mailto:" + eMail, "mailWindow","menubar=no,dependent=yes,width=1,height=1");
		dWindow.document.writeln();
		var tC = setTimeout("dWindow.close();",1);
	}
	return true;
}

Cufon.replace('h1');
Cufon.replace('.item a', { hover: true });
Cufon.replace('.item-active a', { hover: true });

