
function goMenu(no) {


//Sampleview

	if(no==1) {
		top.location.href="../sampleview/index.asp";
	}

//Casestudy

	if(no==2) {
		location.href="../casestudy/index.asp";
	}
	
	
	
//

	if(no==21) {
		location.href="../casestudy/case_sericeo_01_body.html";
	}
	if(no==22) {
		location.href="../casestudy/case_youngnam_01_body.html";
	}
	if(no==23) {
		location.href="../casestudy/case_nobel_01_body.html";
	}
	if(no==24) {
		location.href="../casestudy/case_kb_01_body.html";
	}
	if(no==25) {
		location.href="../casestudy/case_ulsanchurch_01_body.html";
	}
	
}
	

function na_alert(str)
{
alert(str);
}



	
function openWinCasestudy(winName) {
		window.open(winName,"caseWin","resizable=no,scrollbars=no,width=670,height=600");
	} 	

	
function openWinPfcheck(winName) {
		window.open(winName,"pfcheckWin","resizable=no,scrollbars=no,width=450,height=520");
	} 	
	
	
function openWinSample(winName) {
		window.open(winName,"winView","resizable=no,scrollbars=no,width=1014,height=711");
	} 
function openWinSample2(winName) {
		window.open(winName,"winView2","resizable=no,scrollbars=no,width=850,height=610");
	} 	
function openWinSample3(winName) {
		window.open(winName,"winView3","resizable=no,scrollbars=no,width=850,height=500");
	} 		
function openWinSample4(winName) {
		window.open(winName,"winView4","resizable=no,scrollbars=no,width=1008,height=607");
	} 		
function openWinSample5(winName) {
		window.open(winName,"winView5","resizable=no,scrollbars=no,width=788,height=505");
	} 			
function openWinSample6(winName) {
		window.open(winName,"winView6","resizable=no,scrollbars=no,width=647,height=598");
	} 
function openWinSample7(winName) {
		window.open(winName,"winView7","resizable=no,scrollbars=no,width=1014,height=735");
	} 		

	
function openWinUserpc(winName) {
		window.open(winName,"winView4","resizable=no,scrollbars=no,width=402,height=433");
	} 	
	
	
var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}


var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function startVScroll() {
}

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 200; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ('moveRightEdge()', timeoutNextCheck);
}


 function get_adv()
  {
    page_num = Math.random() * 10;    	        	
    page_num = Math.floor(page_num);
    
    // ÆäÀÌÁö ¼ö-> % 3
    // iFrame¿¡ ¸µÅ©µÉ ÆÄÀÏ¸íÀº adv_0.asp, adv_1.asp
    page_num = page_num % 3;
    page_num = "adv_" + page_num + ".asp";
      
    
    // iFrame¿¡ ÆäÀÌÁö¸¦ È£ÃâÇÑ´Ù. 
    window.open(page_num, "casestudy");
    
  }


function FlashMenuAuto(FlashSrc,SizeX,SizeY,XmlSrc) {
var str = '<object '+
		'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+SizeX+'" height="'+SizeY+'" id="MenuGenerator" align="middle">'+
		'<param name="allowScriptAccess" value="always" />'+
		'<param name="allowFullScreen" value="false" />'+
		'<param name="flashVars" value="menuXML='+XmlSrc+'&stageWidth='+SizeX+'&stageHeight='+SizeY+'" />'+
		'<param name="movie" value="' + FlashSrc + '">'+
		'<param name="quality" value="high">'+
		'<param name="wmode" value="transparent" />'+
		'<param name="bgcolor" value="#ffffff" />'+
		'<embed src="'+FlashSrc+'" quality="high" bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="MenuGenerator" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
	'</object>';
  document.write(str);
//alert(str);
}

function goMenuAuto(ref, channelcode, DMenuCode)
{
	//alert(ref);
	//alert(channelcode);
	//alert(DMenuCode);
	var href;
	if (ref.length == 0) return ;	//menu undefined

	/*if (ref.length != 0 && channelcode == 0) //´ë¸Þ´º »ý¼º ÈÄ ¼Ò¸Þ´º ¶Ç´Â ÀÌµ¿ÆäÀÌÁö ÁöÁ¤¾ÈÇÑ°æ¿ì
	{
		return;
	}*/

	if (channelcode > 0) {
		href = "MenuID=MG"+DMenuCode+"&PageNavi=XLogUserList&XLogIdxNo="+channelcode;	//board
	} else {
		href = "";	//page
	}

	if (ref.indexOf("?") != -1)	//param exists
	{
		href = "&" + href;
	}
	else
	{
		href = "?" + href;
	}

	//alert(href);
	window.location.href = ref + href;
}
