//  globals.js  6/19/2004  tjb  Active Space Media

var projectsList = new Array();

var mousedSlot = -1;

var captionColorHilite = { r:250, g:120, b:40 };  // same as in CSS style 
var captionColorFadeIn = { r:240, g:130, b:60 };  // make it a bit dimmer?

//var captionColorHilite = { r:250, g:120, b:40 };  // same as in CSS style
//var captionColorFadeIn = { r:230, g:100, b:20 };  // make it a bit dimmer?

//var captionColorHilite = { r:230, g:100, b:20 };  // same as in CSS style
//var captionColorFadeIn = { r:230, g:100, b:20 };  // make it a bit dimmer?

//var captionColorHilite = { r:219, g:125, b:25 };  // same as in CSS style
//var captionColorFadeIn = { r:214, g:120, b:20 };  // make it a bit dimmer?

var fadedColor =         { r:10,  g:10,  b:10 };

var createProjectEditorLink, createNewsEditorLink;  // set in editor.js

function rgb2s (rgb) { return "{ r:" +rgb.r+ ", g:" +rgb.g+ ", b:" +rgb.b+ " }"; }

function setCaptionColor (rgb)
{
  var div = document.getElementById ("caption");
  div.style.color = "rgb(" +rgb.r+ "," +rgb.g+ "," +rgb.b+ ")";
}

function clearTextField (field)
{
  if (field.defaultValue == field.value) field.value = "";
}

function trim (str) { return str.replace(/^\s+/,'').replace(/\s+$/,''); }
