function showImage(mVal){
	f_name =document.showimg;
	f_name.img.value=mVal;
	f_name.action='/si_include/popImg.html';
	f_name.target='image';
	MM_openBrWindow('','image','width=100,height=100,top=0,left=0');
	f_name.submit();
}
function post_check(){
		window.open('/si_include/post.jsp',"","width=430,height=380,scrollbars=yes");
		return;
}
function notice_getCookie( name ) 
{ 
       var nameOfCookie = name + "="; 
       var x = 0; 
       while ( x <= document.cookie.length ) 
       { 
                var y = (x+nameOfCookie.length); 
               if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
                       if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
                              endOfCookie = document.cookie.length; 
                       return unescape( document.cookie.substring( y, endOfCookie ) ); 
                } 
                x = document.cookie.indexOf( " ", x ) + 1; 
               if ( x == 0 ) 
                        break; 
       } 
      return ""; 
} 
var tgs = new Array( 'div','td','tr','a','h1','h2','h3','li','span','p','blockquote','legend','fieldset','dd','h4','h5','b','th');
var tgs2 = new Array( 'div','td','tr','a');

var szs = new Array( '9','11','12','14','18','24','30');
var startSz = 2;
function navi(s_obj,obj,check){ //s_obj 시작,obj끝,check총 id숫자
	for(i=1;i<=check;i++){		
						if(i<=obj && i>=s_obj){
							s ="a"+i;
							document.getElementById(s).style.display=""; //보임
							
						}else{
							s ="a"+i;
							document.getElementById(s).style.display="none"; //숨김
						
						}
	}
}
function view_movie(obj){
	alert('동영상이 없습니다.');
}
function view_vr(obj){
	alert('VR이 없습니다.');
}
function ts( trgt,inc ) {
    if (!document.getElementById) return
    var d = document,cEl = null,sz = startSz,i,j,cTags;

    sz = parseInt(sz) + parseInt(inc);

    if ( sz < 0 ) sz = 0;
    if ( sz > 6 ) sz = 6;
    startSz = sz;

    if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

    cEl.style.fontSize = szs[sz];

    for ( i = 0 ; i < tgs.length ; i++ ) {
        cTags = cEl.getElementsByTagName( tgs[ i ] );
//        for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
        for ( j = 0 ; j < cTags.length ; j++ ){
			//k= cTags[ j ].style.fontSize;
			//cTags[ j ].style.fontSize = k + inc;
			cTags[ j ].style.fontSize = szs[ sz ]
		}
    }
}
function ts2( trgt2,inc ) {
    if (!document.getElementById) return
    var d = document,cEl = null,sz = startSz,i,j,cTags;

    sz = parseInt(sz) + parseInt(inc);

    if ( sz < 0 ) sz = 0;
    if ( sz > 6 ) sz = 6;
    startSz = sz;

    if ( !( cEl = d.getElementById( trgt2 ) ) ) cEl = d.getElementsByTagName( trgt2 )[ 0 ];

    cEl.style.fontSize = szs[sz];

    for ( i = 0 ; i < tgs.length ; i++ ) {
        cTags = cEl.getElementsByTagName( tgs[ i ] );
//        for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
        for ( j = 0 ; j < cTags.length ; j++ ){
			//k= cTags[ j ].style.fontSize;
			//cTags[ j ].style.fontSize = k + inc;
			cTags[ j ].style.fontSize = szs[ sz ]
		}
    }
}
function error_report(url) {
	var oWin = window.open("/bbs/error_report.jsp?url="+url,"printWin","width=740,height=550, menubar=no, scrollbars=yes, resizable=no");
}
function print_it(page,css){
	var oWin = window.open("/tourism/common/print.jsp?page="+page+"&css="+css,"printWin","width=800,height=550, menubar=no, scrollbars=yes, resizable=no");
}
function flash(value, width, height){
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">');
	document.writeln('<param name="movie" value="'+value+'">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<embed src="'+value+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>');
	document.writeln('</object>');
}
var menu_gang="";
function menuOn2(imgEl)
{
	 menusrc =imgEl.src;	
	 tmp = menusrc.split("_on");  
	 imgEl.src = imgEl.src.replace(".gif", "_on.gif");

}

function menuOut2(imgEl)
{
	 menusrc =imgEl.src;
	 tmp = menusrc.split("_on");  
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
//	document.getElementById('tab1').style.display="none"; //보임.
}
function menuOn(imgEl)
{
	 menusrc =imgEl.src;
		if(menu_gang==""){
			menu_gang=menusrc;
		}
	 tmp = menusrc.split("_on");  
	if(tmp.length==2){
	imgEl.src = imgEl.src.replace("_on_on.gif", "_on.gif");
	}else{
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
	}
}

function menuOut(imgEl)
{
	 menusrc =imgEl.src.replace("_on.gif", ".gif");
	 tmp = menusrc.split("_on");  
	if(menu_gang==menusrc){
	}else{
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
	}
//	document.getElementById('tab1').style.display="none"; //보임.
}
function menuOnNew(imgEl)
{
	 menusrc =document.getElementById(imgEl).src;
		if(menu_gang==""){
			menu_gang=menusrc;
		}
	 tmp = menusrc.split("_on");  
	if(tmp.length==2){
	document.getElementById(imgEl).src = document.getElementById(imgEl).src.replace("_on_on.gif", "_on.gif");
	}else{
	document.getElementById(imgEl).src = document.getElementById(imgEl).src.replace(".gif", "_on.gif");
	}
}

function menuOutNew(imgEl)
{
	 menusrc =document.getElementById(imgEl).src.replace("_on.gif", ".gif");
	 tmp = menusrc.split("_on");  
	if(menu_gang==menusrc){
	}else{
	document.getElementById(imgEl).src = document.getElementById(imgEl).src.replace("_on.gif", ".gif");
	}
//	document.getElementById('tab1').style.display="none"; //보임.
}

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
//document.onfocusin=bluring;




//â
function win_op(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no, status=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function  SelectTable(val){
				 if(val){
				  var i;
				  for(i=1; i < 4; i++){
				   if(i ==val){ 
					 youname="tbl"+i;
					document.getElementById(youname).style.display = 'inline';
				   }else{
					 youname="tbl"+i;
					document.getElementById(youname).style.display = 'none';
				   }//if...
				  }//for...
				 }//if...
				 return;
				}


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 iam_popup(theURL,winName,wWidth,wHeight) { //v2.0
	wX = (window.screen.width - wWidth) / 2-100;
	wY = (window.screen.height - wHeight) / 2-100;
  window.open(theURL,winName,"directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHeight);
}
//팝업
function iam_popup_move(theURL,winName,wWidth,wHeight) { //v2.0
	wX = (window.screen.width - wWidth) / 2;
	wY = (window.screen.height - wHeight) / 2;
	popup.moveBy(0,-20);
  window.open(theURL,winName,"directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHeight);
}

function do_down(id,file_name1){
	f_name =document.down;
	f_name.id.value=id;
	f_name.file_name1.value=file_name1;
	f_name.submit();
}


