

var e = new Array(80,80,80,80,60,60,60,60,30,30),
bn = new Array(false,false),
elen = top.location.href +"";

//if (!elen.match(/poster\/index\.html|story\//g))
//void(window.open("http://tvcity.tvb.com/drama/spirit/lib/poster.html","pos","width=200, height=270, scrollbars,status, resizable"));

elen = e.length;

function zero(z) {
if (z<10) z = "0"+ z;
return z;
}

for (var i=0,x;i<elen;i++) {
	x = e[i];
	e[i] = new Array(new Image(x,30),new Image(x,30),false);
	x = zero((i+4));
	eval("e[i][0].src='../img/country_story_"+ x +".gif'");
	eval("e[i][1].src='../img/country_story_over_"+ x +".gif'");
}


function faceoff(obj,srx) {
if (faceoff.arguments.length>1) {
	if (obj) {
		if (document.all) {
			obj.filters.blendTrans.stop();
			obj.filters.blendTrans.Apply();
			obj.src=srx.src;
			obj.filters.blendTrans.Play();
		}else obj.src=srx.src;
	}
}
}

function themesong(bandwidth) {
if (bandwidth==56)
void(window.open("http://tvcity.tvb.com/drama/spirit/song/index_56k.html","","width=300,height=345"));
else
void(window.open("http://tvcity.tvb.com/drama/spirit/song/index_300k.html","","width=350,height=380"));
}

function band(obj,srx) {
if (bn[0]==false&&bn[1]==false)
faceoff(e[7][2],e[7][0]);
else faceoff(e[7][2],e[7][1]);
faceoff(e[obj][2],e[obj][srx]);
}

function load() {
faceoff(document.images.topic,topicImg);
elen = e.length;
for (var i=0;i<elen;i++)
e[i][2] = document.images["m"+ i];
}
ICN_onLoad = "load();";