function show(document,objectId){
  var element = document.getElementById(objectId);
	if(isDefined(element)){
	  element.style.visibility='visible';
		element.style.display='inline';
	}
}

function hide(document,objectId){
  var element = document.getElementById(objectId);
	if(isDefined(element)){
	  element.style.visibility='hidden';
		element.style.display='none';
	}
}

function isDefined(object){
  if(object != null){
	  return object != undefined;
	}
	return false;
}

function showPopup(document,objectId){
  hide(document,'popup');
	hide(document,'popup');
  hide(document,'popup');
	hide(document,'popup');
	show(document,objectId);
}

function hoverEffectOn(element){
  element.style.color='#f93';
	element.style.textDecoration='underline';
}

function hoverEffectOff(element){
  element.style.color='LightSeaGreen';
	element.style.textDecoration='none';
}


function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}
function placeIt(obj)
{
	theLeft = 20;
	theTop = 70;
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('deal')",500);
}
