// JavaScript Document
// JavaScript Document
// ------------- zobrazení I-layeru ----------------------------
swfobject.registerObject("flashcontent", "9.0.0");

function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return null;
}

function winW() {
   if (window.innerWidth)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientWidth)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerWidth */
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientWidth;
   else
      return null;
}

function showSWF(){
var swfDiv = document.getElementById("flashDiv");
sirka = winW();
vyska = winH();
swfDiv.style.display = "block";
swfDiv.style.top = "370px";
swfDiv.style.left = sirka/2 - 320 + "px";
}
function hideSWF(){
var swfDiv = document.getElementById("flashDiv");
swfDiv.style.display = "none";
}
// -------------------------------------------------------------



function showESS() {
div=document.getElementById("ESS");
div.style.display = "block";
}

function prejdi(){
if (document.select.Strany.options[document.select.Strany.selectedIndex].value != "" ) {window.location=document.select.Strany.options[document.select.Strany.selectedIndex].value;
}
}

function confirmation1(ID) {
if (confirm("Opravdu chcete odstranit toto zboží z košíku? Proces je nevratný.")) {
window.location = "nakupni-kosik.php?Akce=delete&ID="+ID;
}
}

function confirmation2() {
if (confirm("Opravdu chcete vyprázdnit celý nákupní košík? Proces je nevratný.")) {
window.location = "nakupni-kosik.php?Akce=drop";
}
}

function zobraz(ID) {
var kat = 'kat' + ID;
var subkat = 'subkat' + ID;
kat=document.getElementById(kat);
subkat=document.getElementById(subkat);
if (kat.style.display == '') {kat.style.display = 'block'}
if (kat.style.display == 'none') {
kat.style.display = 'block';
subkat.style.background = 'url(../images/kategory_minus.gif) left center no-repeat'; 
}
else {
kat.style.display = 'none';
subkat.style.background = 'url(../images/kategory_plus.gif) left center no-repeat'; 
}
}

