var drama = 1,
e = new Array(73,112,73,70,59,56,60,52,20,27),
//bn = new Array(false,false),
fu = new Array(51,72,37);

tpc = new Image(177,86);

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

for (var i=0,x;i<e.length;i++) {
x = e[i];
e[i] = new Array(new Image(x,30),new Image(x,30),false);
x = zero(i+1);
e[i][0].src="../img/menu_"+ x +".gif";
e[i][1].src="../img/menu_over_"+ x +".gif";
}

for (var i=0,x;i<fu.length;i++) {
x = fu[i];
fu[i] = new Array(new Image(x,21),new Image(x,21),false);
x = zero(i+1);
fu[i][0].src="../img/left_menu_"+ x +".gif";
fu[i][1].src="../img/left_menu_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;
	}
}
}

epi = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.lastIndexOf('.'));
function trailer(){
	popup = window.open('http://tvcity.tvb.com/drama/eternal_happiness/story/trailer/300k.html?'+epi,'love','width=350,height=380,resizable');
	popup.focus();
}

function themesong(bandwidth) {
if (bandwidth==56)
void(window.open("http://tvcity.tvb.com/drama/eternal_happiness/song/index_56k.html","","width=300,height=345"));
else
void(window.open("http://tvcity.tvb.com/drama/eternal_happiness/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,tpc);
for (var i=0;i<e.length;i++)
e[i][2] = document.images["m"+ i];
for (var i=0;i<fu.length;i++)
fu[i][2] = document.images["fu"+ i];
}

ICN_onLoad = "load();";
