// -------------------- FLASH VER. CHECKER ---------------

/*
var agt = navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1) || (navigator.appName.indexOf("Opera") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
var rqversion = 6; // pozadovana verzia pluginu
var result = false;
if (ie && win)
{
  document.writeln('<script type="text/vbscript">');
  document.writeln(' On Error Resume Next');
  document.writeln(' result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+rqversion+'"))');
  document.writeln('</script>');
}
if (ns || !win)
{
  if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
  {
    if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1)
    {
      var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1,versionIndex);
      versionIndex = parseInt( versionString );
      if ( versionIndex >= rqversion )
        result = true;
    }
  }
}

*/
// -------------------------------------------------------
function icoreWindowOpen(target,windowName,windowParams) { window.open(target,windowName,windowParams); }





/*
* Bild austauschen
*
* @param string valuewk
* @param string bild
* @param string bild2
* @param string name
*/
function bildwechsel(valuewk, bild, bild2, name)
{
 // 
 if(bild2=='')
 {
  bild2 = bild;
 }
 
 
 tempBild = new Image();
 tempBild.src = bild;
 
 tempBild2 = new Image();
 tempBild2.src = bild2;
 
 var iNN4=false;
 if(navigator.userAgent.indexOf("MSIE")!=-1&&document.all&&!document.getElementById)
 {
  document.getElementById = new Object(document.all);
 }
 
 
 // neues Bild setzen
 document.getElementById("bildBig").src  = tempBild.src;
 document.getElementById("bildBig2").src = tempBild2.src;
 
 
 
 // Farbe für Warenkorb setzen
 document.getElementById("farbewk").value = valuewk;
 
 
 // neuen Namen setzen
 document.getElementById("farbname").innerHTML = "Farbe: " + name;
 
 // neuen Namen setzen2
 //document.getElementById("farbname2").innerHTML = "Farbe: " + name;
}




/**
* Toogle show/hide element
*/

function toggleShow(strID)
{
 //var state = document.getElementById(strID).style.visibility;
 var state = document.getElementById(strID).style.display;
 
 //if(state == "hidden")
 if(state == "none")
 {
  showElement(strID);
 }
 else
 {
  hideElement(strID);
 }
}



/**
* Show Element (by id)
*/
function showElement(strID)
{
 //document.getElementById(strID).style.visibility = "visible";
 document.getElementById(strID).style.display = "block";
}



/**
* Hide element (by id)
*/
function hideElement(strID)
{
 //document.getElementById(strID).style.visibility = "hidden";
 document.getElementById(strID).style.display = "none";
}




/**
* Show Element (by id)
*/
function showElement(strID)
{
 //document.getElementById(strID).style.visibility = "visible";
 
 var stat = document.getElementById(strID).style.display;
 
 if(stat!="block")
 {document.getElementById(strID).style.display = "block";}
}


/**
* Hide element (by id)
*/
function hideElement(strID)
{
 var stat = document.getElementById(strID).style.display;
 
 if(stat=="block")
 document.getElementById(strID).style.display = "none";
}
