function loadflash(flashfile){
	var thefile = "";
	
	if(flashfile == 1) thefile = "gallery.swf?thefile=stills.xml";
	else if(flashfile == 2) thefile = "stills_pano_lg.swf";
	else thefile = "stills_pano_sm2.swf";
	
	if(flashfile != 1){
	output =  "<div style='float:left'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='513' height='438'>";
	output += "<param name='movie' value='"+thefile+"'><param name='quality' value='high'><param name='allowFullscreen' value='true'><param name='bgcolor' value='#ffffff'>";
	output += "<embed src='"+thefile+"' quality='high' allowFullscreen='true' bgcolor='#ffffff' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='513' height='438'></embed></object></div>";
	
	}else{
		output = "<table width='100%' cellpadding='5' cellspacing='0' border='0'>";
			output += "<TR>";
				output += "<TD align='center' colspan='2' valign='center' height='400px' width='100%' ><img src='images_gallery/p01s.jpg' id='theimage'></TD>";
			output += "</TR>";
			output += "<TR>";
				output += "<TD align='right' width='60%' valign='center' height='150px'>";
					output += "<table cellpadding='2' cellspacing='0' border='0' align='right' >";
						output += "<tr>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(1);'><img src='images_gallery/p01t.jpg' width='58' height='35' border='0' id='thumb1'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(2);'><img src='images_gallery/p02t.jpg' width='58' height='35' id='thumb2' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(3);'><img src='images_gallery/p03t.jpg' width='58' height='35' id='thumb3' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(4);'><img src='images_gallery/p04t.jpg' width='58' height='35' id='thumb4' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(5);'><img src='images_gallery/p05t.jpg' width='58' height='35' id='thumb5' border='0'></a></td>";
						output += "</tr>";
						output += "<tr>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(6);'><img src='images_gallery/p06t.jpg' width='58' height='35' id='thumb6' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(7);'><img src='images_gallery/p07t.jpg' width='58' height='35' id='thumb7' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(8);'><img src='images_gallery/p08t.jpg' width='58' height='35' id='thumb8' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(9);'><img src='images_gallery/p09t.jpg' width='58' height='35' id='thumb9' border='0'></a></td>";
							output += "<td valign='middle' align='center' width='30'><a href='javascript:imagejump(10);'><img src='images_gallery/p10t.jpg' width='58' height='35' id='thumb10' border='0'></a></td>";
						output += "</tr>";
					output += "</table>";
				output += "</TD>";
				output += "<td align='left' valign='middle'>";
					output += "<table cellpadding='1' cellspacing='0' border='0'>";
						output += "<TR>";
						output += "  <td colspan='2' align='center' width='70px'><a href='javascript:thumbup();'><img src='images/btn/thumbup.jpg' border='0'></a></td>";
						output += "</TR>";
						output += "<tr><td align='left'><a href='javascript:thumbprev();'><img src='images/btn/thumbprev.jpg' border='0'></a></td>";
						output += "<td align='right'><a href='javascript:thumbnext();'><img src='images/btn/thumbnext.jpg' border='0'></a></td>";
						output += "</tr>";
						output += "<tr><td colspan='2' align='center'><a href='javascript:thumbdown();'><img src='images/btn/thumbdown.jpg' border='0'></a></td>";
						output += "</tr>";
					output += "</table>";
				output += "</td>";
			output += "</TR>";
		output += "</table>";
	}
	document.getElementById('gallery').innerHTML = output;
	
}