// JavaScript Document


/*** Affiche Flash sinon Jpeg ***/
var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}return false}();

/*** Taget _blank W3C valide***/
function lien(monLien) {
window.open(monLien, '_blank');
return false;
}
/*** gestion transparence png sous IE***/
function correctPNG(){
    for(var i=0; i<document.images.length; i++){
        var img = document.images[i]
        var imgName = img.src.toUpperCase()
        if(imgName.substring(imgName.length-3, imgName.length) == "PNG"){
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText
            var imgAttribs = img.attributes;
            for(var j=0; j<imgAttribs.length; j++){
                var imgAttrib = imgAttribs[j];
                if(imgAttrib.nodeName == "align"){
                if(imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
                if(imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
                break}}
        var strNewHTML = "<span " + imgID + imgClass + imgTitle
        strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
        strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
        strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
        img.outerHTML = strNewHTML
        i = i-1}}}
window.attachEvent("onload", correctPNG);

/*** ***/
function prikazref(id){ 
   document.getElementById('slika1').style.display = "none"
   document.getElementById('slika2').style.display = "none"
   document.getElementById('slika3').style.display = "none"
   document.getElementById('slika4').style.display = "none"

ID = document.getElementById(id); 
   if (ID.style.display == "") 
      ID.style.display = "none";
   else 
      ID.style.display = " "; 
}

/***  ***/
function klasa(id){ 
   document.getElementById('linkSlika1').className = ""
   document.getElementById('linkSlika2').className = ""
   document.getElementById('linkSlika3').className = ""
   document.getElementById('linkSlika4').className = ""

ID = document.getElementById(id); 
   if (ID.className == "") 
      ID.className = "select";
   else 
      ID.className = ""; 
}
