// Random Flash Movie - by Kaosweaver
// Copyright 2002, 2007 all rights reserved
// visit http://www.kaosweaver.com/ for Dreamweaver extensions.
// updated for stupid IE problem

var j=parseInt(Math.random()*KW_movieList.length)
j=isNaN(j)?0:j;
if (KW_movieList[j].ty==1) {
	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="'+KW_movieList[j].width+'" height="'+KW_movieList[j].height+'">  <param name=movie value="'+KW_movieList[j].name+'">  <param name=quality value=high>'+kw_rf_loop2+'  <param name="BASE" value=".">  <param name="BGCOLOR" value="">');   
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
	   	document.write('<embed src="'+KW_movieList[j].name+'" base="."  quality=high '+kw_rf_loop1+'   pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+KW_movieList[j].width+'" height="'+KW_movieList[j].height+'" bgcolor="">  </embed>');
	} else {
		if (kw_rf_dImage!="")
	   	document.write('<IMG SRC="'+kw_rf_dImage+'" ALT="Flash not enabled">');
	}
	document.write('</object>');
} else {
	document.write('<img src="'+KW_movieList[j].name+'" width="'+KW_movieList[j].width+'" height="'+KW_movieList[j].height+'">');
}
