function NewWindow(imgname, imgtitle, winwid, winhgt) {

	var winwid1=winwid+50;
	var winhgt1=winhgt;
	var winfeatures = "scrollbars=yes, resizable=yes, width=" + winwid1 + ",height=" + winhgt1;



	n_win = window.open("",
	                    "ShowImage",
	                    winfeatures);
	n_win.document.write('<head>');
	n_win.document.write('<title>',imgtitle,'</title>');
	n_win.document.write('<style type="text/css"><!--.text {font-family: Tahoma; font-size: 11px; font-weight: bold; color: #000055; text-decoration: none}--></style>');
	n_win.document.write('<style type="text/css">');
	n_win.document.write('body {background-color: #eeeeee; color: yellow; text-align: center;');
	n_win.document.write('</style>');
	n_win.document.write('</head>');
	n_win.document.write('<body>');
	n_win.document.write('<font class="text">',imgtitle,'</font><br><br>');
	n_win.document.write('<img name="imgWin" src="',imgname,'" border="0" /><br>');
	n_win.document.write('</body>');
	n_win.document.close();
}


      function DisplayItem(strId) {
        var strItem="cat"+strId;
         var strCheck;
        var strTd;
        var strDisplay;
        for (i=1;i<7;i++) {
          strCheck="cat"+i;
          strTd="tdCat"+i

          strDisplay=window.document.all(strCheck).style.display;
          if (strDisplay=='') {
           
			window.document.all(strCheck).style.display="none";
         //   window.document.all(strTd).className='mnuCategorieOut';
          }
          if ((strDisplay=='none') && (strCheck==strItem)) window.document.all(strCheck).style.display="";
        }
      }

	function CheckDisplayItem(strDiv) {
        var strCheck = "cat"+strDiv
        var strTdCheck = "tdCat"+strDiv
        var strDisplay=window.document.all(strCheck).style.display;
        if (strDisplay=="none") window.document.all(strTdCheck).className='mnuCategorieOut'
       else (window.document.all(strTdCheck).className='mnuCategorieOn');
      }



      function DisplayItem1(strId) {
        var strItem="cat"+strId;
        var strCheck;
        var strTd;
        var strDisplay;
        
		window.document.all(strItem).style.display="";
		
      }



	 function CheckDisplayItem1(strDiv) {
        var strCheck = "cat"+strDiv
        var strTdCheck = "tdCat"+strDiv
		window.document.all(strCheck).style.display = "none";

      }


      

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


var	layerName="";
var delay=0;
var tipTimerID_S=null;

function bv4 ()
 {
	if (parseFloat(navigator.appVersion) < 4) 
		return false
	else
		return true
}


function GetX(x)
{
	var delta;
	if (bv4())
	{
		if (navigator.appName.indexOf('Netscape')!=-1)
		{
			delta=window.innerWidth-764;
			if (delta<0)
			{
				return x;
			}
			else
				return (x+(delta/2));
		}
		else
			if (navigator.appName.indexOf('Internet')!=-1)
			{
				delta=document.body.scrollWidth-764;
			    if (delta<0)
				{
				 return x;
				}
  		        else
				 return (x+delta/2);
			}
	}

}
 
function GetY(y)
{
	return y;
}
 

function GetYCoord(entity)
 {
	
	if (entity == "lyrMenu")
			return 102;
}

function GetXCoord(entity) 
{
	if (entity == "lyrMenu")
			return 300;   //------daca e aliniat center
//			return 200;  //------> daca e aliniat left
}


function actionShow(entity, delay) {
	layerName = entity;
	tipTimerID_S = setTimeout("actionShow1()",delay);
}

function actionShow1(entity)
{ 
setTimeout("actionHide('"  + entity +  "')",15000);
 if  (navigator.appName=='Netscape' && document.layers!=null)//Netscape
   {  
      obj= eval('document.layers["'+layerName+'"]');
      if (obj){
      obj.top=GetY(GetYCoord(layerName))+1;     
      obj.left=GetX(GetXCoord(layerName))-10;
        }
   }
   else
      if (document.all != null)
      {
      obj= eval('document.all["'+layerName+'"]');
      if (obj){
      obj.style.top=GetY(GetYCoord(layerName));
      obj.style.left=GetX(GetXCoord(layerName));
      }
   }
MM_showHideLayers('document.layers["'+layerName+'"]','document.all["'+layerName+'"]','show');
}

function actionHide(layerName)
{
clearTimeout(tipTimerID_S);
MM_showHideLayers('document.layers["'+layerName+'"]','document.all["'+layerName+'"]','hide');
layerName='';

}

function MM_showHideLayers() { // v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}