<!--

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function status_non()
{
window.status='';
return true;
}
if (document.layers)
document.captureEvents(Event.mouseover | Event.mouseout);
document.onmouseover=status_non;
document.onmouseout=status_non;

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

	function popupFlash(URI, X, Y)
	{
		winLeft = (window.screen.availWidth - X) / 2;
		winTop = (window.screen.availHeight - Y) / 3;

		if(X==0 && Y==0)
		{
			mywin=window.open(URI, "flash", "scrollbars=0, fullscreen=yes");
					document.mywin.title='Dahn Yoga Online- Your Path to a Healthier, Happier, and More Peaceful Life.';

		}
		else
		{
		mywin=window.open(URI, "flash", "left="+winLeft+", top="+winTop+", width="+X+", height="+Y+", directories=no, location=no, menubar=no, scrollbars=no, titlebar=no, status=no, toolbar=no");
		//document.mywin.title='Ilchi Academy-School for Enlightenment&amp;Spiritual Growth';
		}
	}
function RadioHsp(param1)
{
	X = 315;
	Y = 164;
	winLeft = (window.screen.availWidth - X) / 2;
	winTop = (window.screen.availHeight - Y) / 3;
	win_popup=window.open("/multimedia/radio.asp?param1="+param1, "Radio", "left="+winLeft+", top="+winTop+", width="+X+", height="+Y+", directories=no, location=no, menubar=no, scrollbars=no, titlebar=no, status=no, toolbar=no");
	win_popup.focus();
}

	// ±ÛÀÚ°¡ ³ªÅ¸³ª´Â ¸ð¾ç Ãâ·Â
	// 0 -> ¾Æ·¡¿¡¼­ À§·Î ¿Ã¶ó¿È
	// 1->  ¿À¸¥ÂÊ¿¡¼­ ¿ÞÂÊÀ¸·Î ÁøÇà
	// 2->  ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊÀ¸·Î ÁøÇà
	// 3->  Å¸ÀÚ±â È¿°ú (Type Text)
	var Utype=1;
	var Ucursor="|";
	// ±ÛÀÚ°¡ ³ªÅ¸³ª´Â »óÀÚ Å©±â
	var Uwidth=640; //Æø
	var Uheight=20; // ³ôÀÌ
	var Ubgcolor=""; // ¹è°æ»ö
	var Ubackground=''; //¹è°æÀÌ¹ÌÁö ¾øÀ¸¸é °ø¹éÀ¸·Î Ã³¸®
	var Uspeed=10; //¹®ÀÚ¿­ÀÇ ÀÌµ¿¼Óµµ
	var Udelay=2500; // ´ÙÀ½¹®ÀÚ¿­ÀÌ ³ª¿Ã¶§ °¡ÁöÀÇ ½Ã°£ 0 ÀÌ¸é ´ÙÀ½¹®ÀÚ¿­ÀÌ ¹Ù·Î ³ª¿È
	var Ufirst=0; //Á¦ÀÏ Ã³À½ ½ÃÀÛÇÒ ¹®ÀÚ¿­ 
	var working=0; //¿òÁ÷ÀÌ¸é 1 ¸ØÃß¸é 0

	// ½ÇÁ¦ Ãâ·ÂÀÌ µÉ¹®ÀÚ¿­ÀÌ ´ã±ä ¹è¿­
	var Umsgs=new Array();
	var cTime = new Date();

	Umsgs[0]="<a href='http://jjan.ilchi.net/common/view.asp?menu_id=100001001&no=1924&location=±¹³»' onclick='blur();' target='main_body'><b>[ÁöµµÀÚ »ó´ã½Ç]¿¡ <font color=blue>HSP»ó´ã ÄÚ³Ê</font>°¡ Ãß°¡µÇ¾ú½À´Ï´Ù</b></a>";


	function goList()
	{
		w02 = window.open("main_focus_list.asp", "newsTicker", "top=1, left=1, width=616, height=500, scrollbars=yes");
		w02.focus();
	}
	
	// Main function
	function newsTicker(Utype,Umsgs,Ucursor,Uwidth,Uheight,Ubgcolor,Ubackground,Uspeed,Udelay,Ufirst)
	{
		document.writeln('<span id="Ubox" style="position:relative;width:'+Uwidth+';height:'+Uheight+';overflow:visible;background-color:'+Ubgcolor+' ;background-image:url('+Ubackground+')">');
		document.writeln('<div onmouseover="offWorking();" onmouseout="onWorking();" style="position:absolute;width:'+Uwidth+';height:'+Uheight+';clip:rect(0 '+Uwidth+' '+Uheight+' 0);left:0;top:0;overflow:visible">');
		
		if (Utype==0)
		{
			document.writeln('<div id="Utxt" style="position:absolute;width:'+Uwidth+';left:3;top:'+Uheight+';">');
			document.write(Umsgs[Ufirst]);
			Uscroll(Utxt,Umsgs,Uheight,Uspeed,Udelay,Ufirst);
		}
		if (Utype==1)
		{
			document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:'+Uwidth+';top:3;overflow:visible;2004-06-27">');
			document.write(Umsgs[Ufirst]);
			Uside(Utxt, Umsgs, Uwidth, Uspeed, Udelay, Ufirst);
		}
		if (Utype==2)
		{
			document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:'+(Uwidth*-1)+';top:0;">');
			document.write(Umsgs[Ufirst]);
			Ureverseside(Utxt,Umsgs,Uwidth,Uspeed,Udelay,Ufirst,false);
		}
		if (Utype==3)
		{
			document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:0;top:0;overflow:hiden;background-color:'+Ubgcolor+' ;">');
			document.write(Umsgs[Ufirst]);
			document.writeln('</div>');
			document.writeln('<div id="Umask"  style="position:absolute;width:'+Uwidth+';left:0;top:0;overflow:hiden;background-color:'+Ubgcolor+' ;">');
			document.write(Ucursor);
			Utouch(Utxt,Umask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ufirst,1,false);
		}
		document.writeln('</div>');
		document.writeln('</div>');
		document.writeln('</span>');
	}

	// Moves
	function onWorking()
	{
		working = 1;
	}
	
	function offWorking()
	{
		working = 0;
	}
	
	function chkWorking()
	{
		if (working == 1)
		{
			return true;
		}
		return false;
	}
	
	function Uscroll(IDdiv,Umsgs,Uheight,Uspeed,Udelay,Ufirst)
	{
		ttxt=eval(IDdiv);
		Ustep=eval(Ufirst);
	
		if (Umsgs[Ustep] == undefined)
		{
			Umsgs[Ustep] = "";
		}
		
		if (ttxt.style.pixelTop>3&&ttxt.style.pixelTop<=4)
		{
			if (chkWorking()==true)
			{
				ttxt.style.pixelTop=3;
			}
			setTimeout("Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Udelay);
			return;
		}
		else
		{
			if (ttxt.style.pixelTop>=ttxt.offsetHeight*-1)
			{
				if (chkWorking()==true)
				{
					ttxt.style.pixelTop-=1;
				}
				setTimeout("Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Uspeed);
				return;
			}
			else
			{
				ttxt.style.pixelTop=Uheight;
				if (Ustep>=Umsgs.length-1)
				{
					Ustep=0;
					var setTime = new Date();
					if ((Date.parse(setTime) - Date.parse(cTime)) > (1000 * 60 * 5))
					{
						cTime = setTime;
						working=0;
//						newsTickerManager.location.href="main_focus_manager.asp?time=" + cTime;
					}
				}
				else
				{
					Ustep++;
				}
				ttxt.innerHTML=Umsgs[Ustep];
				Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep);
			}
		}
	}

	function Uside(IDdiv, Umsgs, Uwidth, Uspeed, Udelay, Ufirst)
	{
		ttxt=eval(IDdiv);
		Ustep=eval(Ufirst);
	
		if (Umsgs[Ustep] == undefined)
		{
			Umsgs[Ustep] = "";
		}
		
		if (ttxt.style.pixelLeft>0&&ttxt.style.pixelLeft<=5)
		{
			if (chkWorking()==true)
			{
				ttxt.style.pixelLeft=0;
			}
			setTimeout("Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)",Udelay);
			return;
		}
		else
		{
			if (ttxt.style.pixelLeft>=ttxt.offsetWidth*-1)
			{
				if (chkWorking()==true)
				{
					ttxt.style.pixelLeft-=5;
				}
				setTimeout("Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)", Uspeed);
				return;
			}
			else
			{
				ttxt.style.pixelLeft=Uwidth;
				if (Ustep>=Umsgs.length-1)
				{
					Ustep=0;
					var setTime = new Date();
					if ((Date.parse(setTime) - Date.parse(cTime)) > (1000 * 60 * 5))
					{
						cTime = setTime;
						working=0;
//						newsTickerManager.location.href="main_focus_manager.asp?time=" + cTime;
					}
				}
				else
				{
					Ustep++;
				}
				ttxt.innerHTML=Umsgs[Ustep];
				Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep);
			}
		}
	}
	
	function Ureverseside(IDdiv,Umsgs,Uwidth,Uspeed,Udelay,Ufirst,stop)
	{
		ttxt=eval(IDdiv);
		Ustep=eval(Ufirst);
	
		if (Umsgs[Ustep] == undefined)
		{
			Umsgs[Ustep] = "";
		}
		
		if (ttxt.style.pixelLeft>0&&ttxt.style.pixelLeft<=5&&(!stop))
		{
			setTimeout("Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep,true)",Udelay);
			return;
		}
		else
		{
			if (ttxt.style.pixelLeft<ttxt.offsetWidth)
			{
				ttxt.style.pixelLeft+=5;
				setTimeout("Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)",Uspeed);
				return;
			}
			else
			{
				ttxt.style.pixelLeft=Uwidth*-1;
				if (Ustep>=Umsgs.length-1)
				{
					Ustep=0;
					var setTime = new Date();
					if ((Date.parse(setTime) - Date.parse(cTime)) > (1000 * 60 * 5))
					{
						cTime = setTime;
						working=0;
//						newsTickerManager.location.href="main_focus_manager.asp?time=" + cTime;
					}
				}
				else
				{
					Ustep++;
				}
				ttxt.innerHTML=Umsgs[Ustep];
				Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep);
			}
		}
	}

	function Utouch(IDdiv,IDmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ufirst,Ufirstsens,stop)
	{
		ttxt=eval(IDdiv);
		tmask=eval(IDmask);
		Ustep=eval(Ufirst);
	
		if (Umsgs[Ustep] == undefined)
		{
			Umsgs[Ustep] = "";
		}
		
		Usens=eval(Ufirstsens);
		if (tmask.style.pixelLeft>Uwidth)
		{
			tmask.style.pixelLeft=Uwidth;
			setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,-1)",Udelay);
			return;
		}
		else if (tmask.style.pixelLeft>=-5&&tmask.style.pixelLeft<0&&(!stop))
		{
			tmask.style.pixelLeft=-5;
			if (Ustep>=Umsgs.length-1)
			{
				Ustep=0;
				var setTime = new Date();
				if ((Date.parse(setTime) - Date.parse(cTime)) > (1000 * 60 * 5))
				{
					cTime = setTime;
					working=0;
//					newsTickerManager.location.href="main_focus_manager.asp?time=" + cTime;
				}
			}
			else
			{
				Ustep++;
			}
			ttxt.innerHTML=Umsgs[Ustep];
			setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,1,true)",Udelay);
			return;
		}
		else
		{
			tmask.style.pixelLeft+=(5*Usens);
			setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,Usens)",Uspeed);
			return;
		}
	}

	parent.Umsgs.length = 0;
	parent.Umsgs[0]="<a href='http://www.dahnyogaonline.com/board/view.asp?BoardName=news&no=3736&page=1' onclick='blur();'><b>[News] HSP Yul Yeo Training from Dr. Ilchi Lee</b></a>";
	parent.Umsgs[1]="<a href='http://www.dahnyogaonline.com/board/view.asp?BoardName=news&no=3715&page=1' onclick='blur();'><b><font size=3 color=purple>Open Event!!! - The Picture of the Month</font></b></a>";
	parent.Umsgs[2]="<a href='http://www.dahnyogaonline.com/board/view.asp?boardname=yehakkogji&no=3729' onclick='blur();'><b>[YEHA Board] Earth Stars at Mo-Ak</b></a>";
	parent.Umsgs[3]="<a href='http://www.dahnyogaonline.com/board/view.asp?BoardName=message&no=3654&page=1' onclick='blur();'><b>[Ilchi Message] What is your philosophy?</b></a>";
	parent.Umsgs[4]="<a href='http://www.dahnyogaonline.com/board/view.asp?BoardName=weeklymeditation&no=3676&page=1' onclick='blur();'><b>[Weekly Meditation] Loyalty - Wisdom 77</b></a>";
	parent.Umsgs[5]="<a href='http://www.dahnyogaonline.com/board/view.asp?BoardName=news&no=3655&page=1' onclick='blur();'><b>[Healing Family] The 2nd Healing Family- The Yoo Family from Korea!</b></a>";

