var animation=new Array();
animation[182] = new Array();
animation[182][0]="advert_croc.swf";
animation[182][1]="advert_kakadu.swf";
animation[182][2]="advert_waterfall.swf";
animation[182][3]="advert_adventures.swf";
animation[182][4]="advert_warm.swf"

function display_flash(size){
	var adFlash = getRandom(size);
	var wdth=size;
	if (wdth=='182') var hght='241';	
	//else if(wdth=='461') var hght='131';
	flashfile = "/resources/images/"+animation[size][adFlash];
	return flashPlayer(flashfile, wdth, hght);
}
function flashPlayer(flashfile, wdth, hght){
	document.write ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0' width='"+wdth+"' height='"+hght+"'>\n");
	document.write ("<param name='movie' value='" + flashfile + "'\/>\n");
	document.write ("<param name='quality' value='high'\/>\n");
	document.write ("<param name='scale' value='exactfit'\/>\n");
	//document.write ("<param name='wmode' value='transparent'\/>\n");
	document.write ("<embed src='" + flashfile + "' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+wdth+"' height='"+hght+"' scale='exactfit' wmode='transparent'><\/embed>");
	document.write ("<\/object>");
}
function getRandom(size) {
	var amt = (animation[size].length) - 1; // counts the number of diff animation for set size
	var ranNum= Math.round(Math.random()*amt);
	return ranNum;
}