var pausecontent2=new Array()
pausecontent2[0]="<a href='/global/favorite_keyword.php?keyword=¾ÆÆÄÆ®' style='font-size:10pt; color:white; weight:bold'>¾ÆÆÄÆ®</a>"
pausecontent2[1]="<a href='/global/favorite_keyword.php?keyword=ÇÇ¿À·¹' style='font-size:10pt; color:white; weight:bold'>ÇÇ¿À·¹</a>"
pausecontent2[2]="<a href='/global/favorite_keyword.php?keyword=ÀçÅ×Å©' style='font-size:10pt; color:white; weight:bold'>ÀçÅ×Å©</a>"
pausecontent2[3]="<a href='/global/favorite_keyword.php?keyword=±èÄ¡' style='font-size:10pt; color:white; weight:bold'>±èÄ¡</a>"
pausecontent2[4]="<a href='/global/favorite_keyword.php?keyword=°áÈ¥¼±¹°' style='font-size:10pt; color:white; weight:bold'>°áÈ¥¼±¹°</a>"
pausecontent2[5]="<a href='/global/favorite_keyword.php?keyword=ÀÚ±â°è¹ß' style='font-size:10pt; color:white; weight:bold'>ÀÚ±â°è¹ß</a>"
pausecontent2[6]="<a href='/global/favorite_keyword.php?keyword=È¯°æÈ£¸£¸ó' style='font-size:10pt; color:white; weight:bold'>È¯°æÈ£¸£¸ó</a>"
pausecontent2[7]="<a href='/global/favorite_keyword.php?keyword=ºñÅ¸¹Î' style='font-size:10pt; color:white; weight:bold'>ºñÅ¸¹Î</a>"
pausecontent2[8]="<a href='/global/favorite_keyword.php?keyword=¾ÈÀü¹ä»ó' style='font-size:10pt; color:white; weight:bold'>¾ÈÀü¹ä»ó</a>"
pausecontent2[9]="<a href='/global/favorite_keyword.php?keyword=±×¸²Ã¥' style='font-size:10pt; color:white; weight:bold'>±×¸²Ã¥</a>"
pausecontent2[10]="<a href='/global/favorite_keyword.php?keyword=¼ö»ê¹°' style='font-size:10pt; color:white; weight:bold'>¼ö»ê¹°</a>"
pausecontent2[11]="<a href='/global/favorite_keyword.php?keyword=ÀÏ»ó»ýÈ°' style='font-size:10pt; color:white; weight:bold'>ÀÏ»ó»ýÈ°</a>"
pausecontent2[12]="<a href='/global/favorite_keyword.php?keyword=¸¸µé±â' style='font-size:10pt; color:white; weight:bold'>¸¸µé±â</a>"
pausecontent2[13]="<a href='/global/favorite_keyword.php?keyword=ÀÌº¥Æ®' style='font-size:10pt; color:white; weight:bold'>ÀÌº¥Æ®</a>"
pausecontent2[14]="<a href='/global/favorite_keyword.php?keyword=Â§¼øÀÌ' style='font-size:10pt; color:white; weight:bold'>Â§¼øÀÌ</a>"


var randomone = new Array()
    randomone[0]="<img src='/global/img/no1.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=¾ÆÆÄÆ®' style='font-size:10pt; color:black; weight:bold'>¾ÆÆÄÆ®</a>"
    randomone[1]="<img src='/global/img/no2.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ÇÇ¿À·¹' style='font-size:10pt; color:black; weight:bold'>ÇÇ¿À·¹</a>"
    randomone[2]="<img src='/global/img/no3.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ÀçÅ×Å©' style='font-size:10pt; color:black; weight:bold'>ÀçÅ×Å©</a>"
    randomone[3]="<img src='/global/img/no4.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=±èÄ¡' style='font-size:10pt; color:black; weight:bold'>±èÄ¡</a>"
    randomone[4]="<img src='/global/img/no5.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=°áÈ¥¼±¹°' style='font-size:10pt; color:black; weight:bold'>°áÈ¥¼±¹°</a>"
    randomone[5]="<img src='/global/img/no6.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ÀÚ±â°è¹ß' style='font-size:10pt; color:black; weight:bold'>ÀÚ±â°è¹ß</a>"
    randomone[6]="<img src='/global/img/no7.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=È¯°æÈ£¸£¸ó' style='font-size:10pt; color:black; weight:bold'>È¯°æÈ£¸£¸ó</a>"
    randomone[7]="<img src='/global/img/no8.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ºñÅ¸¹Î' style='font-size:10pt; color:black; weight:bold'>ºñÅ¸¹Î</a>"
	randomone[8]="<img src='/global/img/no9.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=¾ÈÀü¹ä»ó' style='font-size:10pt; color:black; weight:bold'>¾ÈÀü¹ä»ó</a>"
	randomone[9]="<img src='/global/img/no10.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=±×¸²Ã¥' style='font-size:10pt; color:black; weight:bold'>±×¸²Ã¥</a>"
	randomone[10]="<img src='/global/img/no11.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=¼ö»ê¹°' style='font-size:10pt; color:black; weight:bold'>¼ö»ê¹°</a>"
	randomone[11]="<img src='/global/img/no12.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ÀÏ»ó»ýÈ°' style='font-size:10pt; color:black; weight:bold'>ÀÏ»ó»ýÈ°</a>"
	randomone[12]="<img src='/global/img/no13.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=¸¸µé±â' style='font-size:10pt; color:black; weight:bold'>¸¸µé±â</a>"
	randomone[13]="<img src='/global/img/no14.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=ÀÌº¥Æ®' style='font-size:10pt; color:black; weight:bold'>ÀÌº¥Æ®</a>"
	randomone[14]="<img src='/global/img/no15.jpg' border=0 align='absmiddle'> <a href='/global/favorite_keyword.php?keyword=Â§¼øÀÌ' style='font-size:10pt; color:black; weight:bold'>Â§¼øÀÌ</a>"

