// Ad Code
function writeAdCode(thisArea) {
	var aamRnd = Math.round(Math.random() * 100000000);
	 
	// Adserver URL
	adserver = "http://63.225.61.3/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=inthisweek." + thisArea + ".leaderboard/adsize=728x90"; // Feature 1
	ad2 = "/AAMB2/area=inthisweek." + thisArea + ".button/adsize=160x125"; // Button
	ad3 = "/AAMB3/area=inthisweek." + thisArea + ".skyscraper/adsize=160x600"; // Feature 3
	ad4 = "/AAMB4/area=inthisweek." + thisArea + ".dogear/adsize=800X600"; // Dogear
	ad5 = "/AAMB5/area=inthisweek." + thisArea + ".button2/adsize=160x125"; // Button
	ad6 = "/AAMB6/area=inthisweek." + thisArea + ".minitower/adsize=160x300"; // Mini-Tower
	ad7 = "/AAMB7/area=inthisweek." + thisArea + ".skyscraper2/adsize=160x600"; // second skyscraper
	ad8 = "/AAMB8/area=inthisweek." + thisArea + ".button3/adsize=160x125"; //  3Button
	ad9 = "/AAMB9/area=inthisweek." + thisArea + ".button4/adsize=160x125"; //  4Button
	ad10 = "/AAMB10/area=inthisweek." + thisArea + ".positionyx/adsize=800x600"; // PopUnder
	ad11 = "/AAMB11/area=inthisweek." + thisArea + ".interactive/adsize=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 + ad9 + ad10 + ad11
	+ '?" type="text/JavaScript" language="JavaScript">');
	document.write('</SCR' + 'IPT>');
// End Hide 

}