img1 = new Image();
img2 = new Image();
img1.src = 'site/imgs/str0.gif';
img2.src = 'site/imgs/str1.gif';



var SrcArr = new Array ("leftmenuBuletGrey", "leftmenuBuletRed", "bullet_lastvisited", "bullet_red");
//---------------------------------------------------------------------------------------
function PreLoad()
{
  if(document.images)
   {
	 var ImgArr = new Array ();
	 for(i in SrcArr)
	    {
		  ImgArr[i] = new Image ();
		  ImgArr[i].src = "" + SrcArr[i] + ".gif";
	    }
   }
}
//---------------------------------------------------------------------------------------
function chgLeftMenu(id_pic, name)
{
	if(document.images)
      {
		document.images[id_pic].src = ""+ SrcArr[name] + ".gif";
	  } 
}
//---------------------------------------------------------------------------------------
function showHideBullet(id, show)
{
	var obj = document.getElementById(id);
	show == 1 ? obj.style.visibility = "visible" : obj.style.visibility = "hidden";
}
//---------------------------------------------------------------------------------------
function chgForumThemes(childObj, show)
{
	if(childObj.tagName == "A")
	{
		obj = childObj.parentNode;
		objTD = childObj.parentNode.parentNode
	}	
	else
	{
		obj = childObj;	
		objTD = childObj.parentNode;
	}
	if(show)
	  {
		objTD.style.backgroundColor	   = "#717171";
		obj.style.backgroundColor	   = "#F1F1F1";
		obj.style.borderTopColor  	   = "#BDBDBD";
		obj.style.borderBottomColor    = "#BDBDBD";
		obj.style.borderLeftColor  	   = "#BDBDBD";
	  }
	else
	  {
 		objTD.style.backgroundColor	   = "#FFFFFF";
		obj.style.backgroundColor 	   = "#FFFFFF";
		obj.style.borderTopColor       = "#FFFFFF";
		obj.style.borderBottomColor    = "#FFFFFF";
		obj.style.borderLeftColor  	   = "#FFFFFF";
	  }  
}

//----------------------------------------------------------------------------------------
<!--
           var chain = new Array();
           var lastLevel = 0;
           var lastLevel0Id = 0;
           var lastBlock = 0;
           for (i = 0; i < 10; i++) chain[i] = 0;

           function change(id, parent_id, main, level) {
            //alert (id+" "+level);
    		var msie = (document.all)? true : false;
		    if (msie)
		    {
		      if (level == 1) {
		       	if (lastLevel0Id > 0) {
               	   var cat0 = document.getElementById('catlist'+lastLevel0Id);
                   cat0.style.display = 'none';
                   lastLevelId = id;
		       	}
		      }
              if (level > lastLevel) {
              	//          
              	//alert(">");
              	chain[level] = id;
              	lastLevel = level;
                var cat = document.getElementById('catlist'+id);
                cat.style.display = 'block';
                lastBlock = id;
                return true;
              }
              if (level == lastLevel) {
              	//alert("=");
               	//                 
               	var oldCat = document.getElementById('catlist'+lastBlock);
			    oldCat.style.display = 'none'; 
                var cat = document.getElementById('catlist'+id);
                cat.style.display = 'block';
                lastBlock = id;
                chain[level] = id;
                return true;
              }
              if (level < lastLevel) {
              	//alert("<");
              	//         
              	for (i = lastLevel; i >= level; i--) {
              	    //alert(i+"->"+chain[i]);
              	    if (chain[i] > 0) {
		                var oldCat = document.getElementById('catlist'+chain[i]);
				    	oldCat.style.display = 'none';
				    	chain[i] = 0;
			    	}
              	}
                var cat = document.getElementById('catlist'+id);
                cat.style.display = 'block';
                lastBlock = id;
                lastLevel = level;
                chain[level]=id;
                return true;
              }
		    }	
		    else return false;
           }
           
function trim(str) {
	return str.replace(/^\s*/,'').replace(/\s*$/,'');
}
           //-->


