
	function right_todaySlide() {
	
		this.name = "right_todaySlide";
		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 = 300;
		this.width = 220;
		this.stopHeight=0;
		this.i=0;
	
		this.add = function () {
			
			var img1 = arguments[0];
			var title1 = arguments[1];
			var subtitle1 = arguments[2];
			var link1 = arguments[3];

			var img2 = arguments[4];
			var title2 = arguments[5];
			var subtitle2 = arguments[6];
			var link2 = arguments[7];

			var img3 = arguments[8];
			var title3 = arguments[9];
			var subtitle3 = arguments[10];
			var link3 = arguments[11];
	
			var img4 = arguments[12];
			var title4 = arguments[13];
			var subtitle4 = arguments[14];
			var link4 = arguments[15];

			var img5 = arguments[16];
			var title5 = arguments[17];
			var subtitle5 = arguments[18];
			var link5 = arguments[19];

			var img6 = arguments[20];
			var title6 = arguments[21];
			var subtitle6 = arguments[22];
			var link6 = arguments[23];

			var img7 = arguments[24];
			var title7 = arguments[25];
			var subtitle7 = arguments[26];
			var link7 = arguments[27];

			var img8 = arguments[28];
			var title8 = arguments[29];
			var subtitle8 = arguments[30];
			var link8 = arguments[31];

			

			/*
			strHTML = "<div class=\"product\" style=\"position:relative;\">";
			strHTML += "	<div style=\"position:absolute;left:-2px;top:0px;\">" + icon3d_1 +"</div>";
			strHTML += "	<img src=\"" + img1 + "\" />";
			strHTML += "	<div class=\"tit\"><a>" + title1 + "</a></div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event1_1 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event1_2 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event1_3 + "</div>";
			strHTML += "</div>";
			strHTML += "<div class=\"product\" style=\"position:relative;\">";
			strHTML += "	<div style=\"position:absolute;left:-2px;top:0px;\">" + icon3d_2 +"</div>";
			strHTML += "	<img src=\"" + img2 + "\" />";
			strHTML += "	<div class=\"tit\"><a>" + title2 + "</a></div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event2_1 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event2_2 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event2_3 + "</div>";
			strHTML += "</div>";
			strHTML += "<div class=\"product\" style=\"position:relative;\" >";
			strHTML += "	<div style=\"position:absolute;left:-2px;top:0px;\">" + icon3d_3 +"</div>";
			strHTML += "	<img src=\"" + img3 + "\" />";
			strHTML += "	<div class=\"tit\"><a>" + title3 + "</a></div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event3_1 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event3_2 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event3_3 + "</div>";
			strHTML += "</div>";
			strHTML += "<div class=\"product\" style=\"position:relative;\" >";
			strHTML += "	<div style=\"position:absolute;left:-2px;top:0px;\">" + icon3d_4 +"</div>";
			strHTML += "	<img src=\"" + img4 + "\" />";
			strHTML += "	<div class=\"tit\"><a>" + title4 + "</	a></div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event4_1 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event4_2 + "</div>";
			strHTML += "	<div style=\"display:inline;padding-left:1px;\">" + event4_3 + "</div>";
			strHTML += "</div>";
			*/


			strHTML = "<div class=\"line\" style=\"border:none;\">";
			strHTML += "	<table>";
			strHTML += "	   <tr>";
			strHTML += "		 <td style=\"width:87px;\"><a href=\"" + link1 + "\"><img src=\"" + img1 + "\" width=\"83\" height=\"53\"/></a></td>";
			strHTML += "		 <td style=\"width:118px;\">";
			strHTML += "			<div class=\"tit\"><a href=\"" + link1 + "\">" + title1 + "</a></div>";
			strHTML += "			<div class=\"txt\">" + subtitle1 + "</div>";
			strHTML += "		 </td>";
			strHTML += "	   </tr>";
			strHTML += "	</table>";
			strHTML += "</div>";
			strHTML += "<div class=\"line\">";
			strHTML += "	<table>";
			strHTML += "	   <tr>";
			strHTML += "		 <td style=\"width:87px;\"><a href=\"" + link2 + "\"><img src=\"" + img2 + "\" width=\"83\" height=\"53\"/></a></td>";
			strHTML += "		 <td style=\"width:118px;\">";
			strHTML += "			<div class=\"tit\"><a href=\"" + link2 + "\">" + title2 + "</a></div>";
			strHTML += "			<div class=\"txt\">" + subtitle2 + "</div>";
			strHTML += "		 </td>";
			strHTML += "	   </tr>";
			strHTML += "	</table>";
			strHTML += "</div>";
			strHTML += "<div class=\"line\">";
			strHTML += "	<table>";
			strHTML += "	   <tr>";
			strHTML += "		 <td style=\"width:87px;\"><a href=\"" + link3 + "\"><img src=\"" + img3 + "\" width=\"83\" height=\"53\"/></a></td>";
			strHTML += "		 <td style=\"width:118px;\">";
			strHTML += "			<div class=\"tit\"><a href=\"" + link3 + "\">" + title3 + "</a></div>";
			strHTML += "			<div class=\"txt\">" + subtitle3 + "</div>";
			strHTML += "		 </td>";
			strHTML += "	   </tr>";
			strHTML += "	</table>";
			strHTML += "</div>";
			strHTML += "<div class=\"line\">";
			strHTML += "	<table>";
			strHTML += "	   <tr>";
			strHTML += "		 <td style=\"width:87px;\"><a href=\"" + link4 + "\"><img src=\"" + img4 + "\" width=\"83\" height=\"53\"/></a></td>";
			strHTML += "		 <td style=\"width:118px;\">";
			strHTML += "			<div class=\"tit\"><a href=\"" + link4 + "\">" + title4 + "</a></div>";
			strHTML += "			<div class=\"txt\">" + subtitle4 + "</div>";
			strHTML += "		 </td>";
			strHTML += "	   </tr>";
			strHTML += "	</table>";
			strHTML += "</div>";




			
			this.item[this.itemcount] = strHTML;
			this.itemcount = this.itemcount + 1;
		};
	
	
		this.start = function () {
			if ( this.itemcount == 1 ) {
				this.add(this.item[0]);
			}
			this.display();
			this.currentspeed = this.scrollspeed;
			if ( this.type == 1 || this.type == 2 ) {
				this.stop = true;
				setTimeout(this.name+'.scroll()',this.currentspeed);
				window.setTimeout(this.name+".stop = false", this.pausedelay);
			} else if ( this.type == 3) {
				this.stop = true;
				setTimeout(this.name+'.rolling()',this.currentspeed);
				window.setTimeout(this.name+".stop = false", this.pausedelay);
			}
		};


	
		this.display = function () {
			document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
			for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');
				document.write(this.item[i]);
				document.write('</div>');
			}
			document.write('</div>');
		};


	
		this.scroll = function () {
	
			if ( this.pause == true ) {
	
				window.setTimeout(this.name+".scroll()",this.pausedelay);
				this.pause = false;
	
			} else {
	
				this.currentspeed = this.scrollspeed;
				if ( !this.stop ) {
					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;
							if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
							if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;
						} else if ( this.type == 2 ) {
							obj.left = parseInt(obj.left) - 1;
							if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);
							if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
						}
					}
				}
				window.setTimeout(this.name+".scroll()",this.currentspeed);
			}
		};


	
		this.rolling = function () {
			if ( this.stop == false  ) {
				this.next();
			}
			window.setTimeout(this.name+".rolling()",this.scrollspeed);
		}


	
		this.onmouseover = function () {
			if ( this.pausemouseover ) {
				this.stop = true;
			}
		};
	
		this.onmouseout = function () {
			if ( this.pausemouseover ) {
				this.stop = false;
			}
		};
	


		this.next = function() {
			for (i = 0; i < this.itemcount; i++) {
				obj = document.getElementById(this.name+'item'+i).style;
				if ( parseInt(obj.left) < 1 ) { 
					width = this.width + parseInt(obj.left);
					break;
				}
			}
	
			for (i = 0; i < this.itemcount; i++) {
				obj = document.getElementById(this.name+'item'+i).style;
				if ( parseInt(obj.left) < 1 ) { 
					obj.left = this.width * (this.itemcount-1);
				} else {
					obj.left = parseInt(obj.left) - width;
				}
			}
		};
	
		this.prev = function() {
			for (i = 0; i < this.itemcount; i++) {
				obj = document.getElementById(this.name+'item'+i).style;
				if ( parseInt(obj.left) < 1 ) {
					width = parseInt(obj.left) * (-1);
					break;
				}
			}
			if ( width == 0 ) {
				total_width = this.width * (this.itemcount-1);
				for (i = 0; i < this.itemcount; i++) {
					obj = document.getElementById(this.name+'item'+i).style;
					if ( parseInt(obj.left) + 1 > total_width ) {
						obj.left = 0;
					} else {
						obj.left = parseInt(obj.left) + this.width;
					}
				}
			} else {
				for (i = 0; i < this.itemcount; i++) {
					obj = document.getElementById(this.name+'item'+i).style;
					if ( parseInt(obj.left) < 1 ) {
						obj.left = 0;
					} else {
						obj.left = parseInt(obj.left) + width;
					}
				}
			}
		};
	
		

		this.unext = function () {
			this.next();
		};
	
		this.uprev = function () {
			this.prev();
		};
	
	}

	ts = new right_todaySlide();
	ts.name = "ts";
	ts.height =280;
	ts.width = 220;
	ts.scrollspeed = 3000;
	ts.pausedelay = 1000;
	ts.pausemouseover = true;
	ts.type = 3;

	/*
	var pic1 = "images/special_wmv_01.jpg";
	var tit1 = "세사관심 드라마《대장금》분석";
	var subtit1 = "제작: NTDTV Korea Bureau";
	var links1 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2060&news_id=1151";

	var pic2 = "images/special_wmv_02.jpg";
	var tit2 = "홍콩의 탈당 열조";
	var subtit2 = "";
	var links2 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1002&news_divide02=2021&news_id=2275";

	var pic3 = "images/special_wmv_03.jpg";
	var tit3 = "세사관심 - 쑤자툰 강제 수용소의 흑막";
	var subtit3 = "";
	var links3 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2060&news_id=938";

	var pic4 = "images/special_wmv_09.jpg";
	var tit4 = "중국 전통 무용 특집";
	var subtit4 = "";
	var links4 = "http://www.ntdtv.co.kr/danceChinese/danceChinese_kor_10.htm";

	var pic5 = "images/special_wmv_02_070530.jpg";
	var tit5 = "오락 신칸센 198화";
	var links5 = "http://www.ntdtv.com/xtr/gb/2008/08/15/a185004.html#video"; 

	var pic6 = "images/special_wmv_06.jpg";
	var tit6 = "중국 인터넷 봉쇄의 배후";
	var subtit6 = "";
	var links6 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2060&news_id=253";

	var pic7 = "images/special_wmv_03_070530.jpg";
	var tit7 = "카메라32 월광(月光)";
	var subtit7 = "";
	var links7 = "http://www.ntdtv.com/xtr/gb/2006/03/28/a_41963.html";

	var pic8 = "images/special_wmv_04.jpg";
	var tit8 = " 6.4 천안문 사태 특집 다큐멘터리";
	var subtit8 = "";
	var links8 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2060&news_id=92"; 
	*/

	var pic1 ="images/special_wmv_05.jpg";
	var tit1 ="韓 군사전문가, “북한은 중공의 미국 견제 활용 도구”";
	var subtit1 = "";
	var links1 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1002&news_divide02=2015&news_id=5650";

	var pic2 = "images/special_wmv_04.jpg"; 
	var tit2 ="명인어록- 소설가 김홍신";  
	var subtit2 = "";
	var links2 ="http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1000&news_divide02=2000&news_id=5214"; 

	var pic3 ="images/special_wmv_02.jpg";
	var tit3 ="E*Star가 만난 스타, 김명민"; 
	var subtit3 = "";
	var links3 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1004&news_divide02=2040&news_id=5837";

	var pic4 ="images/special_wmv_01.jpg";
	var tit4 =  "세사관심 드라마《대장금》분석";
	var subtit4 = "";
	var links4 ="http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2060&news_id=1151";

	var pic5 ="images/special_wmv_03.jpg";
	var tit5 ="영상스케치-청정(淸淨)";
	var subtit5 = "";
	var links5 ="http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1009&news_divide02=2070&news_id=7996";	

	/*
	var pic6 ="images/special_wmv_04.jpg";
	var tit6 ="6.4 천안문 사태 특집 다큐멘터리"; 
	var subtit6 = "";
	var links6 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1000&news_divide02=2003&news_id=92";
	*/ 

	var pic6 = "images/special_wmv_09.jpg";
	var tit6 ="선(善)한 글과 생각이 생명을 살린다";
	var subtit6 = "";	
	var links6 =  "http://ntdtv.co.kr/contents_view.asp?news_divide01=1000&news_divide02=2004&news_id=5604";

	var pic7 = "images/special_wmv_06.jpg";
	var tit7 ="E*Star가 만난 스타, 구혜선";
	var subtit7 = "";
	var links7 = "http://ntdtv.co.kr/contents_view.asp?news_divide01=1004&news_divide02=2040&news_id=7061";

	var pic8 ="images/special_wmv_02_070530.jpg";  
	var tit8 = "니하오한궈-거장 이병훈감독";
	var subtit8 = "";
	var links8 = "http://www.ntdtv.co.kr/contents_view.asp?news_divide01=1000&news_divide02=2003&news_id=2753";


	ts.add(pic1, tit1, subtit1, links1, pic2, tit2, subtit2, links2, pic3, tit3, subtit3, links3, pic4, tit4, subtit4, links4);
  ts.add(pic2, tit2, subtit2, links2, pic3, tit3, subtit3, links3, pic4, tit4, subtit4, links4, pic5, tit5, subtit5, links5);
	ts.add(pic3, tit3, subtit3, links3, pic4, tit4, subtit4, links4, pic5, tit5, subtit5, links5, pic6, tit6, subtit6, links6);
	ts.add(pic4, tit4, subtit4, links4, pic5, tit5, subtit5, links5, pic6, tit6, subtit6, links6, pic7, tit7, subtit7, links7);
	ts.add(pic5, tit5, subtit5, links5, pic6, tit6, subtit6, links6, pic7, tit7, subtit7, links7, pic8, tit8, subtit8, links8);
	ts.add(pic6, tit6, subtit6, links6, pic7, tit7, subtit7, links7, pic8, tit8, subtit8, links8, pic1, tit1, subtit1, links1);
	ts.add(pic7, tit7, subtit7, links7, pic8, tit8, subtit8, links8, pic1, tit1, subtit1, links1, pic2, tit2, subtit2, links2);
	ts.add(pic8, tit8, subtit8, links8, pic1, tit1, subtit1, links1, pic2, tit2, subtit2, links2, pic3, tit3, subtit3, links3);

