var isWindowed = false;
var isFlash = false;
var windowedObject = 'windowedElement';
var movieObject = 'windowedMovie';
var windowedDisplay = true;

function showWindowed() {
  if (isWindowed) {
  	windowedDisplay = true;
	window.setTimeout("showWindowedAction();",750);  
  }
}

function showWindowedAction () {
  if (windowedDisplay) {
	  //if (isFlash) {
	  //	eval (movieObject + '.Play()');
	  //}
	  if (document.getElementById) { //DOM
	    document.getElementById(windowedObject).style.visibility = 'visible';
	  }
	  //else if (document.layers && document.layers[windowedObject]) { //NS4
	  //  document.layers[windowedObject].visibility = 'visible';
	  //}
	  else if (document.all) { //IE4
	    document.all[windowedObject].style.visibility = 'visible';
	  }
  }
}

function hideWindowed() {
  if (isWindowed) {
  	  windowedDisplay = false;
  
	  //if (isFlash) {
	  //	eval (movieObject + '.Stop()');
	  //}
	  if (document.getElementById) { //DOM
	    document.getElementById(windowedObject).style.visibility = 'hidden';
	  }
	  //else if (document.layers && document.layers[windowedObject]) { //NS4
	  //  document.layers[windowedObject].visibility = 'hidden';
	  //}
	  else if (document.all) { //IE4
	    document.all[windowedObject].style.visibility = 'hidden';
	  }
  }
}

function setStyleBold(id) {
	if (document.getElementById) { //DOM
		document.getElementById(id).style.fontWeight = 'bold' ;
	}
	else if (document.all) { //IE4
		document.all[id].style.fontWeight = 'bold' ;
	}
}

function setText(id, txt) {
	if (document.getElementById) { //DOM	
		document.getElementById(id).innerHTML = txt ;
	}
	else if (document.all) { //IE4
		document.all[id].style.innerHTML = txt ;
	}
}
