/* File Name		  :	randomFlash.js				  	*/
/* Scope of Program	  :	To generate random flash images 		*/
/* Created On		  :	19 Feb 2004				  	*/
/* Modified On		  :						  	*/
/* Reason of Modification :						  	*/	
/* Special Remark	  :						  	*/	

/* array of names of the flash images						*/
tmp_arr_imgs = new Array("panel-carpet.swf","panel-present.swf","panel-desk.swf","panel-jaquard.swf","panel-studio.swf","panel-3d.swf","panel-archive.swf");
/* no of elements in the array							*/
tmp_int_len = tmp_arr_imgs.length

/* Generate a random single digit number					*/
temp_int_rdm = Math.floor(Math.random() * 11);

/* If the generated no is greater then the no of images, subtract the length
   of array from the generated random no.					*/

if( temp_int_rdm > (tmp_int_len - 1) )
{
   temp_int_rdm = temp_int_rdm - tmp_int_len;
}

/* Display the flash image							*/
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="780" height="228"> <param name=movie value="images/'+tmp_arr_imgs[temp_int_rdm] +'"> <param name=menu value=false> <param name=quality value=high> <embed src="images/'+tmp_arr_imgs[temp_int_rdm] +'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="780" height="228"> </embed></object>');
