function poponloadsudoku()
{
	testwindow= window.open ("http://www.introducertoday.co.uk/games/sudoku/", "mywindow","location=0,status=0,scrollbars=1,width=820,height=540");
	testwindow.moveTo(100,100);
}

function poponloadcrystalxp()
{
	testwindow= window.open ("http://www.introducertoday.co.uk/games/crystal-xp/" , "mywindow","location=0,status=0,scrollbars=1,width=820,height=508");
	testwindow.moveTo(100,100);
}

function poponloadtetris()
{
	testwindow= window.open ("http://www.introducertoday.co.uk/games/tetris/" , "mywindow","location=0,status=0,scrollbars=1,width=820,height=508");
	testwindow.moveTo(100,100);
}

function poponloadpacman()
{
	testwindow= window.open ("http://www.introducertoday.co.uk/games/pacman/" , "mywindow","location=0,status=0,scrollbars=1,width=820,height=648");
	testwindow.moveTo(100,100);
}

function poponloadalphablue()
{
	testwindow= window.open ("http://www.introducertoday.co.uk/games/alpha_blue/" , "mywindow","location=0,status=0,scrollbars=1,width=820,height=648");
	testwindow.moveTo(100,100);
}
function newspopup()
{
	if (get_cookie('popunder')==''){
		testwindow= window.open ("http://www.introducertoday.co.uk/newspopup.html", "mywindow","location=0,status=0,scrollbars=0,width=200,height=500");
		testwindow.moveTo(100,100);
		document.cookie="popunder=yes;path=/"
	}
}
function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
	offset = document.cookie.indexOf(search)
	if (offset != -1) { // if cookie exists
	  offset += search.length
	  // set index of beginning of value
	  end = document.cookie.indexOf(";", offset);
	  // set index of end of cookie value
	  if (end == -1)
	 end = document.cookie.length;
	  returnvalue=unescape(document.cookie.substring(offset, end))
	  }
   }
  return returnvalue;
}
