function  viewMediaPlayer(sURL, sName, sFeatures){ 

 var WMPCID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"; 

 var sFeature; 
 var sWidth  = "100%"; 
 var sHeight  = "100%"; 
 var pmBoolean; 
 var sTempArray; 
 var sParamTag = ""; 

 sFeature = sFeatures.split(/\s*,\s*/); 
 for (var i=0; i< sFeature.length ; i++) 
 { 
  sTempArray = sFeature[i].split(/\s*=\s*/); 
  if (sTempArray[0].toLowerCase() == "width"){ 
  //?? 
  sWidth = sTempArray[1]; 
  }else if (sTempArray[0].toLowerCase() == "height"){ 
  //?? 
  sHeight = sTempArray[1]; 
  }else{ 
  //?? ???? ?? 
  if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){ 
    pmBoolean = "true"; 
  }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){ 
    pmBoolean = "false"; 
  }else{ 
    pmBoolean = sTempArray[1]; 
  } 
  sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag; 
  } 
 } 

 document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+WMPCID+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' >"); 
 document.write("<PARAM NAME='URL'VALUE='" + sURL + "'>"); 
 document.write(sParamTag); 
 document.write("<img src='/images/common/no_vod.gif' alt='관련 동영상' width='320px' height='285px' /></OBJECT>"); 
} 

function vStart(oName)
{
	document.getElementById(oName).play();
}

function vStop(oName)
{
	document.getElementById(oName).stop();
}

function viewFlash(sURL, sName, sFeatures){ 

 var FLASHCAB = "/flash/swflash.cab"; 
 var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"; 
 var FLASHVER = "8,0,0,0"; 

 var sFeature; 
 var sWidth  = "100%"; 
 var sHeight  = "100%"; 
 var pmBoolean = "false"; 
 var sTempArray; 
 var sParamTag = ""; 

 sFeature = sFeatures.split(/\s*,\s*/); 
 for (var i=0; i< sFeature.length ; i++) 
 { 
  sTempArray = sFeature[i].split(/\s*=\s*/); 
  if (sTempArray[0].toLowerCase() == "width"){ 

  sWidth = sTempArray[1]; 
  }else if (sTempArray[0].toLowerCase() == "height"){ 

  sHeight = sTempArray[1]; 
  }else{ 

  if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){ 
    pmBoolean = "true"; 
  }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){ 
    pmBoolean = "false"; 
  }else{ 
    pmBoolean = sTempArray[1]; 
  } 
  sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag; 
  } 
 } 

 document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'>"); 
 document.write("<PARAM NAME='movie' VALUE='" + sURL + "'>"); 
 document.write(sParamTag); 
 document.write("<EMBED SRC='"+sURL+"' MENU='false' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />") 
 document.write("</OBJECT><br>"); 
} 




/* 화면 확대 축소 시작 */
var nowZoom = 100;		// 현재비율

var maxZoom = 130;		// 최대비율(500으로하면 5배 커진다)

var minZoom = 100;		// 최소비율

var	intervalZoom = 10;	// 증감 비율 (단위 %)

//화면 키운다.
function zoomIn()
{
	if (nowZoom < maxZoom) 
	{
		nowZoom += intervalZoom;
	} 
	else 
	{
		return;
	}

	document.getElementsByTagName("body")[0].style.zoom = nowZoom + "%";
}

//화면 줄인다.
function zoomOut() 
{
	if (nowZoom > minZoom) 
	{
		nowZoom -= intervalZoom;
	}
	else 
	{
		return;
	}

	document.getElementsByTagName("body")[0].style.zoom = nowZoom + "%";
}

function zoomIni()
{
	document.body.style.zoom = "100%";
}
/* 화면 확대 축소 끝 */


/* 본문 프린트 시작 */

function pagePrint()
{ 
	var Obj = document.getElementById('right');
		//Obj.style.width = 690;
	var W = Obj.offsetWidth;         //screen.availWidth; 
	var H = Obj.offsetHeight;        //screen.availHeight; 
	var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H + ",left=0,top=0"; 
	var PrintPage = window.open("about:blank",Obj.id,features); 
	PrintPage.document.open(); 
	PrintPage.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Script-Type" content="text/javascript" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><meta http-equiv="imagetoolbar" content="no" /><link rel="stylesheet" type="text/css" media="screen" href="http://'+document.domain+'/styles/css/style.css" /></head><body><div id=right>' + stripScriptTag(Obj.innerHTML) + '</div></body></html>'); 
	PrintPage.document.close(); 
	PrintPage.document.title = "6.25전쟁 60주년 기념사업위원회 - " + document.domain;
	PrintPage.print();
}

function makePageWin(idx,w,h,t,l)
{ 
	h = h + 30;
	var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + w + "px,height=" + h + "px,left=" + l + "px,top=" + t + "px"; 
	window.open("/popup/popWin.asp?idx="+idx,"popWin_"+idx,features); 
}

function stripScriptTag(string)
{
	var objStrip = new RegExp();
	
	objStrip = /<(script)/gim;
	string = string.replace(objStrip, "<!--");
	
	objStrip = /(\/script)>/gim;
	return string.replace(objStrip, "//-->");
}

/* 본문 프린트 끝 */




/* layer toggle */

function showNcloseLayer(o)
{
	if(o.style.display == "" || o.style.display == "none")
	{
		o.style.display = "block";
	}
	else
	{
		o.style.display = "none";
	}
}



function getCookie(name) 
{ 
	var Found = false 
	var start, end 
	var i = 0 
	while(i <= document.cookie.length) 
	{ 
		start = i 
		end = start + name.length 
		if(document.cookie.substring(start, end) == name) 
		{ 
			Found = true 
			break 
		} 
		i++ 
	} 
 
	if(Found == true) 
	{ 
		start = end + 1 
		end = document.cookie.indexOf(";", start) 
 
		if(end < start) 
			end = document.cookie.length 
		return document.cookie.substring(start, end) 
	} 
	return "" 
} 
 

