<!-- Copyright 2001, 2002, 2003 Macromedia, Inc. All rights reserved. -->
<!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
	<title><MMString:loadString id="TagLibraries/HTML/basefont/title" /></title>
<script src="../../Shared/Common/Scripts/dwscripts.js"></script>
<script src="../../Shared/Common/Scripts/tagDialogsCmn.js"></script>
<script src="../../Shared/Common/Scripts/ListControlClass.js"></script>
<script src="loc_strings.js"></script>
<script src="strings.js"></script>
<script>
/************************* GLOBAL VARS **************************/

var FONTLIST; 
var SIZELIST; 

var theUIObjects; 

// Color control elements
var COLORP_COLOR; 
var TEXT_COLOR; 

/****************************************************************/

function inspectTag(tagNodeObj)
{
  tagDialog.inspectTagCommon(tagNodeObj, theUIObjects); 
  updateColors();
}

function applyTag(tagNodeObj)
{
  tagDialog.applyTagCommon(tagNodeObj, theUIObjects); 
}


function updateUI(itemName)
{
  switch(itemName)
  {
    case "colorColorPicker":
    { 
      tagDialog.updateColorPicker("colorPicker",COLORP_COLOR,TEXT_COLOR);
      break;
    }
    case "color":
    {
      tagDialog.updateColorPicker("colorField",COLORP_COLOR,TEXT_COLOR);
      break;
    }
  }
}

function updateColors()
{
  tagDialog.updateColorPicker("colorField",COLORP_COLOR,TEXT_COLOR);
}

function initializeUI()
{
	FONTLIST = new ListControl("theface"); 
	SIZELIST = new ListControl("thesize"); 

	theUIObjects  = new Array(FONTLIST,SIZELIST); 

  COLORP_COLOR = dwscripts.findDOMObject("colorColorPicker");
  TEXT_COLOR = dwscripts.findDOMObject("thecolor");
  
  updateColors(); 
  tagDialog.populateDropDownList(FONTLIST, dw.getFontList(), dw.getFontList(), 1); 
  tagDialog.populateDropDownList(SIZELIST, theFontSizesBFVal, theFontSizesBFVal, 1); 
}
</script>
<link href="../../fields.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="initializeUI()">
<div MMString:name="TagLibraries/HTML/basefont/div/name/General"> 
  <table border="0" cellspacing="4">
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/HTML/basefont/text/Font" /> </td>
      <td nowrap="nowrap">
        <select name="theface" class="fontGroupList" id="attr:basefont:face" attname="face" editable="true">
           
        </select>    
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/HTML/basefont/text/Size" /> </td>
      <td nowrap="nowrap">
        <select name="thesize" class="smallNumOrCharList" id="attr:basefont:size" attname="size" editable="true"> 
        </select>    
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/HTML/basefont/text/Color" /> </td>
      <td nowrap="nowrap">
        <input type="mmcolorbutton" name="colorColorPicker" value="" onChange="updateUI('colorColorPicker')"> 
        <input name="thecolor" type="text" class="smallTField" id="html:basefont:color" onBlur="updateUI('color')" value="" attname="color">
        <img src="../../Shared/MM/Images/transparent.gif" width="10" height="1"> <!-- spacer - do not remove --> 
      </td>
    </tr>
  </table> 
</div> 
<div MMString:name="TagLibraries/HTML/basefont/div/name/Style"> 
  <table border="0" cellspacing="4">
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/HTML/basefont/text/ID" /> </td>
      <td nowrap="nowrap">
        <input name="theid" type="text" class="medTField" id="attr:basefont:id" attname="id" />
      </td>
    </tr>
  </table> 
</div>
</body>
</html>
