// JavaScript Document
/* test przegladarki*/
 function nav(){
   		 if($.browser.msie){
		nav=("MSIE")
		}
		else if($.browser.mozilla ){
		nav=("Mozilla")
		}
		else if($.browser.opera ){
		nav=("Opera")
		;}
		return nav;
	}
  



function showhide(el, toHide){

/* document.getElementById(toHide).style.display = el.checked ? "block" : "none";*/
var hidden=document.getElementById(toHide);
	if(el.checked)$(this).find(hidden).slideDown("fast") 
  else          $(this).find(hidden).slideUp("fast");

}

function taknie(o){

  var stan = (o.value=='1') ? false : true;
  f = o.form.elements;
  n = o.name;
  j=false;
  for(i=0; i<f.length; i++)
  {
    if(f[i].name == n && f[i].type== 'text') 
    {
   // alert(n);
      f[i].disabled = stan;
      if(j)return;
      j = true;
    }
  }  
}
function ch_lang(o){

  var stan = (o.checked) ? false : true;
  f = o.form.elements;
  n = o.value;
  j=0;

  for(i=0; i<f.length; i++)
  {
    if(f[i].name == 'jezyk_'+n )//&& f[i].type== 'checkbox') 
    {
    //alert(n);
      f[i].disabled = stan;
      if(j>1)return;
      j++;
    }
  }  
}
 /* formularz*/
$(document).ready(function () {
			 $("#pasek_top").show("slow");
			 $("#pasek_white").hide("slow");
			 
	
	
	
 $(".over").mouseover(function(){
 		$(this).fadeTo("fast", 0.7)
		}
	);
 $(".over").mouseout(function(){	
 		$(this).fadeTo("fast", 1)
		
		}
		);
 $("#download table tr").mouseover(function(){
 		$(this).addClass("grey")
		}
	);
 $("#download table tr").mouseout(function(){	
 		$(this).removeClass("grey")
		
		}
		);
 
		
/*$(".job").not(".data").toggle(
				function(){$(this).hide("slow")},
				function(){$(this).show("slow")}
				);
							
*/

/* ramki checkboxów dla opery*/
var cssObj={
	   border:"solid #ccc 1px",
	   marginRight:"5px"
}
var cssObj2={
	   top:"-1px",
	   marginRight:"5px"
}

if(nav()=='Opera'){
	   $("input.checkbox").css(cssObj);
	   $(".pasek2 input:checkbox").css(cssObj2);
}
    });

