var url = '';
var os = window.navigator.appVersion;
var os_array = os.split(';');
if(os_array[2].substring(0,8) != ' Windows') url = '';

function FlashMainbody(Ftrans,wid,hei) {
	mainbody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ wid +"' height='"+ hei +"'>";
	mainbody += "<param name='movie' value='"+ Ftrans +"'>";
	mainbody += "<param name='quality' value='high'>";
	mainbody += "<param name='menu' value='false'>";
	mainbody += "<param name='wmode' value='transparent'>";
	mainbody += "<embed src='"+ Ftrans +"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	mainbody += "</object>";

	//document.body.innerHTML = mainbody;
	document.write(mainbody);
	return;
}





function	 	main_mm01	()	{ // ¾çÇöÀç´Ü¼Ò°³
	location.href = (url+"/intro/intro01.jsp");
}

function	 	mm01_sub1	()	{ // ¾çÇöÀç´ÜÀº
	location.href = (url+"/intro/intro01.jsp");
}

function	 	mm01_sub2	()	{ // ÀÌ»çÀåÀÎ»ç¸»
	location.href = (url+"/intro/intro02.jsp");
}

function	 	mm01_sub3	()	{ //ÇÔ²²ÇÏ´Â »ç¶÷µé
	location.href = (url+"/intro/intro03.jsp");
}

function	 	mm01_sub4	()	{ // ¿¬Çõ
	location.href = (url+"/intro/intro04.jsp");
}
function	 	mm01_sub5	()	{ // ¿À½Ã´Â±æ
	location.href = (url+"/intro/contactus.jsp");
}

function	 	main_mm02	()	{ // »ç¾÷³»¿ë
	location.href = (url+"/business/business01.jsp");
}

function	 	mm02_sub1	()	{ // ÇØ¿î/¹°·ù/ÇØ¾ç ¿¬±¸Áö¿ø
	location.href = (url+"/business/business01.jsp");
}

function	 	mm02_sub2	()	{ // ÀÇ·áÁö¿ø
	location.href = (url+"/business/business02.jsp");
}

function	 	mm02_sub3	()	{ // ²Þ³ª¹« À°¼º
	location.href = (url+"/business/business03.jsp");
}
function	 	mm02_sub4	()	{ // ±× ¹ÛÀÇ È°µ¿
	location.href = (url+"/business/business04.jsp");
}



function	 	main_mm03	()	{ // »çÈ¸°øÇåÈ°µ¿
	location.href = (url+"/activity/activity01.jsp");
}

function	 	mm03_sub1	()	{ // ÈÄ¿øÈ¸ ¼Ò°³
	location.href = (url+"/activity/activity01.jsp");
}

function	 	mm03_sub2	()	{ // ÁÖ¿äÈ°µ¿ÇöÈ²
	location.href = (url+"/activity/activity02.jsp");
}






function	 	main_mm04	()	{ // ¾çÇö¼Ò½Ä
	location.href = (url+"/news/newsList.jsp?bbsid=101");
}

function	 	mm04_sub1	()	{ // »õ¼Ò½Ä
	location.href = (url+"/news/newsList.jsp?bbsid=101");
}

function	 	mm04_sub2	()	{ // Æ÷Åä¾Ù¹ü
	location.href = (url+"/news/newsList.jsp?bbsid=102");
}

function	 	mm04_sub3	()	{ // ¾ð·Ðº¸µµ ¸ðÀ½
	location.href = (url+"/news/newsList.jsp?bbsid=103");
}

function	 	mm04_sub4	()	{ // ÀÚÀ¯°Ô½ÃÆÇ
	location.href = (url+"/news/newsList.jsp?bbsid=104");
}

/**
 * Sets a Cookie with the given name and value.
 *
 * name       Name of the cookie
 * value      Value of the cookie
 * [expires]  Expiration date of the cookie (default: end of current session)
 * [path]     Path where the cookie is valid (default: path of calling document)
 * [domain]   Domain where the cookie is valid
 *              (default: domain of calling document)
 * [secure]   Boolean value indicating if the cookie transmission requires a
 *              secure transmission
 */
function setCookie(name, value, expires, path, domain, secure) {
	document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

/**
 * Gets the value of the specified cookie.
 *
 * name  Name of the desired cookie.
 *
 * Returns a string containing value of specified cookie,
 *   or null if cookie does not exist.
 */
function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1){
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }else{
        begin += 2;
    }

    var end = document.cookie.indexOf(";", begin);
    if (end == -1){
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}


