appname = navigator.appName;
useragent = navigator.userAgent;
if(appname == "Microsoft Internet Explorer") appname = "IE";
IE55 = (useragent.indexOf('MSIE 5.5')>0);  //5.5 ¹öÀü
IE6 = (useragent.indexOf('MSIE 6')>0);     //6.0 ¹öÀü
IE7 = (useragent.indexOf('MSIE 7')>0);     //7.0 ¹öÀü



function swfprint(objid,furl,fwidth,fheight,transoption,flashvars,pscale) {
	if(pscale == null) {
		pscale = "noscale";
	}
	if (typeof(scheme) == 'undefined' || scheme == null) {
		scheme = 'http';
	}
	var ieTxt = '<object id="'+ objid +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+scheme+'"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">';
	ieTxt += '<param name="allowScriptAccess" value="always"/>';
	ieTxt += '<param name="movie" value="'+ furl +'"/>';
	ieTxt += '<param name="quality" value="high"/>';
	ieTxt += '<param name="bgcolor" value="#ffffff"/> ';
	ieTxt += '<param name="salign" value="T"/> ';
	ieTxt += '<param name="menu" value="false"/> ';
	if (flashvars) ieTxt += '<param name="flashVars" value="'+ flashvars +'">';
	if (transoption == "t") {
		ieTxt += '<param name="wmode" value="transparent"/>';
	} else if	(transoption == "o") {
		ieTxt += '<param name="wmode" value="opaque"/>';
	}
	ieTxt += '</object>';

	var ffTxt = '<object id="'+ objid +'" type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"';
	if (flashvars) ffTxt += ' flashVars="'+ flashvars +'" ';
	if (transoption == "t")	{
		ffTxt += ' wmode="transparent"';
	} else if (transoption == "o") {
		ffTxt += ' wmode="opaque"';
	}
	ffTxt +='allowScriptAccess="always"';
	ffTxt += '></object>';

	if(appname=="IE") document.write(ieTxt);
	else  document.write(ffTxt);
}




