function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_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=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function iePatchIt(flashID) {
	document.write(flashID.innerHTML);flashID.id="";
}


	function hm2(j)
	{
		if(j==null)location.href="http://buying.lotteshopping.com/index.jsp";
		else if (j=="a1")location.href="http://buying.lotteshopping.com/company/company_index.jsp";//»óÇ°º»ºÎ¼Ò°³
		else if (j=="a11")location.href="http://buying.lotteshopping.com/company/company_greetings.jsp";//ÀÎ»ç¸»
		else if (j=="a12")location.href="http://buying.lotteshopping.com/company/company_organization.jsp";//Á¶Á÷ÇöÈ²¼Ò°³

		else if (j=="a2")location.href="http://buying.lotteshopping.com/company/lottenews_list.jsp";//·Ôµ¥¼Ò½Ä
		else if (j=="a21")location.href="http://buying.lotteshopping.com/company/20080421_lotte_sabo.jsp";//·Ôµ¥»çº¸				
		
		else if (j=="a3")location.href="http://buying.lotteshopping.com/company/company_1102_fundsystem.jsp";//·Ôµ¥¼Ò½Ä
		else if (j=="a31")location.href="http://buying.lotteshopping.com/company/company_1102_fundsystem.jsp";//·Ôµ¥¼Ò½Ä
		else if (j=="a32")location.href="http://buying.lotteshopping.com/company/company_1102_fundsystem_2.jsp";//·Ôµ¥¼Ò½Ä
		else if (j=="a33")location.href="http://buying.lotteshopping.com/company/company_fundsystem_3.jsp";//·Ôµ¥¼Ò½Ä

		else if (j=="a4")location.href="http://buying.lotteshopping.com/company/cooperation/cooperation_01.jsp";//
		else if (j=="a41")location.href="http://buying.lotteshopping.com/company/cooperation/cooperation_01.jsp";//
		else if (j=="a42")location.href="http://buying.lotteshopping.com/company/cooperation/cooperation_02.jsp";//
		
		else if (j=="b1")location.href="http://buying.lotteshopping.com/counsel/counsel_index.jsp";//ÀÔÁ¡¾È³»
		else if (j=="b2")location.href="http://buying.lotteshopping.com/counsel/counsel_main.jsp";//»ó´ã½ÅÃ»
		else if (j=="b3")location.href="http://buying.lotteshopping.com/counsel/counsel_list.jsp";//»ó´ã¸ñ·Ï
		else if (j=="b4")location.href="http://buying.lotteshopping.com/counsel/product_list.jsp";//»óÇ°°ø¸ð
		else if (j=="c1")location.href="http://buying.lotteshopping.com/circulation/column_list.jsp";//À¯ÅëÀÚ·á
		else if (j=="c2")location.href="http://buying.lotteshopping.com/circulation/circulation_news_list.jsp";//À¯Åë´º½º
		else if (j=="c3")location.href="http://buying.lotteshopping.com/circulation/recommend_site.jsp";//ÃßÃµ»çÀÌÆ®
		else if (j=="d1")location.href="http://buying.lotteshopping.com/helpdesk/faq_list.jsp";//FAQ
		else if (j=="d2")location.href="http://buying.lotteshopping.com/helpdesk/opinion_register.jsp";//¹®ÀÇ
		else if (j=="d3")location.href="http://buying.lotteshopping.com/helpdesk/cyber.jsp";//»çÀÌ¹ö°¨»ç½Å°í
		
		
		
		return;
		
	}

