 function setEmbed() 
{ 
  var obj = new String; 
  var parameter = new String; 
  var embed = new String; 
  var html = new String; 
  var allParameter = new String; 
  var clsid = new String; 
  var codebase = new String; 
  var pluginspace = new String; 
  var embedType = new String; 
  var src = new String; 
  var width = new String; 
  var height = new String; 

  this.init = function( getType , s ,w , h, oId ) { 
      if ( getType == "flash") 
      { 
        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";        
        codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"; 
        pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
        embedType = "application/x-shockwave-flash"; 
      } 
      else if (getType == "movie" ) 
      { 
      		clsid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"	;
      		codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" ;
      		embedType="application/x-oleobject" ;
      		//embedType="application/x-mplayer2";
		pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp"
      } 
      /* type ߰ 
      else if ( ) 
      { 
      } 
      */
            
      parameter += "<param name='movie' value='"+ s + "'>\n";  
      parameter += "<param name='quality' value='high'>\n";    
      
      
      src = s; 
      width = w; 
      height = h; 
      objId= oId;
  } 
  
  this.parameter = function( parm , value ) {      
      parameter += "<param name='"+parm +"' value='"+ value + "'>\n";        
      allParameter += " "+parm + "='"+ value+"'"; 
  }  
  

  this.show = function() { 
      if ( clsid ) 
      { 
        obj = "<object id=" + objId + " classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"' value='" + objId + "'>\n"; 
      } 
      	embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n"; 

      if ( obj ) 
      { 
        embed += "</object>\n"; 
      } 
      html = obj + parameter + embed; 
      document.write( html );  

  } 
}


var cminX;
var cmaxX;

function funcInit()
{
	Position_ID = window.setInterval ("CurrentPosition()", 200); 
}

function CurrentPosition() {
    if (popPlayer.PlayState != 2) return;
    pTrc.style.pixelLeft = ToBarPosition(popPlayer.CurrentPosition); 
}

function ToBarPosition(pos)
{  	var level;

	level = ((cmaxX - cminX) * pos) / popPlayer.Duration;
  	level = parseInt(level) + cminX;
  	return level;
}

function funcPlay(playId){
	if( document.getElementById(playId).PlayState != 2 ){
		document.getElementById(playId).Play();
	}
}

function funcPause(playId){
	if( document.getElementById(playId).PlayState == 2 ){
		document.getElementById(playId).Pause();
	}
}

function funcStop(playId){
	document.getElementById(playId).Stop();
}

function main(){document.location.href = "../index/index.asp";}

function menu01(){document.location.href = "about.html";}

function menu02(){document.location.href = "job.html";}

function menu03(){document.location.href = "service.html";}

function menu04(){document.location.href = "comperation.html";}

function menu05(){document.location.href = "http://59.120.152.222/";}



function Hmonth0710(){window.open("http://www.cdi.co.kr/html/webzine/0710/html/index/index.asp","webzine10","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0709(){window.open("http://www.cdi.co.kr/html/webzine/0709/html/index/index.asp","webzine09","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0708(){window.open("http://www.cdi.co.kr/html/webzine/0708/html/index/index.asp","webzine08","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0707(){window.open("http://www.cdi.co.kr/html/webzine/0707/html/index/index.asp","webzine07","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0706(){window.open("http://www.cdi.co.kr/html/webzine/0706/html/index/index.asp","webzine06","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0705(){window.open("http://www.cdi.co.kr/html/webzine/0705/html/index/index.asp","webzine05","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}
function Hmonth0704(){window.open("http://www.cdi.co.kr/html/webzine/0704/html/index/index.asp","webzine04","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=no,menubar=no");}
function Hmonth0703(){window.open("http://www.cdi.co.kr/html/webzine/0703/html/index/index.asp","webzine03","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=no,menubar=no");}
function Hmonth0702(){window.open("http://www.cdi.co.kr/html/webzine/0702/html/index/index.asp","webzine02","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=yes,location=no,resizable=no,menubar=no");}
function Hmonth0612(){window.open("http://www.cdi.co.kr/html/webzine/html/","webzine01","top=0,left=0,width=1004,height=678,toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no");}

