		function writeFlash(width, height, filePath, transCheck, loopcheck) {
			document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+width+"' height='"+height+"'>");
			document.write("<param name='movie' value='"+filePath +"'>");
			document.write("<param name='quality' value='high'>");

			if (transCheck=="true") {
				document.write("<PARAM NAME='wmode' VALUE='Transparent'>");
			}
			document.write("<param name='LOOP' value='" +loopcheck +"'>");
			

			document.write("<embed src='"+filePath +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
			document.write("</object>");
		}
		
		function writeFlash(width, height, filePath, transCheck, loopcheck, pageing) {
			document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+width+"' height='"+height+"'>");
			document.write("<param name='movie' value='"+filePath +"'>");
			document.write("<param name='quality' value='high'>");

			if (transCheck=="true") {
				document.write("<PARAM NAME='wmode' VALUE='Transparent'>");
			}
			document.write("<param name='LOOP' value='" +loopcheck +"'>");

			document.write("<param name='FlashVars' VALUE='" + pageing + "'>");

			document.write("<embed src='"+filePath +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
			document.write("</object>");
		}		