var adres = "http://www.mpips.gov.pl"

function zmien(wybor)
  {if (wybor==0) { nazwa="./graf/mpips.gif"; adres="http://www.mpips.gov.pl" }
   if (wybor==1) { nazwa="./graf/psz.gif"; adres="http://www.psz.praca.gov.pl" }
   if (wybor==2) { nazwa="./graf/wup.gif"; adres="http://www.wup.kielce.pl" }
   if (wybor==3) { nazwa="./graf/starostwo.gif"; adres="http://www.opatow.pl" }
   if (wybor==4) { nazwa="./graf/usc.gif"; adres="http://www.usc.gov.pl" }
   if (wybor==5) { nazwa="./graf/pip.gif"; adres="http://www.pip.gov.pl" }
   if (wybor==6) { nazwa="./graf/zus.gif"; adres="http://www.zus.pl" }
   if (wybor==7) { nazwa="./graf/wku.gif"; adres="http://www.sandomierz.wku.wp.mil.pl" }
   if (wybor==8) { nazwa="./graf/hrc.gif"; adres="http://www.hrc.pl" }
   if (wybor==9) { nazwa="./graf/i-praca.gif"; adres="http://www.i-praca.pl" }
   if (wybor==10) { nazwa="./graf/jobs.gif"; adres="http://www.jobs.pl" }
   if (wybor==11) { nazwa="./graf/jobpilot.gif"; adres="http://www.jobpilot.pl" }
   if (wybor==12) { nazwa="./graf/pracuj.gif"; adres="http://www.pracuj.pl" }
   if (wybor==13) { nazwa="./graf/topjobs.gif"; adres="http://www.topjobs.pl" }
   if (wybor==14) { nazwa="./graf/PTWPp.gif"; adres="http://www.praca.wnp.pl" }
   if (wybor==15) { nazwa="./graf/PTWPs.gif"; adres="http://www.portalspozywczy.pl/praca" }
   if (wybor==16) { nazwa="./graf/webjobs.gif"; adres="http://www.webjobs.pl" }
   if (wybor==17) { nazwa="./graf/career.gif"; adres="http://www.careerjet.pl" }
   if (wybor==18) { nazwa="./graf/ep.gif"; adres="http://www.ep-personel.com" }
   if (wybor==19) { nazwa="./graf/idn.gif"; adres="http://www.idn.org.pl" }
   if (wybor==20) { nazwa="./graf/publ.gif"; adres="http://www.publiczni.pl/praca" }
   if (wybor==21) { nazwa="./graf/gazeta.gif"; adres="http://praca.gazeta.pl" }
   if (wybor==22) { nazwa="./graf/onet.gif"; adres="http://praca.onet.pl" }
   if (wybor==23) { nazwa="./graf/wp.gif"; adres="http://praca.wp.pl" }
   if (wybor==24) { nazwa="./graf/gratka.gif"; adres="http://praca.gratka.pl" }
   if (wybor==25) { nazwa="./graf/sejm.gif"; adres="http://www.sejm.gov.pl" }
   if (wybor==26) { nazwa="./graf/lex.gif"; adres="http://www.prawo.lex.pl" }
   document.images["obrazek"].src=nazwa }


function go1(){
  if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") 
  {location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value}
}

function go2(){
  if (document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value != "none") 
  {location = document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value}
}

function go3(){
  if (document.selecter3.select3.options[document.selecter3.select3.selectedIndex].value != "none") 
  {location = document.selecter3.select3.options[document.selecter3.select3.selectedIndex].value}
}

function go4(){
  if (document.selecter4.select4.options[document.selecter4.select4.selectedIndex].value != "none") 
  {location = document.selecter4.select4.options[document.selecter4.select4.selectedIndex].value}
}

function go5(){
  if (document.selecter5.select5.options[document.selecter5.select5.selectedIndex].value != "none") 
  {location = document.selecter5.select5.options[document.selecter5.select5.selectedIndex].value}
}

function displayWindow(url, width, height) {
  var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=no,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no' );
}


var isNav2 = ((navigator.userAgent.indexOf('compatible') == -1) &&
             (navigator.appVersion.charAt(0) == "2"));
var isIE = (navigator.userAgent.indexOf('IE') != -1);
var isNetscape = (navigator.userAgent.indexOf('compatible') == -1);
var isNet6 = ((navigator.userAgent.indexOf('Gecko') != -1) && 
             (navigator.userAgent.indexOf('Netscape6') != -1));
if(isIE) {
   var shwScr = true;                         
   var shwClk = true;
} else {
   var shwScr = false;
   var shwClk = false;
}

function DigitalTime() {
  if (!document.layers && !document.all) return;
  if (!shwClk) return;

  var DigitalClock = new Date();
  var hours = DigitalClock.getHours();
  var minutes = DigitalClock.getMinutes();
  var seconds = DigitalClock.getSeconds();
  var day = DigitalClock.getDate();
  var days=new Array("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota");
  var months=new Array("I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII");
  var dayofWeek = days[DigitalClock.getDay()];
  var month = months[DigitalClock.getMonth()];

  if (hours == 0) hours = 24;
  if (minutes <= 9) minutes = "0" + minutes;
  if (seconds <= 9) seconds = "0" + seconds;

  digclock = "<TABLE BORDER=0 WIDTH=130 CELLPADDING=0 CELLSPACING=0 ALIGN=center><TR><TD ALIGN=center class=baner WIDTH=130>" + dayofWeek +" "+ day +" "+ month +" 2012</TD></TR></TABLE>";

  setTimeout("DigitalTime()", 1000)
  if (document.layers) {
      document.layers.liveclock.document.write(digclock);
      document.layers.liveclock.document.close();
  } else if (document.all && !(navigator.appVersion.indexOf("Mac") != -1)) liveclock.innerHTML = digclock;
}

function load() {
if (GBrowserIsCompatible()) {
         var map = new GMap2(document.getElementById("map"));
         map.addControl(new GLargeMapControl());
         var MapTypes = map.getMapTypes();
         MapTypes[0].getName= function() { return "Mapa";}
         MapTypes[1].getName = function() { return "Satelitarna";}
         MapTypes[2].getName = function() { return "Hybrydowa";}
         map.addControl(new GMapTypeControl());
         map.addControl(new GOverviewMapControl());
         map.addControl(new GScaleControl());
         map.enableContinuousZoom();
         map.enableDoubleClickZoom();
         map.setCenter(new GLatLng(50.80137829249085, 21.423683166503906), 15);
         var info='<div style="background-color: #fff; width: 200px; font-size: 11px; FONT-FAMILY: Verdana, Tahoma, Arial, Sans-Serif;"><B>PUP Opat&#243;w</B><hr>ul. Partyzant&#243;w 13<BR>27-500 Opat&#243;w <hr><B>GPS</B> N: 50&deg; 47&#39; 51&#34; &nbsp;E: 21&deg; 25&#39; 29&#34; </div>';
         var point = new GLatLng(50.79776401895866, 21.424949169158936);
         var marker = new GMarker(point);
         GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(info);
         });
         map.addOverlay(marker);
         marker.openInfoWindowHtml(info);

}
}
