function swfLoad(sUrl,sWidth,sHeight,sName,sAlign,sColor,sTrans) {
	document.write('<EMBED src="' + sUrl + '" play="true" loop="true" quality=high' + ' bgcolor=' + sColor + ' wmode="'+ sTrans +'"  WIDTH="' + sWidth + '" HEIGHT="' + sHeight + '" NAME="' + sName + '" ALIGN="' + sAlign + '"');
	document.write(' TYPE="application/x-shockwave-flash"');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('</EMBED>');
}

function swfLoad22(sUrl,sWidth,sHeight,sName,sAlign,sColor,sTrans) {
  object = '';
  object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="' + sName + '" width="'+ sWidth +'" height="'+ sHeight +'">';
  object += '<param name="movie" value="'+ sUrl +'">';
  object += '<embed src="'+ sUrl +'" play="true" loop="true" quality="high" wmode="transparent" bgcolor="' + sColor + '" menu="false" width="'+ sWidth +'" height="'+ sHeight +'" swliveconnect="true" id="' + sName + '" name="' + sName + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
  object += '<\/object>';
  document.write(object);
}

function aviLoad(sUrl,sWidth,sHeight,sName) {
	//document.write('<object id="'+ sName +'" width="'+ sWidth +'" height='"+ sHeight +"' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6>');
	//document.write('<param name="URL" value="'+ sUrl +'">');
	//document.write('<param name="AutoStart" value="false">');
	//document.write('<param name="uiMode" value="none">');
	//document.write('</object>');
	document.write("<object id="+sName+" width="+sWidth+" height="+sHeight+" classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112'>");
  document.write("<param name='Filename' value='"+sUrl+"'>");
  document.write("<param name='PlayCount' value='10'>");
  document.write("<param name='ShowControls' value='1'>");
	document.write("<param name='showpositioncontrols' value='0'>");
  document.write("<param name='TransparentAtStart' value='1'>");
  document.write("</object>");
}

//log script
function goodday_log(tb,sec) {
	ifra1.location.href = "http://www.gooddaysports.co.kr/prog/log.gdy?tb="+tb+"&sec="+sec;
}

