function loadContent (game, width, height)
{	
	var winLeft = (screen.width-width) / 2;
	var winTop = (screen.height-height) / 2;

	window.open('interactive/'+game+'.htm','OdaKidsZone','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height+',top='+winTop+',left='+winLeft+',bgcolor=#000000');
}

function turnOutLights ()
{
	var temp = document.createElement ('div');
	temp.setAttribute ('id', 'blackOut');
	temp.innerHTML = "&nbsp;";
	document.body.appendChild (temp);
}

function turnOnLights ()
{
	document.body.removeChild (document.getElementById ('blackOut'));
}

/* Functions copied over from previous kidszone */
function OpenOptio(lang, mod, prod)
{
  var strID = 'a7385f0d01198ce743e3763b9ac02e0e';
  var strPkgInfo = 'language=' + lang + '&loadmodule=' + mod + '&pid=' + prod;
  var winLeft = (screen.width-640)/2;
  var winTop = (screen.height-560)/2;  
  window.open('http://www.optiopublishing.com/oda?'+strPkgInfo+'&id='+strID,'OptioDentistryWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=640,height=560,top='+winTop+',left='+winLeft+',bgcolor=#000000');
}

function LaunchGame(url, popupName, popWidth, popHeight)
{
	var strID = 'a7385f0d01198ce743e3763b9ac02e0e';
	var winLeft = (screen.width-543)/2;
	var winTop = (screen.height-540)/2;  
	window.open('http://www.optiopublishing.com/oda/kidszone/game.php?id='+strID,'OptioGame','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=543,height=540,top='+winTop+',left='+winLeft+',bgcolor=#000000');
}
