var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 7;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
	document.write('<script type="text/vbscript"> \n');
	document.write('  on error resume next \n');
	document.write('  plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
	document.write('</script\> \n');
}
if ( plugin ) {
	document.writeln('<object type="application/x-shockwave-flash" data="/flash/gallery.swf" width="'+width+'" height="'+height+'" id="gallery">');
	document.writeln('  <param name="wmode" value="transparent" />');
	document.writeln('  <param name="movie" value="/flash/gallery.swf">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <param name="menu" value="false">');
	document.writeln('  <param name="loop" value="0">');
	document.writeln('  <param name="FlashVars" value="imagesXml='+imagesXml+'">');
	document.writeln('  <embed src="/flash/gallery.swf" width="'+width+'" height="'+height+'" loop="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="opaque" name="gallery"></embed>');
	document.writeln('</object>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
//	document.write('<img src="images/slideshow_1.gif" width="'+width+'" height="'+height+'" border="0" alt="">');
}