var adFile=new Array() 
// Flash Ads (null, source, width, height)
adFile[0]=['', 'chf_768_90.swf', 728, 90]
// Image Ads (url, source, width, height)
adFile[1]=['conted.mtroyal.ca/teach', 'MRU_AED_CDA_CanTeach.gif', 728, 90]
adFile[2]=['boreal.com', 'boreal_northwest.jpg', 728, 90]
adFile[3]=['classroomconnections.ca/gatheringplace', 'classroom_connections2.gif', 728, 90]
adFile[4]=['kiwicommons.com', 'kiwi-commons.gif', 728, 90]
adFile[5]=['smarttech.com/us/Resources/Training/Training+Search/SMART+Training+Programs/Event+Training/Learner+Conferences', 'smart-learner1.jpg', 728, 90]
adFile[6]=['textilemuseum.ca/socialfabric', 'SF-Banner-ad.gif', 728, 90]
adFile[7]=['educ.queensu.ca/careers/torf.html', 'torfbanneradan2011-728x90.gif', 728, 90]
adFile[8]=['conted.mtroyal.ca/teach', 'MRU_AED_CDA_CanTeach.gif', 728, 90]
adFile[9]=['thinkquest.org/competition', 'think-quest-key_skills.gif', 728, 90]
adFile[9]=['papermate.com', 'NewellRubbermaid-BannerAd.gif', 728, 90]
adFile[10]=['phecanada.ca/programs/physical-literacy', 'phe-canada.gif', 728, 90]



////////////////No Need to Edit Below Here//////////////

//Randomizing Unit Courtesy of Mike Winter as seen at:
//http://www.dynamicdrive.com/forums/showthread.php?p=8442
function random(n) {
return Math.floor((Math.random() % 1) * n);
}

Array.prototype.shuffle = function() {var i = this.length;
while(i--) {this.swap(i, random(i + 1));}
};
Array.prototype.swap = function(x, y) {
var t = this[x]; this[x] = this[y]; this[y] = t;
};

adFile.shuffle()
//End Randomizing Unit

if(!adFile[0][0]) { // no URL in array so process as Flash
	
	document.write('\
	<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + adFile[0][2] + '" height="' + adFile[0][3] + '"> \
	<param name="movie" value="/ads/' + adFile[0][1] + '"> \
	<param name="quality" value="high"> \
	<param name="wmode" value="opaque"> \
	<param name="swfversion" value="9.0.45.0"> \
	<param name="LOOP" value="false"> \
	<!--[if !IE]>--> \
	<object type="application/x-shockwave-flash" data="/ads/' + adFile[0][1] + '" width="' + adFile[0][2] + '" height="' + adFile[0][3] + '"> \
	<!--<![endif]--> \
	<param name="quality" value="high"> \
	<param name="wmode" value="opaque"> \
	<param name="swfversion" value="9.0.45.0"> \
	<param name="LOOP" value="false"> \
	<div> \
	<h4>Content on this page requires a newer version of Adobe Flash Player.</h4> \
	<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> \
	</div> \
	<!--[if !IE]>--> \
	</object> \
	<!--<![endif]--> \
	</object> \
	')

} else { // process as standard image

	document.write('\
	<a href="http://' + adFile[0][0] + '" target="_blank"><img src="/ads/' + adFile[0][1] + '" width="' + adFile[0][2] + '" height="' + adFile[0][3] + '"></a> \
	')
}
