if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("<" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class" )
document.writeln(" WIDTH=5 HEIGHT=5 NAME=appObs> </applet>")
} 

function replay(){
MTVPlay.playcount=0;
}

function play(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Play();
} else {
document.MTVPlay.Play();
}
}

function pause(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
if (MTVPlay.PlayState == 2){
MTVPlay.Pause();
}
else {
if (MTVPlay.PlayState == 1) {
MTVPlay.Play();
}
}
} else {
document.MTVPlay.Pause();
}
}

function stop(){
if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
MTVPlay.Stop();
MTVPlay.CurrentPosition=0;
} else {
document.MTVPlay.Stop();
document.MTVPlay.CurrentPosition=0;
}
}



function scroll_init(c, d)
{
	var query;
	query = "<td><a href='javascript:priBanner()'><img src='/image/banner_left.gif' width='6' height='35' border='0'></a></td>";
	for (var i = c; i < d; i++)
	{
		query = query + rtquery[i];

	}
	query = query + "<td><a href='javascript:nextBanner()'><img src='/image/banner_right.gif' width='6' height='35' border='0'></a></td>";
	//alert(tags);
	idxBanner.innerHTML = query;

}

function nextBanner()
{
	if (b < rtquery.length) {
		a = a+1;
		b = b+1;

	}
	scroll_init(a,b);
}

function priBanner()
{
	if (a > 0){
		a = a-1;
		b = b-1;

	}
	scroll_init(a,b);
}
