﻿// JScript File
var currentmenyval=''

function coloron(bredd,id){
   if (id==currentmenyval){
       return
   }    

   var o=document.getElementById(id)
   var str=document.getElementById(id).getAttribute("style")
   var s=str
   if (typeof str=='object')
   {
      s=str.cssText
   }
   s=s.toLowerCase()
   s=exclude_spaces(s)
   if (s.indexOf('color:black')==-1)
   {
      var thisstyle='width:'+bredd+'px;background-color:navy;color:yellow;font-weight:normal;cursor:pointer;'
      _setStyle(o, thisstyle)
   }   
}

function coloroff(bredd,id){
   if (id==currentmenyval){
       return
   }    

   var o=document.getElementById(id)
   var str=document.getElementById(id).getAttribute("style")
   var s=str
   if (typeof str=='object')   {
      s=str.cssText
   }
   s=s.toLowerCase()
   s=exclude_spaces(s)
   if (s.indexOf('color:black')==-1)   {
      var thisstyle='width:'+bredd+'px;background-color:silver;color:blue;font-weight:normal;'
      _setStyle(o, thisstyle);
   }  
}

function color_initiera(bredd,id){
   var thisstyle='width:'+bredd+'px;background-color:silver;color:blue;font-weight:normal;cursor:pointer;'
   var o=document.getElementById(id)
   _setStyle(o, thisstyle);
}

function colordisabled(bredd,id){
   var thisstyle='width:'+bredd+'px;background-color:silver;color:black;font-weight:normal;cursor:default;'
   var o=document.getElementById(id)
   _setStyle(o, thisstyle);
}



