
//Secify scroller contents
var line=new Array();
line[1]="´Ù¾çÇÑ µðÀÚÀÎÀÇ ÀÌ´Ï¼ÈÆ¼ ÇÒÀÎÁ¦ÀÛ";
line[2]="3¸¸¿øÀÌ»ó ±¸¸Å½Ã ¹è¼Ûºñ ¹«·á!";
line[3]="±âº»»çÀºÇ°+°¡°Ý´ëº° »çÀºÇ° ÁõÁ¤";

//Specify font size for scoller
var ts_fontsize="12px";

//--Don't edit below this line

var longestmessage=1;
for (i=2;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i;
}

//Auto set scroller width
var tscroller_width=line[longestmessage].length;

lines=line.length-1; //--Number of lines

//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<input type="text" id="banner" name="banner" size="'+tscroller_width+'"');
document.write('  style="background-color:#ffffff; color:#000000; font-family: verdana; font-size: '+ts_fontsize+'; border: medium none; width:220px" onfocus="blur()" class=hand onClick="location.href=\'http://plusdoll.com/content.php?id=33\'">');
}

temp="";
nextchar=-1;
nextline=1;
cursor="\\";
function animate() {
	if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines) {
		nextline++;
		nextchar=-1;
		document.getElementById("banner").value=temp;
		temp="";
		setTimeout("nextstep()",2000);
	} else {
		if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length) {
			nextline=1;
			nextchar=-1;
			document.getElementById("banner").value=temp;
			temp="";
			setTimeout("nextstep()",2000);
		} else {
			nextstep();
		}
	}
}

function nextstep(){

	if (cursor=="\\"){
		cursor="-";}
	else if (cursor=="-"){
		cursor="-";}
	else if (cursor=="-"){
		cursor="-";}
	else if (cursor=="-"){
		cursor="\\";}


	nextchar++;
	temp+=line[nextline].charAt(nextchar);
	document.getElementById("banner").value=temp+cursor;
	setTimeout("animate()",25);
}

//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=function(){
	animate();
	if ( typeof(Init)=="function" )	{		Init();		}
}


