<!--

function Browser () {
	this.MSIE=(navigator.userAgent.indexOf('MSIE')>=0); 
	this.Ns=(!this.MSIE)&&((navigator.userAgent.lastIndexOf(')')==(navigator.userAgent.length-1)||(navigator.userAgent.indexOf('Netscape')>=0)));
	if (navigator.userAgent.indexOf('5.')>=0) this.ver=5;
	else if (navigator.userAgent.indexOf('4.')>=0) this.ver=4;
	else if (navigator.userAgent.indexOf('3.')>=0) this.ver=3;
	else if (navigator.userAgent.indexOf('2.')>=0) this.ver=2;
	else this.ver=6;
}

var Brows = new Browser;

function imgPreload(img) {var a=new Image(); a.src=img; return a; }

function imgMouseOver(layer, name) { if ((Brows.ver>2)||((Brows.MSIE)&&(Brows.ver>3))) findObj(layer+name).src=eval(name+'1.src'); return true; }

function imgMouseOut(layer, name) { if ((Brows.ver>2)||((Brows.MSIE)&&(Brows.ver>3))) findObj(layer+name).src=eval(name+'0.src'); return true; }

function findObj(n, d) {
  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=findObj(n,d.layers[i].document); 
  return x;
}

function showHideLayers() {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { 
	v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	obj.visibility=v; 
  }
}

onloadHandlers=new Array;

function addOnloadHandler(str){
  onloadHandlers[onloadHandlers.length]=str;
}

function onloadHandlerMain() {
var cnt;
  cnt=onloadHandlers.length;
  for (i=0; i<cnt; i++) eval(onloadHandlers[i]);
}

function viewFixed(url, wname, width, height) {
  window.open(url,wname,'width='+width+',height='+height+',scrollbars=0,status=0,menubar=0,resizable=0'); 
  return false;
}

var submenuLayerName, submenuFirstLine, submenuWidth;

function writeSubmenuBegin(layerName, left, top, width) {
var str;
  str='onMouseOut="showHideLayers(\''+layerName+'\',\'\',\'hide\');" onMouseOver="showHideLayers(\''+layerName+'\',\'\',\'show\');"';
  if (!Brows.Ns) 
    str='<div id="'+layerName+'" style="visibility: hidden; position: absolute; top: '+top+'px; left: '+left+'px; width: '+width+'px; z-index:1; cursor: hand;" '+str+'>'
  else
    str='<layer name="'+layerName+'" position="absolute" left="'+left+'" top="'+top+'" width="'+width+'" z-index="1" visibility="hidden" '+str+'>';

  document.write(str);
  document.write('<table border="0" cellspacing="0" cellpadding="0" width="'+width+'">');
  document.write('<tr><td colspan="3"><img src="images/_.gif" width="1" height="4"></td></tr>');
  document.write('<tr><td><img src="images/menu_bevel_topleft.gif" width="2" height="2"></td><td background="images/menu_bevel_top.gif"><img src="images/_.gif" width="'+(width-4)+'" height="1"></td><td><img src="images/menu_bevel_topright.gif" width="2" height="2"></td></tr>');
  document.write('<tr><td background="images/menu_bevel_left.gif"><img src="images/_gif" width="1" height="1"></td><td class="menu">');

  submenuLayerName=layerName;
  submenuFirstLine=true;
  submenuWidth=width;

}

function writeSubmenuEnd() {
var str;

  document.write('</td><td background="images/menu_bevel_right.gif"><img src="images/_gif" width="1" height="1"></td></tr>');
  document.write('<tr><td><img src="images/menu_bevel_botleft.gif" width="2" height="2"></td><td background="images/menu_bevel_bot.gif"><img src="images/_.gif" width="1" height="1"></td><td><img src="images/menu_bevel_botright.gif" width="2" height="2"></td></tr>');
  document.write('</table>');

  if (!Brows.Ns) str='</div>'; else str='</layer>';
  document.write(str);

}

function writeSubmenuItem(url, image) {
  if (!submenuFirstLine) {
    document.write('<table border="0" cellspacing="0" cellpadding="0" width="'+(submenuWidth-4)+'">');
    document.write('<tr><td width="0"><img src="images/menu_bevel_sep_left.gif" width="4" height="4"></td><td width="100%" background="images/menu_bevel_sep.gif"><img src="images/_.gif" width="1" height="1"></td><td width="0"><img src="images/menu_bevel_sep_right.gif" width="4" height="4"></td></tr>');
    document.write('</table>');
  }
  submenuFirstLine=false;
  document.write('<a href="'+url+'" onmouseover="imgMouseOver(\''+submenuLayerName+'\',\''+image+'\');" onmouseout="imgMouseOut(\''+submenuLayerName+'\',\''+image+'\')"><img name="'+submenuLayerName+image+'" src="images/'+image+'0.gif" width="'+(submenuWidth-4)+'" height="16" border="0"></a><br>');
}

//-->
