//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2007.02.15
// @version 0.42
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ Áֽñ⠹ٶø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×À̳Ê
* nullÀΰæ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
*
* º»¹®À̳ª ÀϺΠ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î ó¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">Ç÷¡½¬,µ¿¿µ»ó...ű×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
var __embed_target_id = null;
}
/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ Å±׸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ű×ÀÔ´Ï´Ù
* false °ªÀΰæ¿ì ÆÐÄ¡¿¡¼ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
var __embed_tags = {object:true,embed:true,applet:false}
}
/**
* Ç÷¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç Ç÷¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀ̵ð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};
if(navigator.userAgent.toLowerCase().indexOf('opera')==-1){//opera out
if(document.attachEvent){
document.write('');
document.attachEvent('onreadystatechange',
function (){
if(__embed_target_id===null){
var __target = document;
}else{
var __target = document.getElementById(__embed_target_id);
}
if (document.readyState == "complete"){
function _replace(obj){
var obj_re = document.createElement(obj.outerHTML);
obj_re.style.display='inline';
obj.parentNode.replaceChild(obj_re,obj);
}
function _inner(obj){
obj.style.display='inline';
var html = obj.outerHTML;
var classid = obj.classid.toLowerCase();
if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash Àΰæ¿ì
obj.insertAdjacentHTML('beforeBegin',html);
obj.parentNode.removeChild(obj);
}else if(classid=='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b'){
//ÄüŸÀÓ
}else{
//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇϽñ⠹ٶø´Ï´Ù
if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
){
embed_pos = html.indexOf('embed');
if(embed_pos!=-1){//embed °¡ Á¸ÀçÇϴ°æ¿ì
var embed = '<'+html.substr(embed_pos);
embed = embed.substr(0,embed.length-9);
obj.insertAdjacentHTML('beforeBegin',embed);
obj.parentNode.removeChild(obj);
}else{
//object·Î¸¸ µÇ¾î Àִ°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
var embed = document.createElement('embed');
if(obj.id){
embed.id = obj.id;
}
var total = obj.childNodes.length;
//embed.setAttribute('autostart',0);
if(obj.width){
embed.setAttribute('width',obj.width);
}
if(obj.height){
embed.setAttribute('height',obj.height);
}
for(var k=0;k0){
_inner(objs[i]);
}
}
if(__embed_tags.embed===true){
var objs = __target.getElementsByTagName('embed');
var i = objs.length;
while(i-->0){
_replace(objs[i])
}
}
if(__embed_tags.applet===true){
var objs = __target.getElementsByTagName('applet');
var i = objs.length;
while(i-->0){
_replace(objs[i])
}
}
}
}
);
}
}
var stmnLEFT = 953;
var stmnGAP1 = 250;
var stmnGAP2 = 15;
var stmnBASE = 150;
var stmnActivateSpeed = 200;
var stmnScrollSpeed = 10;
var stmnTimer;
function ReadCookie(name)
{
var label = name + "=";
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0;
while (i < cLen) {
var j = i + labelLen;
if (document.cookie.substring(i, j) == label) {
var cEnd = document.cookie.indexOf(";", j);
if (cEnd == -1) cEnd = document.cookie.length;
return unescape(document.cookie.substring(j, cEnd));
}
i++;
}
return "";
}
function SaveCookie(name, value, expire)
{
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}
function RefreshStaticMenu()
{
var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
stmnStartPoint = parseInt(STATICMENU.style.top, 10);
stmnEndPoint = document.body.scrollTop + stmnGAP2;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
stmnRefreshTimer = stmnActivateSpeed;
if ( stmnStartPoint != stmnEndPoint ) {
stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint