/******************************************************** Written By : Seung-joon Lee (newbie79@gmail.com) Created On : 2006.03.10 Modified : 2006.03.31 File : embed_control.js Version : 0.4 embed ActiveX control for IE 6.0, FF 1.5, Opera 8 *********************************************************/ /* [ Example ] */ /************************ PROTOTYPE FUNCTIONS **************************/ function embedControl( elementObject ) { var str = elementObject.innerHTML; elementObject.removeNode(true); document.write( str ); } // Flash player function embedFlashPlayer( movieUrl, autoPlay, loop, width, height, flashObjectId ) { var autoPlayValue = (true == autoPlay) ? "true" : "false"; var loopValue = (true == loop) ? "true" : "false"; var str = ""; str += ""; str += ""; str += ""; str += ""; str += ""; document.write( str ); } // Flash player function embedFlashPlayer( movieUrl, autoPlay, loop, width, height, flashObjectId ) { var autoPlayValue = (true == autoPlay) ? "true" : "false"; var loopValue = (true == loop) ? "true" : "false"; var str = ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; document.write( str ); } // Windows Media player function embedMediaPlayer( mediaUrl, showControls, autoPlay, loop, autoSize, width, height, mediaObjectId ) { var showControlsValue = (true == showControls) ? "true" : "false"; var autoPlayValue = (true == autoPlay) ? "true" : "false"; var autoSizeValue = (true == autoSize) ? "true" : "false"; var str = ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += (false == loop) ? "" : ""; str += ""; str += ""; document.write( str ); } var mFirst=[8,15]; var mFont; var mZoom; var cFont; var moFirst, mClass; var initFlag = false; function chgWindow(d,v) { if(v == "1.0") { /* ÃʱâÈ­ */ mZoom = readCookie("cZoom"); d.body.style.zoom = mZoom; } else if(d.body.style.zoom == '' ){ if (v > 1) { d.body.style.zoom = v ; } } else { var fSize = parseFloat(d.body.style.zoom); if (fSize > 2.0 ) { if (v < 1) { d.body.style.zoom *= v; } // d.body.style.zoom = 2.0; // ÀÌÀÌ»óÀº ÀÛµ¿ ¾ÊÇÏ°Ô } else if ( fSize < 1 ) { if (v > 1) { d.body.style.zoom = 1 ; } // d.body.style.zoom = 1; // ÀÌÀÌÇÏ´Â ÀÛµ¿ ¾ÊÇÏ°Ô } else { d.body.style.zoom *= v; } } } function zoom_parent(n) { var mFont=readCookie("cFont"); try { if(mFont == undefined) mFont=12; mFont=parseInt(mFont); } catch(e) {mFont=12;} n=parseInt(n); mFont+=n; var class_name="main01"; if (mFontmFirst[1]) mFont=mFirst[1]; moFirst=parent.document.getElementsByTagName("td"); mClass=class_name ? class_name : "Sfont"; objs=moFirst; for (i=0;i