/******************************
Wszelkie prawa zastrzeżone © 2011 Aleksander Zawalich
Usuwanie tego komentarza jest zabronione i równoważne ze złamaniem licencji!
*******************************/
/*
function CheckVotes(str)
{
if (str=="")
  {
  document.getElementById("box4").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("box4").innerHTML=xmlhttp.responseText;
		$("document").ready(function(){
	$(".percent").show("slow");});
    }
  }
xmlhttp.open("GET","sonda/check.php?x=" + str ,true);
xmlhttp.send();
}

function Showinput(str)
{
var user_input;
for (i=0;i<document.forms[0].vote.length;i++) {
    if (document.forms[0].vote[i].checked) {
    user_input = document.forms[0].vote[i].value;
    }
if (str=="")
  {
  document.getElementById("box").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("box").innerHTML=xmlhttp.responseText;
			$("document").ready(function(){
	$(".percent").show("slow");
	});
    }
  }
xmlhttp.open("GET","sonda/form2.php?polls=" + document.form.polls.value + "&vote=" + user_input  ,true);
xmlhttp.send();
CheckVotes(document.form.polls.value);
}
}

function ShowAnswers(str)
{

if (str=="")
  {
  document.getElementById("box2").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
 if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("box2").innerHTML=xmlhttp.responseText;
			$("document").ready(function(){
	$(".percent").show("slow");
	});
    }
  }
xmlhttp.open("GET","sonda/script6.php?a=" + str ,true);
xmlhttp.send();
}

function ShowResults(str)
{

if (str=="")
  {
  document.getElementById("box2").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
 if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("box2").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","sonda/script2.php?a=" + str ,true);
xmlhttp.send();
}
*/

function mapaStart()   
{   
var mapa;
var wspolrzedne = new google.maps.LatLng(53.08886,21.574584);
var opcjeMapy = {
		zoom: 17,
		center: wspolrzedne,
		disableDefaultUI: true,
    //navigationControl: false,
		//mapTypeControl: false,
		mapTypeId: google.maps.MapTypeId.HYBRID
};
mapa = new google.maps.Map(document.getElementById("mapka"), opcjeMapy); 		
var punkt  = new google.maps.LatLng(53.08886,21.574584);
var opcjeMarkera =
{
		position: punkt,
		map: mapa,
		title: "I Liceum Ogólnokształcące im. Gen. Józefa Bema w Ostrołęce"
}
var marker = new google.maps.Marker(opcjeMarkera);
} 	    

	$("document").ready(function(){
	
//var new_poll = document.form.polls.options[0].text;
//		document.getElementById("ogl").innerHTML= new_poll;
		
		$(".container2").css("margin-top", "18px");
  $(".szkola").hover(
   function(){
    $(".container2").fadeToggle(200);}
   , function(){
    $(".container2").fadeToggle(200);});
				});
	//	$('#activate').click(function() {  $('.box5').css('display','inline').show("slow"); $('#activate').css('display','none'); $('#activate_hide').css('display','inline'); });
		
	//	$('#activate_hide').click(function() {  $('.box5').hide("slow"); $('#activate_hide').css('display','none'); $('#activate').css('display','inline'); });
