function hideWindow()
{
switchElement(false,document.getElementById('dhtml _goodies_id' + this.id.replace(/[^\d]/g,'')));
activeWindow.style.display='none';
}
function minimizeWindow(e,inputObj)
{
if(!inputObj)inputObj = this;
var numericID = inputObj.id.replace(/[^0-9]/g,'');
switchElement(false,document.getElementById('dhtml _goodies_id' + numericID));
var state;
if(inputObj.src.indexOf('minimize')>=0){
activeWindowContent.style.display='none';
document.getElementById('resizeImage'+numericID).s tyle.display='none';
inputObj.src = inputObj.src.replace('minimize','maximize');
windowStateArray[numericID] = false;
state = '0';
}else{
activeWindowContent.style.display='block';
document.getElementById('resizeImage'+numericID).s tyle.display='';
inputObj.src = inputObj.src.replace('maximize','minimize');
windowStateArray[numericID] = true;
state = '1';
}
Set_Cookie(activeWindow.id + '_attr',activeWindow.style.left.replace('px','') + ',' + activeWindow.style.top.replace('px','') + ',' + activeWindow.style.width.replace('px','') + ',' + activeWindowContent.style.height.replace('px','') + ',' + activeWindow.style.zIndex + ',' + state,50);