var query = location.search.substring(1);
var defaultId = "118647";
var ad = new Array();

if(query == "")
{
 try
	{
	 if(affiliateId != undefined && affiliateId != "")
   query = affiliateId;
	 else
	  query = defaultId;
	}
	catch(e)
	{query = defaultId;}
}

ad[0]="<b><a href=\"http://www.puzz.com/classictests.html\" title=\"IQ Tests\" target=\"_blank\">Classic IQ Tests & Puzzles</a></b> - Over 10 years of IQ tests, puzzles and puzzle contests in one place!";

ad[1]="<b><a href=\"http://alliqtests.com/categories/3/0/\" title=\"Timed IQ Tests\" target=\"_blank\">Timed IQ Tests</a></b> - 10 fully automated and timed IQ tests, all 100% free.";

ad[2]="<b><a href=\"http://www.puzz.com/iqtests.html\" title=\"IQ Tests\" target=\"_blank\">IQ Tests</a></b> - Dozens of free IQ tests!";

ad[3]="<b><a href=\"http://alliqtests.com/\" title=\"IQ Tests\" target=\"_blank\">IQ Tests</a></b> - Over 30 timed IQ tests, visual-spatial IQ tests & more.";

ad[4]="<b><a href=\"http://alliqtests.com/categories/2/0/\" title=\"Intelligence Tests\" target=\"_blank\">Intelligence Tests</a></b> - 18 general intelligence tests, all completely free.";





ad[5]="<b><a href=\"http://www.amillionquizzes.com/\" title=\"Quizzes\" target=\"_blank\">IQ Tests, Trivia Quizzes, Fun Quizzes</a></b> - Tons of IQ tests, trivia quizzes and fun quizzes.";ad[6]="<b><a href=\"http://www.onlinegamingzone.com/braingames.html\" title=\"Brain Games\" target=\"_blank\">Brain Games</a></b> - Test your memory, spatial reasoning, math skills and more with these fun online brain games.";
