/********************************************************************
Vricks Republic Publishing S&A
Beginning : 2009-07-26
Final : 2009-07-26
*********************************************************************/

//ÇÃ·¡½Ã ·Îµù ÇÔ¼ö
function swfObjFlashVars(src,w,h,swfid, vars){
	swf_html = '';
	swf_html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+swfid+'">';
	swf_html += '<param name="allowScriptAccess" value="always">';
	swf_html += '<param name="movie" value="'+src+'">';
	swf_html += '<param name="quality" value="high">';
	swf_html += '<param name="wmode" value="transparent">';
	swf_html += '<param name="flashvars" value="xmlPath='+vars+'">';
	swf_html += '<embed src="'+src+'" flashvars="xmlPath='+vars+'" quality="high" width="'+w+'" height="'+h+'" name="'+swfid+'" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	swf_html += '</object>';
	document.write(swf_html);
}

//¸ÞÀÎ ÇÃ·¡½Ã ÃÖ½Å¾Ù¹ü
function swfObjMainFlashVars(src,w,h,swfid, vars, vars2){
	swf_html = '';
	swf_html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+swfid+'">';
	swf_html += '<param name="allowScriptAccess" value="always">';
	swf_html += '<param name="movie" value="'+src+'">';
	swf_html += '<param name="quality" value="high">';
	swf_html += '<param name="wmode" value="transparent">';
	swf_html += '<param name="flashvars" value="xmlPath='+vars+'&xmlPath2='+vars2+'">';
	swf_html += '<embed src="'+src+'" flashvars="xmlPath='+vars+'&xmlPath2='+vars2+'" quality="high" width="'+w+'" height="'+h+'" name="'+swfid+'" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	swf_html += '</object>';
	document.write(swf_html);
}

//Â÷Æ® °øÅë
function embedSwf(embedSwf, swfWidth, swfHeight, swfId, xPath, pCode) {
	var str = "";
	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="+' + swfWidth + '+" height="' + swfHeight + '" id="+' + swfId + '+" align="middle">\n';
	str += '<param name="allowScriptAccess" value="always">\n';
	str += '<param name="allowFullScreen" value="false">\n';
	str += '<param name="movie" value="' + embedSwf + '">\n';
	str += '<param name="quality" value="high">\n';
	str += '<param name="wmode" value="transparent">\n';
	str += '<param name="FlashVars" value="xmlPath=' + xPath + '&pageCode=' + pCode + '">\n';
	str += '<embed src="' + embedSwf + '" FlashVars="xmlPath=' + xPath + '&pageCode=' + pCode + '" wmode="transparent" quality="high" width="' + swfWidth + '" height="' + swfHeight + '" name="main" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n';
	str += '</object>\n';
	document.write(str);
}

//Â÷Æ® ¸ÞÀÎ
function embedChartMainSwf(embedSwf, swfWidth, swfHeight, swfId, xPathStyle, xPathGrade) {
	var str = "";
	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="+' + swfWidth + '+" height="' + swfHeight + '" id="+' + swfId + '+" align="middle">\n';
	str += '<param name="allowScriptAccess" value="always">\n';
	str += '<param name="allowFullScreen" value="false">\n';
	str += '<param name="movie" value="' + embedSwf + '">\n';
	str += '<param name="quality" value="high">\n';
	str += '<param name="wmode" value="transparent">\n';
	str += '<param name="FlashVars" value="xmlPath_styleChart=' + xPathStyle + '&xmlPath_gradeList=' + xPathGrade + '">\n';
	str += '<embed src="' + embedSwf + '" FlashVars="xmlPath_styleChart=' + xPathStyle + '&xmlPath_gradeList=' + xPathGrade + '" wmode="transparent" quality="high" width="' + swfWidth + '" height="' + swfHeight + '" name="main" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n';
	str += '</object>\n';
	document.write(str);
}

//Â÷Æ® ³×Æ¼Áð
function embedNetizenSwf(embedSwf, swfWidth, swfHeight, swfId, xPath) {
	var str = "";
	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="+' + swfWidth + '+" height="' + swfHeight + '" id="+' + swfId + '+" align="middle">\n';
	str += '<param name="allowScriptAccess" value="always">\n';
	str += '<param name="allowFullScreen" value="false">\n';
	str += '<param name="movie" value="' + embedSwf + '">\n';
	str += '<param name="quality" value="high">\n';
	str += '<param name="wmode" value="transparent">\n';
	str += '<param name="FlashVars" value="xmlPath=' + xPath + '">\n';
	str += '<embed src="' + embedSwf + '" FlashVars="xmlPath=' + xPath + '" wmode="transparent" quality="high" width="' + swfWidth + '" height="' + swfHeight + '" name="main" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n';
	str += '</object>\n';
	document.write(str);
}

//vars¾øÀ½
function embedNoVarsSwf(embedSwf, swfWidth, swfHeight, swfId) {
	var str = "";
	str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="+' + swfWidth + '+" height="' + swfHeight + '" id="+' + swfId + '+" align="middle">\n';
	str += '<param name="allowScriptAccess" value="always">\n';
	str += '<param name="allowFullScreen" value="false">\n';
	str += '<param name="movie" value="' + embedSwf + '">\n';
	str += '<param name="quality" value="high">\n';
	str += '<param name="wmode" value="transparent">\n';
	str += '<embed src="' + embedSwf + '" quality="high" wmode="transparent" width="' + swfWidth + '" height="' + swfHeight + '" name="main" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n';
	str += '</object>\n';
	document.write(str);
}

//090906_¹ß¸Å¾Ù¹ü S
//¹ß¸Å¾Ù¹ü
function dpLayerShow() {
	if(!document.getElementById("viewerWrap")) return false;
	var viewer = document.getElementById("viewerWrap").style;
	//alert("over");
	viewer.width = "800";
	viewer.zIndex = "50";
}
function dpLayerHide() {
	var viewer = document.getElementById("viewerWrap").style;
	viewer.width = "630";
	viewer.zIndex = "0";
}
//090906_¹ß¸Å¾Ù¹ü E

//°Ë»ö °øÅë ÇÃ·¡½Ã ·Îµù
function embedSwfSearch(embedSwf, swfWidth, swfHeight, swfId, xmlPath) {
	var flashValue = "";
	flashValue += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + swfWidth + '" height="' + swfHeight + '" id="' + swfId + '">\n';
	flashValue += '<param name="allowScriptAccess" value="always" />\n';
	flashValue += '<param name="movie" value="' + embedSwf + '" />\n';
	flashValue += '<param name="quality" value="high" />\n';
	flashValue += '<param name="wmode" value="transparent" />\n';
	flashValue += '<param name="FlashVars" value="' + xmlPath + '" />\n';
	flashValue += '<embed src="' + embedSwf + '" quality="high" wmode="transparent" width="' + swfWidth + '" height="' + swfHeight + '" name="'+ swfId +'" allowScriptAccess="always" FlashVars="' + xmlPath + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n';
	flashValue += '</object>\n';
	document.write(flashValue);
}

