

function showBottomJS(){

	var scripts = document.getElementsByTagName('script');
	var myScript = scripts[ scripts.length - 1 ];
	var queryString = myScript.src.replace(/^[^\?]+\??/,'');
	var paramsBottomJS = parseQuery( queryString );

	function parseQuery ( query ) {
	   var Params = new Object ();
	   if ( ! query ) return Params; // return empty object
	   var Pairs = query.split(/[;&]/);
	   for ( var i = 0; i < Pairs.length; i++ ) {
		  var KeyVal = Pairs[i].split('=');
		  if ( ! KeyVal || KeyVal.length != 2 ) continue;
		  var key = unescape( KeyVal[0] );
		  var val = unescape( KeyVal[1] );
		  val = val.replace(/\+/g, ' ');
		  Params[key] = val;
	   }
	   return Params;
	}

	if (typeof(paramsBottomJS["width"]) == "undefined") paramsBottomJS["width"] = "970";
	if (typeof(paramsBottomJS["yp"]) == "undefined") paramsBottomJS["yp"] = "y";
	if (typeof(paramsBottomJS["biz"]) == "undefined") paramsBottomJS["biz"] = "n";


	var strbottom_css = '';
	strbottom_css = "<style type='text/css'>";
	strbottom_css += "#FOOTER	{width:"+paramsBottomJS["width"]+"px; margin:0 auto; text-align:left;font-size:12px; color:#484848; font-weight:normal; text-align:center; font-family:µ¸¿ò,dotum,verdana,san-serif,arial,apple-gothic;} ";
	strbottom_css += "#JOINSFOOTER	{clear:both; width:"+paramsBottomJS["width"]+"px; margin:0 auto; text-align:left;} \
		#FOOTER *	{margin:0; padding:0;} \
		#FOOTER img {border:0px; vertical-align:middle;} \
		#FOOTER input, select	{font-size:100%; vertical-align:middle;} \
		#FOOTER li,dl,dt,dd	{list-style:none;} \
		#FOOTER h1,h2,h3,h4,h5,h6	{display:none;} \
		#FOOTER fieldset, blockquote	{border:none;} \
		#FOOTER hr	{display:none; clear:both;} \
		#FOOTER a	{color:#484848;} \
		#ftYP_bg	{height:30px; background:url(http://images.joins.com/ui_joins/news06/common/bg2007_yp_l.gif) no-repeat left top;}  \
		#ftYP	{height:30px; padding:7px 15px 0; background:url('http://images.joins.com/ui_joins/news06/common/bg2007_yp_r.gif') no-repeat right top;} \
		#ftYP #search{float:left; margin-top:2px;} \
		#ftYP #search .input_ypsch	{width:110px; border:1px solid #AEAEAE;} \
		#ftYP #link	{float:right; margin-top:7px;} \
		#ftYP #link li	{float:left; padding-left:8px; background:url(http://images.joins.com/ui_joins/news06/common/bg_cut01.png) no-repeat 3px 0; font-size:11px;} \
		#ftYP #link li.first{background:none;} \
		#ftYP #link li a	{color:#484848;} \
		#ftPromotion{margin-bottom:11px; text-align:center;} \
		#ftAClink	{height:27px; padding:0 13px; background-color:#EFEFEF;} \
		#ftAClink a{color:#484848;} \
		#ftAClink #joongang	{float:left; margin-top:7px;} \
		#ftAClink #joins	{float:right; margin-top:7px;} \
		#ftAClink li	{float:left; padding:0 6px;} \
		#ftAClink00	{height:27px; padding:0 0 0 10px; background-color:#E8E8E8;margin-top:10px;} \
		#ftAClink00 a{color:#494949;} \
		#ftAClink00 span {float:left;margin:3px 0 0 2px;} \
		#ftAClink00 #joongang	{float:left; margin-top:7px;} \
		#ftAClink00 #joins	{float:right; margin-top:7px;padding-right:15px;} \
		#ftAClink00 #joins01	{float:left; margin:7px 5px 0 5px;} \
		#ftAClink00 li	{float:left; padding:0 6px;} \
		#ftCopyright	{position:relative; height:70px; line-height:20px; padding-left:175px; text-align:left;} \
		#ftCopyright #txt01{float:left; margin-top:14px;} \
		#ftCopyright ul	{float:left; width:460px; margin:14px 0 0 8px;} \
		#ftCopyright li	{float:left; padding-left:8px; background:url(http://images.joins.com/ui_joins/news06/common/bg_cut02.png) no-repeat 3px 4px; font-size:11px;} \
		#ftCopyright li.first	{background:none;} \
		#ftCopyright li a	{color:#484848;} \
		#ftCopyright #txt02{clear:both; color:#7E7E7E; font-size:11px;} \
		#ftCopyright #txt02 a	{color:#7E7E7E; font-size:12px; text-decoration:none;} \
		#ftCopyright #txt03{clear:both; color:#7E7E7E; font-size:11px;width:650px;line-height:14px;}   \
		#joinsmini	{position:absolute; left:54px; top:20px; padding-bottom:1px;} \
		#joinsmini2	{position:absolute; left:54px; top:40px; padding-bottom:1px;} \
		#xml-rss	{position:absolute; right:20px; top:16px; width:84px; padding-bottom:1px;} \
		#xml-rss2 {position:absolute; right:20px; top:25px; width:84px; padding-bottom:1px;} \
		#xml-rss3 {position:absolute; right:20px; top:40px; width:84px; padding-bottom:1px;} \
		#xml_btn{}	#rss_btn{margin-left:5px;}	#prgdwn_btn{margin-top:5px;} ";
	strbottom_css += "</style>";



	var strbottom = '';

	strbottom += "<div id='JOINSFOOTER'>";
	
	strbottom +=  "<div id='ftAClink00'> \
		<hr /><h2>JMnet Information</h2> \
		<ul id='joongang'> \
		<li><a href='http://www.joins.com?cloc=home|bottom2|home' target='_top'>È¨</a></li> \
		<li><a href='http://news.joins.com/politics/index.html?cloc=home|bottom2|politics'  target='_top'>Á¤Ä¡</a></li> \
		<li><a href='http://news.joins.com/economy/index.html?cloc=home|bottom2|economy'  target='_top'>°æÁ¦</a></li> \
		<li><a href='http://news.joins.com/life/index.html?cloc=home|bottom2|life'  target='_top'>»çÈ¸</a></li> \
		<li><a href='http://news.joins.com/culture/index.html?cloc=home|bottom2|culture'  target='_top'>¹®È­</a></li> \
		<li><a href='http://news.joins.com/world/index.html?cloc=home|bottom2|world'  target='_top'>Áö±¸ÃÌ</a></li> \
		<li><a href='http://news.joins.com/local/index.html?cloc=home|bottom2|local'  target='_top'>Áö¿ª</a></li> \
		<li><a href='http://news.joins.com/opinion/index.html?cloc=home|bottom2|opinion'  target='_top'>»ç¼³</a></li> \
		<li><a href='http://news.joins.com/special/popcornnews/index.html?cloc=home|bottom2|special'  target='_top'>ÆËÄÜ</a></li> \
		<li><a href='http://weather.joins.com/?cloc=home|bottom2|weather'  target='_top'>³¯¾¾</a></li> \
		</ul> \
		<ul id='joins01'> \
		<li><a href='http://healthcare.joins.com?cloc=home|bottom2|healthcare'  target='_top'>°Ç°­</a></li> \
		<li><a href='http://auto.joins.com?cloc=home|bottom2|auto'  target='_blank'>ÀÚµ¿Â÷</a></li> \
		<li><a href='http://patzzi.joins.com?cloc=home|bottom2|patzzi'  target='_blank'>ÆÌÂî</a></li> \
		<li><a href='http://jgolfi.joins.com?cloc=home|bottom2|jgolf'  target='_blank'>°ñÇÁ</a></li> \
		</ul> \
		<ul id='joins01'> \
		<li><a href='http://news.joins.com/sports/starots_index.html?cloc=home|bottom2|sports'  target='_top'>½ºÆ÷Ã÷ ¿¬¿¹</a></li> \
		<li><a href='http://news.joins.com/money/index.html?cloc=home|bottom2|money'  target='_top'>¸Ó´Ï</a></li> \
		<li><a href='http://life.joins.com/index.asp?cloc=home|bottom2|lifeservice'  target='_top'>¶óÀÌÇÁ</a></li> \
		<li><a href='http://news.joins.com/special/index.html?cloc=home|bottom2|special'  target='_top'>½ºÆä¼È</a></li> \
		</ul> \
		<ul id='joins01'> \
		<li><a href='http://tv.joins.com?cloc=home|bottom2|tv'  target='_top'>TV</a></li> \
		<li><a href='http://pic.joins.com/photo/?cloc=home|bottom2|photo'  target='_top'>Æ÷Åä</a></li> \
		<li><a href='http://blog.joins.com/center/?cloc=home|bottom2|blog'  target='_top'>ºí·Î±×</a></li> \
		<li><a href='http://people.joins.com/?cloc=home|bottom2|people'  target='_top'>ÀÎ¹°Á¤º¸</a></li> \
		</ul> \
		<span><a href='#top'><img src='http://images.joins.com/ui_joins/news09/news/index_footer_top01.gif'></a></span> \
		</div> ";
	
	if (paramsBottomJS["yp"] == "y")
	{
			strbottom += "<!-- s : Yellow Page --> \
			<div id='ftYP_bg'> \
				<div id='ftYP'> \
				<div id='search'> \
						<form name='totalsearch'  method='post' action='http://yp.joins.com/yp/search_list.asp' onsubmit='gosearch();return false;'> \
							<img src='http://images.joins.com/ui_joins/news06/common/yp_img02.gif' width='85' height='20' alt='¿»·Î¿ìÆäÀÌÁö' /> \
							<input id='blogin_i' name='text' class='input_ypsch' /> \
							<input type='image' src='http://images.joins.com/ui_joins/news06/home/btn_search02.gif' alt='¿»·Î¿ìÆäÀÌÁö °Ë»ö' name='ypsearch' /> \
						</form> \
					</div> \
					<ul id='link'> \
					<li class='first'><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=a'>¸ÀÁý</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=f'>¹ý·ü¡¤È¸°è¡¤±ÝÀ¶</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=b'>¿©Çà</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=g'>ÀÚµ¿Â÷¡¤º¸Çè</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=c'>¿þµù¡¤È¥¼ö</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=h'>Ã¢¾÷</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=i'>IT¡¤Á¦Á¶¡¤»ê¾÷</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=j'>ÀÌ»ç¡¤ÅÃ¹è¡¤Äü</a></li> \
					<li><a href='http://yp.joins.com/yp/category_list.asp?code1=008'>±³À°</a></li> \
					<li><a href='http://yp.joins.com/yp/category_list.asp?code1=003'>ºÎµ¿»ê</a></li> \
					<li><a href='http://yp.joins.com/yp/category_list.asp?code1=008&amp;code2=004'>ÇÐ¿ø</a></li> \
					<li><a href='http://yp.joins.com/yp/favorite_list.asp?fcode=d'>¼±¹°¡¤¼îÇÎ</a></li> \
					<li><a href='http://yp.joins.com/yp/category_list.asp?code1=010&amp;code2=003'>¹®È­</a></li> \
					</ul> \
				</div> \
			</div> \
			<!-- e : Yellow Page --> \
			<!-- s : promotion --> \
			<div id='ftPromotion'> \
				<iframe src='http://www.joins.com/_ui/ad/ad_sponsor.html' width='950' height='33' frameborder='0' marginheight='0' scrolling='no'></iframe> \
			</div> \
			<!-- e : promotion--> ";
	}
	if (paramsBottomJS["sisa"] == "y")
	{	strbottom += "<!-- s : JMnet Information --> \
		<div id='ftAClink00'> \
			<ul id='joongang'> \
			<li><a href='http://help.joins.com/joongang/' target='_blank'><strong>Áß¾ÓÀÏº¸</strong></a></li> \
			<li><a href='http://ad.joins.com/' target='_blank'>±¤°í¾È³»</a></li> \
			<li><a href='http://corp.joins.com/subindex.asp?servcode=311' target='_blank'>ÀÎÀçÃ¤¿ë</a></li> \
			<li><a href='http://myjoins.joins.com/' target='_blank'>°í°´¼¾ÅÍ</a></li> \
			<li id='BottomRollingLink' style='display:none;'></li> \
			<li><a href='http://myjoins.joins.com/support/help/' target='_blank'>»çÀÌÆ®¸Ê</a></li> \
			</ul> \
			<ul id='joins'> \
			<li><a href='http://www.sisamedia.co.kr/' target='_blank'><strong>½Ã»ç¹Ìµð¾î</strong></a></li> \
			<li><a href='http://www.sisamedia.co.kr/company/index.asp' target='_blank'>È¸»ç¼Ò°³</a></li> \
			<li><a href='http://www.sisamedia.co.kr/ad/monthly_ad.asp' target='_blank'>±¤°í¹®ÀÇ</a></li> \
			<li><a href='http://www.sisamedia.co.kr/reporter/monthly_reporter.asp' target='_blank'>±âÀÚ¼Ò°³</a></li> \
			<li><a href='http://www.sisamedia.co.kr/map.asp' target='_blank'>¿À½Ã´Â ±æ</a></li> \
			</ul> \
		</div> ";
	}else{	strbottom += "<!-- s : JMnet Information --> \
		<div id='ftAClink00'> \
			<ul id='joongang'> \
			<li><a href='http://help.joins.com/joongang/' target='_blank'><strong>Áß¾ÓÀÏº¸</strong></a></li> \
			<li><a href='http://help.joins.com/joongang/info1.html' target='_blank'>µ¶ÀÚ¼­ºñ½º</a></li> \
			<li><a href='http://ad.joins.com/' target='_blank'>±¤°í¾È³»</a></li> \
			<li><a href='http://help.joins.com/joongang/media.html' target='_blank'>JMnet¸ÅÃ¼</a></li> \
			<li><a href='http://help.joins.com/joongang/sites.html' target='_blank'>»ç¾÷ ¡¤ Çà»ç</a></li> \
			<li><a href='http://help.joins.com/joongang/jmn.html' target='_blank'>°ü·ÃÈ¸»ç</a></li> \
			<li><a href='http://blog.joins.com/media/index.asp?uid=jombudsman' target='_blank'>°íÃæÃ³¸®</a></li> \
			</ul> \
			<ul id='joins'> \
			<li><a href='http://corp.joins.com/' target='_blank'><strong>Á¶ÀÎ½º´åÄÄ</strong></a></li> \
			<li><a href='http://corp.joins.com/subindex.asp?servcode=2111' target='_blank'>±¤°í¾È³»</a></li> \
			<li><a href='http://corp.joins.com/subindex.asp?servcode=311' target='_blank'>ÀÎÀçÃ¤¿ë</a></li> \
			<li><a href='http://myjoins.joins.com/' target='_blank'>°í°´¼¾ÅÍ</a></li> \
			<li id='BottomRollingLink' style='display:none;'></li> \
			<li><a href='http://myjoins.joins.com/support/help/' target='_blank'>»çÀÌÆ®¸Ê</a></li> \
			</ul> \
		</div> ";
	}
		strbottom += "<!-- e : JMnet Information --> \
		<!-- s : Copyright --> \
		<div id='ftCopyright'> \
			<div id='joinsmini'> \
				<a href='http://www.joins.com/'><img src='http://images.joins.com/ui_joins/news06/home/joins01.gif' alt='JOINS' width='65' height='25' id='ft_logo' /></a> \
			</div> \
			<p id='txt01'>Copyright by Joins.com, Inc.</p> \
			<ul> \
			<li class='first'><a href='http://myjoins.joins.com/support/help/agreement.asp?idx=4' target='_blank'>È¸¿ø¾à°ü</a></li> \
			<li><a href='http://myjoins.joins.com/support/help/agreement.asp?idx=6' target='_blank'>ÀúÀÛ±Ç Á¤Ã¥</a></li> \
			<li><a href='http://myjoins.joins.com/support/help/agreement.asp?idx=7' target='_blank'><strong>°³ÀÎÁ¤º¸ Ãë±Þ¹æÄ§</strong></a></li> \
			<li><a href='http://myjoins.joins.com/support/help/agreement.asp?idx=7#12' target='_blank'>Ã»¼Ò³âº¸È£Á¤Ã¥</a></li> \
			<li><a href='http://myjoins.joins.com/support/help/agreement.asp?idx=9' target='_blank'>ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý °ÅºÎ</a></li> \
			</ul> \
			<p id='txt02'>Á¶ÀÎ½º´åÄÄÀÇ ¸ðµç ÄÜÅÙÃ÷(±â»ç) ´Â ÀúÀÛ±Ç¹ýÀÇ º¸È£¸¦ ¹ÞÀº¹Ù, ¹«´Ü ÀüÀç¤ýº¹»ç¤ý¹èÆ÷ µîÀ» ±ÝÇÕ´Ï´Ù.&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://corp.joins.com/subindex.asp?servcode=2211' target='_blank'>[ÄÜÅÙÃ÷ »ç¾÷¾È³»]</a></p>"
			if (paramsBottomJS["biz"] == "y")
			{
				strbottom += "<div id='txt03'>»óÈ£¸í : Á¶ÀÎ½º´åÄÄ(ÁÖ)  ¤Ó  »ç¾÷ÀÚµî·Ï¹øÈ£ : 120-81-93457  ¤Ó Åë½ÅÆÇ¸Å¾÷½Å°í¹øÈ£ : Áß±¸00211 ¤Ó ´ëÇ¥ÀÌ»ç : ÇÏÁöÀ±</br>ÁÖ¼Ò : ¼­¿ï½Ã Áß±¸ À»Áö·Î4°¡ 310-68 »ïÇ³ºôµù 12Ãþ ¤Ó ´ëÇ¥ÀüÈ­ : 02-2116-2000 ¤Ó ÆÑ½º : 02-2116-2001</div>"
			}
			strbottom += "<div id='xml-rss2'><a href='http://rss.joins.com'><img src='http://images.joins.com/ui_joins/news08/public/btn_rss01.gif' alt='RSS' /></a></div> \
		</div> \
		<!-- e : Copyright --> \
	</div> ";

	document.write (strbottom_css);
	document.write (strbottom);
}

	function gosearch() {
		if (!document.totalsearch.text.value) {
			alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
			document.totalsearch.text.focus();
			return false;
		}
		document.totalsearch.submit();
	}


