function getObjectTagFlash(strFlashName, intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty,strOption) {

	var strFlashVars;

	var strBgcolor;

	var strQty;

	var ret;

	strFlashVars = 'stage_width=' + intWidth + '&amp;stage_height=' + intHeight;

	strQty = 'low';

	strBackground = '';

	ret = '';

	if (typeof(strConfigName) == 'string') {

		strFlashVars += '&amp;xmldata=' + escape(strConfigName);

	};

	if (typeof(intCache) == 'number') {

		if (strFlashVars != '') {

			strFlashVars += '&amp;cache_xml=' + intCache;

		} else {

			strFlashVars = 'cache_xml=' + intCache;

		};

	};

	if (typeof(strOption) == 'string') {

		if (strFlashVars != '') {

			strFlashVars += '&amp;' + strOption;

		} else {

			strFlashVars += strOption;

		};

	};

	if (typeof(strBgcolor) == 'string') {

		strBackground = strBgcolor;

	};

	if (typeof(intQty) == 'number') {

		if (intQty) {

			strQty = 'high';

		};

	};

	ret += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';

	ret += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" '; 

	ret += 'width="'+intWidth+'" height="'+intHeight+'"> ';

	ret += '<param name=movie value="' + strFlashName + '"> ';

	if (strFlashVars != '') {

		ret += '<param name="flashvars" value="' + strFlashVars + '"> ';

	}

	if (strBackground != '') {

		ret += '<param name=bgcolor value="' + strBackground + '">';

	} else {

		ret += '<param name=wmode value="transparent">';

	};

	ret += '<param name=quality value=' + strQty + '> ';

	ret += '<param name=scale value="noscale"> ';

	ret += '<param name=salign value="TL"> ';

	ret += '<embed src="'+strFlashName+'" quality=' + strQty;

	ret += ' width="'+intWidth+'" height="'+intHeight+'" ';

	if (strBackground != '') {

		ret += ' bgcolor="' + strBackground + '" ';

	} else {

		ret += ' wmode="transparent" ';

	};

	if (strFlashVars != '') {

		ret += 'flashvars="' + strFlashVars + '" ';

	};

	ret += 'scale="noscale" ';

	ret += 'salign="TL" ';

	ret += 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed> ';

	ret += '<\/object> ';

	return ret;

};

function getPlugin(strImageName,intWidth,intHeight) {

	var ret;

		ret  = '<A HREF="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';

		ret += '<IMG SRC="'+ strImageName + '" ALT="Get Flash Player" BORDER="0">';

		ret += '<\/A>';

	return ret;

}

function getPluginWH(strImageName,intWidth,intHeight) {

	var ret;

		ret  = '<a href="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';

		ret += '<IMG SRC="'+ strImageName + '" WIDTH="' + intWidth + '" HEIGHT="' + intHeight + '" alt="Get Flash Player" BORDER=0>';

		ret += '<\/a>';

	return ret;

}

function getPluginText(strImageName,intWidth,intHeight) {

	var ret;

		ret  = '<IMG SRC="'+ strImageName + '" WIDTH="' + intWidth + '" HEIGHT="' + intHeight + '" alt="Get Flash Player" BORDER=0>';

		ret += '<table><tr><td bgcolor="#FFCC00"><p><font color="#333333"><a href="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">CLICK HERE<\/a> TO DOWNLOAD MACROMEDIA FLASH PLAYER NOW.<\/font><\/p><\/td><\/tr><\/table>';

	return ret;

}

function openFPE(strFlashName,strImageName,intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty) {

	var nQ = 1;

	if (typeof(intQty) == 'number') {

		nQ = intQty;

	}

	if ( MM_FlashCanPlay ) {

		document.write(getObjectTagFlash(strFlashName, intWidth,intHeight,strConfigName,strBgcolor,intCache,nQ));

	} else{

		document.write(getPlugin(strImageName,intWidth,intHeight));

	}

};

function getObjectTagEasyFPE(strFlashName, strImageName, intWidth,intHeight,strBgcolor,intMax,intEtype,intEtime,intStime,strPrefix) {

	var strOption;

	strOption = "";

	if (typeof(intMax) == 'number') { strOption += "image_max=" + intMax };

	if (typeof(intEtype) == 'number') {strOption += "&amp;effect_type=" + intEtype };

	if (typeof(intEtime) == 'number') {strOption += "&amp;effect_time=" + intEtime };

	if (typeof(intStime) == 'number') {strOption += "&amp;stop_time=" + intStime };

	if (typeof(strPrefix) == 'string') {strOption += "&amp;prefix=" + escape(strPrefix) + "" };



	if ( MM_FlashCanPlay ) {

		return getObjectTagFlash(strFlashName, intWidth,intHeight,"none",strBgcolor,0,1,strOption);

	} else{

		return getPlugin(strImageName,intWidth,intHeight);

	}

};

function easyFPE(strFlashName, strImageName, intWidth,intHeight,strBgcolor,intMax,intEtype,intEtime,intStime,strPrefix) {

	document.write(getObjectTagEasyFPE(strFlashName,strImageName,intWidth,intHeight,strBgcolor,intMax,intEtype,intEtime,intStime,strPrefix));

};

