<!--
/*******************************************************************
* _swfFile ÆÄÀÏ¸í
* _width Æø
* _height ³ôÀÌ
*******************************************************************/


/*function flashShow(_swfFile,_width,_height) { 
	document.write("<object");
	document.write('classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" ');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ');
	document.write('width="'+_width+'" height="'+_height+'" ');
	document.write('align="middle">');
	document.write('<param name="movie" value="'+_swfFile+'.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed ");
	document.write('src="'+_swfFile+'.swf" ');
	document.write('quality="high" ');
	document.write('width="'+_width+'"height="'+_height+'" ');
	document.write('name="'+_swfFile+'" ');
	document.write('type="application/x-shockwave-flash" ');
	document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write("</object>");
}*/
function flashShow(_swfFile, _width, _height) {
 document.write('<object id="setval" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + _width + '" height="' + _height + '">'
 + '<param name="movie" value="' + _swfFile + '.swf">'
 + '<param name="wmode" value="transparent">'
 + '<param name="flashvars" value="Depth1=' + Depth1 + '&Depth2='+Depth2+'&Depth3='+Depth3+'">'
 + '<embed src="' + _swfFile + '.swf" id="setval" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + _width + '" height="' + _height + '"></embed>'
 + '</object>');
}

function MainFlash(AMovie, AWMode, AWidth, AHeight,seq) {
 document.write('<object id="setval" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + AWidth + '" height="' + AHeight + '">'
 + '<param name="movie" value="' + AMovie + '">'
 + '<param name="wmode" value="' + AWMode + '">' 
 + '<param name="flashvars" value="seq=' + seq + '">'
 + '<embed src="' + AMovie + '" id="setval" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>'
 + '</object>');
}
// -->


// ÀÌ¹ÌÁö ÆË¾÷ ½ÃÀÛ »ç¿ë¹ý imgResize(ÆÄÀÏ¸í) java.jsÆÄÀÏ¿¡µµ µî·ÏµÊ »ç¿ëµÈ°÷ /intro/intro_05_03_1.php
function imgResize(img){ 
  img1= new Image(); 
  img1.src=(img); 
  imgControll(img); 
} 

function imgControll(img){ 
  if((img1.width!=0)&&(img1.height!=0)){ 
    viewImage(img); 
  } 
  else{ 
    controller="imgControll('"+img+"')"; 
    intervalID=setTimeout(controller,20); 
  } 
} 

function viewImage(img){ 
        W=img1.width; 
        H=img1.height; 
        O="width="+W+",height="+H; 
        imgWin=window.open("","",O); 
        imgWin.document.write("<html><head><title>ÀÌ¹ÌÁö ¹Ì¸®º¸±â</title></head>");
        imgWin.document.write("<body topmargin=0 leftmargin=0>");
        imgWin.document.write("<a href='#'><img src="+img+" onclick='self.close()' border='0'></a>");
        imgWin.document.close();
} 
// ÀÌ¹ÌÁö ÆË¾÷ ³¡

function MainBannerLink(num){
	var oneDepth = new Array();
	var win = new Array();

	oneDepth[0]="http://www.snjc.ac.kr/intro/intro_08_01.php";
	oneDepth[1]="http://www.snjc.ac.kr/popup/main_nclex.htm";
	oneDepth[2]="http://www.snjc.ac.kr/intro/intro_03_08.php";
	oneDepth[3]="http://www.snjc.ac.kr/popup/main_pass.htm";
	win=["self",["pop", 717, 750],"self", ["pop", 670, 628]];

	if(win[num]=="self"){
		location.href = oneDepth[num];
	}else if(win[num]=="blk"){
		window.open(oneDepth[num]);
	}else if(win[num][0]=="pop"){
		PopOpen(oneDepth[num], win[num][1], win[num][2])
	}
}


function PopOpen(PathNum, widthNum, heightNum){
w = window.open(PathNum,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=yes,status=no,width='+widthNum+',height='+heightNum+',left=10,top=10'); 
w.focus();
}