showBottomJS();

// Rolling ¿ë Script Ãß°¡

function Jscroll() { 
 this.name = "Jscroll";
 this.targetID = null
 this.item = new Array(); 
 this.itemcount = 0; 
 this.currentspeed = 0; 
 this.scrollspeed = 50; 
 this.pausedelay = 1000; 
 this.pausemouseover = false; 
 this.stop = false; 
 this.type = 1; 
 this.height = 100; 
 this.width = 100; 
 this.stopHeight=0; 
 this.returnStr = "";
 this.add =function () { 
  var text = arguments[0];
  this.item[this.itemcount] = text;
  this.itemcount = this.itemcount + 1;
 }; 
 this.start = function () { 
  this.display(); 
  this.currentspeed = this.scrollspeed; 
  setTimeout(this.name+'.scroll()',this.currentspeed); 
 }; 
 this.display =function () { 
 
  this.returnStr = ('<div id="'+this.name+'" style="height:'+this.height+'px;width:'+this.width+'px;position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
  for(var i = 0; i < this.itemcount; i++) {
   if ( this.type == 1) { 
     
	this.returnStr +=('<div id="'+this.name+'item'+i+'"style="left:0px;width:'+this.width+'px;position:absolute;top:'+(this.height*i+1)+'px;">'); 
    this.returnStr +=(this.item[i]); 
    this.returnStr +=('</div>'); 
   } 
   else if ( this.type == 2 ) { 
    this.returnStr +=('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i+1)+'px;width:'+this.width+';position:absolute;top:0px;">'); 
    this.returnStr +=(this.item[i]); 
    this.returnStr +=('</div>'); 
   } 
  } 
  this.returnStr +=('</div>');

 if(this.targetID == null) {document.write(this.returnStr);}
 else{document.getElementById(this.targetID).innerHTML = this.returnStr;}

 }; 
 this.scroll = function () { 
  this.currentspeed = this.scrollspeed;
  if ( !this.stop && this.itemcount > 1 ) { 
   for (i = 0; i < this.itemcount; i++) { 
    obj = document.getElementById(this.name+'item'+i).style;
    if ( this.type == 1 ) { 
     obj.top = parseInt(obj.top) - 1 + "px"; 
     if ( parseInt(obj.top) <= this.height*(-1) ) obj.top = this.height * (this.itemcount-1) + "px"; 
	
     if ( parseInt(obj.top) == 0 || ( this.stopHeight > 0 && this.stopHeight - parseInt(obj.top) == 0 ) ) this.currentspeed = this.pausedelay; 
    } 
    else if ( this.type == 2 ) { 
     obj.left = parseInt(obj.left) - 1; 
     if ( parseInt(obj.left) <= this.left*(-1) ) obj.left = this.left* (this.itemcount-1); 
     if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay; 
    } 
   } 
  } 
  setTimeout(this.name+".scroll()",this.currentspeed); 
 }; 
 this.onmouseover = function () { 
  if ( this.pausemouseover ) { 
   this.stop = true;
  } 
 }; 
 this.onmouseout = function () { 
  if ( this.pausemouseover ) { 
   this.stop = false; 
  } 
 }; 
}

// ±¸Çö
JBRcont = new Jscroll(); 
JBRcont.name = "JBRcont"; 
JBRcont.height = 15; 
JBRcont.width = 90;
JBRcont.scrollspeed = 30; 
JBRcont.pausedelay = 3000; 
JBRcont.pausemouseover = true; 
JBRcont.targetID = "BottomRollingLink";

document.write("<script type='text/javascript' src='http://news.joins.com/_include/index/2009/common/common_bottom_rolling.js'></script>")

setTimeout("bottomJsRollinginit(JBRcont)",100);

var bottomJsRollinginit =function(JBRcont){

	try{
		arrList = cms2006_JS.split("|");
		for(i=0;i<arrList.length;i++)
		{
			JBRcont.add(arrList[i]);
		}
		
		JBRcont.start();
		
		document.getElementById(JBRcont.targetID).style.display = "block";
	}catch(err){}
}



