/**podmiana  naglowkow */
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
 x = navigator.plugins["Shockwave Flash"];
  if (x)
  {
   flashinstalled = 2;
   if (x.description)
   {
   y = x.description;
   flashversion = y.charAt(y.indexOf('.')-1);
   }
  }
  else
  flashinstalled = 1;
  if (navigator.plugins["Shockwave Flash 2.0"])
  {
   flashinstalled = 2;
   flashversion = 2;
  }
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
  x = navigator.mimeTypes['application/x-shockwave-flash'];
  if (x && x.enabledPlugin)
  flashinstalled = 2;
  else
  flashinstalled = 1;
}
else {
MSDetect = "true";
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('If MSDetect = "true" Then \n');
document.write(' For i = 2 to 6 \n');
document.write('  If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then \n');
document.write('  Else \n');
document.write('   flashinstalled = 2 \n');
document.write('   flashversion = i \n');
document.write('  End If \n');
document.write('  Next \n');
document.write(' End If \n');
document.write('  If flashinstalled = 0 Then \n');
document.write('   flashinstalled = 1 \n');
document.write(' End If \n');
document.write('</SCR' + 'IPT\> \n');
}

if (flashversion >= 6 && document.getElementById) {
document.write('<style type="text/css">');
document.write('.flash { visibility: hidden; }');
document.write('.flash object { visibility: visible; }');
document.write('</style>');
}

function replaceThem(h, film, szer, wys, kolor, kolor_t) {
 if(document.getElementById && flashversion >= 6) {
  var x=document.getElementsByTagName(h);
  for (var i=0;i<x.length;i++) {
   if (x[i].className == "flash") {
   newCode = '<object data="'+film+'" width="'+szer+'" height="'+wys+'" type="application/x-shockwave-flash"><param name="movie" value="'+film+'" /><param name="quality" value="high" /><param name="bgcolor" value="#'+kolor+'" /><param name="menu" value="false" /><param name="flashVars" value="txt='+x[i].firstChild.nodeValue+'&kolor_t='+kolor_t+'" /><param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" /></object>';
    x[i].innerHTML = newCode;
   }
  }
 }
}

/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}


function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function selecturl(s) {
var gourl = s.options[s.selectedIndex].value;        
window.top.location.href = gourl;
}
