var MAIN_PAGE=false;
var NS4 = false;
var NS6 = false;
var IE = false;
var DocLocal=1;
function Neva_init() {
   NS4 = (document.layers) ? true : false;
   NS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
   IE = (document.all) ? true : false;
   DOM = ((document.getElementById)&&(!IE))?true:false;   

   if(NS4) {
		
   }
   if(IE) {

   }
   if(DOM) {

   }
}

function hasFlash() {
	return navigator.plugins["Shockwave Flash"];
}

function buildPath(path) {
	var sv=document.location.pathname;
	var ndx=-1;
	var off=-1;
	do {
		ndx+=1;
		off+=1;
		off=sv.indexOf('_',off);
	} while(off!=-1)
	if(ndx==0)
		return path;
	var p="";
	for(off=0;off<ndx;off++)
		p=p+"../";
	return p+path;			
}

function _goto(_to) {
	location.href=buildPath(_to);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}

	}
}
function AddMainMovie() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"');
  document.write('id="Movie2" width="482" height="82">');
  document.write('<param name="movie" value="Movie2.swf">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="bgcolor" value="#FFFFFF">');
  document.write('<embed name="Movie2" src="Movie2.swf" quality="high" bgcolor="#FFFFFF"');
  document.write('width="482" height="82"');
  document.write('type="application/x-shockwave-flash"');
  document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
  document.write('</embed>');
  document.write('</object>');
}
function AddProductMovie() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"');
  document.write('id="Movie2" width="482" height="82">');
  document.write('<param name="movie" value="Movie2.swf">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="bgcolor" value="#FFFFFF">');
  document.write('<embed name="Movie2" src="Movie2.swf" quality="high" bgcolor="#FFFFFF"');
  document.write('width="482" height="82"');
  document.write('type="application/x-shockwave-flash"');
  document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
  document.write('</embed>');
  document.write('</object>');
}
function CreateMenu(id) {
	var host=document.location.hostname;
	var images;
	var docs;
	var root;
	if(host==null || host.length==0)
		images=buildPath("images/");
	else
		images='http://'+host+'/images/';
	if(host==null || host.length==0) {
		docs=buildPath("_docs/");
		root=buildPath("")
	} else {
		root='http://'+host+'/';
		docs='http://'+host+'/_docs/'; 
	}

var im2=images+"menu_02-over.gif";
var im3=images+"menu_03-over.gif";
var im4=images+"menu_04-over.gif";
var im5=images+"menu_05-over.gif";
if(id==-1)
		return;
document.write('<TABLE CLASS="NOPRINT" BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('	<TR>');
document.write('		<TD>');
document.write('			<IMG NAME="menu_01" SRC="'+images+'menu_01.gif" WIDTH=87 HEIGHT=28 BORDER=0></TD>');
document.write('		<TD>');
if(id!=0) {
	im2=images+"menu_02.gif";
document.write('		<A HREF='+docs+'_coroutine/coroutine.htm');
document.write('			ONMOUSEOVER="changeImages(\'menu_02\',\''+images+'menu_02-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'menu_02\', \''+images+'menu_02.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="menu_02" SRC="'+im2+'" WIDTH=83 HEIGHT=28 BORDER=0></TD>');
if(id!=0) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=1) {
	im3=images+"menu_03.gif";
document.write('		<A HREF='+docs+'_java2com/java2com.htm');
document.write('			ONMOUSEOVER="changeImages(\'menu_03\', \''+images+'menu_03-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'menu_03\', \''+images+'menu_03.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="menu_03" SRC="'+im3+'" WIDTH=86 HEIGHT=28 BORDER=0></TD>');
if(id!=1) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=2) {
	im4=images+"menu_04.gif";
document.write('		<A HREF='+docs+'_javadde/JavaDde.htm');
document.write('			ONMOUSEOVER="changeImages(\'menu_04\', \''+images+'menu_04-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'menu_04\', \''+images+'menu_04.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="menu_04" SRC="'+im4+'" WIDTH=74 HEIGHT=28 BORDER=0></TD>');
if(id!=2) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=3) {
	im5=images+"menu_05.gif";
document.write('		<A HREF='+docs+'_jprint/JPrint.htm');
document.write('			ONMOUSEOVER="changeImages(\'menu_05\', \''+images+'menu_05-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'menu_05\', \''+images+'menu_05.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="menu_05" SRC="'+im5+'" WIDTH=62 HEIGHT=28 BORDER=0></TD>');
if(id!=3) 
	document.write('</TD>');
else 
	document.write('</A></TD>');

document.write('		<TD>');
document.write('			<IMG NAME="menu_06" SRC="'+images+'menu_07.gif" WIDTH=92 HEIGHT=28 BORDER=0></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD COLSPAN=6>');
document.write('			<IMG SRC="'+images+'menu_07.gif" WIDTH=484 HEIGHT=54 BORDER=0></TD>');
document.write('	</TR>');
document.write('</TABLE>');
}

function CreateHeader(id,menuid,lev) {   
if(DocLocal==1) {
  CreateHeaderZ(0,0,0); return;
}
var host=document.location.hostname;
var root;
var images;
var level="";

level=buildPath("");
if(host==null || host.length==0) {
	images=level+"images/";
	root=level;
} else {
	images='http://'+host+'/images/';
	root='http://'+host+'/';
}

	if(id==-1)
		return;
document.write('<a name="top-of-the-document"></a>');
var im2=images+"bar_02-over.gif";
var im3=images+"bar_03-over.gif";
var im4=images+"bar_04-over.gif";
var im5=images+"bar_05-over.gif";
var im6=images+"bar_06-over.gif";
document.write('<TABLE CLASS="NOPRINT" BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('	<TR>');
document.write('		<TD ROWSPAN=3>');
document.write('			<IMG SRC="'+images+'bar_01.gif" WIDTH=234 HEIGHT=158 BORDER=0></TD>');
document.write('		<TD>');
if(id!=0) {
	im2=images+"bar_02.gif";
document.write('		<A HREF="'+root+'default.htm"');
document.write('			ONMOUSEOVER="changeImages(\'bar_02\', \''+images+'bar_02-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'bar_02\', \''+images+'bar_02.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="bar_02" SRC="'+im2+'" WIDTH=69 HEIGHT=35 BORDER=0>');
if(id!=0) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=1) {
	im3=images+"bar_03.gif";
document.write('		<A HREF="'+root+'consulting.htm"');
document.write('			ONMOUSEOVER="changeImages(\'bar_03\', \''+images+'bar_03-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'bar_03\', \''+images+'bar_03.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="bar_03" SRC="'+im3+'" WIDTH=107 HEIGHT=35 BORDER=0>');
if(id!=1) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=2) {
	im4=images+"bar_04.gif";
document.write('		<A HREF="'+root+'products.htm"');
document.write('			ONMOUSEOVER="changeImages(\'bar_04\', \''+images+'bar_04-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'bar_04\', \''+images+'bar_04.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="bar_04" SRC="'+im4+'" WIDTH=90 HEIGHT=35 BORDER=0>');
if(id!=2) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
if(id!=3) {
	im5=images+"bar_05.gif";
document.write('		<A HREF="'+root+'download.htm"');
document.write('			ONMOUSEOVER="changeImages(\'bar_05\', \''+images+'bar_05-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'bar_05\', \''+images+'bar_05.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="bar_05" SRC="'+im5+'" WIDTH=104 HEIGHT=35 BORDER=0>');
if(id!=3) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
document.write('		<TD>');
//--removed sitemap
if(id!=4) {
	im6=images+"bar_06.gif";
document.write('		<A HREF="'+root+'support.htm"');
document.write('			ONMOUSEOVER="changeImages(\'bar_06\', \''+images+'bar_06-over.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'bar_06\', \''+images+'bar_06.gif\'); return true;"');
document.write('		>');
}
document.write('			<IMG NAME="bar_06" SRC="'+im6+'" WIDTH=114 HEIGHT=35 BORDER=0>');
if(id!=4) 
	document.write('</TD>');
else 
	document.write('</A></TD>');
//im6=images+"bar_06Z.gif";
//document.write('			<IMG NAME="bar_06_DUMMY" SRC="'+im6+'" WIDTH=114 HEIGHT=35 BORDER=0>');
//document.write('</TD>');
//---end-of-sitemap
document.write('		<TD ROWSPAN=3>');
document.write('			<IMG SRC="'+images+'bar_07.gif" WIDTH=477 HEIGHT=158 BORDER=0></TD>');
document.write('	</TR>');
document.write('	<TR>');
var im8=images+"bar_08.gif";
//01.08.04 if(id==2) 
//01.08.04	im8=images+"bar_08-0.gif";
document.write('		<TD COLSPAN=5>');
document.write('			<IMG SRC="'+im8+'" WIDTH=484 HEIGHT=41 BORDER=0>');
document.write('</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD COLSPAN=5>');
if(id!=2) {
if(MAIN_PAGE)
//document.write('			<IMG SRC="'+images+'bar_09-home.gif" WIDTH=484 HEIGHT=82 BORDER=0>');
AddMainMovie();
else
document.write('			<IMG SRC="'+images+'bar_09.gif" WIDTH=484 HEIGHT=82 BORDER=0>');

} else {
	//products
	// 01.08.04 CreateMenu(menuid,level);
	document.write('			<IMG SRC="'+images+'bar_09.gif" WIDTH=484 HEIGHT=82 BORDER=0>');
	//AddProductMovie();
}
document.write('</TD>');
document.write('	</TR>');
document.write('</TABLE>');
//1
}
var GlobalMenuArray=new Array();
////////////////

////////////////

function loadurl(_menu,url,target) {     
	_menu.style.visibility='hidden';
	if(_menu.tmo) clearTimeout(_menu.tmo);
	if(target && target.length>0) {
		window.open(url)
	} else {
		document.location=url;
	}
} 
function loadurl_dom(menuname,url,target) {
	var menu=document.getElementById(menuname);
	if(!menu)
		return;
	loadurl(menu,url,target);

} 		
/*
function menupopup_dom(menuname,ev) {
	var EventX = (ev.pageX-2);
	var EventY = (ev.pageY-2); 
	var menu=document.getElementById(menuname);
	if(!menu)
		return;
	eval("menu.style.left=EventX;");
	eval("menu.style.top=EventY;");
	eval("menu.style.visibility='visible';");
}

function menupopup(_menu,ev) { 
    if(document.all) { //IE
		eval('_menu.style.left=(ev.clientX + document.body.scrollLeft-2);');
		eval('_menu.style.top=(ev.clientY + document.body.scrollTop-2);');
		eval('_menu.style.visibility="visible";');
		//eval('_menu.tmo=setTimeout("moveout("+_menu+")",10000); ');
	}
}

function menupopup_ns(_menu,ev) {
	var EventX = (ev.pageX-2);
	var EventY = (ev.pageY-2); 
	eval("_menu.left=EventX;");
	eval("_menu.top=EventY;");
	eval("_menu.visibility='show';");
}
*/

function menupopup_dom(menuname,ev) {
		var EventX = (ev.pageX-2);
		var EventY = (ev.pageY-2); 
		var menu=document.getElementById(menuname);
		if(!menu)
			return;
		var offx=0;
		var offy=0; 
		if(menu && menu.parentNode && menu.parentNode.parentNode) {
			offx=menu.parentNode.parentNode.offsetLeft;
			offy=menu.parentNode.parentNode.offsetTop;  
		}
		menu.style.left=EventX-offx;
		menu.style.top=EventY-offy;
		menu.style.visibility='visible';
		
}

function menupopup(_menu,ev) { 
    if(document.all) { //IE   
		var offx=0;
		var offy=0;
		if(_menu && _menu.offsetParent) {
			offx=_menu.offsetParent.offsetLeft;
			offy=_menu.offsetParent.offsetTop;
		}
		_menu.style.left=event.clientX + document.body.scrollLeft-2-offx;
		_menu.style.top=event.clientY + document.body.scrollTop-2-offy;
		_menu.style.visibility="visible";
	}
}

function menupopup_ns(_menu,ev) {
	var offx=0;
	var offy=0;  
	if(_menu && _menu.offsetParent) {
		offx=_menu.offsetParent.offsetLeft;
		offy=_menu.offsetParent.offsetTop;
	}
	var EventX = (ev.pageX-2);
	var EventY = (ev.pageY-2); 
	_menu.left=EventX-offx;
	_menu.top=EventY-offy;
	_menu.visibility='show';
}


function moveout(_menu) {
	eval('_menu.style.visibility="hidden";');
}
function moveout_dom(menuname) {
	var menu=document.getElementById(menuname);
	if(!menu)
		return;
	moveout(menu);
}
function moveout_ns(_menu) {   
	eval('_menu.visibility="hidden";');
}  
function clear_tmo_dom(menuname) {
	var menu=document.getElementById(menuname);
	if(!menu)
		return;
	if(menu.tmo)
   		clearTimeout(menu.tmo);
}		 

function set_tmo_dom(menuname) {
	var menu=document.getElementById(menuname);
	if(!menu)
		return;
	var ex="moveout_dom(\'"+menuname+"\')"; 
	menu.tmo=setTimeout(ex,1000);
}		 
function onmousedown_ns(event,lay) {
	var lay2=document.layers[lay];
	if(!lay2)
		return false;
	lay2.visibility="hidden";
	var men=GlobalMenuArray[lay];
	var url=men.items[men.lastitem].url;
	var target=men.items[men.lastitem].target;
	if(target && target.length > 0) {
		window.open(url);
	} else {
		document.location=url;
	}
	return false;
}

function onmouseover_ns(menu_name,item) {
	var men=GlobalMenuArray[menu_name];
	if(!men)
		return;
	men.lastitem=item;
	clearTimeout(men.tmo);
}

function onmouseout_ns(menu_name,item) {
	var men=GlobalMenuArray[menu_name];
	if(!men)
		return;
	men.lastitem=-1;
	var ev='if(document.layers[\''+menu_name+'\']) document.layers[\''+menu_name+'\'].visibility="hidden";';
	men.tmo=setTimeout(ev,3000);	
}

function set_event_handler_ns(elem) {
	var max=document.layers.length;
	if(max<0)
		return;
	var i;
	for(i=0;i<max;i++) {
		var lay=document.layers[i];
		if(lay.name == elem.name) {
			lay.captureEvents(Event.MOUSEDOWN);
			var funcbody="onmousedown_ns(ev,\'"+elem.name+"\');return false;";	
			elem.onmousedown=new Function("ev",funcbody);
			return;
		}
	}
}

function N_Menu(name,image,bgcolor,color,fontname,fontcolor,fontsize,menuwidth,menuitemheight,vsp,hsp) {
	this.tmo=0;
	this.lastitem=-1;
	this.name=name;
	this.items=new Array();
	this.image=image;
	this.fontname=fontname;
	this.fontcolor=fontcolor;
	this.fontsize=fontsize;
	this.bgcolor=bgcolor;
	this.color=color;
	this.N_AddItem=N_AddItem;
	this.menuwidth=menuwidth;
	this.menuitemheight=menuitemheight;
	this.vsp=vsp;
	this.hsp=hsp;
	GlobalMenuArray[name]=this;
	return this;
}
function N_AddItem(text,url,target) {
	var ndx=this.items.length;
	this.items[ndx]=new N_Item(text,url,target);
	return this.items[ndx];
}
function N_Item(text,url,target) {
	this.text="&nbsp;"+text;
	this.url=url;
	this.target=target;
}
function N_BuiltMenu(menu) {
	var N4 = (document.layers) ? true : false;
	var N6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
	var IE = (document.all) ? true : false;
	var DOM = ((document.getElementById)&&(!IE))?true:false;   
	var N_MenuImageName=menu.name+"_image";
	var im=menu.image; 
    if(IE) {
		if(im!=null)
			document.write('<A HREF="javascript:void(0);" onmouseover="menupopup('+menu.name+',event);"><IMG  SRC="'+im+'" BORDER=0></A>');
		document.write('<DIV ID="'+menu.name+'" STYLE="cursor:hand; Position: Absolute; Visibility : Hidden; Left : 0px ;Top : 0; Z-Index : 20; width:'+menu.menuwidth+'">');
		document.write('<TABLE CLASS="NOPRINT" BORDER="1" WIDTH="100%" cellspacing="0" ');
		document.write('BGCOLOR="'+menu.color+'" bordercolorlight="'+menu.bgcolor+'" bordercolordark="'+menu.bgcolor+'">');
		for(var i = 0; i < menu.items.length; i++) {
			document.write('<TR><TD ');
			document.write('width="100%" bgColor="'+menu.color+'" '); 
			document.write('onmouseover="bgColor=\''+menu.bgcolor+'\'; if('+menu.name+'.tmo) clearTimeout('+menu.name+'.tmo);" ');
			document.write('onmouseout="bgColor=\''+menu.color+'\';'+menu.name+'.tmo=setTimeout(\'moveout('+menu.name+')\', 1000)" ');
			document.write('onclick="loadurl('+menu.name+',\''+menu.items[i].url+'\',\''+menu.items[i].target+'\');">');
			document.write('<font color="'+menu.fontcolor+'" face="'+menu.fontname+'" size="'+menu.fontsize+'">');
			document.write(menu.items[i].text);
			document.write('</font>');
			document.write('</TD></TR>');
		}
		document.write('</TABLE>');
		document.write('</DIV>');
	}
	if(DOM) {
		var s='<DIV ID="'+N_MenuImageName+'" STYLE="Visibility : Visible ; Z-Index : 20">';
		if(im!=null)
			s+='<A HREF="javascript:void(0);" onmouseover="menupopup_dom(\''+menu.name+'\',event);"><IMG  SRC="'+im+'" BORDER=0></A>';
		s+='</DIV>';
		document.write(s);

		document.write('<DIV ID="'+menu.name+'" STYLE="Position: Absolute; Visibility : Hidden; Left : 0px ;Top : 0; Z-Index : 20; width:'+menu.menuwidth+'">');
		document.write('<TABLE CLASS="NOPRINT" BORDER="1" WIDTH="44%" cellspacing="0" ');
		document.write('BGCOLOR="'+menu.color+'" bordercolorlight="'+menu.bgcolor+'" bordercolordark="'+menu.bgcolor+'">');
		for(var i = 0; i < menu.items.length; i++) {
			document.write('<TR><TD ');
			document.write('width="100%" bgColor="'+menu.color+'" '); 
			document.write('onmouseover="bgColor=\''+menu.bgcolor+'\'; clear_tmo_dom(\''+menu.name+'\');" ');
			document.write('onmouseout="bgColor=\''+menu.color+'\';set_tmo_dom(\''+menu.name+'\');"');
			document.write('onclick="loadurl_dom(\''+menu.name+'\',\''+menu.items[i].url+'\',\''+menu.items[i].target+'\');">');
			document.write('<font color="'+menu.fontcolor+'" face="'+menu.fontname+'" size="'+menu.fontsize+'">');
			document.write(menu.items[i].text);
			document.write('</font>');
			document.write('</TD></TR>');
		}
		document.write('</TABLE>');
		document.write('</DIV>');
	}
	if(N4) { 
		var h=(menu.menuitemheight+menu.vsp)*menu.items.length +menu.vsp;
		if(im!=null)
			document.write('<A HREF="javascript:void(0);" onmouseover="menupopup_ns('+menu.name+',event);"><IMG  SRC="'+im+'" BORDER=0></A>');
		document.write('<LAYER ID="'+menu.name+'" Position=Absolute Visibility=Hidden Left=0px Top=0 Z-Index=20 ');
		document.write('onload="set_event_handler_ns('+menu.name+');"');
		document.write('bgColor="'+menu.bgcolor+'" '); 
		document.write('height='+h+' '); 
		document.write(' width=400 >');
		var off=menu.vsp;
		for(var i = 0; i < menu.items.length; i++) {
			document.write('<LAYER  ID="'+menu.name+i+'"  Visibility=inherit bgColor="'+menu.color+'" '); 
			document.write('onmouseover="bgColor=\''+menu.bgcolor+'\';onmouseover_ns(\''+menu.name+'\','+i+');" ');
			document.write('onmouseout="bgColor=\''+menu.color+'\';onmouseout_ns(\''+menu.name+'\','+i+');" ');
			document.write(' Top='+off+'');
			document.write(' Left='+menu.hsp+'');
			document.write(' Z-Index=21 ');
			document.write(' width='+(menu.menuwidth-2*menu.hsp)+'');
			document.write(' width=12');
			document.write('onload="set_event_handler_ns('+menu.name+');"');
			document.write('onclick="loadurl('+menu.name+',\''+menu.items[i].url+'\',\''+menu.items[i].url+'\');">');
			document.write('<font color="'+menu.fontcolor+'" face="'+menu.fontname+'" size="'+menu.fontsize+'">');
			document.write(menu.items[i].text);
			document.write('</font>');
			document.write('</LAYER>');
			off+=menu.menuitemheight+menu.vsp;
		}
		document.write('</LAYER>');
	}
	document.close();
}

function PopupMenu(menuName,event) {
	var N4 = (document.layers) ? true : false;
	var N6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
	var IE = (document.all) ? true : false;
	var DOM = ((document.getElementById)&&(!IE))?true:false; 
	if(IE) { 
		var _menu=eval(menuName);
		menupopup(_menu,event);
		return false;
	}
	if(N4) { 
		var _menu=document.layers[menuName];
		menupopup_ns(_menu,event);
		return false;
	}
	if(DOM) {
		menupopup_dom(menuName,event);
		return false;
	}
	return true;
}

///

function downloadCoroutine() {
	var ref=buildPath("_download/coroutine_download_1.htm");
	window.open(ref,'','scrollbars=yes,menubar=no,toolbar=no,width=800,height=800');
}
function downloadCoroutine1() {
	var ref=buildPath("_download/coroutine_download1.htm");
	window.open(ref,'','scrollbars=yes,menubar=no,toolbar=no,width=600,height=500');
}
 
function BuilddJava2COMMenu() {
	var m=new N_Menu('J2CMENU',/*buildPath('images/toc.gif')*/null,'#DCE8F3','#f0f0f0','Verdana','#404040','1',400,12,2,1);
	m.N_AddItem("Java2COM","java2com.htm","");
	m.N_AddItem("A Brief Introduction to COM","java2com1.htm","");
	m.N_AddItem("Java2COM: Quick Start ","java2com2.htm","");
	m.N_AddItem("Using COM Data Types ","java2com3.htm","");
	m.N_AddItem("COM Object Creation Revisited","java2com4.htm","");
	m.N_AddItem("Managing the Lifespan of the Object","java2com5.htm","");
	m.N_AddItem("COM Objects Concurrency, Apartments, and Marshaling","java2com6.htm","");
	m.N_AddItem("Handling Connection Points","java2com7.htm","");
	m.N_AddItem("Using COMIDispatch to access COM Automation Servers from Java","java2com8.htm","");
	m.N_AddItem("Using Java2COM Automation Wizard","java2com9.htm","");
	m.N_AddItem("Hosting Automation-enabled ActiveX Controls","java2com10.htm","");
	m.N_AddItem("COM to Java Bridge: Getting Started","java2com11.htm","");
	m.N_AddItem("The COMServer Class Revisited","java2com12.htm","");
	m.N_AddItem("Firing Outgoing Events","java2com13.htm","");
	m.N_AddItem("COM to Java Bridge: More Examples","java2com131.htm","");
	m.N_AddItem("The Win32Service Class","java2com14.htm","");
	m.N_AddItem("More Examples","java2com15.htm","");
	m.N_AddItem("Java2COM API Reference","api/index.html","docs");
	N_BuiltMenu(m);
}
function BuilddCoroutineMenu() {
	var m=new N_Menu('COROMENU',/*buildPath('images/toc.gif')*/null,'#DCE8F3','#f0f0f0','Verdana','#404040','1',400,12,2,1);
	m.N_AddItem("Top...","#top-of-the-document","");
	m.N_AddItem("Using Coroutine for Java","#using","");
	m.N_AddItem("Using JCallback","#jcall","");
	m.N_AddItem("Exception Handling","#eh","");
	m.N_AddItem("Retrieving Win32 Error Code","#err","");
	m.N_AddItem("Example:  Enumerating URL Cache","#exampleuc","");
	m.N_AddItem("Example: Windows System Tray","#example","");
	m.N_AddItem("Example: Subclassing Windows","#examplesw","");
	m.N_AddItem("Example: Creating a Non-Rectangle Window","#examplenrw","");
	m.N_AddItem("Coroutine for Java API reference","api/index.html","docs");
	N_BuiltMenu(m);
}
function BuilddJavaDdeMenu() {
	var m=new N_Menu('JAVADDEMENU',/*buildPath('images/toc.gif')*/null,'#DCE8F3','#f0f0f0','Verdana','#404040','1',400,12,2,1);
	m.N_AddItem("Top...","#top-of-the-document","");
	m.N_AddItem("Dde Server","#server","");
	m.N_AddItem("DdeClient","#client","");
	m.N_AddItem("Examples","#examples","");
	m.N_AddItem("JavaDde API reference","api/index.html","docs");
	N_BuiltMenu(m);
}
//////////////
function CreateNavMenu(prev,up,next) {
	var host=document.location.hostname;
	var images;
	var docs;
	var root;
	if(host==null || host.length==0)
		images=buildPath("images/");
	else
		images='http://'+host+'/images/';
	if(host==null || host.length==0) {
		docs=buildPath("_docs/");
		root=buildPath("")
	} else {
		root='http://'+host+'/';
		docs='http://'+host+'/_docs/'; 
	}

var im_prev=images+"prev_off.gif";
var im_up=images+"up_off.gif";
var im_next=images+"next_off.gif";
document.write('<TABLE CLASS="NOPRINT" BORDER=0 CELLPADDING=1 CELLSPACING=1>');
document.write('	<TR>');

if(prev!=null) {
document.write('		<TD>');
document.write('		<A HREF='+docs+'_java2com/'+prev);
document.write('			ONMOUSEOVER="changeImages(\'NAV_PREV\', \''+images+'prev_on.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'NAV_PREV\', \''+images+'prev_off.gif\'); return true;"');
document.write('		>');
document.write('			<IMG NAME="NAV_PREV" SRC="'+im_prev+'" BORDER=0>');
document.write('</A></TD>');
}

document.write('		<TD>');
document.write('		<A HREF='+docs+'_java2com/'+up);
document.write('			ONMOUSEOVER="changeImages(\'NAV_UP\', \''+images+'up_on.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'NAV_UP\', \''+images+'up_off.gif\'); return true;"');
document.write('		>');
document.write('			<IMG NAME="NAV_UP" SRC="'+im_up+'" BORDER=0>');
document.write('</A></TD>');


if(next!=null) {
document.write('		<TD>');
document.write('		<A HREF='+docs+'_java2com/'+next);
document.write('			ONMOUSEOVER="changeImages(\'NAV_NEXT\', \''+images+'next_on.gif\');return true;"');
document.write('			ONMOUSEOUT="changeImages(\'NAV_NEXT\', \''+images+'next_off.gif\'); return true;"');
document.write('		>');
document.write('			<IMG NAME="NAV_NEXT" SRC="'+im_next+'" BORDER=0>');
document.write('</A></TD>');
}
document.write('	</TR>');
document.write('	<TR>');

if(prev!=null) {
document.write('<TD><font size="1" face="Verdana"color="#698db8">prev<font></TD>');
}
document.write('<TD><font size="1" face="Verdana"color="#698db8">top<font></TD>');

if(next!=null) {
document.write('<TD><font size="1" face="Verdana"color="#698db8">next<font></TD>');
}
document.write('	</TR>');
document.write('</TABLE>');
}

function CreateHeaderZ(id,menuid,lev) {
var host=document.location.hostname;
var root;
var images;
var level="";

level=buildPath("");
if(host==null || host.length==0) {
	images=level+"images/";
	root=level;
} else {
	images='http://'+host+'/images/';
	root='http://'+host+'/';
}
document.write('<TABLE CLASS="NOPRINT" BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('<TR>');
document.write('<TD ROWSPAN=3>');
document.write('<IMG SRC="'+images+'bar_01.gif" WIDTH=234 HEIGHT=158></TD>');
document.write('<TD>');
document.write('<IMG SRC="'+images+'bar_02Z.gif" WIDTH=69 HEIGHT=35></TD>');
document.write('<TD>');
document.write('<IMG SRC="'+images+'bar_03Z.gif" WIDTH=107 HEIGHT=35></TD>');
document.write('<TD>');
document.write('<IMG SRC="'+images+'bar_04Z.gif" WIDTH=90 HEIGHT=35></TD>');
document.write('<TD>');
document.write('<IMG SRC="'+images+'bar_05Z.gif" WIDTH=104 HEIGHT=35></TD>');
document.write('<TD>');
document.write('<IMG SRC="'+images+'bar_06Z.gif" WIDTH=114 HEIGHT=35></TD>');
document.write('<TD ROWSPAN=3>');
document.write('<IMG SRC="'+images+'bar_07.gif" WIDTH=477 HEIGHT=158></TD>');
document.write('</TR>');
document.write('<TR>');
document.write('<TD COLSPAN=5>');
document.write('<IMG SRC="'+images+'bar_08.gif" WIDTH=484 HEIGHT=41></TD>');
document.write('</TR>');
document.write('<TR>');
document.write('<TD COLSPAN=5>');
document.write('<IMG SRC="'+images+'bar_09.gif" WIDTH=484 HEIGHT=82></TD>');
document.write('</TR>');
document.write('</TABLE>');
}


