function draw_nav(cat) {
	var swfname = "nav_" + cat ;
	//alert(swfname); 
	document.write('<OBJECT WIDTH=100% height=120 id=topnav classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > ');	
	document.write('<PARAM NAME=MOVIE VALUE="/flash/' + swfname + '.swf" />');
	document.write('<PARAM NAME=MENU VALUE=false />');
	document.write('<PARAM NAME=QUALITY VALUE=high />');
	document.write('<PARAM NAME=SCALE VALUE=noscale />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=SALIGN VALUE=lt>');
	document.write('<embed SRC="/flash/' + swfname + '.swf" MENU="false" QUALITY="high" WMODE="transparent" SCALE="noscale" SALIGN="lt" bgcolor="#ffffff" width="100%" height=120 name="topnav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></EMBED>');
	document.write(' </object>');
}

function draw_navsub(catsub,swfwidth,swfheight,current) {
	var swfname2 = "navsub_" + catsub;
//	alert(swfheight); 
	document.write('<OBJECT WIDTH=' + swfwidth + ' HEIGHT=' + swfheight + ' id=subnav classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > ');	
	document.write('<PARAM NAME=MOVIE VALUE="/flash/' + swfname2 + '.swf' + current + '" />' );
	document.write('<PARAM NAME=MENU VALUE=false />');
	document.write('<PARAM NAME=QUALITY VALUE=high />');
	document.write('<PARAM NAME=SCALE VALUE=noscale />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	//document.write('<PARAM NAME=SALIGN VALUE=lt>');
	document.write('<embed SRC="/flash/' + swfname2 + '.swf" MENU="false" QUALITY="high" WMODE="transparent" SCALE="noscale" SALIGN="lt" bgcolor="#ffffff" width=260 height=' + swfheight + ' name="subnav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></EMBED>');
	document.write(' </object>');
}
