
function NReviewSlide2()
	{
		// ¸Å°³º¯¼ö ÀÔ·Â
		this.SlideID	= arguments[0];	// ½½¶óÀÌµåID
		this.ShowCount	= arguments[1];	// º¸¿©Áú ÀÌ¹ÌÁö ¼ö
		this.ShowGroup	= arguments[2];	// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö
		this.ShowDirec	= arguments[3];	// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ
		this.ImgWidth	= arguments[4];	// ½½¶óÀÌµå ÀÌ¹ÌÁö °¡·Î Å©±â
		this.ImgHeight	= arguments[5];	// ½½¶óÀÌµå ÀÌ¹ÌÁö ¼¼·Î Å©±â
		this.SlideSpeed	= arguments[6];	// ½½¶óÀÌµå ¼Óµµ

		// Start ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤

		// º¸¿©Áú ÀÌ¹ÌÁö ¼ö (±âº»°ª : 3°³)
		if (this.ShowCount == null)
			this.ShowCount = 3;

		// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö (±âº»°ª : 1°³)
		if (this.ShowGroup == null)
			this.ShowGroup = 1;

		// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ (±âº»:¿ÞÂÊ = 0)
		if (this.ShowDirec == null)
			this.ShowDirec = 0;

		// ÀÌ¹ÌÁö Å©±â	(±âº»°ª : 110x90)
		if ( this.ImgWidth	== null || this.ImgHeight == null)
		{
			// ¸Å°³º¯¼ö °ª ÀÔ·Â½Ã ÀÌ¹ÌÁö Å©±â 86x66À¸·Î °íÁ¤
			this.ImgWidth	= 86;
			this.ImgHeight	= 96;
		}

		// ½½¶óÀÌµå ¼Óµµ (±âº»°ª : 3ÃÊ = 3,000ms)
		if (this.SlideSpeed == null)
			this.SlideSpeed	= 5000;

		// End ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤

		this.Item		= new Array();				// ÀÌ¹ÌÁö Á¤º¸¸¦ ´ãÀ» ¹è¿­
		this.ItemCount	= 0;						// ÀÌ¹ÌÁö Á¤º¸ ¹è¿­ Å©±â
		this.CurShow	= 0;						// ÇöÀç º¸¿©Áö´Â Ã¹¹øÂ° ÀÌ¹ÌÁö ¹øÈ£
		this.Stop		= false;					// ÁßÁö¿©ºÎ (ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over½Ã ÁßÁö¸¦ À§ÇØ)

			// ½½¶óÀÌµå ÀÌ¹ÌÁö Á¤º¸ Ãß°¡
			// »ç¿ë½Ã ¸Å°³º¯¼ö·Î XXX.add(¸µÅ©URL, ÀÌ¹ÌÁöURL, ÀÌ¹ÌÁö Á¦¸ñ)À» ÀÔ·Â
			this.add = function () {
				
				//Å¸ÀÌÆ²IMG, Å¸ÀÌÆ²¿À¸¥ÂÊIMG, ¼­ºêÅ¸ÀÌÆ²0,¼­ºêURL0,¼­ºêÅ¸ÀÌÆ²1,¼­ºêURL1,¼­ºêÅ¸ÀÌÆ²2,¼­ºêURL2
				SlideTitle	= arguments[0];//Å¸ÀÌÆ²IMG
				SlideTitleR	= arguments[1];//Å¸ÀÌÆ²¿À¸¥ÂÊIMG
				SlideSub0	= arguments[2];//¼­ºêÅ¸ÀÌÆ²0
				SlideLink0	= arguments[3];//¼­ºêURL0
				SlideSub1	= arguments[4];//¼­ºêÅ¸ÀÌÆ²1
				SlideLink1	= arguments[5];//¼­ºêURL1
				SlideSub2	= arguments[6];//¼­ºêÅ¸ÀÌÆ²2
				SlideLink2	= arguments[7];//¼­ºêURL2
				SlideImgPath= arguments[8];//imagePath

				// ÀÌ¹ÌÁö ±ôºýÀÓÀ» ¾ø¿¡±â À§ÇØ ¹Ì¸® ÀÌ¹ÌÁö ·Îµù
				(new Image).src = SlideTitle;
				(new Image).src = SlideTitleR;

				SlideHtml = "";
				SlideHtml += "					<table border='0' cellpadding='0' cellspacing='0'>";
				SlideHtml += "						<tr> ";
				SlideHtml += "							<td><img src='"+SlideImgPath+"/Nimages/main_/"+SlideTitle+"' border='0' /></td>";
				SlideHtml += "							<td rowspan='2'><img src='"+SlideImgPath+"/Nimages/main_/"+SlideTitleR+"' border='0' width=\"" + this.ImgWidth + "\" height=\"" + this.ImgHeight + "\"/></td>";
				SlideHtml += "						</tr>";
				SlideHtml += "						<tr> ";
				SlideHtml += "							<td valign='top' style='width:105px; '> ";
				SlideHtml += "								<table cellpadding='0' cellspacing='0' border='0' style='width:105px; '>";
				SlideHtml += "									<tr> ";
				SlideHtml += "										<td style='padding-left:15px '><a href='"+SlideLink0+"'>"+SlideSub0+"</a><br>";
				SlideHtml += "											<a href='"+SlideLink1+"'>"+SlideSub1+"</a><br>";
				SlideHtml += "											<a href='"+SlideLink2+"'>"+SlideSub2+"</a></td>";
				SlideHtml += "									</tr>";
				SlideHtml += "								</table>";
				SlideHtml += "							</td>";
				SlideHtml += "						</tr>";
				SlideHtml += "					</table>";

				// HTML¼Ò½º Item µî·Ï
				this.Item[this.ItemCount] = SlideHtml;
				this.ItemCount++;

			}

			// ÃÊ±â ¼ÂÆÃ
			// ÀÌ¹ÌÁö ½½¶óÀÌµå°¡ µé¾î°¥ DIV¿Í ´ÙÀ½ ¹× ÀÌÀü ¹öÆ° ÀÌ¹ÌÁö
			this.Start = function () {

				SlideBase = "";

				// ÆÄ¶ó¹ÌÅÍ °ª È®ÀÎ¿ë
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				// SlideBase += "<center>" + this.SlideID + " : " + this.ShowCount + "," + this.ShowGroup + "," + this.ShowDirec + "," + this.ImgWidth + "," + this.ImgHeight + "," + this.SlideSpeed + "</center>";
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

				SlideBase += "						<div class=\"reviewBox\" onMouseOver=\""+this.SlideID+".MouseOver();\" onMouseOut=\""+this.SlideID+".MouseOut();\">";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Next();\"><img src=\""+SlideImgPath+"/Nimages/main_/mainLeftConBtn.gif\"></a>";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Prev();\"><img src=\""+SlideImgPath+"/Nimages/main_/mainLeftConBtn02.gif\"></a>";
				SlideBase += "						</div>"


				this.ChangeImage();
				document.write(SlideBase);

				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);

			}

			// ÀÚµ¿ ·Ñ¸µ
			this.Rolling = function(){
				if(!this.Stop)
				{
					this.MoveImage(this.ShowDirec);
					this.ChangeImage();
				}
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);
			}

			// ´ÙÀ½ ¹öÆ° ±â´É
			this.Next = function(){

				this.MoveImage(0);
				this.ChangeImage();

			}

			// ÀÌÀü ¹öÆ° ±â´É
			this.Prev = function(){

				this.MoveImage(1);
				this.ChangeImage();

			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö ÀÌµ¿ ±â´É
			this.MoveImage = function() {
				ShowDirec		= arguments[0];		// ÀÌµ¿ ¹æÇâ (0:¿ÞÂÊ, 1:¿À¸¥ÂÊ)

				if(ShowDirec == 0){

					this.CurShow = this.CurShow + this.ShowGroup;

					if(this.CurShow >= this.ItemCount)
						this.CurShow = 0;
				}
				else
				{
					this.CurShow = this.CurShow - this.ShowGroup;

					if(this.CurShow < 0)
						this.CurShow = this.ItemCount - 1;
				}

			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö º¯°æ ±â´É
			this.ChangeImage = function() {
				tmpHTML = "";

				for( i = this.CurShow; i < (this.CurShow + this.ShowCount); i++ )
				{
					tmpHTML += this.Item[(i % this.ItemCount)];
					//alert(i);
					if( (this.CurShow + this.ShowCount)-i != 1 ){
						tmpHTML += '<tr><td colspan=\"2\" style=\"height:10px\"><img src=\"'+SlideImgPath+'/Nimages/main_/mainLeftConLine.gif\"></td></tr>';
					}
				}

				//tmpHTML += "\n								<br class=\"clear\" />";

				Obj = document.getElementById(this.SlideID);
				Obj.innerHTML= tmpHTML;
			}

			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over ½Ã Á¤Áö ¼³Á¤
			this.MouseOver = function(){
				this.Stop = true;
			}

			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Out ½Ã Á¤Áö ÇØÁ¦
			this.MouseOut = function(){
				this.Stop = false;
			}
	}
