﻿/***** Flash View *****************************************************************************************/

function fFlash(argSRC,argWIDTH,argHEIGHT,argBGCOLOR,argVar,argID,argName,argWMODE)
{
var strTEMP;
strTEMP ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ' ;

if(argID)
   strTEMP = strTEMP + ' ID="' + argID + '" ' ;

strTEMP = strTEMP + ' width="'+ argWIDTH + '" height="' + argHEIGHT + '">';

strTEMP = strTEMP + '<param name="allowScriptAccess" value="always" />';

strTEMP = strTEMP + '<param name="movie" value="' + argSRC + '">';

strTEMP = strTEMP + '<param name="FlashVars" value="'+argVar+'" />';

strTEMP = strTEMP + '<param name="bgcolor" value="'+argBGCOLOR+'" />';

strTEMP = strTEMP + '<param name="quality" value="high" />';
strTEMP = strTEMP + '<param name="memu" value="false" />';

if(argWMODE)
	strTEMP = strTEMP + '<param name="wmode" value="' + argWMODE + '">';
else
	strTEMP = strTEMP + '<param name="wmode" value="transparent">';


strTEMP = strTEMP + '<embed src="'+ argSRC +'" FlashVars="'+ argVar +'" ';

if (argWMODE)
	strTEMP = strTEMP + 'wmode="'+ argWMODE +'" ';
else
	strTEMP = strTEMP + 'wmode="transparent" ';


strTEMP = strTEMP + 'menu="false" quality="high" bgcolor="'+ argBGCOLOR +'" width="'+ argWIDTH +'" height="'+ argHEIGHT +'" name="'+ argID +'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';

strTEMP = strTEMP + '</object>';

document.write(strTEMP);

//alert(strTEMP);
}