function submenu(name){
    obj = document.getElementById(name);
    if (obj.style.display == '') obj.style.display = 'none';
    else obj.style.display = '';
}

function catsubmenu(id){
    obj = document.getElementById('menu_' + id);
    aob = document.getElementById('sub_' + id);
    if (obj.style.display == ''){
        obj.style.display = 'none';
        //a.style.background='url(/img/3.gif) 0 3 no-repeat';
        aob.style.backgroundImage = 'url(/img/3.gif)';
    }else{
        obj.style.display = '';
        document.title += '/+' + aob.style;
        //aob.style.background='url(/img/2.gif) 0 3 no-repeat';
        aob.style.backgroundImage = 'url(/img/2.gif)';
    }
}

function frame_order_load(obj){
    document.title += '/+';
}

opera = (window.opera) ? true : false;
ie = (document.all && !opera) ? true : false;

var version = 6;
var flash = false;
if (navigator.plugins) {
	if(navigator.plugins["Shockwave Flash"]) {
		plugin = navigator.plugins["Shockwave Flash"].description;
		flash = parseInt(plugin.charAt(plugin.indexOf('.') - 2) + plugin.charAt(plugin.indexOf('.') - 1)) >= version;
	} else {
		if ((navigator.userAgent.indexOf('MSIE') != -1)&&(navigator.userAgent.indexOf('Win') != -1)) {
		  	var vb = '<script language="vbscript">\n'
			+ ' on error resume next\n'
			+ ' flash = IsObject(CreateObject('
			+ ' "ShockwaveFlash.ShockwaveFlash.' + version + '"))\n'
			+ '<' + '/script>';
			document.write(vb);
		}
	}
}

function PrintFlash(path, wid, heg, pic, lnk, paramz, bg, wm) {
	if(flash){
		document.open();
		document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="6,0,0,0" width="' + wid + '" height="' + heg + '">');
		document.write ('<param name=movie value="' + path + '">');
		document.write ('<param name="quality" value="high">');
		if(wm && wm != '') document.write ('<param name="wmode" value="' + wm + '">');
		else{
			document.write ('<param name="wmode" value="transparent">');
			wm = 'transparent';
		}
		document.write ('<param name="menu" value="false">');
		if(bg && bg != '') document.write ('<param name="bgcolor" value="' + bg + '">');
		document.write ('<param name="FlashVars" value="' + paramz + '">');
		document.write ('<embed src="' + path + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="' + wm + '" width="' + wid + '" height="' + heg +'" FlashVars="' + paramz + '" menu="false"></embed>');
  		document.write ('</object>');
		document.close();
	} else {
		document.open();
		if(lnk != '') document.write ('<a href="'+ lnk +'">');
		document.write('<img src="'+ pic +'" width="'+ wid +'" height="'+ heg +'">')
		if(lnk != '') document.write ('</a>');
		document.close();
	}
}

