// 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=ahorautah." + thisArea + ".leaderboard/adsize=728x90"; // Feature 1
	ad2 = "/AAMB2/area=ahorautah." + thisArea + ".button/adsize=160x125"; // Button
	ad3 = "/AAMB3/area=ahorautah." + thisArea + ".skyscraper/adsize=160x600"; // Feature 3
	ad4 = "/AAMB4/area=ahorautah." + thisArea + ".dogear/adsize=800X600"; // Dogear
	ad5 = "/AAMB5/area=ahorautah." + thisArea + ".button2/adsize=160x125"; // Button
	ad6 = "/AAMB6/area=ahorautah." + thisArea + ".minitower/adsize=160x300"; // Mini-Tower
	ad7 = "/AAMB7/area=ahorautah." + thisArea + ".skyscraper2/adsize=160x600"; // second skyscraper
	ad8 = "/AAMB8/area=ahorautah." + thisArea + ".button3/adsize=160x125"; //  3Button
	ad9 = "/AAMB9/area=ahorautah." + thisArea + ".button4/adsize=160x125"; //  4Button
	ad10 = "/AAMB10/area=ahorautah." + thisArea + ".positionyx/adsize=800x600"; // PopUnder
	ad11 = "/AAMB11/area=ahorautah." + thisArea + ".positiony/adsize=300x250"; // Interactive
	ad12 = "/AAMB12/area=ahorautah." + thisArea + ".position1f/adsize=160x60"; // minibutton1
	ad13 = "/AAMB13/area=ahorautah." + thisArea + ".position2f/adsize=160x60"; // minibutton2
	ad14 = "/AAMB14/area=ahorautah." + thisArea + ".position3f/adsize=160x60"; // minibutton3
	ad15 = "/AAMB15/area=ahorautah." + thisArea + ".position4f/adsize=160x60"; // minibutton4
	// 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 + ad12 + ad13 + ad14 + ad15
	+ '?" type="text/JavaScript" language="JavaScript">');
	document.write('</SCR' + 'IPT>');
// End Hide 

}