// ÁÂÃø ¹è³Ê Ãâ·Â 
var lBannerHTML = "";
lBannerHTML += '	<div class="leftBanner">';
lBannerHTML += '		<a target="_blank" href="http://lotteedi.dpt.co.kr/"><img src="/images/common/left_banner_1.gif" alt="EDI ½Ã½ºÅÛ"></a>';
lBannerHTML += '		<a target="_blank" href="https://www.safebill.co.kr/etax/index.jsp"><img src="/images/common/left_banner_2.gif" alt="ÀüÀÚ ¼¼±Ý°è»ê¼­"></a>';
lBannerHTML += '		<a target="_blank" href="http://lottedcs.dpt.co.kr/log104.dcs"><img src="/images/common/left_banner_3.gif" alt="ÀüÀÚ°è¾à¼­ ½Ã½ºÅÛ"></a>';
lBannerHTML += '		<a target="_blank" href="http://www.lotteshopping.com/customer/fair/report/report.jsp"><img src="/images/common/left_banner_4.gif" alt="ºÒ°øÁ¤ °Å·¡ ½Å°í"></a>';
lBannerHTML += '		<a target="_blank" href="http://www.lotteshopping.com/customer/ethics/about/about.jsp"><img src="/images/common/left_banner_5.gif" alt="À±¸®»ç¹«±¹"></a>';
lBannerHTML += '	</div>';

function leftBanner() {
	document.write(lBannerHTML);
}

// ÁÂÃø ¹è³Ê Ãâ·Â SSL
var lBannerHTML_ssl = "";
lBannerHTML_ssl += '	<div class="leftBanner">';
lBannerHTML_ssl += '		<a target="_blank" href="http://lotteedi.dpt.co.kr/"><img src="https://buying.lotteshopping.com/images/common/left_banner_1.gif" alt="EDI ½Ã½ºÅÛ"></a>';
lBannerHTML_ssl += '		<a target="_blank" href="https://www.safebill.co.kr/etax/index.jsp"><img src="https://buying.lotteshopping.com/images/common/left_banner_2.gif" alt="ÀüÀÚ ¼¼±Ý°è»ê¼­"></a>';
lBannerHTML_ssl += '		<a target="_blank" href="http://lottedcs.dpt.co.kr/log104.dcs"><img src="https://buying.lotteshopping.com/images/common/left_banner_3.gif" alt="ÀüÀÚ°è¾à¼­ ½Ã½ºÅÛ"></a>';
lBannerHTML_ssl += '		<a target="_blank" href="http://www.lotteshopping.com/customer/fair/report/report.jsp"><img src="https://buying.lotteshopping.com/images/common/left_banner_4.gif" alt="ºÒ°øÁ¤ °Å·¡ ½Å°í"></a>';
lBannerHTML_ssl += '		<a target="_blank" href="http://www.lotteshopping.com/customer/ethics/about/about.jsp"><img src="https://buying.lotteshopping.com/images/common/left_banner_5.gif" alt="À±¸®»ç¹«±¹"></a>';
lBannerHTML_ssl += '	</div>';

function leftBanner_ssl() {
	document.write(lBannerHTML_ssl);
}

function changeHeight(n) {
	document.getElementById('swfLeft').style.height = n;
}

function addEvent( obj, type, fn )
{
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}

function removeEvent( obj, type, fn )
{
	if (obj.removeEventListener)
		obj.removeEventListener( type, fn, false );
	else if (obj.detachEvent)
	{
		obj.detachEvent( "on"+type, obj[type+fn] );
		obj[type+fn] = null;
		obj["e"+type+fn] = null;
	}
}

function fLinkToggle(o) {
	if (o.className == "off")
	{
		fLinkClose();
		o.className = "on";
		o.nextSibling.style.display = "block";
		setTimeout("setEvent()",100);
	}
	else
	{
		o.className = "off";
		o.nextSibling.style.display = "none";
	}
}

function fLinkClose() {
	var dts = document.getElementById('footerArea').getElementsByTagName('dt');
	for (var a = 0; a < dts.length ; a++ )
	{
		if (dts[a].className == "on")
		{
			dts[a].className = "off";
			dts[a].nextSibling.style.display = "none";
		}
	}
	try {
		removeEvent(document.getElementsByTagName('body')[0], "click", fLinkClose);
	} catch (e) {}
	
}

function setEvent() {
	addEvent(document.getElementsByTagName('body')[0], "click", fLinkClose);
}

function rePositionFooter() {
	try
	{
		document.getElementById('footerArea').style.position = 'relative';	
	}
	catch (e)
	{
	}
	
}

setTimeout("rePositionFooter()",200);

