// Ad Code
function writeAdCode(thisArea) {
	var aamRnd = Math.round(Math.random() * 100000000);
	 
	// Adserver URL
	adserver = "http://63.225.61.9/bserver";
	 
	// Ad tag targeting values which will be appended to each ad Request section in the bserver ad call
	allAdTags = "/AAMALL/acc_random=" + aamRnd + "/pageid=" + aamRnd;
	
	// Individual tags for each ad Request  - increment the adx variable name and the AAMBx parameter.
	// *** MODIFY AREA= FOR POSITION ON EACH PAGE *******
	//  Features
	ad1 = "/AAMB1/area=class." + thisArea + ".leaderboard/adsize=728x90"; // Feature 1
	ad2 = "/AAMB2/area=class." + thisArea + ".button/adsize=160x125"; // Button
	ad3 = "/AAMB3/area=class." + thisArea + ".skyscraper/adsize=160x600"; // Feature 3
	ad4 = "/AAMB4/area=class." + thisArea + ".dogear/adsize=800X600"; // Dogear
	ad5 = "/AAMB5/area=class." + thisArea + ".button2/adsize=160x125"; // Button
	ad6 = "/AAMB6/area=class." + thisArea + ".leaderboard2/adsize=728x90"; // Feature 1
	ad7 = "/AAMB7/area=class." + thisArea + ".positionyx/adsize=800x600"; // popunder
	ad8 = "/AAMB8/area=class." + thisArea + ".positiony/adsize=300x250"; // 300x250 - interactive
	// bServer ad call - insert the adx variables
	document.write('<SCR' + 'IPT SRC="' + adserver + allAdTags  +
	// *** MODIFY ADX FOR POSITION ON EACH PAGE *******
	ad1 + ad2 + ad3 + ad4 + ad5 + ad6 + ad7 + ad8
	+ '?" type="text/JavaScript" language="JavaScript">');
	document.write('</SCR' + 'IPT>');
// End Hide 

}