// (C) Copyright 2002-2004 by Sven Weingartner (http://www.sveni.com)
// All Rights reserved !!!

var baseTitle = 'design for life.'; //title if nothing is given
var popupPath = ''; //default image path
var scrollbarSize = 30; //size of scrollbars

function popup(page,width,height,title,noimg) {
  if (!title) {title = baseTitle;}
  height+=30;width+=15;
  scrollbars = "no";
  if (height > 550)
  {
    height = 550 + scrollbarSize;
    scrollbars = "yes";
  }
  if (width > 800)
  {
    width = 800 + scrollbarSize;
    scrollbars = "yes";
  }
  //  alert("width="+width+",height="+height);
  popwin=window.open("/popup.htm?page="+popupPath+page+"&title="+title,"popup","width="+width+",height="+height+",resizable=yes,scrollbars="+scrollbars);
  popwin.focus();
}

function setPopupPath(path) {
  popupPath = path;
}

function setBaseTitle(title) {
  baseTitle = title;
}



function setA(wen) {
  setStylee(wen,'borderColor','#006999');
  setStylee(wen,'backgroundColor','#C3D1E7');
}

function setI(wen) {
  setStylee(wen,'borderColor','#FF6600');
  setStylee(wen,'backgroundColor','#FFB27F');
}



