// object tag for Flash
/*
function flashWrite(url,w,h,id,bg,vars,win) {
	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='"+w+"' height='"+h+"' id='"+id+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='movie' value='"+url+"'>");
	document.write("<param name='FlashVars' value='"+vars+"'>");
	document.write("<param name='wmode' value='"+win+"'>");
	document.write("<param name='bgcolor' value='"+bg+"'>");
	document.write("<param name='menu' value='false'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false'  bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' quality='high' allowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'>");
	document.write("</object>");
}
*/
function FlashLoad(src,wid,hei) {
	Flash = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ wid +"' height='"+ hei +"'>";
	Flash += "<param name='movie' value='"+ src +"'>";
	Flash += "<param name='quality' value='high'>";
	Flash += "<param name='wmode' value='transparent'>";
	Flash += "<param name='menu' value='false'>";
	Flash += "<embed src='"+ src +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	Flash += "</object>";

	//document.body.innerHTML = Flash;
	document.write(Flash);
	return;
}

// µ¿¿µ»ó play¿ë function 
/*
function aviPlay(src,w,h){
	document.write('<embed src="'+src+'" width='+w+' height='+h+'>')	
}
*/
//ÆË¾÷Ã¢ È£Ãâ
/*
function open_win(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
*/
//±ÛÀÚÅ©±â 
//ex) onclick="setFontSize(+1);"	 onclick="setFontSize(-1);"
//########## ÄÁÅÙÃ÷ È®´ë/Ãà¼Ò ###############
var fontRate = 0;

function fnFontSize(rate) {
	var a =  rate - fontRate;
	var defaultFontSize = 1;//em
	var minFontSize = 1;//em
	var maxFontSize = 2;//em
	obj = document.getElementById("con_right");
	var objFontSize = obj.style.fontSize;
	if (!objFontSize) { objFontSize = parseFloat(defaultFontSize)+"em"; }
	var checkFontSize = (Math.round(12*parseFloat(objFontSize))+(a*2))/12;
	if (checkFontSize >= maxFontSize) { checkFontSize = maxFontSize; obj.style.fontSize = checkFontSize+"em";}
	else if (checkFontSize <= minFontSize) { checkFontSize = minFontSize; obj.style.fontSize = checkFontSize+"em";}
	else { obj.style.fontSize = checkFontSize+"em"; }
	fnChangeImg(rate);
	fontRate = rate;
//	alert(checkFontSize);
}

//È®´ë ÀÌ¹ÌÁö º¯°æ
var fnChangeImg = function(ids){
	document.getElementById('imgSize01').src='/image/common/reading01_off.gif';
	document.getElementById('imgSize02').src='/image/common/reading02_off.gif';
	document.getElementById('imgSize03').src='/image/common/reading03_off.gif';

	if(ids==0)
		document.getElementById('imgSize01').src='/image/common/reading01_on.gif';
	else if(ids==1)
		document.getElementById('imgSize02').src='/image/common/reading02_on.gif';
	else if(ids==2)
		document.getElementById('imgSize03').src='/image/common/reading03_on.gif';

}
//#####################################

