﻿
// iframe resize
function autoResize(i)
{
    var iframeHeight=
    (i).contentWindow.document.body.scrollHeight;
    (i).height=iframeHeight+0;
}

// 
function Folder1( )
{
	var img_plus = "/welchon_front/image/welchon/skin/ico_plus.gif";
	var img_minus = "/welchon_front/image/welchon/skin/ico_minus.gif";
	var view_Img = document.getElementById( 'bxIMG1' );
	var view_Folder = document.getElementById( 'reviewList' ).style;
	if( view_Folder.display == "none" )
	{
		view_Folder.display = "inline";
		view_Img.src =img_minus;
	}
	else
	{
		view_Folder.display = "none";
		view_Img.src = img_plus ;

	}
}
  //펼침---> 

// 
function 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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function tipshow() { //v6.0
  var i,p,v,obj,args=tipshow.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=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 setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='/welchon_front/image/welchon/common/blank.gif';  
    return ''; 
} 

//플래시 Insert
function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign){
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowFullScreen" VALUE="true">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" allowFullScreen="true"');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
/* layer show/hide */
function layerShow(layerId) {
	document.getElementById(layerId).style.display = "block";
	
}
function layerHide(layerId) {
	document.getElementById(layerId).style.display = "none";
}

// 배너이벤트
function showon() {
    if(document.all.event03.style.visibility=="hidden") {
         document.all.event03.style.visibility="visible";

         return false;
    }
    if(document.all.event03.style.visibility=="visible") {
        document.all.event03.style.visibility="hidden";

        return false;
    }
}


function openMenu(){document.getElementById('mainvisual2').style.height='243'+"px";}
function closeMenu(){document.getElementById('mainvisual').style.height='197'+"px";}

//main Flash Visual관련
function showFlashBalloon(){
	document.getElementById('mainvisual').style.height = 243+"px"
}
function hideFlashBalloon(){
	document.getElementById('mainvisual').style.height = 195+"px"
}
function bannerOutLink(param){
	switch(param){
		case "0":
			location.href = "event_index.jsp"		
		break;
		case "1":
		location.href = "event_index.jsp"		
		break;
		case "2":
			location.href = "event_index.jsp"		
		break;
	}
}


// mall 상단상세검색
function showon() {
    if(document.all.dsearch.style.visibility=="hidden") {
         document.all.dsearch.style.visibility="visible";

         return false;
    }
    if(document.all.dsearch.style.visibility=="visible") {
        document.all.dsearch.style.visibility="hidden";

        return false;
    }
}
