// JavaScript Document
function showmutmenu(classname){
$("."+classname).each(
function(){
var objid=this.id;
 $("#"+objid+"//li").each(function(i){
 $(this).mouseover(function(){
 $("#"+objid+"//li").removeClass("lon");
  this.className="lon";
 $("#c"+objid).html($("#"+objid+"l"+i).html());
 });
});
 if(typeof($("."+objid+"_dftval"))!="undefined")
{
	$("#c"+objid).html($("."+objid+"_dftval").html());
	}
});	
}


/*制作圆角*/
 window.onload = function()
  {
      /*
      The new 'validTags' setting is optional and allows
      you to specify other HTML elements that curvyCorners
      can attempt to round.

      The value is comma separated list of html elements
      in lowercase.

      validTags: ["div", "form"]

      The above example would enable curvyCorners on FORM elements.
      */
      settings = {
          tl: { radius: 4 },
          tr: { radius: 4 },
          bl: { radius: 4 },
          br: { radius: 4 },
          antiAlias: true,
          autoPad: true,
          validTags: ["ul","div"]
      }

      /*
      Usage:

      newCornersObj = new curvyCorners(settingsObj, classNameStr);
      newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
      */
      var myBox3Object = new curvyCorners(settings, "myBox3");
	  var myBox1Object = new curvyCorners(settings, "myBox1");
	  var myBox2Object = new curvyCorners(settings, "myBox2");
	  var myBox4Object = new curvyCorners(settings, "myBox4");
	  var myBoxObject = new curvyCorners(settings, "myBox");
      myBox3Object.applyCornersToAll();
	  myBox1Object.applyCornersToAll();
	  myBox2Object.applyCornersToAll();
	  myBox4Object.applyCornersToAll();
	  myBoxObject.applyCornersToAll();
  }

function showdotmenu(classname){
$("."+classname).each(
function(){
var objid=this.id;
 $("#"+objid+"//a").each(function(i){
 $(this).mousedown(function(){
 $("#"+objid+"//a").removeClass("lon");
  this.className="lon";
 $("#c"+objid).html($("#"+objid+"l"+i).html());
 });
});
 if(typeof($("."+objid+"_dftval"))!="undefined")
{
	$("#c"+objid).html($("."+objid+"_dftval").html());
	}
});	
}

