function mdwong_pop(path,pop_name,options)
{
	if(!options)
   {
options="width=764,height=366,location=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes";
   }
	if(path)
   {
      if(!pop_name)
      {
			var n = path.split("/");
			var temp = n[n.length-1];
			n = temp.split(".");
			pop_name = n[0];
		}	
		mdwong_popwin = window.open(path,pop_name,options);
      var winObj = window.open(path,pop_name,options);
      if (winObj.focus) winObj.focus();
    }
}

function SV_Images(imgSrc)
{
   this.dflt = "M";
   if (document.images)
   {
      this.image = new Image()
      this.url = imgSrc
      RollImagesArray[ RollImagesArray.length ] = this
   }
}

function ImageSwitch(imgName,switchtoObjName)
{
   if (document.images)	document.images[imgName].src = eval(switchtoObjName + ".image.src");
}

function MultiSwitch()
{
   if (document.images)
   {
      var i=0;
      while ( i < arguments.length)	ImageSwitch(arguments[i++],arguments[i++]);
   }
}

function PreLoadImages()
{
   if (document.images)
   {
      var i=0
      for (i=0; i < RollImagesArray.length; i++)
      RollImagesArray[ i ].image.src = RollImagesArray[ i ].url;
   }
}

RollImagesArray = new Array();