//¹è³Ê ±¤°í iframe ¹æ½Ä ¸®·Îµå ÇÏ±â
function iframeresize(idname) {
	switch(idname) {
		case "ad001":
			document.all.ad001.setExpression('width',ad001.document.body.scrollWidth);
			document.all.ad001.setExpression('height',ad001.document.body.scrollHeight);
			break;
		case "ad002":
			document.all.ad002.setExpression('width',ad002.document.body.scrollWidth);
			document.all.ad002.setExpression('height',ad002.document.body.scrollHeight);
			break;
		case "ad003":
			document.all.ad003.setExpression('width',ad003.document.body.scrollWidth);
			document.all.ad003.setExpression('height',ad003.document.body.scrollHeight);
			break;
		case "ad004":
			document.all.ad004.setExpression('width',ad004.document.body.scrollWidth);
			document.all.ad004.setExpression('height',ad004.document.body.scrollHeight);
			break;
		case "ad005":
			document.all.ad005.setExpression('width',ad005.document.body.scrollWidth);
			document.all.ad005.setExpression('height',ad005.document.body.scrollHeight);
			break;
		case "ad006":
			document.all.ad006.setExpression('width',ad006.document.body.scrollWidth);
			document.all.ad006.setExpression('height',ad006.document.body.scrollHeight);
			break;
		case "ad007":
			document.all.ad007.setExpression('width',ad007.document.body.scrollWidth);
			document.all.ad007.setExpression('height',ad007.document.body.scrollHeight);
			break;
		case "ad008":
			document.all.ad008.setExpression('width',ad008.document.body.scrollWidth);
			document.all.ad008.setExpression('height',ad008.document.body.scrollHeight);
			break;
		case "ad009":
			document.all.ad009.setExpression('width',ad009.document.body.scrollWidth);
			document.all.ad009.setExpression('height',ad009.document.body.scrollHeight);
			break;
		case "ad010":
			document.all.ad010.setExpression('width',ad010.document.body.scrollWidth);
			document.all.ad010.setExpression('height',ad010.document.body.scrollHeight);
			break;
		case "ad011":
			document.all.ad011.setExpression('width',ad011.document.body.scrollWidth);
			document.all.ad011.setExpression('height',ad011.document.body.scrollHeight);
			break;
		case "ad012":
			document.all.ad012.setExpression('width',ad012.document.body.scrollWidth);
			document.all.ad012.setExpression('height',ad012.document.body.scrollHeight);
			break;
		case "ad013":
			document.all.ad013.setExpression('width',ad013.document.body.scrollWidth);
			document.all.ad013.setExpression('height',ad013.document.body.scrollHeight);
			break;
		case "ad014":
			document.all.ad014.setExpression('width',ad014.document.body.scrollWidth);
			document.all.ad014.setExpression('height',ad014.document.body.scrollHeight);
			break;
		case "ad015":
			document.all.ad015.setExpression('width',ad015.document.body.scrollWidth);
			document.all.ad015.setExpression('height',ad015.document.body.scrollHeight);
			break;
		case "ad016":
			document.all.ad016.setExpression('width',ad016.document.body.scrollWidth);
			document.all.ad016.setExpression('height',ad016.document.body.scrollHeight);
			break;
		case "ad017":
			document.all.ad017.setExpression('width',ad017.document.body.scrollWidth);
			document.all.ad017.setExpression('height',ad017.document.body.scrollHeight);
			break;
		case "ad018":
			document.all.ad018.setExpression('width',ad018.document.body.scrollWidth);
			document.all.ad018.setExpression('height',ad018.document.body.scrollHeight);
			break;
		case "ad019":
			document.all.ad019.setExpression('width',ad019.document.body.scrollWidth);
			document.all.ad019.setExpression('height',ad019.document.body.scrollHeight);
			break;
		case "ad020":
			document.all.ad020.setExpression('width',ad020.document.body.scrollWidth);
			document.all.ad020.setExpression('height',ad020.document.body.scrollHeight);
			break;
		case "ad021":
			document.all.ad021.setExpression('width',ad021.document.body.scrollWidth);
			document.all.ad021.setExpression('height',ad021.document.body.scrollHeight);
			break;
		case "ad022":
			document.all.ad022.setExpression('width',ad022.document.body.scrollWidth);
			document.all.ad022.setExpression('height',ad022.document.body.scrollHeight);
			break;
		case "ad023":
			document.all.ad023.setExpression('width',ad023.document.body.scrollWidth);
			document.all.ad023.setExpression('height',ad023.document.body.scrollHeight);
			break;
		case "ad024":
			document.all.ad024.setExpression('width',ad024.document.body.scrollWidth);
			document.all.ad024.setExpression('height',ad024.document.body.scrollHeight);
			break;
		case "ad025":
			document.all.ad025.setExpression('width',ad025.document.body.scrollWidth);
			document.all.ad025.setExpression('height',ad025.document.body.scrollHeight);
			break;
		case "ad026":
			document.all.ad026.setExpression('width',ad026.document.body.scrollWidth);
			document.all.ad026.setExpression('height',ad026.document.body.scrollHeight);
			break;
		case "ad027":
			document.all.ad027.setExpression('width',ad027.document.body.scrollWidth);
			document.all.ad027.setExpression('height',ad027.document.body.scrollHeight);
			break;
		case "ad028":
			document.all.ad028.setExpression('width',ad028.document.body.scrollWidth);
			document.all.ad028.setExpression('height',ad028.document.body.scrollHeight);
			break;
		case "ad029":
			document.all.ad029.setExpression('width',ad029.document.body.scrollWidth);
			document.all.ad029.setExpression('height',ad029.document.body.scrollHeight);
			break;
		case "ad030":
			document.all.ad030.setExpression('width',ad030.document.body.scrollWidth);
			document.all.ad030.setExpression('height',ad030.document.body.scrollHeight);
			break;
		case "ad031":
			document.all.ad031.setExpression('width',ad031.document.body.scrollWidth);
			document.all.ad031.setExpression('height',ad031.document.body.scrollHeight);
			break;
		case "ad032":
			document.all.ad032.setExpression('width',ad032.document.body.scrollWidth);
			document.all.ad032.setExpression('height',ad032.document.body.scrollHeight);
			break;
		case "floating":
			document.all.floating.setExpression('width',floating.document.body.scrollWidth);
			document.all.floating.setExpression('height',floating.document.body.scrollHeight);
			break;
	}
}

//ÇÃ·ÎÆÃ ±¤°í ´Ý±â
function floating_close() {
	document.all.floating.setExpression('width',1);
	document.all.floating.setExpression('height',0);
	document.all['news_layer_ad'].style.visibility = "hidden";
}