var randomcont = randomone[Math.floor(Math.random()*randomone.length)] ;


function pausescroller(content, divId, divClass, delay)
{
	this.content=content ;		//message array content
	this.tickerid=divId ;			//ID of ticker div to display information
	this.delay=delay ;			//Delay between msg change, in miliseconds.
	this.mouseoverBol=0 ;		//Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
	this.hiddendivpointer=1 ;	//index of message array for hidden div
	document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position:absolute; width:50%;" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 50%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>') ;

	var scrollerinstance=this ;
	if (window.addEventListener) //run onload in DOM2 browsers
		window.addEventListener("load", function(){scrollerinstance.initialize()}, false) ;
	else if (window.attachEvent) //run onload in IE5.5+
		window.attachEvent("onload", function(){scrollerinstance.initialize()}) ;
	else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
		setTimeout(function(){scrollerinstance.initialize()}, 500) ;
}

pausescroller.prototype.initialize=function()
{
	this.tickerdiv=document.getElementById(this.tickerid)
	this.visiblediv=document.getElementById(this.tickerid+"1")
	this.hiddendiv=document.getElementById(this.tickerid+"2")
	this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
	//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
	this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
	this.getinline(this.visiblediv, this.hiddendiv)
	this.hiddendiv.style.visibility="visible"
	var scrollerinstance=this
	document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
	document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}

	if (window.attachEvent) //Clean up loose references in IE
		window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
	setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}

pausescroller.prototype.animateup=function()
{
	var scrollerinstance=this
	if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
		this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
		this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
		setTimeout(function(){scrollerinstance.animateup()}, 90)	// ½ºÅ©·Ñ µ¿ÀÛ ½ºÇÇµå µðÆúÆ® 50
	}
	else{
		this.getinline(this.hiddendiv, this.visiblediv)
		this.swapdivs()
		setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
	}
}

pausescroller.prototype.swapdivs=function()
{
	var tempcontainer=this.visiblediv
	this.visiblediv=this.hiddendiv
	this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2)
{
	div1.style.top=this.visibledivtop+"px"
	div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

pausescroller.prototype.setmessage=function()
{
	var scrollerinstance=this
	if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
		setTimeout(function(){scrollerinstance.setmessage()}, 100)
	else{
		var i=this.hiddendivpointer
		var ceiling=this.content.length
		this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
		this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
		this.animateup()
	}
}

pausescroller.getCSSpadding=function(tickerobj)
{ //get CSS padding value, if any
	if (tickerobj.currentStyle)
		return tickerobj.currentStyle["paddingTop"]
	else if (window.getComputedStyle) //if DOM2
		return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
	else
		return 0
}
function customFind()
{
	if(document.finder.menu.selectedIndex==0) {
		alert("°Ë»öÇÒ ¸Þ´º¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä") ;
		document.finder.menu.focus() ;
		return ;
	}

	if(document.finder.search.value.length < 2) {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä") ;
		document.finder.search.focus() ;
		return;
	}
	document.finder.submit();
}
function SetHomeSub()
{  
if(!SetHomePage.isHomePage('http://www.azoomma.com/'))  
SetHomePage.setHomePage('http://www.azoomma.com/');
else
	alert("ÀÌ¹Ì ½ÃÀÛÆäÀÌÁö·Î ¼³Á¤µÇ¾îÀÖ½À´Ï´Ù");
return;
}
