
/**************** SSL ½ÃÀÛ **************************/

var url = document.URL;

//SSL Àû¿ëµÇ´Â ÆäÀÌÁö¸¦ ³Ö´Â´Ù.
var sslFiles = ["Login.aspx", "Agreement.aspx", "Member_FindEmail01.aspx", "Member_FindQA01.aspx", "Member_FindQA02.aspx",
				"Member_FamilyInsert.aspx", "Member_Insert.aspx", "Member_Update.aspx", "Member_Result.aspx"];

//ÇöÀç ÆäÀÌÁö¸í
var curFile = document.URL.substring(url.lastIndexOf("/") + 1, url.indexOf("?") > 0 ? url.lastIndexOf("?") : url.length);

var isSSL = false;

for(var i = 0; i < sslFiles.length; i++) {

	if(curFile == sslFiles[i]) { //ÇöÀç ÆäÀÌÁö°¡ SSLÆäÀÌÁö°¡ ¸Â´Ù.
	
		if(location.protocol == 'http:') {
			location.replace("https://" + url.substring(7, url.length));
		}
		
		isSSL = true;
		
		break;
	}
}

if(!isSSL) { //SSLÆäÀÌÁö°¡ ¾Æ´Ï¸é

	if(location.protocol == 'https:') { //ÇöÀç httpsÀÌ¸é
	
		location.replace("http://" + url.substring(8, url.length));
	}
}


/**************** SSL Á¾·á **************************/



//FlaschActiveX
function flashView(URL,SizeX,SizeY,transparent_YN){

	document.write( '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+SizeX+'" height="'+SizeY+'" id="menuLink" align="middle">');
	document.write(	'<param name="movie" value="'+URL+'" />');
	document.write(	'<param name="quality" value="high" />');

	if(transparent_YN == 'Y') {
		document.write(	'<param name="wmode" value="transparent"/>');
		document.write(	'<param name="bgcolor" value="#ffffff" />');
	}

	document.write(	'<embed src="'+URL+'" quality="high" bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="menuLink" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

//FlaschActiveX
function flashView2(URL){

	document.write( '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height=300 id="menuLink" align="middle">');
	document.write(	'<param name="movie" value="'+URL+'" />');
	document.write(	'<param name="quality" value="high" />');
	document.write(	'<embed src="'+URL+'" quality="high" bgcolor="#ffffff" width="600" height=300 name="menuLink" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

//FlaschActiveX

function moviewView(src)
{
 html = '';
 html += '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" id="player" type="application/x-oleobject" width="320" height="311" standby="Loading Microsoft Windows Media Player components...">';
 html += '<param name="FileName" value="'+src+'">';
 html += '<param name="DisplaySize" value="4">';
 html += '<param name="EnableFullScreenControls" value="0">';
 html += '<param name="ShowControls" value="1">';
 html += '<param name="ShowTracker" value="1">';
 html += '<param name="ShowAudioControls" value="1">';
 html += '<param name="ShowStatusBar" value="1">';
 html += '<param name="ShowDisplay" value="0">';
 html += '<param name="ShowCaptioning" value="0">';
 html += '<param name="ShowPositionControls" value="0">';
 html += '<param name="SetCurrentEntry" value="1">';
 html += '<param name="ClickToPlay" value="0">';
 html += '<param name="AutoSize" value="0">';
 html += '<param name="AutoStart" value="1">';
 html += '<param name="EnableContextMenu" value="0">';
 html += '<param name="volume" value="50%">';
 html += '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" name="player" src="'+src+'" width="320" height="311" autostart="1" showcontrols="0"></embed>';
 html += '</object>';
 document.write(html);
}

function moviewView2(src,SizeX,SizeY)
{
 html = '';
 html += '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" id="Player" type="application/x-oleobject" width="'+SizeX+'" height="'+SizeY+'" standby="Loading Microsoft Windows Media Player components...">';
 html += '<param name="FileName" value="'+src+'">';
 html += '<param name="autoStart" value="1">';
 html += '<param name="showControls" value="0">';
 html += '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" name="Player" src="'+src+'" width="'+SizeX+'" height="'+SizeY+'" autostart="1" showcontrols="0"></embed>';
 html += '</object>';
 document.write(html);
}

function raiseEnterAction(btn)
{
	if(event.keyCode == 13)
	{
		self.focus();
		document.all[btn].click();
		return false;
	}
	return true;
}



function btnDelCheck(str)
{
	if(confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î"))
		return true;
	else
		return false;
}

function ImgLoad()
{
}

function news_tab(su)
	{
		for (i=1; i<3 ; i++)
		{
			if (su == i)
			{
				document.all("newstab"+i).src="/Images/Main/news_tab"+i+"_on.gif";
				document.all("Mainnews"+i).style.display="block";
			}
			else
			{
				document.all("newstab"+i).src="/Images/Main/news_tab"+i+".gif";
				document.all("Mainnews"+i).style.display="none";
			}
		}
	}
function notice_tab(su)
	{
		for (i=1; i<3 ; i++)
		{
			if (su == i)
			{
				//document.all("notitab"+i).src="/Images/Main/noti_tab"+i+"_on.gif";
				document.all("Mainnoti"+i).style.display="block";
			}
			else
			{
				//document.all("notitab"+i).src="/Images/Main/noti_tab"+i+".gif";
				document.all("Mainnoti"+i).style.display="none";
			}
		}
	}	