
function lightBox_ref(){
  return document.getElementById("lightbox");
}

function lightBox_show(){
  document.getElementById("shadow").style.display='block';
  lightBox_ref().style.display='block';
}
function lightBox_hide(){
  document.getElementById("shadow").style.display='none';
  lightBox_ref().style.display='none';
}

function lighBox_isVisible(){
  return document.getElementById("shadow").style.display!='none';
}

function lightBox_setText(content){
  lightBox_ref().innerHTML = content;
}
function lightBox_getText(){
  return lightBox_ref().innerHTML;
}

function lightBox_setColor(color){
  lightBox_ref().style.backgroundColor=color;
}

function lightBox_getColor(){
  lightBox_ref().style.backgroundColor;
}


function lightBox_setHeight(height){
  lightBox_ref().style.height=height;
}
function lightBox_getHeight(){
  return lightBox_ref().style.height;
}
function lightBox_setWidth(width){
  lightBox_ref().style.width=width;
}
function lightBox_getWidth(){
  lightBox_ref().style.width;
}

function lightBox_setBounds(left,top,right,bottom){
  var lightbox = lightBox_ref();
  if(left!=null)	lightbox.style.left=left;
  if(top!=null)	lightbox.style.top=top;
  if(right!=null)	lightbox.style.right=right;
  if(bottom!=null)lightbox.style.bottom=bottom;
}

function lightBox_getBounds(){
  var lightbox = lightBox_ref();
  return [
			 lightbox.style.left		? lightbox.style.left	: null ,
			 lightbox.style.top		? lightbox.style.top		: null ,
			 lightbox.style.right	? lightbox.style.right	: null ,
			 lightbox.style.bottom	? lightbox.style.bottom	: null
		  ];
}
