






//¹è³Ê ¹è¿­(¸µÅ© °æ·Î¿Í ÀÌ¹ÌÁö ÁÖ¼Ò ÁöÁ¤)
var Msg = new Array(

"					  <table width='600' border='0' cellspacing='0' cellpadding='0'> " + 
"                          <tr>  " + 
"                            <td width='15'>&nbsp;</td> " + 
"                            <td width='220' valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td width='220' height='140' background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_gsbk.gif' valign='top'>  " + 
"                                    <table width='220' border='0' cellspacing='0' cellpadding='0'> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='13'></td> " + 
"                                        <td height='13' width='165'></td> " + 
"                                        <td height='13' width='46'></td> " + 
"                                      </tr> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='126'></td> " + 
"                                        <td width='165' valign='top' align='left'><a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=61'><img src='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/qsign.gif' width='164' height='114' border='0'></a></td> " + 
"                                        <td width='46' valign='bottom'> " + 
"                                          <table width='45' border='0' cellspacing='0' cellpadding='0' height='40'> " + 
"                                            <tr> " + 
"                                              <td align='center'> " + 
"                                                <b><font color='#FFFFFF'>30%</font></b></td> " + 
"                                            </tr> " + 
"                                          </table> " + 
"                                        </td> " + 
"                                      </tr> " + 
"                                    </table> " + 
"                                  </td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                 <td align='center' height='22' valign='bottom'> " + 
 								  
"								 </td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='7' valign='top'>&nbsp;</td> " + 
"                            <td valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td class='txt_line2'><b><font color='#5B8F2D'>[¿øÁ¤°¡ 129,000¿ø!!]-Å¥»çÀÎ(Q.SIGN)<br></font> " + 
"                                    <a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=61'>ÅÛÇÃ¸´(°£ÆÇ ½Ã¾È)90ÄÆ,Çö¼ö¸· 70ÄÆ,Å¬¸³¾ÆÆ® 140ÄÆ</a></b></a><br> " + 
"                                    Á¤°¡: 129,000¿ø<br> " + 
"                                    <b><font color='#D61219'>Á¤±â±¸µ¶È¸¿ø°¡: <strike>129,000¿ø</strike> ¡æ 90,000¿ø( 30%  " + 
"                                    ¡é OFF)</font></b></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_i006_dot.gif' height='1'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td> " + 
"                                Æí¸®ÇÑ »ç¿ëÀÚ È¯°æÀ» ±¸ÃàÇØ ½Å¼ÓÇÑ »çÀÎ µðÀÚÀÎ ÀÛ¾÷À» ÇÒ ¼ö ÀÖµµ·Ï Á¦ÀÛÇÑ °íÇ°°Ý »çÀÎµðÀÚÀÎ ÀÚ·áÁý 'Å¥»çÀÎ(Q.SIGN)'" + 
"									</td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='15'>&nbsp;</td> " + 
"                          </tr> " + 
"                        </table> " 

,

"					   <table width='600' border='0' cellspacing='0' cellpadding='0'> " + 
"                          <tr>  " + 
"                            <td width='15'>&nbsp;</td> " + 
"                            <td width='220' valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td width='220' height='140' background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_gsbk.gif' valign='top'>  " + 
"                                    <table width='220' border='0' cellspacing='0' cellpadding='0'> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='13'></td> " + 
"                                        <td height='13' width='165'></td> " + 
"                                        <td height='13' width='46'></td> " + 
"                                      </tr> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='126'></td> " + 
"                                        <td width='165' valign='top' align='left'><a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=60'><img src='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/signup1.gif' width='164' height='114' border='0'></a></td> " + 
"                                        <td width='46' valign='bottom'> " + 
"                                          <table width='45' border='0' cellspacing='0' cellpadding='0' height='40'> " + 
"                                            <tr> " + 
"                                              <td align='center'> " + 
"                                                <b><font color='#FFFFFF'>12%</font></b></td> " + 
"                                            </tr> " + 
"                                          </table> " + 
"                                        </td> " + 
"                                      </tr> " + 
"                                    </table> " + 
"                                  </td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                 <td align='center' height='22' valign='bottom'> " + 
 								  
"								 </td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='7' valign='top'>&nbsp;</td> " + 
"                            <td valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td class='txt_line2'><b><font color='#5B8F2D'>[¿øÁ¤°¡ 135,000¿ø!!]-»çÀÎ¾÷(The Complet Works of Sign)<br></font> " + 
"                                    <a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=60'>*3D RENDERING *³ªÀÌÆ®Å¬·´ SIGN *°ü°ø¼­ SIGN..</a></b></a><br> " + 
"                                    Á¤°¡: 135,000¿ø<br> " + 
"                                    <b><font color='#D61219'>Á¤±â±¸µ¶È¸¿ø°¡: <strike>135,000¿ø</strike> ¡æ 120,000¿ø( 12%  " + 
"                                    ¡é OFF)</font></b></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_i006_dot.gif' height='1'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td> " + 
"                                ¼ö³â°£ ÇØ¿Â µðÀÚÀÎ ÀÚ·á¸¦ ¾÷Á¾º°·Î ÆíÁýÇÏ¿´À¸¸ç ¾÷°èÁ¾»çÀÚµéÀÌ³ª µðÀÚÀÎÀ» °øºÎÇÏ´Â ÇÐ»ýµé¿¡°Ô ÁÁÀº ÀÚ·á" + 
"									</td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='15'>&nbsp;</td> " + 
"                          </tr> " + 
"                        </table> " 
,

"					   <table width='600' border='0' cellspacing='0' cellpadding='0'> " + 
"                          <tr>  " + 
"                            <td width='15'>&nbsp;</td> " + 
"                            <td width='220' valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td width='220' height='140' background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_gsbk.gif' valign='top'>  " + 
"                                    <table width='220' border='0' cellspacing='0' cellpadding='0'> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='13'></td> " + 
"                                        <td height='13' width='165'></td> " + 
"                                        <td height='13' width='46'></td> " + 
"                                      </tr> " + 
"                                      <tr>  " + 
"                                        <td width='9' height='126'></td> " + 
"                                        <td width='165' valign='top' align='left'><a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=62'><img src='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/hunsumak.jpg' width='164' height='114' border='0'></a></td> " + 
"                                        <td width='46' valign='bottom'> " + 
"                                          <table width='45' border='0' cellspacing='0' cellpadding='0' height='40'> " + 
"                                            <tr> " + 
"                                              <td align='center'>" + 
"                                                <b><font color='#FFFFFF'>25%</font></b></td> " + 
"                                            </tr> " + 
"                                          </table> " + 
"                                        </td> " + 
"                                      </tr> " + 
"                                    </table> " + 
"                                  </td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                 <td align='center' height='22' valign='bottom'> " + 
 								  
"								 </td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='7' valign='top'>&nbsp;</td> " + 
"                            <td valign='top'> " + 
"                              <table width='100%' border='0' cellspacing='0' cellpadding='0'> " + 
"                                <tr> " + 
"                                  <td class='txt_line2'><b><font color='#5B8F2D'>[¿øÁ¤°¡ 132,000¿ø!!]-Çö¼ö¸· µðÀÚÀÎ3<br></font> " + 
"                                    <a href='http://www.signmunhwa.co.kr/itest/new-bookstore1/shopinfo.php?idx=62'>ÇÐ¿ø/ÇÐ±³ Çö¼ö¸· ,º´¿ø/Å¬¸®´Ð Çö¼ö¸· ,ºÐ¾ç/ºÎµ¿»ê Çö¼ö¸· ..</a></b></a><br> " + 
"                                    Á¤°¡: 132,000¿ø<br> " + 
"                                    <b><font color='#D61219'>Á¤±â±¸µ¶È¸¿ø°¡: <strike>132,000¿ø</strike> ¡æ 105,000¿ø( 25%  " + 
"                                    ¡é OFF)</font></b></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td background='http://www.signmunhwa.co.kr/itest/new-bookstore1/images/book_sps_i006_dot.gif' height='1'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td height='5'></td> " + 
"                                </tr> " + 
"                                <tr> " + 
"                                  <td> " + 
"                                ÀÌÀü'Çö¼ö¸·µðÀÚÀÎ2'¿¡ ºñÇØ 100% ÀÏ·¯½ºÆ® Çö¼ö¸·À¸·Î ´ÙÃ¤·Î¿î ÀÏ·¯½ºÆ®¿Í »õ·Ó°í ´Ù¾çÇÑ Áú°¨ÀÌ µé¾î°£ ¹ÐµµÀÖ´Â ¹é±×¶ó¿îµåÀÇ ¸¸³²À¸·Î ÇÑÃþ ¾÷±×·¹ÀÌµå µÈ Çö¼ö¸· ½Ã¾ÈÁý ÀÔ´Ï´Ù." + 
"									</td> " + 
"                                </tr> " + 
"                              </table> " + 
"                            </td> " + 
"                            <td width='15'>&nbsp;</td> " + 
"                          </tr> " + 
"                        </table> " 


);
	if (NS4) onload = startBanner;
	else  startBanner();
	
	function showMessage(n, show) {
	  var showL = (NS4) ? eval("message" + n) :
						  eval("message" + n + ".style");
	  showL.visibility = (show) ? ((NS4) ? "show" : "visible") :
								  ((NS4) ? "hide" : "hidden");
	}
	
	function nextMessage() {
	  var msgIndex = nextIndex;
	  nextIndex = (msgIndex == Msg.length - 1) ? 0 : msgIndex + 1;
	  scrollBanner(msgIndex, nextIndex);
	}
	
	function moveUp() {
	  if (NS4) {
		preLayer.top -= increment;
		if (nextLayer.top - increment <= nextLayerTarget) {
		  nextLayer.top = nextLayerTarget;
		  clearInterval(intervalID);
		  preLayer.visibility = "hide";
		  timeoutID = setTimeout("nextMessage()", pause);
		} else {
		  nextLayer.top -= increment;
		}
	  } else {
		preLayer.pixelTop -= increment;
		if (nextLayer.pixelTop - increment <= nextLayerTarget) {
		  nextLayer.pixelTop = nextLayerTarget;
		  clearInterval(intervalID);
		  preLayer.visibility = "hidden";
		  timeoutID = setTimeout("nextMessage()", pause);
		} else {
		  nextLayer.pixelTop -= increment;
		}
	  }
	}
	
	function scrollBanner(from, to) {
	  if (NS4) {
		preLayer = eval("message" + from);
		nextLayer = eval("message" + to);
		nextLayer.top = preLayer.top + bannerHeight;
		nextLayerTarget = preLayer.top;
	  } else {
		preLayer = eval("message" + from + ".style");
		nextLayer = eval("message" + to + ".style");
		nextLayer.pixelTop = preLayer.pixelTop + bannerHeight;
		nextLayerTarget = preLayer.pixelTop;
	  }
	  showMessage(to, true); // ´ÙÀ½ ¸Þ¼¼Áö º¸ÀÌ±â
	  intervalID = setInterval("moveUp()", interval);
	}
	
	function drawIE() {
	  // ¹è³Ê¸¦ ´ãÀ» ¹ÙÅÁ·¹ÀÌ¾î ±×¸®°í ¹è³Ê ·¹ÀÌ¾î ¸¸µé±â
	  var text = '<DIV ID="banner" STYLE="position:absolute">';
	  for (var i = Msg.length - 1; i >= 0; i--) {
		text += '<DIV ID="message' + i + 
				'" STYLE="position:absolute"></DIV>';
	  }
	  text += '</DIV>';
	  document.write(text);
	
	  // ¹ÙÅÁ·¹ÀÌ¾îÀÇ ¼Ó¼º Á¤ÀÇÇÏ±â
	  with (document.all.banner.style) {
		width = bannerWidth;
		height = bannerHeight;
		clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)";
		backgroundColor = bannerColor;
	  }
	
	  // ¹ÙÅÁ·¹ÀÌ¾î ¾È¿¡ µé¾î°¥ ¹è³Ê·¹ÀÌ¾î ¼Ó¼º Á¤ÀÇÇÏ±â
	  for (i = 0; i < Msg.length; i++) {
		with (eval("message" + i + ".style")) {
		  visibility = "hidden";
		  pixelLeft = 0;
		  pixelTop = 0;
		  width = bannerWidth;
		  backgroundColor = bannerColor;
		}
	  }
	}
	
	function drawNS() {
	  // ¹è³Ê¸¦ ´ãÀ» ¹ÙÅÁ·¹ÀÌ¾î ±×¸®°í ¹è³Ê ·¹ÀÌ¾î ¸¸µé±â
	  banner = new Layer(bannerWidth);
	
	  // ¹ÙÅÁ·¹ÀÌ¾îÀÇ ¼Ó¼º Á¤ÀÇÇÏ±â
	  with (banner) {
		clip.right = bannerWidth;
		clip.bottom = bannerHeight;
		document.bgColor = bannerColor;
		left = bannerLeft;
		top = bannerTop;
		visibility = "show";
	  }
	
	  // ¹ÙÅÁ·¹ÀÌ¾î ¾È¿¡ µé¾î°¥ ¹è³Ê·¹ÀÌ¾î ¼Ó¼º Á¤ÀÇÇÏ±â
	  for (var i = 0; i < Msg.length; i++) {
		eval("message" + i + " = " + 
			 "new Layer(bannerWidth, banner)");
		with(eval("message" + i)) {
		  visibility = "hide";
		  left = 0;
		  top = 0;
		  bgColor = bannerColor;
		}
	  }
	}
	
	function writeBanner() {
	  var writeL;
	  if (NS4) {
		for (var i = 0; i < Msg.length; i++) {
		  writeL = eval("message" + i);
		  writeL.document.write(Msg[i]);
		  writeL.document.close();
		}
	  } else {
		for (var i = 0; i < Msg.length; i++) {
		  writeL = eval("message" + i);
		  writeL.innerHTML = Msg[i];
		}
	  }
	}
	
	function startBanner() {
		if (NS4)
			drawNS()
		else
			drawIE();
			writeBanner();
			showMessage(0, true);
			nextIndex = 0;
			timeoutID = setTimeout("nextMessage()", pause);
	}

