
 // ÀÌ¹ÌÁö¸í ÅøÆÁ
	function show(str)
	{
	info.innerText=str;
	info.style.display = "inline"
	}
	function hide()
	{
	info.style.display="none"
	}
	function movetip()
	{
	info.style.pixelTop=event.y+document.body.scrollTop+10;
	info.style.pixelLeft=event.x+document.body.scrollLeft+10;
	 
	}
	document.onmousemove=movetip;
	
	



// Å« ÀÌ¹ÌÁö º¸¿©ÁÖ±â

	function openPhoto(imageno,caption) 
	{
		var winl = (screen.width - 840) / 2;
		var wint = (screen.height - 690) / 2;
   
		winprops = 'location=0, menubar=0, scrollbars=0, resizable=0, width=840, height=690 ,top='+wint+',left='+winl
   
		openwin=window.open('/travelworld/photoview.php?imageno='+imageno+'&caption='+caption, 'view', winprops);
		openwin.focus();
	}
	function openPhoto_catalog(imageno,caption) 
	{
		var winl = (screen.width - 840) / 2;
		var wint = (screen.height - 690) / 2;
   
		winprops = 'location=0, menubar=0, scrollbars=1, resizable=1, width=840, height=690 ,top='+wint+',left='+winl
   
		openwin=window.open('/travelworld/photoview_scroll.php?imageno='+imageno+'&caption='+caption, 'view', winprops);
		openwin.focus();
	}

// 1024 »çÀÌÁî ÀÌ¹ÌÁö º¸¿©ÁÖ±â

	function openPhoto_l(imageno,caption) 
	{   
		var winl = (screen.width - 1020) / 2;
		var wint = (screen.height - 768) / 2;
		winprops = 'location=0, menubar=0, scrollbars=0, resizable=0, width=1020, height=768 ,top='+wint+',left='+winl

		openwin=window.open('/travelworld/photoview_l.php?imageno='+imageno+'&caption='+caption, 'view', winprops);
		openwin.focus();
	}

	function paopenPhoto_l(imageno,caption, size) 
	{   
		size = size + 90;
		var winl = (screen.width - 1020) / 2;
		var wint = (screen.height - size) / 2;
		winprops = 'location=0, menubar=0, scrollbars=0, resizable=0, width=1020, height='+size+' ,top='+wint+',left='+winl

		openwin=window.open('/travelworld/photoview_l.php?imageno='+imageno+'&caption='+caption, 'view', winprops);
		openwin.focus();
	}
	
 // ÀÚ¼¼È÷ + ½½¶óÀÌµå¼î
	function openSlide(codestr,order) 
	{
		openwin=window.open('/travelworld/photoslide.php?codestr='+codestr+'&order='+order, 'slide', 'status=1, location=0, menubar=0, scrollbars=0, resizable=0, width=800, height=490');
		openwin.focus();
	}

	function openSlide_n(codestr,order) 
	{
		openwin=window.open('/travelworld/photoslide_n.php?codestr='+codestr+'&order='+order, 'slide', 'status=1, location=0, menubar=0, scrollbars=0, resizable=0, width=800, height=490');
		openwin.focus();
	}

	function openCatalog(codestr,order) {   
		openwin=window.open('catalog.php?codestr='+codestr+'&order='+order, 'slide', 'location=0, menubar=0, scrollbars=0, resizable=0, width=800, height=490');
		openwin.focus();
	}
	function openSlide_recur(codestr,order) {   
		openwin=window.open('/travelworld/photoslide_recur.php?codestr='+codestr+'&order='+order, 'slide', 'location=0, menubar=0, scrollbars=0, resizable=0, width=800, height=490');
		openwin.focus();
	}
	function openSlide_search(qr,order) {   
		openwin=window.open('/travelworld/photoslide_search.php?qr='+qr+'&order='+order, 'slide', 'location=0, menubar=0, scrollbars=0, resizable=0, width=800, height=490');
		openwin.focus();
	}

// Å«ÀÌ¹ÌÁö º¸±â º¯°æ 2006.11.06
	function Focus_View(codestr, order) {	
		openwin=window.open(('/travelworld/image_f.php?codestr='+codestr+'&order='+order),'view','toolbar=no,menubar=no,resizeable=yes,status=no,width=840,height=790,scrollbars=no');
		openwin.focus();
	}

// º»¹® º¸±â  (ÇÁ¸°Æ® ÇÏ±â)
	function openCont(masterno,bookmarklen) {   
		openwin=window.open('/travelworld/refmaster.php?bookmarklen='+bookmarklen+'&masterno='+masterno+'#bookmark', 'view', 'location=0, menubar=0, scrollbars=1, resizable=0, width=620, height=600');
		openwin.focus();
	}
	function openCont2(codestr,bookmarklen) {   
		openwin=window.open('/travelworld/refmaster.php?bookmarklen='+bookmarklen+'&codestr='+codestr+'#bookmark', 'view', 'location=0, menubar=0, scrollbars=1, resizable=0, width=620, height=600');
		openwin.focus();
	}
	function hplink(hpmasterno){
		var jump = "/search_w/ctdetail.php?masterno=" + hpmasterno + 
		"&contentno=" + hpmasterno;	
		window.open(jump,'');
		//window.document.location.href =  jump;
		return;
	}

// ±¹³» - Å« ÀÌ¹ÌÁö º¸¿©ÁÖ±â
	function openPhoto1() {   
		window.open('photoview_k.html', 'view', 'location=0, menubar=0, scrollbars=0, resizable=0, width=840, height=690');
	}

// Ä¿¹Â´ÏÆ¼ ÀÚ¼¼È÷ º¸±â
	function openGuide() {   
		window.open('info.html', 'view', 'location=0, menubar=0, scrollbars=1, resizable=0, width=516, height=600');
	}
	
//¼¼°èÀ¯»ê ÆË¾÷º¸±â
	function openThemek(themeurl) {   
		window.open(themeurl, 'themeview', "location=1, toolbar=1, menubar=1, scrollbars=1, resizable=1, status=1, directories=1, width=1010, height=620");
	}

	function openTheme(masterno) {   
		window.open('http://www.encyber.com/search_w/ctdetail.php?masterno='+masterno+'&contentno='+masterno);
	}

//ÀÌ¹ÌÁö ·Ñ¿À¹ö


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_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_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 masterlink(hpmasterno){
	var jump = "/search_w" + "/ctdetail.php?masterno=" + hpmasterno + "&contentno=" + hpmasterno;
	parent.opener.location.href=jump;
	return;
}

function codestrlink(codestr){
	var jump = "/travelworld" + "/nation.php?codestr=" + codestr;
	parent.opener.location.href=jump;
	return;
}

function kcodestrlink(codestr){
	var jump = "/travelworld" + "/zone.php?codestr=" + codestr;
	parent.opener.location.href=jump;
	return;
}
function kcodestrlink1(codestr){
	var jump = "/travelworld" + "/region.php?codestr=" + codestr;
	parent.opener.location.href=jump;
	return;
}

function worldcommlink(division){
	var jump = "/comm/board" + "/bl_list.php?tid=travelworld&division=" + division;
	parent.opener.location.href=jump;
	return;
}

function koreacommlink(division){
	var jump = "/comm/board" + "/bl_list.php?tid=travelkorea&division=" + division;
	parent.opener.location.href=jump;
	return;
}

function parentlink(jump){
		parent.opener.location.href=jump;
	return;
}