parent.working = 1;

function onPopup(param1,param2,param3)
{
	X = 700;
	Y = 580;
	winLeft = (window.screen.availWidth - X) / 2;
	winTop = (window.screen.availHeight - Y) / 3;
	win_popup=window.open("/multimedia/VodView.asp?param1="+param1+"&param2="+param2+"&param3="+param3, "Vod", "left="+winLeft+", top="+winTop+", width="+X+", height="+Y+", directories=no, location=no, menubar=no, scrollbars=no, titlebar=no, status=no, toolbar=no");
	win_popup.focus();
}
/////////////////////////////////////////


//ÀÌ¹ÌÁö È®´ë
function AutoResize(img){ 
  foto1= new Image(); 
  foto1.src=(img); 
  Controlla(img); 
} 
function Controlla(img){ 
  if((foto1.width!=0)&&(foto1.height!=0)){ 
    viewFoto(img); 
  } 
  else{ 
    funzione="Controlla('"+img+"')"; 
    intervallo=setTimeout(funzione,20); 
  } 
} 

function viewFoto(img){ 
  largh=foto1.width;
  	winlargh = largh + 16; 
  altez=foto1.height; 
  if (altez > 600){
  	stringa="width="+winlargh+",height=600"+",toolbar=no,location=no,directiries=no,status=no,menubars=no,scrollbars=yes,resizeble=no,left=200,top=0"; 
  }else{
  	stringa="width="+winlargh+",height="+altez+",toolbar=no,location=no,directiries=no,status=no,menubars=no,scrollbars=yes,resizeble=no,left=200,top=0"; 
	}	
  strURL="/gallery/imageview.asp?width="+ largh + "&height=" + altez + "&img=" + img;
  finestra=window.open(strURL,"",stringa); 
} 

//-->



