
var SEL;

function wop(url,opts,w,h){window.open(url,'',opts+',width='+w+',height='+h);}
x=new Image;x.src = "/img/x.gif";

i3on=new  Image;i3on.src = "/img/mnu_opt_news_.gif"    	   ;i3off=new Image;i3off.src    = "/img/mnu_opt_news.gif";          
i4on=new  Image;i4on.src = "/img/mnu_opt_3d_.gif"   	   ;i4off=new Image;i4off.src    = "/img/mnu_opt_3d.gif";         
i5on=new  Image;i5on.src = "/img/mnu_opt_build_.gif"  	   ;i5off=new Image;i5off.src    = "/img/mnu_opt_build.gif";          
i6on=new  Image;i6on.src = "/img/mnu_opt_materials_.gif"   ;i6off=new Image;i6off.src    = "/img/mnu_opt_materials.gif";           
i7on=new  Image;i7on.src = "/img/mnu_opt_contacts_.gif"    ;i7off=new Image;i7off.src    = "/img/mnu_opt_contacts.gif";           

function sw (iobj,state)
{  
	if(SEL!='' && iobj.name!=SEL)
	{  
		s=(state)?eval(iobj.name+"on.src"):eval(iobj.name+"off.src");
		iobj.src=s;
	}  

}

function sel(n)
{
	SEL = n;
	s=eval(n+"on.src");
	document.images[n].src=s;
}



    function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 
    {
       var arVersion = navigator.appVersion.split("MSIE")
       var version = parseFloat(arVersion[1])
       if ((version >= 5.5) && (document.body.filters))
       {
          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
                if (img.align == "left") imgStyle = "float:left;" + imgStyle
                if (img.align == "right") imgStyle = "float:right;" + imgStyle
                if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                var strNewHTML = "<span " + imgID + imgClass + imgTitle
                + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
                + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                img.outerHTML = strNewHTML
                i = i-1
             }
          }


       }
    }