function openFBE(strFlashName,strImageName,intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty) {

	if ( MM_FlashCanPlay ) {

		document.write(getObjectTagFlash(strFlashName, intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty));

	} else{

		document.write(getPlugin(strImageName,intWidth,intHeight));

	}

};

function getObjectTagEasyFBE(strFlashName, strImageName, intWidth, intHeight, strBgcolor, intOver_effect,intOver_time, intCol_max, intRow_max, strButton_normal, strButton_over, intPadding, intScope) {

	var strOption;

	strOption = "";

	if (typeof(intOver_effect) == 'number') { strOption += "over_effect=" + intOver_effect };

	if (typeof(intOver_time) == 'number') { strOption += "&over_time=" + intOver_time };

	if (typeof(intCol_max) == 'number') {strOption += "&col_max=" + intCol_max };

	if (typeof(intRow_max) == 'number') {strOption += "&row_max=" + intRow_max };

	if (typeof(intPadding) == 'number') {strOption += "&padding=" + intPadding };

	if (typeof(intScope) == 'number') {strOption += "&scope=" + intScope };

	if (typeof(strButton_normal) == 'string') {strOption += "&button_normal=" + escape(strButton_normal) + "" };

	if (typeof(strButton_over) == 'string') {strOption += "&button_over=" + escape(strButton_over) + "" };



	if ( MM_FlashCanPlay ) {

		return getObjectTagFlash(strFlashName, intWidth,intHeight,"none",strBgcolor,0,0,strOption);

	} else{

		return getPlugin(strImageName,intWidth,intHeight);

	}

};

function easyFBE(strFlashName, strImageName, intWidth,intHeight,strBgcolor,intOver_effect,intOver_time, intCol_max, intRow_max, strButton_normal, strButton_over, intPadding, intScope) {

	document.write(getObjectTagEasyFBE(strFlashName,strImageName,intWidth,intHeight,strBgcolor,intOver_effect,intOver_time, intCol_max, intRow_max, strButton_normal, strButton_over, intPadding, intScope));

};

function openFZE(strFlashName,strImageName,intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty) {

	if ( MM_FlashCanPlay ) {

		document.write(getObjectTagFlash(strFlashName, intWidth,intHeight,strConfigName,strBgcolor,intCache,intQty));

	} else{

		document.write(getPlugin(strImageName,intWidth,intHeight));

	}

};

function getObjectTagEasyFZE(strFlashName, strImageName, intWidth,intHeight,strBgcolor,intZoom_effect,intZoom_time,strImage, strPreview,strNavi,intZoom_fade,intView_mode,intOpe_mode,intNavi_mode,intNavi_effect,intNavi_time,intZoom_mode) {

	var strOption;

	strOption = "";

	if (typeof(intZoom_effect) == 'number') { strOption += "zoom_effect=" + intZoom_effect };

	if (typeof(intZoom_time) == 'number') { strOption += "&zoom_time=" + intZoom_time };

	if (typeof(strImage) == 'string') {strOption += "&zoom_url=" + escape(strImage) + "" };

	if (typeof(strPreview) == 'string') {strOption += "&preview_url=" + escape(strPreview) + "" };

	if (typeof(strNavi) == 'string') {strOption += "&navi_url=" + escape(strNavi) + "" };

	if (typeof(intZoom_fade) == 'number') { strOption += "&Zoom_fade=" + intZoom_fade };

	if (typeof(intView_mode) == 'number') {strOption += "&view_mode=" + intView_mode };

	if (typeof(intZoom_mode) == 'number') {strOption += "&zoom_mode=" + intZoom_mode };

	if (typeof(intOpe_mode) == 'number') {strOption += "&operation_mode=" + intOpe_mode };

	if (typeof(intNavi_mode) == 'number') {strOption += "&navi_mode=" + intNavi_mode };

	if (typeof(intNavi_effect) == 'number') { strOption += "&navi_effect=" + intNavi_effect };

	if (typeof(intNavi_time) == 'number') { strOption += "&navi_time=" + intNavi_time };



	if ( MM_FlashCanPlay ) {

		return getObjectTagFlash(strFlashName, intWidth,intHeight,"none",strBgcolor,0,0,strOption);

	} else{

		return getPlugin(strImageName,intWidth,intHeight);

	}

};

function easyFZE(strFlashName, strImageName, intWidth,intHeight,strBgcolor,intZoom_effect,intZoom_time,strImage, strPreview,strNavi,intZoom_fade,intView_mode,intOpe_mode,intNavi_mode,intNavi_effect,intNavi_time,intZoom_mode) {

	document.write(getObjectTagEasyFZE(strFlashName,strImageName,intWidth,intHeight,strBgcolor,intZoom_effect,intZoom_time,strImage, strPreview,strNavi,intZoom_fade,intView_mode,intOpe_mode,intNavi_mode,intNavi_effect,intNavi_time,intZoom_mode));

};


