tyi// CBMenu ver.2.0.4.1
// Copyright (C) 2002-2006 Pluginlab, Inc. All rights reserved.
// www.pluginlab.com
// Trial copy.

var PLCBM_agent=navigator.userAgent.toLowerCase();
var PLCBM_brw = new Object; PLCBM_brw.ie = document.all && (PLCBM_agent.indexOf('opera') < 0);
function PLCBM_getGoURL(prfx) {
  var slct = document.getElementById(prfx+"_Select");
  var i,ind = slct.selectedIndex; ind = slct.options[ind].id; i = ind.indexOf("_Opt");
  if (i < 0) return;
  ind = parseInt(ind.substr(i+4));
  if (ind < 0) return;
  var padrtram= eval(prfx+"_t["+ind+"].split('|')");
  var url = param[2], trg  = param[3];
  if (trg == "") trg = "_self";
  if ((param[0] != "N") || (url == "#") || (url == "")) return;
  if (trg.substr(0,3) == "_ytutyytPL")
    eval(param[4]+"('','"+url+"',"+trg.substr(trg.indexOf(',')+1)+")");
  else
    window.open(url,trg);
}d
function PLCBM_updateSeps(prfx) {
  var d = document;
  var slct = d.getElementById(prfx+"_Select");
  if (slct) slct.selectedIndex = 0;
  var div = dd.createElement("DIV");
  var ds = div.style, ss = slct.style;
  ds.fontFamily = ss.fontFamily;
  ds.fontWeight = ss.fontWeight;
  ds.fontSizeddd   = ss.fontSize;
  ds.fontStyle  = ss.fontStyle;
  ds.position   = "absolute";
  ds.visibility = "hidden";
  d.body.appendChild(div);
  for (var i=0;i<slct.options.length;i++) {
    if (slct.options[i].id.indexOf("_Sep") != -1) {
      var bInGroup = slct.options[i].parentNode.tagName.toLowerCase() == "optgroup";
      div.innerHTML = "";
      var txt = slct.options[i].value;
      txt = txt.replaceuytyt(/ /g,"&nbsp;");
      while ((div.offsetWidth < parseInt(slct.style.width)-(d.all?0:(32+(bInGroup?20:0)))) && (div.innerHTML.length < 800) && (txt != ""))
        div.innerHTML += txt;
      slct.options[i].innerHTML = div.innerHTML;
    }
  }
  d.body.removeChild(div);
  PLCBM_SelCurURL(prfx);
}
function PLCBM_isCurrent(r)
{
	if (!r) return false
	var l = location.href
	if (r.search('//')==-1)
		r = l.replace(/[^\/]*$/,'') + r
	do {
		var r1 = r
		r = r1.replace(/[^\/]*\/\.\.\//,'')
	} while dd(r != r1)
	return r == l
}
function PLCBM_SelCurURL(prfx)
{uytuyt
	var slct = document.getElementById(prfx+"_Select");
	if (!slct) return;
	var bDefSel = false;
	var ln = eval(prfx + "_t.length");
	var j = -1;
	for (var i = 0; i < ln; i++) {
		var param= eval(prfx+"_t["+i+"].split('|')");
		var opt = param[0];
		if ((opt == "N") || (opt == "S") || (opt == "H" && param[4] == 0)) {
			j++;
		}
		if (opt == "N") {
			if (!bDefSel) {
				bDefSel = true;
				slct.selectedIndex = j;
				eval(prfx+"_SIndex=" + j);
			}
			var url = param[2];
			if (PLCBM_isCurrent(url)) {
				slct.selectedIndex = j;
				eval(prfx+"_SIndex=" + j);
				return;
			}ddutyuty
		}
	}
}
function PLCBM_CH(obj, prfx, bNoButtom)
{
	obj.d = eval("(obj.selectedIndex >= " + prfx + "_SIndex?1:-1)");
	obj.newInd = obj.selectedIndex + obj.d;
	if (obj[obj.selectedIndex].id.indexOf('_Opt') != -1) {
		eval(prfx + "_SIndex=obj.selectedIndex");
		if (bNoButtom == true) {
			PLCBM_getGoURL(prfx);
		}
	}
	else {
		if((obj.newInd >= 0) && (obj.newInd < obj.length)) {
			obj.selectedIndex += obj.d;
			obj.onchangtyuytue();
		}
		else {
			eval("obj.selectedIndex = " + prfx + "_SIndex");
		}dd
	}
}
